Skip to content

Instantly share code, notes, and snippets.

@tilpner
Created August 19, 2018 09:03
Show Gist options
  • Save tilpner/601f709598cd29a5796cd0eeec0c6526 to your computer and use it in GitHub Desktop.
Save tilpner/601f709598cd29a5796cd0eeec0c6526 to your computer and use it in GitHub Desktop.
{ 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