Skip to content

Instantly share code, notes, and snippets.

@callahad
Created November 5, 2018 15:18
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 callahad/33ee4e594bd81558c785c24a2cd490a1 to your computer and use it in GitHub Desktop.
Save callahad/33ee4e594bd81558c785c24a2cd490a1 to your computer and use it in GitHub Desktop.
self: super:
{
fd_7_2_0 =
let
# From the Mozilla Rust overlay at https://github.com/mozilla/nixpkgs-mozilla
channel = super.rustChannelOf {
channel = "1.29.0";
};
rustPlatform = super.makeRustPlatform {
rustc = channel.rust;
cargo = channel.cargo;
};
in
super.fd.override {
rustPlatform = rustPlatform // {
buildRustPackage = attrs: rustPlatform.buildRustPackage (attrs // rec {
name = "fd-${version}";
version = "7.2.0";
src = self.fetchFromGitHub {
owner = "sharkdp";
repo = "fd";
rev = "v${version}";
sha256 = "1h7ar1m7w3vmakg9rp1nfmz7q5pqwvd8yyxwj335ixb49gph1zi5";
};
cargoSha256 = "0y6xp7fdjfmjfqf9avbq9bdvzvwkf3v1dv7a4k03w5279vxafzi4";
});
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment