on master help sign in
Don't copy the source twice
commit965495ccbda6a56ada5b87f5fb82ac88caeca48c authorguillaume <guillaume@repl.it> dateWed 16 Jun 2021, 16:52 (5 years ago) parentcd44634
1 file changed+2−4
build-prybar.nix+2−4
build-prybar.nix+2−4
@@ -3,13 +3,11 @@
33{ lib, buildGoModule, fetchFromGitHub, bash, pkg-config, runCommand, git, copyPathToStore }:
44
55let
6− src = ./.;
7−
8− gitSrc = copyPathToStore ./.;
6+ src = copyPathToStore ./.;
97 revision = runCommand "get-rev" {
108 nativeBuildInputs = [ git ];
119 dummy = builtins.currentTime;
12− } "GIT_DIR=${gitSrc}/.git git rev-parse --short HEAD | tr -d '\n' > $out";
10+ } "GIT_DIR=${src}/.git git rev-parse --short HEAD | tr -d '\n' > $out";
1311in buildGoModule {
1412 pname = "prybar-${language}";
1513 version = builtins.readFile revision;