mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 19:55:08 +01:00
crates
This commit is contained in:
parent
08213ec050
commit
4d777ea5a4
7 changed files with 49 additions and 33 deletions
23
custom-pkgs/crates/default.nix
Normal file
23
custom-pkgs/crates/default.nix
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue