summaryrefslogtreecommitdiff
path: root/tests/nixpkgs-overlays.nix
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-01-07 00:06:53 +0100
committerDaiderd Jordan <daiderd@gmail.com>2018-01-07 00:06:53 +0100
commit48b888c800448e2dd0577f6d33e0118d8d98301d (patch)
treea89f9f77537a4f2bdaef149ca2328b9664205248 /tests/nixpkgs-overlays.nix
parent94a30ef0347bdeead226bfef712b030e213b4447 (diff)
nixpkgs: add test for overlays
Diffstat (limited to 'tests/nixpkgs-overlays.nix')
-rw-r--r--tests/nixpkgs-overlays.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/nixpkgs-overlays.nix b/tests/nixpkgs-overlays.nix
new file mode 100644
index 0000000..aa03bf1
--- /dev/null
+++ b/tests/nixpkgs-overlays.nix
@@ -0,0 +1,16 @@
+{ config, pkgs, ... }:
+
+{
+ nixpkgs.overlays = [
+ (self: super:
+ {
+ hello = super.runCommand "hello" {} "mkdir $out";
+ })
+ ];
+
+ test = ''
+ echo checking /bin/hello >&2
+ ! ${pkgs.hello}/bin/hello
+ '';
+}
+