summary refs log tree commit diff
path: root/pkgs/build-support/rust/test/import-cargo-lock/git-dependency/default.nix
blob: 17276c5f5c3cc087731ab9e234ca04559617bf92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ rustPlatform }:

rustPlatform.buildRustPackage {
  pname = "git-dependency";
  version = "0.1.0";

  src = ./.;

  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "rand-0.8.3" = "0l3p174bpwia61vcvxz5mw65a13ri3wy94z04xrnyy5lzciykz4f";
    };
  };

  doInstallCheck = true;

  installCheckPhase = ''
    $out/bin/git-dependency
  '';
}