Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions ci/eval/outpaths.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ let
inHydra = true;
}
// extraNixpkgsConfig;

__allowFileset = false;
};
};

Expand Down
31 changes: 6 additions & 25 deletions pkgs/top-level/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ let
# there’s nothing we can do about that within the constraints of the
# Nix language.
x86_64DarwinDeprecationWarning =
pristineLib.warn
lib.warn
"Nixpkgs 26.05 will be the last release to support x86_64-darwin; see https://nixos.org/manual/nixpkgs/unstable/release-notes#x86_64-darwin-26.05"
(x: x);

pristineLib = import ../../lib;
lib = import ../../lib;
in

{
Expand All @@ -49,10 +49,6 @@ in
# Allow a configuration attribute set to be passed in as an argument.
config ? { },

# Temporary hack to let Nixpkgs forbid internal use of `lib.fileset`
# until <https://github.com/NixOS/nix/issues/11503> is fixed.
__allowFileset ? true,

# List of overlays layers used to extend Nixpkgs.
overlays ? [ ],

Expand All @@ -68,31 +64,16 @@ in
...
}@args:

assert
args ? __allowFileset
-> throw "__allowFileset option was removed as it's no longer neeed, please remove it.";

let # Rename the function arguments
config0 = config;
crossSystem0 = crossSystem;

in
let
lib =
if __allowFileset then
pristineLib
else
pristineLib.extend (
_: _: {
fileset = abort ''

The use of `lib.fileset` is currently forbidden in Nixpkgs due to the
upstream Nix bug <https://github.com/NixOS/nix/issues/11503>. This
causes difficult‐to‐debug errors when combined with chroot stores,
such as in the NixOS installer.

For packages that require source to be vendored inside Nixpkgs,
please use a subdirectory of the package instead.
'';
}
);

inherit (lib) throwIfNot;

checked =
Expand Down
1 change: 0 additions & 1 deletion pkgs/top-level/release-cross.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
allowUnfree = false;
inHydra = true;
};
__allowFileset = false;
},
}:

Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/release-cuda.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ in
# Don't evaluate duplicate and/or deprecated attributes
allowAliases = false;
};

__allowFileset = false;
},
...
}@args:
Expand Down
1 change: 0 additions & 1 deletion pkgs/top-level/release-lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
allowUnfree = false;
inHydra = true;
};
__allowFileset = false;
},
}:

Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/release-python.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
allowUnfree = false;
inHydra = true;
};

__allowFileset = false;
},
}:

Expand Down
1 change: 0 additions & 1 deletion pkgs/top-level/release-staging.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
allowUnfree = false;
inHydra = true;
};
__allowFileset = false;
},
}:

Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/release-unfree-redistributable.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
cudaSupport = true;
inHydra = true;
};

__allowFileset = false;
},
# We only build the full package set on infrequently releasing channels.
full ? false,
Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
"kanidmWithSecretProvisioning_1_8-1.8.6"
];
};

__allowFileset = false;
},

# This flag, if set to true, will inhibit the use of `mapTestOn`
Expand Down
Loading