crane/extra-tests/fetch-cargo-git/flake.nix
2024-05-19 01:07:07 +00:00

16 lines
484 B
Nix

{
inputs = {
crane.url = "github:ipetkov/crane";
nixpkgs.follows = "crane/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, flake-utils, crane, ... }: flake-utils.lib.eachDefaultSystem
(system: {
packages.cargo-git = (crane.mkLib nixpkgs.legacyPackages.${system}).downloadCargoPackageFromGit {
git = "https://github.com/rust-lang/cargo";
rev = "17f8088d6eafd82349630a8de8cc6efe03abf5fb";
};
});
}