diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-07-13 15:22:34 +0200 |
---|---|---|
committer | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-07-13 15:22:34 +0200 |
commit | 6bd0c16f89c88abca07c684d30584124cd979224 (patch) | |
tree | f0a569f37ebaec096fc03c76eb3ea6dfb139f901 /pkgs | |
parent | 52acca72bff778d492aac4aceb144d12b2d7c771 (diff) | |
download | nixpkgs-6bd0c16f89c88abca07c684d30584124cd979224.tar nixpkgs-6bd0c16f89c88abca07c684d30584124cd979224.tar.gz nixpkgs-6bd0c16f89c88abca07c684d30584124cd979224.tar.bz2 nixpkgs-6bd0c16f89c88abca07c684d30584124cd979224.tar.lz nixpkgs-6bd0c16f89c88abca07c684d30584124cd979224.tar.xz nixpkgs-6bd0c16f89c88abca07c684d30584124cd979224.tar.zst nixpkgs-6bd0c16f89c88abca07c684d30584124cd979224.zip |
tests.writers: also expose path via passthru
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/build-support/writers/test.nix | 2 | ||||
-rw-r--r-- | pkgs/test/haskell/writers/default.nix | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/build-support/writers/test.nix b/pkgs/build-support/writers/test.nix index d0824b17bd1..00cad9a96b5 100644 --- a/pkgs/build-support/writers/test.nix +++ b/pkgs/build-support/writers/test.nix @@ -193,7 +193,7 @@ let ''; in runCommand "test-writers" { - passthru = { inherit writeTest bin simple; }; + passthru = { inherit writeTest bin simple path; }; meta.platforms = lib.platforms.all; } '' ${lib.concatMapStringsSep "\n" (test: writeTest "success" test.name "${test}/bin/${test.name}") (lib.attrValues bin)} diff --git a/pkgs/test/haskell/writers/default.nix b/pkgs/test/haskell/writers/default.nix index aa99e2c3c05..1d8f4b2b79c 100644 --- a/pkgs/test/haskell/writers/default.nix +++ b/pkgs/test/haskell/writers/default.nix @@ -10,11 +10,13 @@ let writeTest bin simple + path ; in runCommand "test-haskell-writers" {} '' ${writeTest "success" "test-haskell-bin-writer" "${bin.haskell}/bin/${bin.haskell.name}"} ${writeTest "success" "test-haskell-simple-writer" simple.haskell} + ${writeTest "success" "test-haskell-path-writer" path.haskell} touch $out '' |