Merge pull request #252046 from MaxHearnden/nomad

nomad: use $NIX_BUILD_TOP for build directory
This commit is contained in:
Artturi 2023-08-29 04:03:44 +03:00 committed by GitHub
commit aff9f87b8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ rec {
vendorSha256 = "sha256-y3WiQuoQn6SdwTgtPWuB6EBtsJC+YleQPzownZQNkno=";
passthru.tests.nomad = nixosTests.nomad;
preCheck = ''
export PATH="$PATH:/build/go/bin"
export PATH="$PATH:$NIX_BUILD_TOP/go/bin"
'';
};
@ -93,7 +93,7 @@ rec {
vendorSha256 = "sha256-Y3O7ADzZPlLWFbXSYBcI6b5MAhMD0UnkhQxO9VJMpOY=";
passthru.tests.nomad = nixosTests.nomad;
preCheck = ''
export PATH="$PATH:/build/go/bin"
export PATH="$PATH:$NIX_BUILD_TOP/go/bin"
'';
};
}