Fix hashes

This commit is contained in:
Ian Keane 2025-11-30 18:37:24 -05:00
parent 9453fa56ac
commit f63485669a
4 changed files with 110 additions and 712 deletions

View file

@ -36,10 +36,10 @@
owner = "wantguns";
repo = "bin";
rev = "v${version}";
hash = "sha256-gUTDe9LPJ0Y2JLnbLv2FQaUjeNj6a1LQ3V5Z9SVnxkc=";
hash = "sha256-pbDn+fztE9bCAnCZeHg42jmjNQp7gTdl7KW4wB0xfXc=";
};
cargoHash = "sha256-2SiHrc0L9YiL2vLzKPnJ4BREPyeODJlLNReJPPpKlAE=";
cargoHash = "sha256-PuZp7zPOTt6fMbbUI0/FCkfOrUwGezNUy5E10vH1M2U=";
nativeBuildInputs = with pkgs; [
pkg-config
@ -51,6 +51,11 @@
darwin.apple_sdk.frameworks.Security
];
# Patch the build script to not require git
postPatch = ''
echo 'fn main() { println!("cargo:rustc-env=GIT_HASH=${version}"); }' > build.rs
'';
# Enable optimizations
CARGO_BUILD_INCREMENTAL = "false";
RUST_BACKTRACE = "full";