summary refs log tree commit diff
path: root/pkgs/build-support/install-shell-files
diff options
context:
space:
mode:
authorLily Ballard <lily@sb.org>2020-05-07 18:09:04 -0700
committerLily Ballard <lily@sb.org>2020-10-08 15:08:40 -0700
commit03c9f6a647b45bf8d9b03094c43ba0467269fba4 (patch)
treecc4207d70a4ce2ca413a5f805f132f75227b1d40 /pkgs/build-support/install-shell-files
parent866a7de409e43bf36eedb35f90d3144099514563 (diff)
downloadnixpkgs-03c9f6a647b45bf8d9b03094c43ba0467269fba4.tar
nixpkgs-03c9f6a647b45bf8d9b03094c43ba0467269fba4.tar.gz
nixpkgs-03c9f6a647b45bf8d9b03094c43ba0467269fba4.tar.bz2
nixpkgs-03c9f6a647b45bf8d9b03094c43ba0467269fba4.tar.lz
nixpkgs-03c9f6a647b45bf8d9b03094c43ba0467269fba4.tar.xz
nixpkgs-03c9f6a647b45bf8d9b03094c43ba0467269fba4.tar.zst
nixpkgs-03c9f6a647b45bf8d9b03094c43ba0467269fba4.zip
installShellFiles: Add test suite
Diffstat (limited to 'pkgs/build-support/install-shell-files')
-rw-r--r--pkgs/build-support/install-shell-files/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/build-support/install-shell-files/default.nix b/pkgs/build-support/install-shell-files/default.nix
index e1f2e24dd87..d50661ddc65 100644
--- a/pkgs/build-support/install-shell-files/default.nix
+++ b/pkgs/build-support/install-shell-files/default.nix
@@ -1,4 +1,12 @@
-{ makeSetupHook }:
+{ makeSetupHook, tests }:
 
 # See the header comment in ../setup-hooks/install-shell-files.sh for example usage.
-makeSetupHook { name = "install-shell-files"; } ../setup-hooks/install-shell-files.sh
+let
+  setupHook = makeSetupHook { name = "install-shell-files"; } ../setup-hooks/install-shell-files.sh;
+in
+
+setupHook.overrideAttrs (oldAttrs: {
+  passthru = (oldAttrs.passthru or {}) // {
+    tests = tests.install-shell-files;
+  };
+})