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

View file

@ -0,0 +1,14 @@
pkgs: [
{
pname = "cargo-dl";
version = "0.1.4";
downloadHash = "sha256-txSRmOr3tYw72xI5Dqt/y1EboaqFWEMN+lASVXLNdgQ=";
cargoHash = "sha256-mkRZtC6JjsJxQ4DTjS2qw2y1opFIMt39eEMR1DurgAM=";
}
{
pname = "counts";
version = "1.0.4";
downloadHash = "sha256-zLQHUHo3e/nY5UHhX03nK/gr+0rap/bSSlX7HDzr9uo=";
cargoHash = "sha256-DVuIPO/dCk5rvPBzfM8lGGvM1ZZUUBgN7jSr/ZRGUwE=";
}
]