Skip to content

Commit

Permalink
make it build
Browse files Browse the repository at this point in the history
  • Loading branch information
Septias committed Nov 13, 2024
1 parent 7280f78 commit e1c48e3
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
rustc = toolchain;
};
in
naersk-lib.buildPackage rec {
naersk-lib.buildPackage {
pname = packageName;
cargoBuildOptions = x: x ++ [ "--package" packageName ];
version = manifest.version;
Expand All @@ -255,16 +255,6 @@
];
auditable = false; # Avoid cargo-auditable failures.
doCheck = false; # Disable test as it requires network access.

CARGO_BUILD_TARGET = rustTarget;
TARGET_CC = "${pkgsCross.stdenv.cc}/bin/${pkgsCross.stdenv.cc.targetPrefix}cc";
CARGO_BUILD_RUSTFLAGS = [
"-C"
"linker=${TARGET_CC}"
];

CC = "${pkgsCross.stdenv.cc}/bin/${pkgsCross.stdenv.cc.targetPrefix}cc";
LD = "${pkgsCross.stdenv.cc}/bin/${pkgsCross.stdenv.cc.targetPrefix}cc";
};

androidAttrs = {
Expand Down

0 comments on commit e1c48e3

Please sign in to comment.