fix: nix stuff
This commit is contained in:
parent
defd36ad8c
commit
09ca2b4955
|
@ -32,18 +32,15 @@
|
||||||
|
|
||||||
src = pkgs.lib.cleanSourceWith { src = self; };
|
src = pkgs.lib.cleanSourceWith { src = self; };
|
||||||
|
|
||||||
cargoLock = {
|
cargoLock.lockFile = ./Cargo.lock;
|
||||||
lockFile = ./Cargo.lock;
|
|
||||||
outputHashes = { "pallas-0.21.0" = "sha256-QuJwwyNaPpXBi7GzLh/V2cIRYz29Xsd3HUeG4yPt8VQ="; };
|
|
||||||
};
|
|
||||||
|
|
||||||
GIT_COMMIT_HASH_SHORT = self.shortRev or "unknown";
|
GIT_COMMIT_HASH_SHORT = self.shortRev or "unknown";
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace crates/aiken-project/src/config.rs \
|
substituteInPlace crates/aiken/src/cmd/mod.rs \
|
||||||
--replace "built_info::GIT_COMMIT_HASH_SHORT" \
|
--replace "built_info::GIT_COMMIT_HASH_SHORT" \
|
||||||
"Some(\"$GIT_COMMIT_HASH_SHORT\")"
|
"Some(\"$GIT_COMMIT_HASH_SHORT\")"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/zsh/site-functions
|
mkdir -p $out/share/zsh/site-functions
|
||||||
$out/bin/aiken completion zsh > $out/share/zsh/site-functions/_aiken
|
$out/bin/aiken completion zsh > $out/share/zsh/site-functions/_aiken
|
||||||
|
|
Loading…
Reference in New Issue