Merge pull request #265937 from onemoresuza/aba

aba: 0.7.1 -> 0.8.0
This commit is contained in:
Thiago Kenji Okada 2023-12-03 11:09:40 +00:00 committed by GitHub
commit 4af3336ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"
)
'';