Skip to content

Commit afcb15b

Browse files
fix(tests): channel patching
1 parent 6b10f51 commit afcb15b

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

devShell.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ devshell.mkShell {
7474
command = "nix build ${rootDir}/examples/darwin#darwinConfigurations.Hostname1.system --no-write-lock-file --dry-run";
7575
}
7676

77-
#(test "channel-patching")
77+
(test "channel-patching")
7878
(test "derivation-outputs")
7979
(test "hosts-config")
8080
(test "overlays-flow")
8181
(test "all" // { command = "check-derivation-outputs && check-hosts-config && check-overlays-flow"; })
8282

8383
(dry-nixos-build "minimal-multichannel" "Hostname1")
8484
(dry-nixos-build "minimal-multichannel" "Hostname2")
85-
#(dry-nixos-build "home-manager+nur+neovim" "Rick")
85+
(dry-nixos-build "home-manager+nur+neovim" "Rick")
8686
(dry-nixos-build "exporters" "Morty")
8787
(withCategory "dry-build" { name = "build-all"; command = "build-exporters-Morty && build-minimal-multichannel-Hostname1 && build-minimal-multichannel-Hostname2"; })
8888

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,35 @@
11
diff --git a/lib/default.nix b/lib/default.nix
2-
index 169f013191b8..05e91f1cd27b 100644
2+
index f931524002f2..5299719bfd92 100644
33
--- a/lib/default.nix
44
+++ b/lib/default.nix
5-
@@ -10,6 +10,7 @@ let
5+
@@ -10,6 +10,8 @@ let
66
lib = makeExtensible (self: let
77
callLibs = file: import file { lib = self; };
88
in {
99
+ patchedFunction = x: x;
10+
+
1011

1112
# often used, or depending on very little
1213
trivial = callLibs ./trivial.nix;
1314
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix
14-
index ec6f410a48f6..3c6669988d2f 100644
15+
index bd3b27c00b55..3cfde568a714 100644
1516
--- a/nixos/modules/module-list.nix
1617
+++ b/nixos/modules/module-list.nix
17-
@@ -1505,4 +1505,10 @@
18-
./virtualisation/xe-guest-utilities.nix
19-
./virtualisation/xen-dom0.nix
20-
{ documentation.nixos.extraModules = [ ./virtualisation/qemu-vm.nix ]; }
18+
@@ -1818,4 +1818,10 @@
19+
./image/repart.nix
20+
];
21+
}
2122
+ ({ lib, config, ... }: {
2223
+ options.patchedModule.test = lib.mkOption {
2324
+ default = null;
2425
+ example = "test";
2526
+ };
2627
+ })
2728
]
28-
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
29-
index 0c2a44d531df..299ff71619b6 100644
30-
--- a/pkgs/top-level/all-packages.nix
31-
+++ b/pkgs/top-level/all-packages.nix
32-
@@ -42286,4 +42286,6 @@ with pkgs;
33-
ssl-proxy = callPackage ../tools/networking/ssl-proxy { };
34-
35-
code-maat = callPackage ../development/tools/code-maat {};
36-
+
37-
+ flake-utils-plus-test = callPackage ../tools/misc/coreutils { };
38-
}
29+
diff --git a/pkgs/by-name/fl/flake-utils-plus-test/package.nix b/pkgs/by-name/fl/flake-utils-plus-test/package.nix
30+
new file mode 100644
31+
index 000000000000..ad5323375baf
32+
--- /dev/null
33+
+++ b/pkgs/by-name/fl/flake-utils-plus-test/package.nix
34+
@@ -0,0 +1 @@
35+
+{ coreutils }: coreutils

0 commit comments

Comments
 (0)