Files
jopejoe1 48ccdb5d4e tests.importCargoLock.*: remove usage of lib.fileset
The usage of lib.fileset was forbidden in nixpkgs due to a bug in nix.
For more information, see 8725e466ef and the PR it was merged in #369694
2025-05-13 20:28:49 +02:00

24 lines
426 B
Nix

{ rustPlatform }:
rustPlatform.buildRustPackage {
pname = "basic-sparse";
version = "0.1.0";
src = ./package;
cargoLock = {
lockFile = ./package/Cargo.lock;
extraRegistries = {
"sparse+https://index.crates.io/" = "https://static.crates.io/crates";
};
};
doInstallCheck = true;
postConfigure = ''
cargo metadata --offline
'';
installCheckPhase = ''
$out/bin/basic-sparse
'';
}