l: fix test sources

This commit is contained in:
lassulus 2021-10-23 22:22:38 +02:00
parent bd8baec395
commit 3ea4c8f573
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
{ lib, pkgs, test, ... }: { lib, pkgs, test, ... }:
if test then { if test then {} else {
nixpkgs = lib.mkIf (! test) (lib.mkForce { nixpkgs = lib.mkIf (! test) (lib.mkForce {
file = { file = {
path = toString (pkgs.fetchFromGitHub { path = toString (pkgs.fetchFromGitHub {
@ -14,4 +14,4 @@ if test then {
nixpkgs-unstable = lib.mkForce { nixpkgs-unstable = lib.mkForce {
file.path = "/var/empty"; file.path = "/var/empty";
}; };
} else {} }

View File

@ -1,4 +1,4 @@
{ lib, pkgs, test, ... }: { lib, pkgs, test, ... }:
if test then { if test then {} else {
nixpkgs-unstable = lib.mkForce { file = "/var/empty"; }; nixpkgs-unstable = lib.mkForce { file = "/var/empty"; };
} else {} }