mirror of
https://github.com/NixOS/nix
synced 2025-07-07 18:31:49 +02:00
Add resolvePath, filesetToSource indirections for Nixpkgs
This commit is contained in:
parent
0729f0a113
commit
bea54d116e
5 changed files with 18 additions and 5 deletions
|
@ -17,6 +17,7 @@
|
|||
# Configuration Options
|
||||
|
||||
, version
|
||||
, resolvePath
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -82,7 +83,7 @@ mkMesonDerivation (finalAttrs: {
|
|||
run = runCommand "${finalAttrs.pname}-run" {
|
||||
} ''
|
||||
PATH="${lib.makeBinPath [ finalAttrs.finalPackage ]}:$PATH"
|
||||
export _NIX_TEST_UNIT_DATA=${./data}
|
||||
export _NIX_TEST_UNIT_DATA=${resolvePath ./data}
|
||||
nix-flake-tests
|
||||
touch $out
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue