Skip to content

Instantly share code, notes, and snippets.

@globin
Created December 13, 2015 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save globin/920c860fcf9c7e1d6c52 to your computer and use it in GitHub Desktop.
Save globin/920c860fcf9c7e1d6c52 to your computer and use it in GitHub Desktop.
pinned-nix-shell
let
fetchgit = (import <nixpkgs> {}).fetchgit;
in
with import (fetchgit {
rev = "0acc1cd552dc4b4d8065cc16a484697167f6e45e";
url = "git://github.com/mayflower/nixpkgs";
sha256 = "1chb14vfzwyv6y2l3i4zgdydfymi0znsv9bhppdazf6r3fsf6w9j";
}) {}; {
duck = rustCargoPlatform.buildRustPackage {
name = "duck";
src = ./.;
buildInputs = [
openssl
cmake
zlibStatic
pkgconfig
libgit2
libssh2
file
];
preBuild="export LIBGIT2_SYS_USE_PKG_CONFIG=1";
depsSha256 = "15m8zh1dxyaxbgrr2jmbk6hvzzphhk6nd4w7m990y8b3wj2qli5s";
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment