git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
30 lines
502 B
Nix
30 lines
502 B
Nix
{ lib, rustPlatform }:
|
|
let
|
|
fs = lib.fileset;
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "git-dependency";
|
|
version = "0.1.0";
|
|
|
|
src = fs.toSource {
|
|
root = ./.;
|
|
fileset = fs.unions [
|
|
./Cargo.toml
|
|
./Cargo.lock
|
|
./src
|
|
];
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"rand-0.8.3" = "0ya2hia3cn31qa8894s3av2s8j5bjwb6yq92k0jsnlx7jid0jwqa";
|
|
};
|
|
};
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
$out/bin/git-dependency
|
|
'';
|
|
}
|