mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-22 23:17:15 +03:00
16 lines
484 B
Nix
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";
|
|
};
|
|
});
|
|
}
|