-
-
Save tilpner/601f709598cd29a5796cd0eeec0c6526 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ rustPlatform, rustChannelOf, pkgconfig, openssl, postgresql }: | |
with builtins; | |
let | |
nightly = rustChannelOf { | |
channel = "nightly"; | |
date = "2018-07-16"; | |
}; | |
buildRustPackage = rustPlatform.buildRustPackage.override { | |
rust = nightly; | |
}; | |
in buildRustPackage rec { | |
name = "notiff-${version}"; | |
version = "0.1.0"; | |
ignore = map toString [ | |
./target | |
./default.nix | |
]; | |
src = filterSource (path: type: !elem path ignore) ./.; | |
cargoSha256 = "0x3f5ncfw5zdqcvsw390q6v39ci03r6q18kajc3z2g2q1i0q37m0"; | |
buildInputs = [ pkgconfig openssl postgresql ]; | |
RUSTFLAGS = "-L ${nightly.rust}/lib/rustlib/x86_64-unknown-linux-gnu/lib -A proc_macro_derive_resolution_fallback"; | |
doCheck = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment