fix: nix stuff

This commit is contained in:
rvcas 2024-01-25 11:36:56 -05:00
parent defd36ad8c
commit 09ca2b4955
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
1 changed files with 3 additions and 6 deletions

View File

@ -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