2022-11-10 05:12:34 +03:00
|
|
|
{
|
|
|
|
inputs = {
|
2024-08-30 02:29:16 +03:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2022-11-10 05:12:34 +03:00
|
|
|
crane.url = "github:ipetkov/crane";
|
2023-10-19 03:57:24 +03:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2022-11-10 05:12:34 +03:00
|
|
|
};
|
|
|
|
|
2024-05-19 04:07:07 +03:00
|
|
|
outputs = { nixpkgs, flake-utils, crane, ... }: flake-utils.lib.eachDefaultSystem
|
|
|
|
(system: {
|
|
|
|
packages.cargo-git = (crane.mkLib nixpkgs.legacyPackages.${system}).downloadCargoPackageFromGit {
|
2023-01-22 03:46:32 +03:00
|
|
|
git = "https://github.com/rust-lang/cargo";
|
|
|
|
rev = "17f8088d6eafd82349630a8de8cc6efe03abf5fb";
|
|
|
|
};
|
|
|
|
});
|
2022-11-10 05:12:34 +03:00
|
|
|
}
|