mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
all-packages: do not export lib functions from pkgs
This commit is contained in:
parent
871025441c
commit
03bb7d8195
|
|
@ -14,10 +14,15 @@
|
||||||
# where said tests are unsupported.
|
# where said tests are unsupported.
|
||||||
# Example callTest that just extracts the derivation from the test:
|
# Example callTest that just extracts the derivation from the test:
|
||||||
# callTest = t: t.test;
|
# callTest = t: t.test;
|
||||||
|
|
||||||
with pkgs.lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
|
inherit (pkgs.lib)
|
||||||
|
isAttrs
|
||||||
|
isFunction
|
||||||
|
mapAttrs
|
||||||
|
elem
|
||||||
|
recurseIntoAttrs
|
||||||
|
;
|
||||||
|
|
||||||
# TODO: remove when handleTest is gone (make sure nixosTests and nixos/release.nix#tests are unaffected)
|
# TODO: remove when handleTest is gone (make sure nixosTests and nixos/release.nix#tests are unaffected)
|
||||||
# TODO: when removing, also deprecate `test` attribute in ../lib/testing/run.nix
|
# TODO: when removing, also deprecate `test` attribute in ../lib/testing/run.nix
|
||||||
discoverTests =
|
discoverTests =
|
||||||
|
|
@ -667,7 +672,7 @@ in
|
||||||
guacamole-server = runTest ./guacamole-server.nix;
|
guacamole-server = runTest ./guacamole-server.nix;
|
||||||
guix = handleTest ./guix { };
|
guix = handleTest ./guix { };
|
||||||
gvisor = runTest ./gvisor.nix;
|
gvisor = runTest ./gvisor.nix;
|
||||||
h2o = import ./web-servers/h2o { inherit recurseIntoAttrs runTest; };
|
h2o = import ./web-servers/h2o { inherit runTest; };
|
||||||
hadoop = import ./hadoop {
|
hadoop = import ./hadoop {
|
||||||
inherit handleTestOn;
|
inherit handleTestOn;
|
||||||
package = pkgs.hadoop;
|
package = pkgs.hadoop;
|
||||||
|
|
@ -737,13 +742,13 @@ in
|
||||||
immich-vectorchord-migration = runTest ./web-apps/immich-vectorchord-migration.nix;
|
immich-vectorchord-migration = runTest ./web-apps/immich-vectorchord-migration.nix;
|
||||||
immich-vectorchord-reindex = runTest ./web-apps/immich-vectorchord-reindex.nix;
|
immich-vectorchord-reindex = runTest ./web-apps/immich-vectorchord-reindex.nix;
|
||||||
incron = runTest ./incron.nix;
|
incron = runTest ./incron.nix;
|
||||||
incus = pkgs.recurseIntoAttrs (
|
incus = recurseIntoAttrs (
|
||||||
handleTest ./incus {
|
handleTest ./incus {
|
||||||
lts = false;
|
lts = false;
|
||||||
inherit system pkgs;
|
inherit system pkgs;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
incus-lts = pkgs.recurseIntoAttrs (handleTest ./incus { inherit system pkgs; });
|
incus-lts = recurseIntoAttrs (handleTest ./incus { inherit system pkgs; });
|
||||||
influxdb = runTest ./influxdb.nix;
|
influxdb = runTest ./influxdb.nix;
|
||||||
influxdb2 = runTest ./influxdb2.nix;
|
influxdb2 = runTest ./influxdb2.nix;
|
||||||
initrd-luks-empty-passphrase = runTest ./initrd-luks-empty-passphrase.nix;
|
initrd-luks-empty-passphrase = runTest ./initrd-luks-empty-passphrase.nix;
|
||||||
|
|
@ -754,7 +759,7 @@ in
|
||||||
initrdNetwork = runTest ./initrd-network.nix;
|
initrdNetwork = runTest ./initrd-network.nix;
|
||||||
input-remapper = runTest ./input-remapper.nix;
|
input-remapper = runTest ./input-remapper.nix;
|
||||||
inspircd = runTest ./inspircd.nix;
|
inspircd = runTest ./inspircd.nix;
|
||||||
installed-tests = pkgs.recurseIntoAttrs (handleTest ./installed-tests { });
|
installed-tests = recurseIntoAttrs (handleTest ./installed-tests { });
|
||||||
installer = handleTest ./installer.nix { };
|
installer = handleTest ./installer.nix { };
|
||||||
installer-systemd-stage-1 = handleTest ./installer-systemd-stage-1.nix { };
|
installer-systemd-stage-1 = handleTest ./installer-systemd-stage-1.nix { };
|
||||||
intune = runTest ./intune.nix;
|
intune = runTest ./intune.nix;
|
||||||
|
|
@ -808,7 +813,7 @@ in
|
||||||
ksm = runTest ./ksm.nix;
|
ksm = runTest ./ksm.nix;
|
||||||
kthxbye = runTest ./kthxbye.nix;
|
kthxbye = runTest ./kthxbye.nix;
|
||||||
kubernetes = handleTestOn [ "x86_64-linux" ] ./kubernetes { };
|
kubernetes = handleTestOn [ "x86_64-linux" ] ./kubernetes { };
|
||||||
kubo = import ./kubo { inherit recurseIntoAttrs runTest; };
|
kubo = import ./kubo { inherit runTest; };
|
||||||
lact = runTest ./lact.nix;
|
lact = runTest ./lact.nix;
|
||||||
ladybird = runTest ./ladybird.nix;
|
ladybird = runTest ./ladybird.nix;
|
||||||
languagetool = runTest ./languagetool.nix;
|
languagetool = runTest ./languagetool.nix;
|
||||||
|
|
@ -891,7 +896,7 @@ in
|
||||||
man = runTest ./man.nix;
|
man = runTest ./man.nix;
|
||||||
mariadb-galera = handleTest ./mysql/mariadb-galera.nix { };
|
mariadb-galera = handleTest ./mysql/mariadb-galera.nix { };
|
||||||
marytts = runTest ./marytts.nix;
|
marytts = runTest ./marytts.nix;
|
||||||
mastodon = pkgs.recurseIntoAttrs (handleTest ./web-apps/mastodon { inherit handleTestOn; });
|
mastodon = recurseIntoAttrs (handleTest ./web-apps/mastodon { inherit handleTestOn; });
|
||||||
mate = runTest ./mate.nix;
|
mate = runTest ./mate.nix;
|
||||||
mate-wayland = runTest ./mate-wayland.nix;
|
mate-wayland = runTest ./mate-wayland.nix;
|
||||||
matomo = runTest ./matomo.nix;
|
matomo = runTest ./matomo.nix;
|
||||||
|
|
@ -953,7 +958,7 @@ in
|
||||||
mopidy = runTest ./mopidy.nix;
|
mopidy = runTest ./mopidy.nix;
|
||||||
morph-browser = runTest ./morph-browser.nix;
|
morph-browser = runTest ./morph-browser.nix;
|
||||||
mosquitto = runTest ./mosquitto.nix;
|
mosquitto = runTest ./mosquitto.nix;
|
||||||
movim = import ./web-apps/movim { inherit recurseIntoAttrs runTest; };
|
movim = import ./web-apps/movim { inherit runTest; };
|
||||||
mpd = runTest ./mpd.nix;
|
mpd = runTest ./mpd.nix;
|
||||||
mpv = runTest ./mpv.nix;
|
mpv = runTest ./mpv.nix;
|
||||||
mtp = runTest ./mtp.nix;
|
mtp = runTest ./mtp.nix;
|
||||||
|
|
@ -1410,7 +1415,7 @@ in
|
||||||
suricata = runTest ./suricata.nix;
|
suricata = runTest ./suricata.nix;
|
||||||
suwayomi-server = import ./suwayomi-server.nix {
|
suwayomi-server = import ./suwayomi-server.nix {
|
||||||
inherit runTest;
|
inherit runTest;
|
||||||
lib = pkgs.lib;
|
inherit (pkgs) lib;
|
||||||
};
|
};
|
||||||
svnserve = runTest ./svnserve.nix;
|
svnserve = runTest ./svnserve.nix;
|
||||||
swap-file-btrfs = runTest ./swap-file-btrfs.nix;
|
swap-file-btrfs = runTest ./swap-file-btrfs.nix;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{ recurseIntoAttrs, runTest }:
|
{ lib, runTest }:
|
||||||
recurseIntoAttrs {
|
lib.recurseIntoAttrs {
|
||||||
kubo = runTest ./kubo.nix;
|
kubo = runTest ./kubo.nix;
|
||||||
kubo-fuse = runTest ./kubo-fuse.nix;
|
kubo-fuse = runTest ./kubo-fuse.nix;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
{ recurseIntoAttrs, runTest }:
|
{ lib, runTest }:
|
||||||
|
lib.recurseIntoAttrs {
|
||||||
recurseIntoAttrs {
|
|
||||||
ejabberd-h2o = runTest ./ejabberd-h2o.nix;
|
ejabberd-h2o = runTest ./ejabberd-h2o.nix;
|
||||||
prosody-nginx = runTest ./prosody-nginx.nix;
|
prosody-nginx = runTest ./prosody-nginx.nix;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
{ recurseIntoAttrs, runTest }:
|
{ lib, runTest }:
|
||||||
|
lib.recurseIntoAttrs {
|
||||||
recurseIntoAttrs {
|
|
||||||
basic = runTest ./basic.nix;
|
basic = runTest ./basic.nix;
|
||||||
mruby = runTest ./mruby.nix;
|
mruby = runTest ./mruby.nix;
|
||||||
tls-recommendations = runTest ./tls-recommendations.nix;
|
tls-recommendations = runTest ./tls-recommendations.nix;
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,6 @@
|
||||||
ncurses,
|
ncurses,
|
||||||
nixosTests,
|
nixosTests,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
recurseIntoAttrs,
|
|
||||||
sigtool,
|
sigtool,
|
||||||
sqlite,
|
sqlite,
|
||||||
replaceVars,
|
replaceVars,
|
||||||
|
|
@ -496,7 +495,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
inherit withNativeCompilation;
|
inherit withNativeCompilation;
|
||||||
inherit withTreeSitter;
|
inherit withTreeSitter;
|
||||||
inherit withXwidgets;
|
inherit withXwidgets;
|
||||||
pkgs = recurseIntoAttrs (emacsPackagesFor finalAttrs.finalPackage);
|
pkgs = lib.recurseIntoAttrs (emacsPackagesFor finalAttrs.finalPackage);
|
||||||
tests = {
|
tests = {
|
||||||
inherit (nixosTests) emacs-daemon;
|
inherit (nixosTests) emacs-daemon;
|
||||||
withPackages = callPackage ./build-support/wrapper-test.nix {
|
withPackages = callPackage ./build-support/wrapper-test.nix {
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ let
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
pkgs.recurseIntoAttrs rec {
|
pkgs.lib.recurseIntoAttrs rec {
|
||||||
|
|
||||||
inherit nmt;
|
inherit nmt;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
callPackage,
|
callPackage,
|
||||||
lowPrio,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
inherit (lib) lowPrio;
|
||||||
base3 = callPackage ./tesseract3.nix { };
|
base3 = callPackage ./tesseract3.nix { };
|
||||||
base4 = callPackage ./tesseract4.nix { };
|
base4 = callPackage ./tesseract4.nix { };
|
||||||
base5 = callPackage ./tesseract5.nix { };
|
base5 = callPackage ./tesseract5.nix { };
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# `fetchPypi` function for fetching artifacts from PyPI.
|
# `fetchPypi` function for fetching artifacts from PyPI.
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
makeOverridable,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
@ -46,7 +46,7 @@ let
|
||||||
compute (removeAttrs attrs [ "format" ]);
|
compute (removeAttrs attrs [ "format" ]);
|
||||||
|
|
||||||
in
|
in
|
||||||
makeOverridable (
|
lib.makeOverridable (
|
||||||
{
|
{
|
||||||
format ? "setuptools",
|
format ? "setuptools",
|
||||||
sha256 ? "",
|
sha256 ? "",
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
lammps,
|
lammps,
|
||||||
mpi,
|
mpi,
|
||||||
lowPrio,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
lowPrio (
|
lib.lowPrio (
|
||||||
lammps.override {
|
lammps.override {
|
||||||
extraBuildInputs = [
|
extraBuildInputs = [
|
||||||
mpi
|
mpi
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
recurseIntoAttrs,
|
|
||||||
generateSplicesForMkScope,
|
generateSplicesForMkScope,
|
||||||
makeScopeWithSplicing',
|
makeScopeWithSplicing',
|
||||||
writeScriptBin,
|
writeScriptBin,
|
||||||
|
|
@ -92,9 +91,9 @@ let
|
||||||
mkNugetDeps = callPackage ../../../build-support/dotnet/make-nuget-deps { };
|
mkNugetDeps = callPackage ../../../build-support/dotnet/make-nuget-deps { };
|
||||||
addNuGetDeps = callPackage ../../../build-support/dotnet/add-nuget-deps { };
|
addNuGetDeps = callPackage ../../../build-support/dotnet/add-nuget-deps { };
|
||||||
|
|
||||||
dotnet_8 = recurseIntoAttrs (callPackage ./8 { });
|
dotnet_8 = lib.recurseIntoAttrs (callPackage ./8 { });
|
||||||
dotnet_9 = recurseIntoAttrs (callPackage ./9 { });
|
dotnet_9 = lib.recurseIntoAttrs (callPackage ./9 { });
|
||||||
dotnet_10 = recurseIntoAttrs (callPackage ./10 { });
|
dotnet_10 = lib.recurseIntoAttrs (callPackage ./10 { });
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@
|
||||||
nugetPackageHook,
|
nugetPackageHook,
|
||||||
xmlstarlet,
|
xmlstarlet,
|
||||||
pkgs,
|
pkgs,
|
||||||
recurseIntoAttrs,
|
|
||||||
}:
|
}:
|
||||||
type: unwrapped:
|
type: unwrapped:
|
||||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
|
|
@ -282,7 +281,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs (type == "sdk") {
|
// lib.optionalAttrs (type == "sdk") {
|
||||||
buildDotnetModule = recurseIntoAttrs (
|
buildDotnetModule = lib.recurseIntoAttrs (
|
||||||
(pkgs.appendOverlays [
|
(pkgs.appendOverlays [
|
||||||
(self: super: {
|
(self: super: {
|
||||||
dotnet-sdk = finalAttrs.finalPackage;
|
dotnet-sdk = finalAttrs.finalPackage;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
callPackage,
|
callPackage,
|
||||||
isl_0_20,
|
isl_0_20,
|
||||||
noSysDirs,
|
noSysDirs,
|
||||||
lowPrio,
|
|
||||||
wrapCC,
|
wrapCC,
|
||||||
}@args:
|
}@args:
|
||||||
|
|
||||||
|
|
@ -18,7 +17,7 @@ let
|
||||||
majorVersion = lib.versions.major majorMinorVersion;
|
majorVersion = lib.versions.major majorMinorVersion;
|
||||||
atLeast = lib.versionAtLeast majorMinorVersion;
|
atLeast = lib.versionAtLeast majorMinorVersion;
|
||||||
attrName = "gcc${lib.replaceStrings [ "." ] [ "" ] majorMinorVersion}";
|
attrName = "gcc${lib.replaceStrings [ "." ] [ "" ] majorMinorVersion}";
|
||||||
pkg = lowPrio (
|
pkg = lib.lowPrio (
|
||||||
wrapCC (
|
wrapCC (
|
||||||
callPackage ./default.nix {
|
callPackage ./default.nix {
|
||||||
inherit noSysDirs;
|
inherit noSysDirs;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
callPackage,
|
callPackage,
|
||||||
stdenv,
|
stdenv,
|
||||||
stdenvAdapters,
|
stdenvAdapters,
|
||||||
recurseIntoAttrs,
|
|
||||||
gccVersions ? { },
|
gccVersions ? { },
|
||||||
patchesFn ? lib.id,
|
patchesFn ? lib.id,
|
||||||
buildPackages,
|
buildPackages,
|
||||||
|
|
@ -44,7 +43,7 @@ let
|
||||||
args.name or (if (gitRelease != null) then "git" else lib.versions.major release_version);
|
args.name or (if (gitRelease != null) then "git" else lib.versions.major release_version);
|
||||||
in
|
in
|
||||||
lib.nameValuePair attrName (
|
lib.nameValuePair attrName (
|
||||||
recurseIntoAttrs (
|
lib.recurseIntoAttrs (
|
||||||
callPackage ./common (
|
callPackage ./common (
|
||||||
{
|
{
|
||||||
inherit (stdenvAdapters) overrideCC;
|
inherit (stdenvAdapters) overrideCC;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
lowPrio,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
targetPackages,
|
targetPackages,
|
||||||
lib,
|
lib,
|
||||||
|
|
@ -190,14 +189,14 @@ makeScopeWithSplicing' {
|
||||||
|
|
||||||
clang-unwrapped = self.libclang;
|
clang-unwrapped = self.libclang;
|
||||||
|
|
||||||
llvm-manpages = lowPrio (
|
llvm-manpages = lib.lowPrio (
|
||||||
self.libllvm.override {
|
self.libllvm.override {
|
||||||
enableManpages = true;
|
enableManpages = true;
|
||||||
python3 = pkgs.python3; # don't use python-boot
|
python3 = pkgs.python3; # don't use python-boot
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
clang-manpages = lowPrio (
|
clang-manpages = lib.lowPrio (
|
||||||
self.libclang.override {
|
self.libclang.override {
|
||||||
enableManpages = true;
|
enableManpages = true;
|
||||||
python3 = pkgs.python3; # don't use python-boot
|
python3 = pkgs.python3; # don't use python-boot
|
||||||
|
|
@ -261,7 +260,7 @@ makeScopeWithSplicing' {
|
||||||
|
|
||||||
lldb = callPackage ./lldb { };
|
lldb = callPackage ./lldb { };
|
||||||
|
|
||||||
lldb-manpages = lowPrio (
|
lldb-manpages = lib.lowPrio (
|
||||||
self.lldb.override {
|
self.lldb.override {
|
||||||
enableManpages = true;
|
enableManpages = true;
|
||||||
python3 = pkgs.python3; # don't use python-boot
|
python3 = pkgs.python3; # don't use python-boot
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
targetPackages,
|
targetPackages,
|
||||||
stdenv,
|
stdenv,
|
||||||
pkgs,
|
pkgs,
|
||||||
recurseIntoAttrs,
|
|
||||||
# This is the default binutils, but with *this* version of LLD rather
|
# This is the default binutils, but with *this* version of LLD rather
|
||||||
# than the default LLVM version's, if LLD is the choice. We use these for
|
# than the default LLVM version's, if LLD is the choice. We use these for
|
||||||
# the `useLLVM` bootstrapping below.
|
# the `useLLVM` bootstrapping below.
|
||||||
|
|
@ -56,7 +55,7 @@ let
|
||||||
args.name or (if (gitRelease != null) then "git" else lib.versions.major release_version);
|
args.name or (if (gitRelease != null) then "git" else lib.versions.major release_version);
|
||||||
in
|
in
|
||||||
lib.nameValuePair attrName (
|
lib.nameValuePair attrName (
|
||||||
recurseIntoAttrs (
|
lib.recurseIntoAttrs (
|
||||||
callPackage ./common (
|
callPackage ./common (
|
||||||
{
|
{
|
||||||
inherit (stdenvAdapters) overrideCC;
|
inherit (stdenvAdapters) overrideCC;
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ let
|
||||||
";./?.lua;${lua}/share/luajit-2.1/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;${lua}/share/lua/5.1/?.lua;${lua}/share/lua/5.1/?/init.lua;";
|
";./?.lua;${lua}/share/luajit-2.1/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;${lua}/share/lua/5.1/?.lua;${lua}/share/lua/5.1/?/init.lua;";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.recurseIntoAttrs {
|
lib.recurseIntoAttrs {
|
||||||
|
|
||||||
checkInterpreterPath =
|
checkInterpreterPath =
|
||||||
let
|
let
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
config,
|
config,
|
||||||
callPackage,
|
callPackage,
|
||||||
newScope,
|
newScope,
|
||||||
recurseIntoAttrs,
|
|
||||||
symlinkJoin,
|
symlinkJoin,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
boost179,
|
boost179,
|
||||||
|
|
@ -33,7 +32,7 @@ let
|
||||||
rocmUpdateScript = self.callPackage ./update.nix { };
|
rocmUpdateScript = self.callPackage ./update.nix { };
|
||||||
|
|
||||||
## ROCm ##
|
## ROCm ##
|
||||||
llvm = recurseIntoAttrs (
|
llvm = lib.recurseIntoAttrs (
|
||||||
callPackage ./llvm/default.nix {
|
callPackage ./llvm/default.nix {
|
||||||
# rocm-device-libs is used for .src only
|
# rocm-device-libs is used for .src only
|
||||||
# otherwise would cause infinite recursion
|
# otherwise would cause infinite recursion
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
lib,
|
lib,
|
||||||
newScope,
|
newScope,
|
||||||
python3,
|
python3,
|
||||||
recurseIntoAttrs,
|
|
||||||
}:
|
}:
|
||||||
# Take packages from self first, then python.pkgs (and secondarily pkgs)
|
# Take packages from self first, then python.pkgs (and secondarily pkgs)
|
||||||
lib.makeScope (self: newScope (self.python.pkgs // self)) (self: {
|
lib.makeScope (self: newScope (self.python.pkgs // self)) (self: {
|
||||||
|
|
@ -14,7 +13,7 @@ lib.makeScope (self: newScope (self.python.pkgs // self)) (self: {
|
||||||
|
|
||||||
buildbot = self.callPackage ./master.nix { };
|
buildbot = self.callPackage ./master.nix { };
|
||||||
|
|
||||||
buildbot-plugins = recurseIntoAttrs (self.callPackage ./plugins.nix { });
|
buildbot-plugins = lib.recurseIntoAttrs (self.callPackage ./plugins.nix { });
|
||||||
|
|
||||||
buildbot-ui = self.buildbot.withPlugins (with self.buildbot-plugins; [ www ]);
|
buildbot-ui = self.buildbot.withPlugins (with self.buildbot-plugins; [ www ]);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
stdenvNoCC,
|
stdenvNoCC,
|
||||||
gccStdenv,
|
gccStdenv,
|
||||||
lib,
|
lib,
|
||||||
recurseIntoAttrs,
|
|
||||||
libsForQt5,
|
libsForQt5,
|
||||||
newScope,
|
newScope,
|
||||||
perlPackages,
|
perlPackages,
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ let
|
||||||
callWithName = name: value: if lib.isFunction value then value name else value;
|
callWithName = name: value: if lib.isFunction value then value name else value;
|
||||||
buildOpenRASet =
|
buildOpenRASet =
|
||||||
f: args:
|
f: args:
|
||||||
pkgs.recurseIntoAttrs (
|
lib.recurseIntoAttrs (
|
||||||
lib.mapAttrs callWithName (
|
lib.mapAttrs callWithName (
|
||||||
f (
|
f (
|
||||||
{
|
{
|
||||||
|
|
@ -65,7 +65,7 @@ let
|
||||||
);
|
);
|
||||||
|
|
||||||
in
|
in
|
||||||
pkgs.recurseIntoAttrs rec {
|
lib.recurseIntoAttrs rec {
|
||||||
# The whole attribute set is destructered to ensure those (and only those) attributes are given
|
# The whole attribute set is destructered to ensure those (and only those) attributes are given
|
||||||
# and to provide defaults for those that are optional.
|
# and to provide defaults for those that are optional.
|
||||||
buildOpenRAEngine =
|
buildOpenRAEngine =
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@
|
||||||
multipath-tools,
|
multipath-tools,
|
||||||
nixosTests,
|
nixosTests,
|
||||||
buildFHSEnv,
|
buildFHSEnv,
|
||||||
recurseIntoAttrs,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# configure: error: --enable-dmeventd requires --enable-cmdlib to be used as well
|
# configure: error: --enable-dmeventd requires --enable-cmdlib to be used as well
|
||||||
|
|
@ -224,7 +223,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
passthru.tests = {
|
passthru.tests = {
|
||||||
installer = nixosTests.installer.lvm;
|
installer = nixosTests.installer.lvm;
|
||||||
lvm2 = recurseIntoAttrs nixosTests.lvm2;
|
lvm2 = lib.recurseIntoAttrs nixosTests.lvm2;
|
||||||
|
|
||||||
# https://github.com/NixOS/nixpkgs/issues/369732
|
# https://github.com/NixOS/nixpkgs/issues/369732
|
||||||
lvm2-fhs-env = buildFHSEnv {
|
lvm2-fhs-env = buildFHSEnv {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
callPackage,
|
callPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
recurseIntoAttrs,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
@ -14,7 +14,7 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
recurseIntoAttrs {
|
lib.recurseIntoAttrs {
|
||||||
backend = callPackage ./backend.nix { inherit src version; };
|
backend = callPackage ./backend.nix { inherit src version; };
|
||||||
|
|
||||||
frontend = callPackage ./frontend.nix { inherit src version; };
|
frontend = callPackage ./frontend.nix { inherit src version; };
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
callPackage,
|
callPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
recurseIntoAttrs,
|
lib,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
@ -14,7 +14,7 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
recurseIntoAttrs {
|
lib.recurseIntoAttrs {
|
||||||
client = callPackage ./client.nix { inherit src version; };
|
client = callPackage ./client.nix { inherit src version; };
|
||||||
server = callPackage ./server.nix { inherit src version; };
|
server = callPackage ./server.nix { inherit src version; };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,16 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
recurseIntoAttrs,
|
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
getTests =
|
getTests =
|
||||||
cps:
|
cps:
|
||||||
recurseIntoAttrs {
|
lib.recurseIntoAttrs {
|
||||||
inherit (cps) saxpy;
|
inherit (cps) saxpy;
|
||||||
inherit (cps.tests) cuda-library-samples;
|
inherit (cps.tests) cuda-library-samples;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
recurseIntoAttrs (
|
lib.recurseIntoAttrs (
|
||||||
lib.mapAttrs (_: getTests) {
|
lib.mapAttrs (_: getTests) {
|
||||||
inherit (pkgs)
|
inherit (pkgs)
|
||||||
cudaPackages
|
cudaPackages
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,30 @@
|
||||||
{ pkgs, callPackage }:
|
{ pkgs }:
|
||||||
|
let
|
||||||
with pkgs;
|
inherit (pkgs) callPackages callPackage stdenv;
|
||||||
|
inherit (pkgs.lib)
|
||||||
|
recurseIntoAttrs
|
||||||
|
attrNames
|
||||||
|
pipe
|
||||||
|
hasPrefix
|
||||||
|
hasSuffix
|
||||||
|
filter
|
||||||
|
genAttrs
|
||||||
|
optionals
|
||||||
|
filterAttrs
|
||||||
|
meta
|
||||||
|
concatMapAttrs
|
||||||
|
optionalAttrs
|
||||||
|
;
|
||||||
|
inherit (pkgs.lib.strings) toJSON;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
cc-wrapper =
|
cc-wrapper =
|
||||||
with builtins;
|
|
||||||
let
|
let
|
||||||
pkgNames = (attrNames pkgs);
|
pkgNames = (attrNames pkgs);
|
||||||
llvmTests =
|
llvmTests =
|
||||||
let
|
let
|
||||||
pkgSets = lib.pipe pkgNames [
|
pkgSets = pipe pkgNames [
|
||||||
(filter (lib.hasPrefix "llvmPackages"))
|
(filter (hasPrefix "llvmPackages"))
|
||||||
# Are aliases.
|
# Are aliases.
|
||||||
(filter (n: n != "llvmPackages_latest"))
|
(filter (n: n != "llvmPackages_latest"))
|
||||||
(filter (n: n != "llvmPackages_9"))
|
(filter (n: n != "llvmPackages_9"))
|
||||||
|
|
@ -23,7 +37,7 @@ with pkgs;
|
||||||
(filter (n: n != "llvmPackages_16"))
|
(filter (n: n != "llvmPackages_16"))
|
||||||
(filter (n: n != "llvmPackages_17"))
|
(filter (n: n != "llvmPackages_17"))
|
||||||
];
|
];
|
||||||
tests = lib.genAttrs pkgSets (
|
tests = genAttrs pkgSets (
|
||||||
name:
|
name:
|
||||||
recurseIntoAttrs {
|
recurseIntoAttrs {
|
||||||
clang = callPackage ./cc-wrapper { stdenv = pkgs.${name}.stdenv; };
|
clang = callPackage ./cc-wrapper { stdenv = pkgs.${name}.stdenv; };
|
||||||
|
|
@ -34,10 +48,10 @@ with pkgs;
|
||||||
tests;
|
tests;
|
||||||
gccTests =
|
gccTests =
|
||||||
let
|
let
|
||||||
pkgSets = lib.pipe (attrNames pkgs) (
|
pkgSets = pipe (attrNames pkgs) (
|
||||||
[
|
[
|
||||||
(filter (lib.hasPrefix "gcc"))
|
(filter (hasPrefix "gcc"))
|
||||||
(filter (lib.hasSuffix "Stdenv"))
|
(filter (hasSuffix "Stdenv"))
|
||||||
(filter (n: n != "gccCrossLibcStdenv"))
|
(filter (n: n != "gccCrossLibcStdenv"))
|
||||||
(filter (n: n != "gcc49Stdenv"))
|
(filter (n: n != "gcc49Stdenv"))
|
||||||
(filter (n: n != "gcc6Stdenv"))
|
(filter (n: n != "gcc6Stdenv"))
|
||||||
|
|
@ -49,7 +63,7 @@ with pkgs;
|
||||||
(filter (n: n != "gcc12Stdenv"))
|
(filter (n: n != "gcc12Stdenv"))
|
||||||
]
|
]
|
||||||
++
|
++
|
||||||
lib.optionals
|
optionals
|
||||||
(
|
(
|
||||||
!(
|
!(
|
||||||
(stdenv.buildPlatform.isLinux && stdenv.buildPlatform.isx86_64)
|
(stdenv.buildPlatform.isLinux && stdenv.buildPlatform.isx86_64)
|
||||||
|
|
@ -57,11 +71,11 @@ with pkgs;
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
[
|
[
|
||||||
(filter (n: !lib.hasSuffix "MultiStdenv" n))
|
(filter (n: !hasSuffix "MultiStdenv" n))
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
lib.genAttrs pkgSets (name: callPackage ./cc-wrapper { stdenv = pkgs.${name}; });
|
genAttrs pkgSets (name: callPackage ./cc-wrapper { stdenv = pkgs.${name}; });
|
||||||
in
|
in
|
||||||
recurseIntoAttrs {
|
recurseIntoAttrs {
|
||||||
default = callPackage ./cc-wrapper { };
|
default = callPackage ./cc-wrapper { };
|
||||||
|
|
@ -70,9 +84,8 @@ with pkgs;
|
||||||
name = "cc-wrapper-supported";
|
name = "cc-wrapper-supported";
|
||||||
builtGCC =
|
builtGCC =
|
||||||
let
|
let
|
||||||
inherit (lib) filterAttrs;
|
sets = pipe gccTests [
|
||||||
sets = lib.pipe gccTests [
|
(filterAttrs (_: v: meta.availableOn stdenv.hostPlatform v.stdenv.cc))
|
||||||
(filterAttrs (_: v: lib.meta.availableOn stdenv.hostPlatform v.stdenv.cc))
|
|
||||||
# Broken
|
# Broken
|
||||||
(filterAttrs (n: _: n != "gccMultiStdenv"))
|
(filterAttrs (n: _: n != "gccMultiStdenv"))
|
||||||
];
|
];
|
||||||
|
|
@ -81,10 +94,9 @@ with pkgs;
|
||||||
|
|
||||||
builtLLVM =
|
builtLLVM =
|
||||||
let
|
let
|
||||||
inherit (lib) filterAttrs;
|
sets = pipe llvmTests [
|
||||||
sets = lib.pipe llvmTests [
|
(filterAttrs (_: v: meta.availableOn stdenv.hostPlatform v.clang.stdenv.cc))
|
||||||
(filterAttrs (_: v: lib.meta.availableOn stdenv.hostPlatform v.clang.stdenv.cc))
|
(filterAttrs (_: v: meta.availableOn stdenv.hostPlatform v.libcxx.stdenv.cc))
|
||||||
(filterAttrs (_: v: lib.meta.availableOn stdenv.hostPlatform v.libcxx.stdenv.cc))
|
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
toJSON sets;
|
toJSON sets;
|
||||||
|
|
@ -105,12 +117,12 @@ with pkgs;
|
||||||
hardeningFlags = recurseIntoAttrs (callPackage ./cc-wrapper/hardening.nix { });
|
hardeningFlags = recurseIntoAttrs (callPackage ./cc-wrapper/hardening.nix { });
|
||||||
hardeningFlags-gcc = recurseIntoAttrs (
|
hardeningFlags-gcc = recurseIntoAttrs (
|
||||||
callPackage ./cc-wrapper/hardening.nix {
|
callPackage ./cc-wrapper/hardening.nix {
|
||||||
stdenv = gccStdenv;
|
stdenv = pkgs.gccStdenv;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
hardeningFlags-clang = recurseIntoAttrs (
|
hardeningFlags-clang = recurseIntoAttrs (
|
||||||
callPackage ./cc-wrapper/hardening.nix {
|
callPackage ./cc-wrapper/hardening.nix {
|
||||||
stdenv = llvmPackages.stdenv;
|
stdenv = pkgs.llvmPackages.stdenv;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -122,8 +134,8 @@ with pkgs;
|
||||||
|
|
||||||
hooks = recurseIntoAttrs (callPackage ./hooks { });
|
hooks = recurseIntoAttrs (callPackage ./hooks { });
|
||||||
|
|
||||||
cc-multilib-gcc = callPackage ./cc-wrapper/multilib.nix { stdenv = gccMultiStdenv; };
|
cc-multilib-gcc = callPackage ./cc-wrapper/multilib.nix { stdenv = pkgs.gccMultiStdenv; };
|
||||||
cc-multilib-clang = callPackage ./cc-wrapper/multilib.nix { stdenv = clangMultiStdenv; };
|
cc-multilib-clang = callPackage ./cc-wrapper/multilib.nix { stdenv = pkgs.clangMultiStdenv; };
|
||||||
|
|
||||||
compress-drv = callPackage ../build-support/compress-drv/test.nix { };
|
compress-drv = callPackage ../build-support/compress-drv/test.nix { };
|
||||||
|
|
||||||
|
|
@ -131,7 +143,7 @@ with pkgs;
|
||||||
fetchtorrent = recurseIntoAttrs (callPackages ../build-support/fetchtorrent/tests.nix { });
|
fetchtorrent = recurseIntoAttrs (callPackages ../build-support/fetchtorrent/tests.nix { });
|
||||||
fetchpatch = recurseIntoAttrs (callPackages ../build-support/fetchpatch/tests.nix { });
|
fetchpatch = recurseIntoAttrs (callPackages ../build-support/fetchpatch/tests.nix { });
|
||||||
fetchpatch2 = recurseIntoAttrs (
|
fetchpatch2 = recurseIntoAttrs (
|
||||||
callPackages ../build-support/fetchpatch/tests.nix { fetchpatch = fetchpatch2; }
|
callPackages ../build-support/fetchpatch/tests.nix { fetchpatch = pkgs.fetchpatch2; }
|
||||||
);
|
);
|
||||||
fetchDebianPatch = recurseIntoAttrs (callPackages ../build-support/fetchdebianpatch/tests.nix { });
|
fetchDebianPatch = recurseIntoAttrs (callPackages ../build-support/fetchdebianpatch/tests.nix { });
|
||||||
fetchzip = recurseIntoAttrs (callPackages ../build-support/fetchzip/tests.nix { });
|
fetchzip = recurseIntoAttrs (callPackages ../build-support/fetchzip/tests.nix { });
|
||||||
|
|
@ -199,7 +211,7 @@ with pkgs;
|
||||||
# Enable sanitizers in the tests only, to avoid the performance cost in regular usage.
|
# Enable sanitizers in the tests only, to avoid the performance cost in regular usage.
|
||||||
# The sanitizers cause errors on aarch64-darwin, see https://github.com/NixOS/nixpkgs/pull/150079#issuecomment-994132734
|
# The sanitizers cause errors on aarch64-darwin, see https://github.com/NixOS/nixpkgs/pull/150079#issuecomment-994132734
|
||||||
sanitizers =
|
sanitizers =
|
||||||
pkgs.lib.optionals (!(pkgs.stdenv.hostPlatform.isDarwin && pkgs.stdenv.hostPlatform.isAarch64))
|
optionals (!(pkgs.stdenv.hostPlatform.isDarwin && pkgs.stdenv.hostPlatform.isAarch64))
|
||||||
[
|
[
|
||||||
"undefined"
|
"undefined"
|
||||||
"address"
|
"address"
|
||||||
|
|
@ -215,12 +227,12 @@ with pkgs;
|
||||||
|
|
||||||
# Accumulate all passthru.tests from arrayUtilities into a single attribute set.
|
# Accumulate all passthru.tests from arrayUtilities into a single attribute set.
|
||||||
arrayUtilities = recurseIntoAttrs (
|
arrayUtilities = recurseIntoAttrs (
|
||||||
lib.concatMapAttrs (
|
concatMapAttrs (
|
||||||
name: value:
|
name: value:
|
||||||
lib.optionalAttrs (value ? passthru.tests) {
|
optionalAttrs (value ? passthru.tests) {
|
||||||
${name} = value.passthru.tests;
|
${name} = value.passthru.tests;
|
||||||
}
|
}
|
||||||
) arrayUtilities
|
) pkgs.arrayUtilities
|
||||||
);
|
);
|
||||||
|
|
||||||
srcOnly = callPackage ../build-support/src-only/tests.nix { };
|
srcOnly = callPackage ../build-support/src-only/tests.nix { };
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
lib.optionalAttrs (stdenv.hostPlatform.isLinux) (
|
lib.optionalAttrs (stdenv.hostPlatform.isLinux) (
|
||||||
pkgs.recurseIntoAttrs {
|
lib.recurseIntoAttrs {
|
||||||
nixos-test =
|
nixos-test =
|
||||||
(pkgs.nixos {
|
(pkgs.nixos {
|
||||||
system.nixos = dummyVersioning;
|
system.nixos = dummyVersioning;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
vimUtils,
|
vimUtils,
|
||||||
vim-full,
|
vim-full,
|
||||||
vimPlugins,
|
vimPlugins,
|
||||||
pkgs,
|
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (vimUtils) buildVimPlugin;
|
inherit (vimUtils) buildVimPlugin;
|
||||||
|
|
@ -10,7 +10,7 @@ let
|
||||||
packages.myVimPackage.start = with vimPlugins; [ vim-nix ];
|
packages.myVimPackage.start = with vimPlugins; [ vim-nix ];
|
||||||
|
|
||||||
in
|
in
|
||||||
pkgs.recurseIntoAttrs {
|
lib.recurseIntoAttrs {
|
||||||
vim_empty_config = vimUtils.vimrcFile {
|
vim_empty_config = vimUtils.vimrcFile {
|
||||||
beforePlugins = "";
|
beforePlugins = "";
|
||||||
customRC = "";
|
customRC = "";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
recurseIntoAttrs,
|
|
||||||
callPackage,
|
callPackage,
|
||||||
lib,
|
lib,
|
||||||
}:
|
}:
|
||||||
|
|
@ -11,6 +10,6 @@
|
||||||
# To do so, change directory to nixpkgs root, and do:
|
# To do so, change directory to nixpkgs root, and do:
|
||||||
# $ nix-shell ./maintainers/scripts/update.nix --argstr package optifinePackages.optifine-latest --argstr commit true
|
# $ nix-shell ./maintainers/scripts/update.nix --argstr package optifinePackages.optifine-latest --argstr commit true
|
||||||
|
|
||||||
recurseIntoAttrs (
|
lib.recurseIntoAttrs (
|
||||||
lib.mapAttrs (name: value: callPackage ./generic.nix value) (lib.importJSON ./versions.json)
|
lib.mapAttrs (name: value: callPackage ./generic.nix value) (lib.importJSON ./versions.json)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
recurseIntoAttrs,
|
|
||||||
fetchgit,
|
fetchgit,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
autoreconfHook,
|
autoreconfHook,
|
||||||
|
|
@ -212,7 +211,7 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
recurseIntoAttrs (
|
lib.recurseIntoAttrs (
|
||||||
libs
|
libs
|
||||||
// {
|
// {
|
||||||
inherit gawkextlib buildExtension;
|
inherit gawkextlib buildExtension;
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,6 @@
|
||||||
makeFontsConf,
|
makeFontsConf,
|
||||||
useFixedHashes ? true,
|
useFixedHashes ? true,
|
||||||
extraMirrors ? [ ],
|
extraMirrors ? [ ],
|
||||||
recurseIntoAttrs,
|
|
||||||
nixfmt,
|
nixfmt,
|
||||||
luajit,
|
luajit,
|
||||||
}:
|
}:
|
||||||
|
|
@ -543,7 +542,7 @@ let
|
||||||
license = licenses.scheme-infraonly;
|
license = licenses.scheme-infraonly;
|
||||||
};
|
};
|
||||||
|
|
||||||
combined = recurseIntoAttrs (
|
combined = lib.recurseIntoAttrs (
|
||||||
lib.genAttrs
|
lib.genAttrs
|
||||||
[
|
[
|
||||||
"scheme-basic"
|
"scheme-basic"
|
||||||
|
|
|
||||||
|
|
@ -246,8 +246,8 @@ mapAliases {
|
||||||
llvmPackages_latest = llvmPackages_21;
|
llvmPackages_latest = llvmPackages_21;
|
||||||
llvmPackages_git = (callPackages ../development/compilers/llvm { }).git;
|
llvmPackages_git = (callPackages ../development/compilers/llvm { }).git;
|
||||||
# these are for convenience, not for backward compat., and shouldn't expire until the package is deprecated.
|
# these are for convenience, not for backward compat., and shouldn't expire until the package is deprecated.
|
||||||
clang18Stdenv = lowPrio llvmPackages_18.stdenv;
|
clang18Stdenv = lib.lowPrio llvmPackages_18.stdenv;
|
||||||
clang19Stdenv = lowPrio llvmPackages_19.stdenv;
|
clang19Stdenv = lib.lowPrio llvmPackages_19.stdenv;
|
||||||
|
|
||||||
# Various to preserve
|
# Various to preserve
|
||||||
autoReconfHook = throw "You meant 'autoreconfHook', with a lowercase 'r'."; # preserve, reason: common typo
|
autoReconfHook = throw "You meant 'autoreconfHook', with a lowercase 'r'."; # preserve, reason: common typo
|
||||||
|
|
@ -497,6 +497,7 @@ mapAliases {
|
||||||
docker_27 = throw "'docker_27' has been removed because it has been unmaintained since May 2025. Use docker_28 or newer instead."; # Added 2025-06-15
|
docker_27 = throw "'docker_27' has been removed because it has been unmaintained since May 2025. Use docker_28 or newer instead."; # Added 2025-06-15
|
||||||
dockerfile-language-server-nodejs = warnAlias "'dockerfile-language-server-nodejs' has been renamed to 'dockerfile-language-server'" dockerfile-language-server; # Added 2025-09-12
|
dockerfile-language-server-nodejs = warnAlias "'dockerfile-language-server-nodejs' has been renamed to 'dockerfile-language-server'" dockerfile-language-server; # Added 2025-09-12
|
||||||
dolphin-emu-beta = throw "'dolphin-emu-beta' has been renamed to/replaced by 'dolphin-emu'"; # Converted to throw 2025-10-27
|
dolphin-emu-beta = throw "'dolphin-emu-beta' has been renamed to/replaced by 'dolphin-emu'"; # Converted to throw 2025-10-27
|
||||||
|
dontRecurseIntoAttrs = warnAlias "dontRecurseIntoAttrs has been removed from pkgs, use `lib.dontRecurseIntoAttrs` instead" lib.dontRecurseIntoAttrs; # Added 2025-10-30
|
||||||
dotnetenv = throw "'dotnetenv' has been removed because it was unmaintained in Nixpkgs"; # Added 2025-07-11
|
dotnetenv = throw "'dotnetenv' has been removed because it was unmaintained in Nixpkgs"; # Added 2025-07-11
|
||||||
dotty = throw "'dotty' has been renamed to/replaced by 'scala_3'"; # Converted to throw 2025-10-27
|
dotty = throw "'dotty' has been renamed to/replaced by 'scala_3'"; # Converted to throw 2025-10-27
|
||||||
dovecot_fts_xapian = throw "'dovecot_fts_xapian' has been removed because it was unmaintained in Nixpkgs. Consider using dovecot-fts-flatcurve instead"; # Added 2025-08-16
|
dovecot_fts_xapian = throw "'dovecot_fts_xapian' has been removed because it was unmaintained in Nixpkgs. Consider using dovecot-fts-flatcurve instead"; # Added 2025-08-16
|
||||||
|
|
@ -687,6 +688,7 @@ mapAliases {
|
||||||
hibernate = throw "hibernate has been removed due to lack of maintenance"; # Added 2025-09-10
|
hibernate = throw "hibernate has been removed due to lack of maintenance"; # Added 2025-09-10
|
||||||
hiddify-app = throw "hiddify-app has been removed, since it is unmaintained"; # added 2025-08-20
|
hiddify-app = throw "hiddify-app has been removed, since it is unmaintained"; # added 2025-08-20
|
||||||
himitsu-firefox = throw "himitsu-firefox has been removed because it has been marked as broken since at least November 2024."; # Added 2025-10-11
|
himitsu-firefox = throw "himitsu-firefox has been removed because it has been marked as broken since at least November 2024."; # Added 2025-10-11
|
||||||
|
hiPrio = warnAlias "'hiPrio' has been removed from pkgs, use `lib.hiPrio` instead" lib.hiPrio; # Added 2025-10-30
|
||||||
hobbes = throw "hobbes has been removed, as it does not build with supported LLVM versions"; # Added 2025-08-20
|
hobbes = throw "hobbes has been removed, as it does not build with supported LLVM versions"; # Added 2025-08-20
|
||||||
hostPlatform = warnAlias "'hostPlatform' has been renamed to/replaced by 'stdenv.hostPlatform'" stdenv.hostPlatform; # Converted to warning 2025-10-28
|
hostPlatform = warnAlias "'hostPlatform' has been renamed to/replaced by 'stdenv.hostPlatform'" stdenv.hostPlatform; # Converted to warning 2025-10-28
|
||||||
hpmyroom = throw "hpmyroom has been removed because it has been marked as broken since May 2024."; # Added 2025-10-11
|
hpmyroom = throw "hpmyroom has been removed because it has been marked as broken since May 2024."; # Added 2025-10-11
|
||||||
|
|
@ -925,6 +927,7 @@ mapAliases {
|
||||||
llvmPackages_16 = throw "llvmPackages_16 has been removed, as it is unmaintained and obsolete"; # Added 2025-08-09
|
llvmPackages_16 = throw "llvmPackages_16 has been removed, as it is unmaintained and obsolete"; # Added 2025-08-09
|
||||||
llvmPackages_17 = throw "llvmPackages_17 has been removed, as it is unmaintained and obsolete"; # Added 2025-08-09
|
llvmPackages_17 = throw "llvmPackages_17 has been removed, as it is unmaintained and obsolete"; # Added 2025-08-09
|
||||||
loco-cli = throw "'loco-cli' has been renamed to/replaced by 'loco'"; # Converted to throw 2025-10-27
|
loco-cli = throw "'loco-cli' has been renamed to/replaced by 'loco'"; # Converted to throw 2025-10-27
|
||||||
|
lowPrio = warnAlias "'lowPrio' has been removed from pkgs, use `lib.lowPrio` instead" lib.lowPrio; # Added 2025-10-30
|
||||||
LPCNet = throw "'LPCNet' has been renamed to/replaced by 'lpcnet'"; # Converted to throw 2025-10-27
|
LPCNet = throw "'LPCNet' has been renamed to/replaced by 'lpcnet'"; # Converted to throw 2025-10-27
|
||||||
luci-go = throw "luci-go has been removed since it was unused and failing to build for 5 months"; # Added 2025-08-27
|
luci-go = throw "luci-go has been removed since it was unused and failing to build for 5 months"; # Added 2025-08-27
|
||||||
lxd = throw "
|
lxd = throw "
|
||||||
|
|
@ -968,6 +971,7 @@ mapAliases {
|
||||||
mailcore2 = throw "'mailcore2' has been removed due to lack of upstream maintenance."; # Added 2025-06-09
|
mailcore2 = throw "'mailcore2' has been removed due to lack of upstream maintenance."; # Added 2025-06-09
|
||||||
mailnag = throw "mailnag has been removed because it has been marked as broken since 2022."; # Added 2025-10-12
|
mailnag = throw "mailnag has been removed because it has been marked as broken since 2022."; # Added 2025-10-12
|
||||||
mailnagWithPlugins = throw "mailnagWithPlugins has been removed because mailnag has been marked as broken since 2022."; # Added 2025-10-12
|
mailnagWithPlugins = throw "mailnagWithPlugins has been removed because mailnag has been marked as broken since 2022."; # Added 2025-10-12
|
||||||
|
makeOverridable = warnAlias "'makeOverridable' has been removed from pkgs, use `lib.makeOverridable` instead" lib.makeOverridable; # Added 2025-10-30
|
||||||
manaplus = throw "manaplus has been removed, as it was broken"; # Added 2025-08-25
|
manaplus = throw "manaplus has been removed, as it was broken"; # Added 2025-08-25
|
||||||
mariadb-client = throw "mariadb-client has been renamed to mariadb.client"; # Converted to throw 2025-10-26
|
mariadb-client = throw "mariadb-client has been renamed to mariadb.client"; # Converted to throw 2025-10-26
|
||||||
marwaita-manjaro = throw "'marwaita-manjaro' has been renamed to/replaced by 'marwaita-teal'"; # Converted to throw 2025-10-27
|
marwaita-manjaro = throw "'marwaita-manjaro' has been renamed to/replaced by 'marwaita-teal'"; # Converted to throw 2025-10-27
|
||||||
|
|
@ -1290,6 +1294,7 @@ mapAliases {
|
||||||
railway-travel = throw "'railway-travel' has been renamed to/replaced by 'diebahn'"; # Converted to throw 2025-10-27
|
railway-travel = throw "'railway-travel' has been renamed to/replaced by 'diebahn'"; # Converted to throw 2025-10-27
|
||||||
rambox-pro = throw "'rambox-pro' has been renamed to/replaced by 'rambox'"; # Converted to throw 2025-10-27
|
rambox-pro = throw "'rambox-pro' has been renamed to/replaced by 'rambox'"; # Converted to throw 2025-10-27
|
||||||
rapidjson-unstable = throw "'rapidjson-unstable' has been renamed to/replaced by 'rapidjson'"; # Converted to throw 2025-10-27
|
rapidjson-unstable = throw "'rapidjson-unstable' has been renamed to/replaced by 'rapidjson'"; # Converted to throw 2025-10-27
|
||||||
|
recurseIntoAttrs = warnAlias "'recurseIntoAttrs' has been removed from pkgs, use `lib.recurseIntoAttrs` instead" lib.recurseIntoAttrs; # Added 2025-10-30
|
||||||
redict = throw "'redict' has been removed due to lack of nixpkgs maintenance and a slow upstream development pace. Consider using 'valkey'."; # Added 2025-10-16
|
redict = throw "'redict' has been removed due to lack of nixpkgs maintenance and a slow upstream development pace. Consider using 'valkey'."; # Added 2025-10-16
|
||||||
redoc-cli = throw "'redoc-cli' been removed because it has been marked as broken since at least November 2024. Consider using 'redocly' instead."; # Added 2025-10-01
|
redoc-cli = throw "'redoc-cli' been removed because it has been marked as broken since at least November 2024. Consider using 'redocly' instead."; # Added 2025-10-01
|
||||||
redocly-cli = throw "'redocly-cli' has been renamed to/replaced by 'redocly'"; # Converted to throw 2025-10-27
|
redocly-cli = throw "'redocly-cli' has been renamed to/replaced by 'redocly'"; # Converted to throw 2025-10-27
|
||||||
|
|
@ -1406,6 +1411,7 @@ mapAliases {
|
||||||
StormLib = throw "'StormLib' has been renamed to/replaced by 'stormlib'"; # Converted to throw 2025-10-27
|
StormLib = throw "'StormLib' has been renamed to/replaced by 'stormlib'"; # Converted to throw 2025-10-27
|
||||||
strawberry-qt5 = throw "strawberry-qt5 has been replaced by strawberry"; # Converted to throw 2025-07-19
|
strawberry-qt5 = throw "strawberry-qt5 has been replaced by strawberry"; # Converted to throw 2025-07-19
|
||||||
strawberry-qt6 = throw "strawberry-qt6 has been replaced by strawberry"; # Added 2025-07-19
|
strawberry-qt6 = throw "strawberry-qt6 has been replaced by strawberry"; # Added 2025-07-19
|
||||||
|
stringsWithDeps = warnAlias "'stringsWithDeps' has been removed from pkgs, use `lib.stringsWithDeps` instead" lib.stringsWithDeps; # Added 2025-10-30
|
||||||
subberthehut = throw "'subberthehut' has been removed as it was unmaintained upstream"; # Added 2025-05-17
|
subberthehut = throw "'subberthehut' has been removed as it was unmaintained upstream"; # Added 2025-05-17
|
||||||
sublime-music = throw "`sublime-music` has been removed because upstream has announced it is no longer maintained. Upstream suggests using `supersonic` instead."; # Added 2025-09-20
|
sublime-music = throw "`sublime-music` has been removed because upstream has announced it is no longer maintained. Upstream suggests using `supersonic` instead."; # Added 2025-09-20
|
||||||
substituteAll = throw "`substituteAll` has been removed. Use `replaceVars` instead."; # Added 2025-05-23
|
substituteAll = throw "`substituteAll` has been removed. Use `replaceVars` instead."; # Added 2025-05-23
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,17 @@
|
||||||
config,
|
config,
|
||||||
overlays,
|
overlays,
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
# Add inherited lib functions only here, so they are not exported from pkgs
|
||||||
|
inherit (lib)
|
||||||
|
lowPrio
|
||||||
|
hiPrio
|
||||||
|
recurseIntoAttrs
|
||||||
|
dontRecurseIntoAttrs
|
||||||
|
makeOverridable
|
||||||
|
;
|
||||||
|
in
|
||||||
|
|
||||||
res: pkgs: super:
|
res: pkgs: super:
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
@ -32,6 +43,12 @@ with pkgs;
|
||||||
# all-packages.nix)
|
# all-packages.nix)
|
||||||
_type = "pkgs";
|
_type = "pkgs";
|
||||||
|
|
||||||
|
### Helper functions.
|
||||||
|
inherit lib config overlays;
|
||||||
|
|
||||||
|
# For convenience, allow callers to get the path to Nixpkgs.
|
||||||
|
path = ../..;
|
||||||
|
|
||||||
# A stdenv capable of building 32-bit binaries.
|
# A stdenv capable of building 32-bit binaries.
|
||||||
# On x86_64-linux, it uses GCC compiled with multilib support; on i686-linux,
|
# On x86_64-linux, it uses GCC compiled with multilib support; on i686-linux,
|
||||||
# it's just the plain stdenv.
|
# it's just the plain stdenv.
|
||||||
|
|
@ -91,35 +108,13 @@ with pkgs;
|
||||||
gccStdenvNoLibs = mkStdenvNoLibs gccStdenv;
|
gccStdenvNoLibs = mkStdenvNoLibs gccStdenv;
|
||||||
clangStdenvNoLibs = mkStdenvNoLibs clangStdenv;
|
clangStdenvNoLibs = mkStdenvNoLibs clangStdenv;
|
||||||
|
|
||||||
# For convenience, allow callers to get the path to Nixpkgs.
|
|
||||||
path = ../..;
|
|
||||||
|
|
||||||
### Helper functions.
|
|
||||||
inherit lib config overlays;
|
|
||||||
|
|
||||||
# do not import 'appendToName' to get consistent package-names with the same
|
|
||||||
# set of package-parameters: https://github.com/NixOS/nixpkgs/issues/68519
|
|
||||||
inherit (lib) lowPrio hiPrio makeOverridable;
|
|
||||||
|
|
||||||
inherit (lib) recurseIntoAttrs;
|
|
||||||
|
|
||||||
# This is intended to be the reverse of recurseIntoAttrs, as it is
|
|
||||||
# defined now it exists mainly for documentation purposes, but you
|
|
||||||
# can also override this with recurseIntoAttrs to recurseInto all
|
|
||||||
# the Attrs which is useful for testing massive changes. Ideally,
|
|
||||||
# every package subset not marked with recurseIntoAttrs should be
|
|
||||||
# marked with this.
|
|
||||||
inherit (lib) dontRecurseIntoAttrs;
|
|
||||||
|
|
||||||
stringsWithDeps = lib.stringsWithDeps;
|
|
||||||
|
|
||||||
### Evaluating the entire Nixpkgs naively will likely fail, make failure fast
|
### Evaluating the entire Nixpkgs naively will likely fail, make failure fast
|
||||||
AAAAAASomeThingsFailToEvaluate = throw ''
|
AAAAAASomeThingsFailToEvaluate = throw ''
|
||||||
This pseudo-package is likely not the only part of Nixpkgs that fails to evaluate.
|
This pseudo-package is likely not the only part of Nixpkgs that fails to evaluate.
|
||||||
You should not evaluate entire Nixpkgs without measures to handle failing packages.
|
You should not evaluate entire Nixpkgs without measures to handle failing packages.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
tests = lib.recurseIntoAttrs (callPackages ../test { });
|
tests = recurseIntoAttrs (callPackages ../test { });
|
||||||
|
|
||||||
defaultPkgConfigPackages =
|
defaultPkgConfigPackages =
|
||||||
# We don't want nix-env -q to enter this, because all of these are aliases.
|
# We don't want nix-env -q to enter this, because all of these are aliases.
|
||||||
|
|
@ -2185,7 +2180,7 @@ with pkgs;
|
||||||
|
|
||||||
mpd-sima = python3Packages.callPackage ../tools/audio/mpd-sima { };
|
mpd-sima = python3Packages.callPackage ../tools/audio/mpd-sima { };
|
||||||
|
|
||||||
nltk-data = lib.recurseIntoAttrs (callPackage ../tools/text/nltk-data { });
|
nltk-data = recurseIntoAttrs (callPackage ../tools/text/nltk-data { });
|
||||||
|
|
||||||
seabios-coreboot = seabios.override { ___build-type = "coreboot"; };
|
seabios-coreboot = seabios.override { ___build-type = "coreboot"; };
|
||||||
seabios-csm = seabios.override { ___build-type = "csm"; };
|
seabios-csm = seabios.override { ___build-type = "csm"; };
|
||||||
|
|
@ -5555,7 +5550,7 @@ with pkgs;
|
||||||
cbqn-standalone-replxx = cbqn-bootstrap.phase0-replxx;
|
cbqn-standalone-replxx = cbqn-bootstrap.phase0-replxx;
|
||||||
|
|
||||||
# Below, the classic self-bootstrapping process
|
# Below, the classic self-bootstrapping process
|
||||||
cbqn-bootstrap = lib.dontRecurseIntoAttrs {
|
cbqn-bootstrap = dontRecurseIntoAttrs {
|
||||||
# Use clang to compile CBQN if we aren't already.
|
# Use clang to compile CBQN if we aren't already.
|
||||||
# CBQN's upstream primarily targets and tests clang which means using gcc
|
# CBQN's upstream primarily targets and tests clang which means using gcc
|
||||||
# will result in slower binaries and on some platforms failing/broken builds.
|
# will result in slower binaries and on some platforms failing/broken builds.
|
||||||
|
|
@ -8170,7 +8165,7 @@ with pkgs;
|
||||||
nvidia-docker
|
nvidia-docker
|
||||||
;
|
;
|
||||||
|
|
||||||
nvidia-vaapi-driver = lib.hiPrio (callPackage ../development/libraries/nvidia-vaapi-driver { });
|
nvidia-vaapi-driver = hiPrio (callPackage ../development/libraries/nvidia-vaapi-driver { });
|
||||||
|
|
||||||
nvidia-system-monitor-qt = libsForQt5.callPackage ../tools/system/nvidia-system-monitor-qt { };
|
nvidia-system-monitor-qt = libsForQt5.callPackage ../tools/system/nvidia-system-monitor-qt { };
|
||||||
|
|
||||||
|
|
@ -9263,13 +9258,13 @@ with pkgs;
|
||||||
home-assistant = callPackage ../servers/home-assistant { };
|
home-assistant = callPackage ../servers/home-assistant { };
|
||||||
|
|
||||||
buildHomeAssistantComponent = callPackage ../servers/home-assistant/build-custom-component { };
|
buildHomeAssistantComponent = callPackage ../servers/home-assistant/build-custom-component { };
|
||||||
home-assistant-custom-components = lib.recurseIntoAttrs (
|
home-assistant-custom-components = recurseIntoAttrs (
|
||||||
lib.packagesFromDirectoryRecursive {
|
lib.packagesFromDirectoryRecursive {
|
||||||
inherit (home-assistant.python.pkgs) callPackage;
|
inherit (home-assistant.python.pkgs) callPackage;
|
||||||
directory = ../servers/home-assistant/custom-components;
|
directory = ../servers/home-assistant/custom-components;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
home-assistant-custom-lovelace-modules = lib.recurseIntoAttrs (
|
home-assistant-custom-lovelace-modules = recurseIntoAttrs (
|
||||||
lib.packagesFromDirectoryRecursive {
|
lib.packagesFromDirectoryRecursive {
|
||||||
inherit callPackage;
|
inherit callPackage;
|
||||||
directory = ../servers/home-assistant/custom-lovelace-modules;
|
directory = ../servers/home-assistant/custom-lovelace-modules;
|
||||||
|
|
@ -10939,7 +10934,7 @@ with pkgs;
|
||||||
emacsPackagesFor =
|
emacsPackagesFor =
|
||||||
emacs:
|
emacs:
|
||||||
import ./emacs-packages.nix {
|
import ./emacs-packages.nix {
|
||||||
inherit (lib) makeScope makeOverridable dontRecurseIntoAttrs;
|
inherit lib;
|
||||||
emacs' = emacs;
|
emacs' = emacs;
|
||||||
pkgs' = pkgs; # default pkgs used for bootstrapping the emacs package set
|
pkgs' = pkgs; # default pkgs used for bootstrapping the emacs package set
|
||||||
};
|
};
|
||||||
|
|
@ -11003,7 +10998,7 @@ with pkgs;
|
||||||
python = python3;
|
python = python3;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
gnuradioPackages = lib.recurseIntoAttrs gnuradio.pkgs;
|
gnuradioPackages = recurseIntoAttrs gnuradio.pkgs;
|
||||||
|
|
||||||
goldendict = libsForQt5.callPackage ../applications/misc/goldendict { };
|
goldendict = libsForQt5.callPackage ../applications/misc/goldendict { };
|
||||||
goldendict-ng = qt6Packages.callPackage ../applications/misc/goldendict-ng { };
|
goldendict-ng = qt6Packages.callPackage ../applications/misc/goldendict-ng { };
|
||||||
|
|
@ -11681,7 +11676,7 @@ with pkgs;
|
||||||
|
|
||||||
magic-wormhole = with python3Packages; toPythonApplication magic-wormhole;
|
magic-wormhole = with python3Packages; toPythonApplication magic-wormhole;
|
||||||
|
|
||||||
magnetophonDSP = lib.recurseIntoAttrs {
|
magnetophonDSP = recurseIntoAttrs {
|
||||||
CharacterCompressor = callPackage ../applications/audio/magnetophonDSP/CharacterCompressor { };
|
CharacterCompressor = callPackage ../applications/audio/magnetophonDSP/CharacterCompressor { };
|
||||||
CompBus = callPackage ../applications/audio/magnetophonDSP/CompBus { };
|
CompBus = callPackage ../applications/audio/magnetophonDSP/CompBus { };
|
||||||
ConstantDetuneChorus = callPackage ../applications/audio/magnetophonDSP/ConstantDetuneChorus { };
|
ConstantDetuneChorus = callPackage ../applications/audio/magnetophonDSP/ConstantDetuneChorus { };
|
||||||
|
|
@ -11937,7 +11932,7 @@ with pkgs;
|
||||||
inherit (darwin) DarwinTools;
|
inherit (darwin) DarwinTools;
|
||||||
};
|
};
|
||||||
|
|
||||||
open-music-kontrollers = lib.recurseIntoAttrs {
|
open-music-kontrollers = recurseIntoAttrs {
|
||||||
eteroj = callPackage ../applications/audio/open-music-kontrollers/eteroj.nix { };
|
eteroj = callPackage ../applications/audio/open-music-kontrollers/eteroj.nix { };
|
||||||
jit = callPackage ../applications/audio/open-music-kontrollers/jit.nix { };
|
jit = callPackage ../applications/audio/open-music-kontrollers/jit.nix { };
|
||||||
mephisto = callPackage ../applications/audio/open-music-kontrollers/mephisto.nix { };
|
mephisto = callPackage ../applications/audio/open-music-kontrollers/mephisto.nix { };
|
||||||
|
|
@ -12568,7 +12563,7 @@ with pkgs;
|
||||||
# more usecases when wrapping neovim. The interface is being actively worked on
|
# more usecases when wrapping neovim. The interface is being actively worked on
|
||||||
# so expect breakage. use wrapNeovim instead if you want a stable alternative
|
# so expect breakage. use wrapNeovim instead if you want a stable alternative
|
||||||
wrapNeovimUnstable = callPackage ../applications/editors/neovim/wrapper.nix { };
|
wrapNeovimUnstable = callPackage ../applications/editors/neovim/wrapper.nix { };
|
||||||
wrapNeovim = neovim-unwrapped: lib.makeOverridable (neovimUtils.legacyWrapper neovim-unwrapped);
|
wrapNeovim = neovim-unwrapped: makeOverridable (neovimUtils.legacyWrapper neovim-unwrapped);
|
||||||
neovim-unwrapped = callPackage ../by-name/ne/neovim-unwrapped/package.nix {
|
neovim-unwrapped = callPackage ../by-name/ne/neovim-unwrapped/package.nix {
|
||||||
lua = if lib.meta.availableOn stdenv.hostPlatform luajit then luajit else lua5_1;
|
lua = if lib.meta.availableOn stdenv.hostPlatform luajit then luajit else lua5_1;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
fetchzip,
|
fetchzip,
|
||||||
callPackage,
|
callPackage,
|
||||||
newScope,
|
newScope,
|
||||||
recurseIntoAttrs,
|
|
||||||
ocamlPackages_4_09,
|
ocamlPackages_4_09,
|
||||||
ocamlPackages_4_10,
|
ocamlPackages_4_10,
|
||||||
ocamlPackages_4_12,
|
ocamlPackages_4_12,
|
||||||
|
|
@ -42,7 +41,7 @@ let
|
||||||
};
|
};
|
||||||
mkCoqDerivation = lib.makeOverridable (callPackage ../build-support/coq { });
|
mkCoqDerivation = lib.makeOverridable (callPackage ../build-support/coq { });
|
||||||
|
|
||||||
contribs = recurseIntoAttrs (callPackage ../development/coq-modules/contribs { });
|
contribs = lib.recurseIntoAttrs (callPackage ../development/coq-modules/contribs { });
|
||||||
|
|
||||||
aac-tactics = callPackage ../development/coq-modules/aac-tactics { };
|
aac-tactics = callPackage ../development/coq-modules/aac-tactics { };
|
||||||
addition-chains = callPackage ../development/coq-modules/addition-chains { };
|
addition-chains = callPackage ../development/coq-modules/addition-chains { };
|
||||||
|
|
@ -337,6 +336,6 @@ rec {
|
||||||
coqPackages_9_0 = mkCoqPackages coq_9_0;
|
coqPackages_9_0 = mkCoqPackages coq_9_0;
|
||||||
coqPackages_9_1 = mkCoqPackages coq_9_1;
|
coqPackages_9_1 = mkCoqPackages coq_9_1;
|
||||||
|
|
||||||
coqPackages = recurseIntoAttrs coqPackages_9_0;
|
coqPackages = lib.recurseIntoAttrs coqPackages_9_0;
|
||||||
coq = coqPackages.coq;
|
coq = coqPackages.coq;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
pkgs',
|
pkgs',
|
||||||
emacs',
|
emacs',
|
||||||
makeScope,
|
|
||||||
makeOverridable,
|
|
||||||
dontRecurseIntoAttrs,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
@ -73,9 +71,9 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
makeScope pkgs'.newScope (
|
lib.makeScope pkgs'.newScope (
|
||||||
self:
|
self:
|
||||||
makeOverridable (
|
lib.makeOverridable (
|
||||||
{
|
{
|
||||||
pkgs ? pkgs',
|
pkgs ? pkgs',
|
||||||
lib ? pkgs.lib,
|
lib ? pkgs.lib,
|
||||||
|
|
@ -122,7 +120,7 @@ makeScope pkgs'.newScope (
|
||||||
# Propagate overridden scope
|
# Propagate overridden scope
|
||||||
emacs = emacs'.overrideAttrs (old: {
|
emacs = emacs'.overrideAttrs (old: {
|
||||||
passthru = (old.passthru or { }) // {
|
passthru = (old.passthru or { }) // {
|
||||||
pkgs = dontRecurseIntoAttrs self;
|
pkgs = lib.dontRecurseIntoAttrs self;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -217,7 +217,7 @@ in
|
||||||
pkgs.lib.attrNames compiler
|
pkgs.lib.attrNames compiler
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
pkgs.recurseIntoAttrs (
|
pkgs.lib.recurseIntoAttrs (
|
||||||
pkgs.lib.genAttrs nativeBignumGhcNames (
|
pkgs.lib.genAttrs nativeBignumGhcNames (
|
||||||
name: compiler.${name}.override { enableNativeBignum = true; }
|
name: compiler.${name}.override { enableNativeBignum = true; }
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,14 @@
|
||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
|
let
|
||||||
with pkgs;
|
inherit (pkgs)
|
||||||
|
stdenv
|
||||||
|
callPackage
|
||||||
|
config
|
||||||
|
lib
|
||||||
|
;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
inherit (pkgs) openjfx17 openjfx21 openjfx23;
|
inherit (pkgs) openjfx17 openjfx21 openjfx23;
|
||||||
|
|
||||||
compiler = lib.recurseIntoAttrs (
|
compiler = lib.recurseIntoAttrs (
|
||||||
let
|
let
|
||||||
# merge meta.platforms of both packages so that dependent packages and hydra build them
|
# merge meta.platforms of both packages so that dependent packages and hydra build them
|
||||||
|
|
@ -56,7 +60,7 @@ with pkgs;
|
||||||
openjdk11-bootstrap = temurin-bin.jdk-11;
|
openjdk11-bootstrap = temurin-bin.jdk-11;
|
||||||
openjdk17-bootstrap = temurin-bin.jdk-17;
|
openjdk17-bootstrap = temurin-bin.jdk-17;
|
||||||
|
|
||||||
temurin-bin = recurseIntoAttrs (
|
temurin-bin = lib.recurseIntoAttrs (
|
||||||
let
|
let
|
||||||
temurinLinux = import ../development/compilers/temurin-bin/jdk-linux.nix {
|
temurinLinux = import ../development/compilers/temurin-bin/jdk-linux.nix {
|
||||||
inherit (pkgs) lib callPackage stdenv;
|
inherit (pkgs) lib callPackage stdenv;
|
||||||
|
|
@ -68,7 +72,7 @@ with pkgs;
|
||||||
lib.mapAttrs (name: drv: mkLinuxDarwin drv temurinDarwin.${name}) temurinLinux
|
lib.mapAttrs (name: drv: mkLinuxDarwin drv temurinDarwin.${name}) temurinLinux
|
||||||
);
|
);
|
||||||
|
|
||||||
semeru-bin = recurseIntoAttrs (
|
semeru-bin = lib.recurseIntoAttrs (
|
||||||
let
|
let
|
||||||
semeruLinux = import ../development/compilers/semeru-bin/jdk-linux.nix {
|
semeruLinux = import ../development/compilers/semeru-bin/jdk-linux.nix {
|
||||||
inherit (pkgs) lib callPackage;
|
inherit (pkgs) lib callPackage;
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,6 @@
|
||||||
config,
|
config,
|
||||||
buildPackages,
|
buildPackages,
|
||||||
callPackage,
|
callPackage,
|
||||||
makeOverridable,
|
|
||||||
recurseIntoAttrs,
|
|
||||||
dontRecurseIntoAttrs,
|
|
||||||
stdenv,
|
stdenv,
|
||||||
stdenvNoCC,
|
stdenvNoCC,
|
||||||
newScope,
|
newScope,
|
||||||
|
|
@ -22,6 +19,7 @@
|
||||||
with linuxKernel;
|
with linuxKernel;
|
||||||
|
|
||||||
let
|
let
|
||||||
|
inherit (lib) recurseIntoAttrs dontRecurseIntoAttrs;
|
||||||
markBroken =
|
markBroken =
|
||||||
drv:
|
drv:
|
||||||
drv.overrideAttrs (
|
drv.overrideAttrs (
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
packageOverrides =
|
packageOverrides =
|
||||||
super:
|
super:
|
||||||
with super;
|
with super;
|
||||||
lib.mapAttrs (_: set: recurseIntoAttrs set) {
|
lib.mapAttrs (_: set: lib.recurseIntoAttrs set) {
|
||||||
inherit (super)
|
inherit (super)
|
||||||
rPackages
|
rPackages
|
||||||
sourceHanPackages
|
sourceHanPackages
|
||||||
|
|
|
||||||
|
|
@ -20051,7 +20051,7 @@ self: super: with self; {
|
||||||
wasmer-compiler-singlepass
|
wasmer-compiler-singlepass
|
||||||
;
|
;
|
||||||
|
|
||||||
wasmerPackages = pkgs.recurseIntoAttrs (callPackage ../development/python-modules/wasmer { });
|
wasmerPackages = lib.recurseIntoAttrs (callPackage ../development/python-modules/wasmer { });
|
||||||
|
|
||||||
wasserstein = callPackage ../development/python-modules/wasserstein { };
|
wasserstein = callPackage ../development/python-modules/wasserstein { };
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
fetchzip,
|
fetchzip,
|
||||||
callPackage,
|
callPackage,
|
||||||
newScope,
|
newScope,
|
||||||
recurseIntoAttrs,
|
|
||||||
ocamlPackages_4_14,
|
ocamlPackages_4_14,
|
||||||
fetchpatch,
|
fetchpatch,
|
||||||
makeWrapper,
|
makeWrapper,
|
||||||
|
|
@ -93,6 +92,6 @@ rec {
|
||||||
rocqPackages_9_0 = mkRocqPackages rocq-core_9_0;
|
rocqPackages_9_0 = mkRocqPackages rocq-core_9_0;
|
||||||
rocqPackages_9_1 = mkRocqPackages rocq-core_9_1;
|
rocqPackages_9_1 = mkRocqPackages rocq-core_9_1;
|
||||||
|
|
||||||
rocqPackages = recurseIntoAttrs rocqPackages_9_0;
|
rocqPackages = lib.recurseIntoAttrs rocqPackages_9_0;
|
||||||
rocq-core = rocqPackages.rocq-core;
|
rocq-core = rocqPackages.rocq-core;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue