diff --git a/nix/packages/anyrun.nix b/nix/packages/anyrun.nix index 6244286..8d49958 100644 --- a/nix/packages/anyrun.nix +++ b/nix/packages/anyrun.nix @@ -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]; }; diff --git a/nix/packages/plugin.nix b/nix/packages/plugin.nix index 06143df..1033a6a 100644 --- a/nix/packages/plugin.nix +++ b/nix/packages/plugin.nix @@ -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]; }; }