Skip to content

Commit 57139e0

Browse files
committed
nix/packages: fix incramental builds variable
https://doc.rust-lang.org/cargo/reference/config.html
1 parent 591d08e commit 57139e0

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

nix/packages/anyrun.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ in
3939
inherit lockFile;
4040
};
4141

42-
checkInputs = [cargo rustc];
43-
4442
nativeBuildInputs = [
4543
pkg-config
4644
makeWrapper
@@ -63,14 +61,16 @@ in
6361
else [];
6462

6563
doCheck = true;
64+
checkInputs = [cargo rustc];
65+
6666
copyLibs = true;
6767

6868
buildAndTestSubdir =
6969
if dontBuildPlugins
7070
then pname
7171
else null;
7272

73-
CARGO_BUILD_INCREMENTAL = "false";
73+
CARGO_BUILD_INCREMENTAL = 0;
7474
RUST_BACKTRACE = "full";
7575

7676
postInstall = ''
@@ -82,7 +82,7 @@ in
8282
meta = {
8383
description = "A wayland native, highly customizable runner.";
8484
homepage = "https://github.com/Kirottu/anyrun";
85-
license = with lib.licenses; [gpl3];
85+
license = [lib.licenses.gpl3];
8686
mainProgram = "anyrun";
8787
maintainers = with lib.maintainers; [NotAShelf n3oney];
8888
};

nix/packages/plugin.nix

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
gtk-layer-shell,
1111
pkg-config,
1212
librsvg,
13+
cargo,
14+
rustc,
1315
# Generic args
1416
name,
1517
lockFile,
@@ -49,17 +51,22 @@ in
4951
++ extraInputs;
5052

5153
doCheck = true;
54+
checkInputs = [
55+
cargo
56+
rustc
57+
];
58+
5259
copyLibs = true;
5360
cargoBuildFlags = ["-p ${name}"];
5461
buildAndTestSubdir = "plugins/${name}";
5562

56-
CARGO_BUILD_INCREMENTAL = "false";
63+
CARGO_BUILD_INCREMENTAL = 0;
5764
RUST_BACKTRACE = "full";
5865

5966
meta = {
6067
description = "The ${name} plugin for Anyrun";
6168
homepage = "https://github.com/Kirottu/anyrun";
62-
license = with lib.licenses; [gpl3];
69+
license = [lib.licenses.gpl3];
6370
maintainers = with lib.maintainers; [NotAShelf n3oney];
6471
};
6572
}

0 commit comments

Comments
 (0)