nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 23 lines 426 B view raw
1{ rustPlatform }: 2 3rustPlatform.buildRustPackage { 4 pname = "basic-sparse"; 5 version = "0.1.0"; 6 7 src = ./package; 8 9 cargoLock = { 10 lockFile = ./package/Cargo.lock; 11 extraRegistries = { 12 "sparse+https://index.crates.io/" = "https://static.crates.io/crates"; 13 }; 14 }; 15 16 doInstallCheck = true; 17 postConfigure = '' 18 cargo metadata --offline 19 ''; 20 installCheckPhase = '' 21 $out/bin/basic-sparse 22 ''; 23}