This commit is contained in:
nora 2024-02-23 21:14:32 +01:00
parent 08213ec050
commit 4d777ea5a4
7 changed files with 49 additions and 33 deletions

View file

@ -0,0 +1,23 @@
pkgs:
let
crates = import ./list.nix pkgs;
in
builtins.map
(crate: pkgs.rustPlatform.buildRustPackage {
pname = crate.pname;
version = crate.version;
src = pkgs.fetchCrate {
pname = crate.pname;
version = crate.version;
hash = crate.downloadHash;
};
cargoHash = crate.cargoHash;
meta = {
description = "${crate.pname} crate from crates.io";
homepage = "https://crates.io/crates/${crate.pname}";
};
}
)
crates