diff --git a/tests/default.nix b/tests/default.nix index a6a7b27fe2a..6806ca64adf 100644 --- a/tests/default.nix +++ b/tests/default.nix @@ -7,6 +7,7 @@ with import ../lib/testing.nix { inherit nixpkgs services system; }; { firefox = apply (import ./firefox.nix); + gnuIntegration = apply (import ./gnu-integration.nix); installer = pkgs.lib.mapAttrs (name: complete) (call (import ./installer.nix)); kde4 = apply (import ./kde4.nix); login = apply (import ./login.nix); diff --git a/tests/gnu-integration.nix b/tests/gnu-integration.nix new file mode 100644 index 00000000000..199df9538d5 --- /dev/null +++ b/tests/gnu-integration.nix @@ -0,0 +1,20 @@ +{ pkgs, ... }: + +{ + machine = + { config, pkgs, ... }: + + { + nixpkgs.config.packageOverrides = origPkgs: { + cpio = pkgs.lib.overrideDerivation origPkgs.cpio (origAttrs: { + src = /home/eelco/Dev/nixpkgs/cpio-2.10.91.tar.bz2; + patches = []; + }); + }; + }; + + testScript = + '' + $machine->mustSucceed("cpio --help"); + ''; +}