aba: 0.7.1 -> 0.8.0

This commit is contained in:
Gustavo Coutinho de Souza 2023-11-06 19:20:27 -03:00
parent f2e6c5bcb4
commit 29d1b59b2d
No known key found for this signature in database
GPG Key ID: 87B914AD813AA7C7

View File

@ -6,7 +6,7 @@
, scdoc
}:
let
version = "0.7.1";
version = "0.8.0";
in
rustPlatform.buildRustPackage {
pname = "aba";
@ -16,11 +16,10 @@ rustPlatform.buildRustPackage {
owner = "~onemoresuza";
repo = "aba";
rev = version;
hash = "sha256-Sz9I1Dw7wmoUPpTBNfbYbehfNO8FK6r/ubofx+FGb04=";
domain = "sr.ht";
hash = "sha256-2zVQNchL4DFh2v2/kwupJTBSmXiKqlxzUMrP9TbfCMs=";
};
cargoSha256 = "sha256-Ihoh+yp12qN74JHvJbEDoYz+eoMwPOQar+yBEy+bqb0=";
cargoHash = "sha256-YhSzbfcEIJjKWlyYq1lK70qt4f/Z71n7hgaaZ/D/U80=";
nativeBuildInputs = [
just
@ -28,9 +27,8 @@ rustPlatform.buildRustPackage {
];
postPatch = ''
# Suppress messages of command not found. jq is not needed for the build, but just calls it anyway.
sed -i '/[[:space:]]*|[[:space:]]*jq -r/s/jq -r .*/: \\/' ./justfile
# Let only nix strip the binary by disabling cargo's `strip = true`, like buildRustPackage does.
# Let only nix strip the binary by disabling cargo's `strip = true`, like
# buildRustPackage does when not using just's setup hooks.
sed -i '/strip[[:space:]]*=[[:space:]]*true/s/true/false/' ./Cargo.toml
'';
@ -38,7 +36,7 @@ rustPlatform.buildRustPackage {
justFlagsArray+=(
PREFIX=${builtins.placeholder "out"}
MANIFEST_OPTS="--frozen --locked --profile=release"
INSTALL_OPTS=--no-track
INSTALL_OPTS="--no-track"
)
'';