nixpkgs/pkgs/build-support/rust/test/import-cargo-lock/basic/default.nix

19 lines
235 B
Nix

{ rustPlatform }:
rustPlatform.buildRustPackage {
pname = "basic";
version = "0.1.0";
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
};
doInstallCheck = true;
installCheckPhase = ''
$out/bin/basic
'';
}