Skip to content

Commit 82cad21

Browse files
committed
fix nix-serve with hacky workaround
1 parent 1d3c2e8 commit 82cad21

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

tests/nixos/fetchers-substitute.nix

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@
44
nodes.substituter =
55
{ pkgs, ... }:
66
{
7+
# nix-serve is broken while cross-compiling in nixpkgs 25.11. It's been
8+
# fixed since, but while we're pinning 25.11 we use this workaround.
9+
nixpkgs.overlays = [
10+
(
11+
final: prev:
12+
let
13+
v25_11 = final.lib.versions.majorMinor final.lib.version == "25.11";
14+
warning = final.lib.warnIf (
15+
!v25_11
16+
) "remove the hack in fetchers-substitute.nix when updating nixpkgs from 25.11";
17+
in
18+
warning {
19+
nix-serve = prev.nix-serve.override {
20+
nix = prev.nix // {
21+
libs.nix-perl-bindings = prev.nix.nix-perl-bindings ? null;
22+
};
23+
};
24+
}
25+
)
26+
];
727
virtualisation.writableStore = true;
828

929
nix.settings.extra-experimental-features = [

0 commit comments

Comments
 (0)