aboutsummaryrefslogtreecommitdiff
path: root/nix/candelabra.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/candelabra.nix')
-rw-r--r--nix/candelabra.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nix/candelabra.nix b/nix/candelabra.nix
index da0a51c..192bf1f 100644
--- a/nix/candelabra.nix
+++ b/nix/candelabra.nix
@@ -13,14 +13,14 @@ inputs @ {
src = craneLib.cleanCargoSource (craneLib.path ../src);
doCheck = false;
- propagatedBuildInputs = [(pkgs.callPackage ./racket-env.nix inputs)];
+ propagatedBuildInputs = [];
cargoExtraArgs = "-p candelabra-cli";
};
in
pkgs.runCommand "candelabra" {} ''
. ${pkgs.makeWrapper}/nix-support/setup-hook
- mkdir -p $out/bin
+ mkdir -p $out/{bin,nix-support}
makeWrapper ${rustCrate}/bin/candelabra $out/bin/candelabra \
--set CANDELABRA_SRC_DIR ${pkgs.lib.sourceByRegex ../src [
".*crates"
@@ -28,4 +28,5 @@ in
".*crates/library.*"
".*crates/benchmarker.*"
]}
+ echo "${pkgs.callPackage ./racket-env.nix inputs} ${toolchain}" > $out/nix-support/propagated-build-inputs
''