Fix hashes
This commit is contained in:
parent
9453fa56ac
commit
f63485669a
4 changed files with 110 additions and 712 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue