nix/packages: fix incramental builds variable

https://doc.rust-lang.org/cargo/reference/config.html
This commit is contained in:
NotAShelf
2024-10-31 23:25:35 +03:00
parent 591d08e430
commit 57139e050b
2 changed files with 13 additions and 6 deletions

View File

@@ -39,8 +39,6 @@ in
inherit lockFile;
};
checkInputs = [cargo rustc];
nativeBuildInputs = [
pkg-config
makeWrapper
@@ -63,6 +61,8 @@ in
else [];
doCheck = true;
checkInputs = [cargo rustc];
copyLibs = true;
buildAndTestSubdir =
@@ -70,7 +70,7 @@ in
then pname
else null;
CARGO_BUILD_INCREMENTAL = "false";
CARGO_BUILD_INCREMENTAL = 0;
RUST_BACKTRACE = "full";
postInstall = ''
@@ -82,7 +82,7 @@ in
meta = {
description = "A wayland native, highly customizable runner.";
homepage = "https://github.com/Kirottu/anyrun";
license = with lib.licenses; [gpl3];
license = [lib.licenses.gpl3];
mainProgram = "anyrun";
maintainers = with lib.maintainers; [NotAShelf n3oney];
};

View File

@@ -10,6 +10,8 @@
gtk-layer-shell,
pkg-config,
librsvg,
cargo,
rustc,
# Generic args
name,
lockFile,
@@ -49,17 +51,22 @@ in
++ extraInputs;
doCheck = true;
checkInputs = [
cargo
rustc
];
copyLibs = true;
cargoBuildFlags = ["-p ${name}"];
buildAndTestSubdir = "plugins/${name}";
CARGO_BUILD_INCREMENTAL = "false";
CARGO_BUILD_INCREMENTAL = 0;
RUST_BACKTRACE = "full";
meta = {
description = "The ${name} plugin for Anyrun";
homepage = "https://github.com/Kirottu/anyrun";
license = with lib.licenses; [gpl3];
license = [lib.licenses.gpl3];
maintainers = with lib.maintainers; [NotAShelf n3oney];
};
}