From e1c48e361046bdd4dde1d98f689414ad21c53f82 Mon Sep 17 00:00:00 2001 From: Septias Date: Wed, 13 Nov 2024 14:09:33 +0100 Subject: [PATCH] make it build --- flake.nix | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/flake.nix b/flake.nix index c75ccfbeda..98b8518874 100644 --- a/flake.nix +++ b/flake.nix @@ -244,7 +244,7 @@ rustc = toolchain; }; in - naersk-lib.buildPackage rec { + naersk-lib.buildPackage { pname = packageName; cargoBuildOptions = x: x ++ [ "--package" packageName ]; version = manifest.version; @@ -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 = {