forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
all-packages.nix
18844 lines (13686 loc) · 628 KB
/
all-packages.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* The top-level package collection of nixpkgs.
* It is sorted by categories corresponding to the folder names in the /pkgs
* folder. Inside the categories packages are roughly sorted by alphabet, but
* strict sorting has been long lost due to merges. Please use the full-text
* search of your editor. ;)
* Hint: ### starts category names.
*/
{ lib, noSysDirs, config, overlays }:
res: pkgs: super:
with pkgs;
{
# A module system style type tag
#
# Allows the nixpkgs fixpoint, usually known as `pkgs` to be distinguished
# nominally.
#
# pkgs._type == "pkgs"
# pkgs.pkgsStatic._type == "pkgs"
#
# Design note:
# While earlier stages of nixpkgs fixpoint construction are supertypes of this
# stage, they're generally not usable in places where a `pkgs` is expected.
# (earlier stages being the various `super` variables that precede
# all-packages.nix)
_type = "pkgs";
# A stdenv capable of building 32-bit binaries.
# On x86_64-linux, it uses GCC compiled with multilib support; on i686-linux,
# it's just the plain stdenv.
stdenv_32bit = lowPrio (if stdenv.hostPlatform.is32bit then stdenv else multiStdenv);
mkStdenvNoLibs = stdenv: let
bintools = stdenv.cc.bintools.override {
libc = null;
noLibc = true;
};
in stdenv.override {
cc = stdenv.cc.override {
libc = null;
noLibc = true;
extraPackages = [];
inherit bintools;
};
allowedRequisites =
lib.mapNullable (rs: rs ++ [ bintools ]) (stdenv.allowedRequisites or null);
};
stdenvNoLibs =
if stdenvNoCC.hostPlatform != stdenvNoCC.buildPlatform
then
# We cannot touch binutils or cc themselves, because that will cause
# infinite recursion. So instead, we just choose a libc based on the
# current platform. That means we won't respect whatever compiler was
# passed in with the stdenv stage argument.
#
# TODO It would be much better to pass the `stdenvNoCC` and *unwrapped*
# cc, bintools, compiler-rt equivalent, etc. and create all final stdenvs
# as part of the stage. Then we would never be tempted to override a later
# thing to to create an earlier thing (leading to infinite recursion) and
# we also would still respect the stage arguments choices for these
# things.
(if stdenvNoCC.hostPlatform.isDarwin || stdenvNoCC.hostPlatform.useLLVM or false
then overrideCC stdenvNoCC buildPackages.llvmPackages.clangNoCompilerRt
else gccCrossLibcStdenv)
else mkStdenvNoLibs stdenv;
stdenvNoLibc =
if stdenvNoCC.hostPlatform != stdenvNoCC.buildPlatform
then
(if stdenvNoCC.hostPlatform.isDarwin || stdenvNoCC.hostPlatform.useLLVM or false
then overrideCC stdenvNoCC buildPackages.llvmPackages.clangNoLibc
else gccCrossLibcStdenv)
else mkStdenvNoLibs stdenv;
gccStdenvNoLibs = mkStdenvNoLibs gccStdenv;
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 fail, make failure fast
AAAAAASomeThingsFailToEvaluate = throw ''
Please be informed that this pseudo-package is not the only part
of Nixpkgs that fails to evaluate. You should not evaluate
entire Nixpkgs without some special measures to handle failing
packages, like using pkgs/top-level/release-attrpaths-superset.nix.
'';
tests = callPackages ../test { };
defaultPkgConfigPackages =
# We don't want nix-env -q to enter this, because all of these are aliases.
dontRecurseIntoAttrs (
import ./pkg-config/defaultPkgConfigPackages.nix pkgs
) // { __attrsFailEvaluation = true; };
### Nixpkgs maintainer tools
nix-generate-from-cpan = callPackage ../../maintainers/scripts/nix-generate-from-cpan.nix { };
nixpkgs-lint = callPackage ../../maintainers/scripts/nixpkgs-lint.nix { };
common-updater-scripts = callPackage ../common-updater/scripts.nix { };
vimPluginsUpdater = callPackage ../applications/editors/vim/plugins/updater.nix {
inherit (python3Packages) buildPythonApplication ;
};
genericUpdater = callPackage ../common-updater/generic-updater.nix { };
_experimental-update-script-combinators = callPackage ../common-updater/combinators.nix { };
directoryListingUpdater = callPackage ../common-updater/directory-listing-updater.nix { };
gitUpdater = callPackage ../common-updater/git-updater.nix { };
httpTwoLevelsUpdater = callPackage ../common-updater/http-two-levels-updater.nix { };
unstableGitUpdater = callPackage ../common-updater/unstable-updater.nix { };
inherit (nix-update) nix-update-script;
### Push NixOS tests inside the fixed point
# See also allTestsForSystem in nixos/release.nix
nixosTests = import ../../nixos/tests/all-tests.nix {
inherit pkgs;
system = stdenv.hostPlatform.system;
callTest = config: config.test;
} // {
# for typechecking of the scripts and evaluation of
# the nodes, without running VMs.
allDrivers = import ../../nixos/tests/all-tests.nix {
inherit pkgs;
system = stdenv.hostPlatform.system;
callTest = config: config.test.driver;
};
__attrsFailEvaluation = true;
};
### BUILD SUPPORT
__flattenIncludeHackHook = callPackage ../build-support/setup-hooks/flatten-include-hack { };
autoreconfHook = callPackage (
{ makeSetupHook, autoconf, automake, gettext, libtool }:
makeSetupHook {
name = "autoreconf-hook";
propagatedBuildInputs = [ autoconf automake gettext libtool ];
} ../build-support/setup-hooks/autoreconf.sh
) { };
autoreconfHook264 = autoreconfHook.override {
autoconf = autoconf264;
automake = automake111x;
};
autoreconfHook269 = autoreconfHook.override {
autoconf = autoconf269;
};
autoreconfHook271 = autoreconfHook.override {
autoconf = autoconf271;
};
autoPatchelfHook = makeSetupHook {
name = "auto-patchelf-hook";
propagatedBuildInputs = [ auto-patchelf bintools ];
} ../build-support/setup-hooks/auto-patchelf.sh;
appimageTools = callPackage ../build-support/appimage { };
appimageupdate-qt = appimageupdate.override { withQtUI = true; };
bindle = callPackage ../servers/bindle { };
stripJavaArchivesHook = makeSetupHook {
name = "strip-java-archives-hook";
propagatedBuildInputs = [ strip-nondeterminism ];
} ../build-support/setup-hooks/strip-java-archives.sh;
ensureNewerSourcesHook = { year }: makeSetupHook {
name = "ensure-newer-sources-hook";
} (writeScript "ensure-newer-sources-hook.sh" ''
postUnpackHooks+=(_ensureNewerSources)
_ensureNewerSources() {
local r=$sourceRoot
# Avoid passing option-looking directory to find. The example is diffoscope-269:
# https://salsa.debian.org/reproducible-builds/diffoscope/-/issues/378
[[ $r == -* ]] && r="./$r"
'${findutils}/bin/find' "$r" \
'!' -newermt '${year}-01-01' -exec touch -h -d '${year}-01-02' '{}' '+'
}
'');
# addDriverRunpath is the preferred package name, as this enables
# many more scenarios than just opengl now.
anime-downloader = callPackage ../applications/video/anime-downloader { };
aocd = with python3Packages; toPythonApplication aocd;
archipelago-minecraft = callPackage ../by-name/ar/archipelago/package.nix { extraPackages = [jdk17]; };
asitop = pkgs.python3Packages.callPackage ../os-specific/darwin/asitop { };
cve = with python3Packages; toPythonApplication cvelib;
apko = callPackage ../development/tools/apko {
buildGoModule = buildGo123Module;
};
basalt-monado = callPackage ../by-name/ba/basalt-monado/package.nix {
tbb = tbb_2021_11;
cereal = cereal_1_3_2;
opencv = opencv.override { enableGtk3 = true; };
};
beebeep = libsForQt5.callPackage ../applications/office/beebeep { };
binserve = callPackage ../servers/binserve { };
bloodhound-py = with python3Packages; toPythonApplication bloodhound-py;
# Zip file format only allows times after year 1980, which makes e.g. Python
# wheel building fail with:
# ValueError: ZIP does not support timestamps before 1980
ensureNewerSourcesForZipFilesHook = ensureNewerSourcesHook { year = "1980"; };
updateAutotoolsGnuConfigScriptsHook = makeSetupHook {
name = "update-autotools-gnu-config-scripts-hook";
substitutions = { gnu_config = gnu-config; };
} ../build-support/setup-hooks/update-autotools-gnu-config-scripts.sh;
gogUnpackHook = makeSetupHook {
name = "gog-unpack-hook";
propagatedBuildInputs = [ innoextract file-rename ]; }
../build-support/setup-hooks/gog-unpack.sh;
buf = callPackage ../by-name/bu/buf/package.nix {
buildGoModule = buildGo123Module;
};
buildEnv = callPackage ../build-support/buildenv { }; # not actually a package
buildFHSEnv = buildFHSEnvBubblewrap;
buildFHSEnvChroot = callPackage ../build-support/build-fhsenv-chroot { }; # Deprecated; use buildFHSEnv/buildFHSEnvBubblewrap
buildFHSEnvBubblewrap = callPackage ../build-support/build-fhsenv-bubblewrap { };
cameractrls-gtk4 = cameractrls.override { withGtk = 4; };
cameractrls-gtk3 = cameractrls.override { withGtk = 3; };
checkpointBuildTools = callPackage ../build-support/checkpoint-build.nix {};
celeste-classic-pm = pkgs.celeste-classic.override {
practiceMod = true;
};
cereal = cereal_1_3_0;
cewl = callPackage ../tools/security/cewl { };
chef-cli = callPackage ../tools/misc/chef-cli { };
checkov = callPackage ../development/tools/analysis/checkov { };
clang-uml = callPackage ../by-name/cl/clang-uml/package.nix {
stdenv = clangStdenv;
};
cope = callPackage ../by-name/co/cope/package.nix {
perl = perl538;
perlPackages = perl538Packages;
};
cocogitto = callPackage ../development/tools/cocogitto { };
coldsnap = callPackage ../tools/admin/coldsnap { };
collision = callPackage ../applications/misc/collision { };
coolercontrol = recurseIntoAttrs (callPackage ../applications/system/coolercontrol { });
databricks-sql-cli = python3Packages.callPackage ../applications/misc/databricks-sql-cli { };
deck = callPackage ../by-name/de/deck/package.nix {
buildGoModule = buildGo123Module;
};
dhallDirectoryToNix = callPackage ../build-support/dhall/directory-to-nix.nix { };
dhallPackageToNix = callPackage ../build-support/dhall/package-to-nix.nix { };
dhallToNix = callPackage ../build-support/dhall/to-nix.nix { };
dinghy = with python3Packages; toPythonApplication dinghy;
djgpp = djgpp_i586;
djgpp_i586 = callPackage ../development/compilers/djgpp { targetArchitecture = "i586"; stdenv = gccStdenv; };
djgpp_i686 = lowPrio (callPackage ../development/compilers/djgpp { targetArchitecture = "i686"; stdenv = gccStdenv; });
djhtml = python3Packages.callPackage ../development/tools/djhtml { };
dnf-plugins-core = with python3Packages; toPythonApplication dnf-plugins-core;
dnf4 = python3Packages.callPackage ../development/python-modules/dnf4/wrapper.nix { };
dynein = callPackage ../development/tools/database/dynein { };
ebpf-verifier = callPackage ../tools/networking/ebpf-verifier {
catch2 = catch2_3;
};
edgedb = callPackage ../tools/networking/edgedb { };
eludris = callPackage ../tools/misc/eludris { };
enochecker-test = with python3Packages; callPackage ../development/tools/enochecker-test { };
inherit (gridlock) nyarr;
html5validator = python3Packages.callPackage ../applications/misc/html5validator { };
inspec = callPackage ../tools/misc/inspec { };
lshw-gui = lshw.override { withGUI = true; };
kdePackages = callPackage ../kde { };
buildcatrust = with python3.pkgs; toPythonApplication buildcatrust;
mumps_par = callPackage ../by-name/mu/mumps/package.nix { mpiSupport = true; };
prisma-engines = callPackage ../development/tools/database/prisma-engines { };
protoc-gen-dart = callPackage ../development/tools/protoc-gen-dart { };
protoc-gen-grpc-web = callPackage ../development/tools/protoc-gen-grpc-web {
protobuf = protobuf_21;
};
vcpkg-tool = callPackage ../by-name/vc/vcpkg-tool/package.nix {
fmt = fmt_10;
};
r3ctl = qt5.callPackage ../tools/misc/r3ctl { };
deviceTree = callPackage ../os-specific/linux/device-tree { };
octodns = python3Packages.callPackage ../tools/networking/octodns { };
octodns-providers = recurseIntoAttrs {
bind = python3Packages.callPackage ../tools/networking/octodns/providers/bind { };
gandi = python3Packages.callPackage ../tools/networking/octodns/providers/gandi { };
hetzner = python3Packages.callPackage ../tools/networking/octodns/providers/hetzner { };
powerdns = python3Packages.callPackage ../tools/networking/octodns/providers/powerdns { };
};
oletools = with python3.pkgs; toPythonApplication oletools;
ollama-rocm = callPackage ../by-name/ol/ollama/package.nix { acceleration = "rocm"; };
ollama-cuda = callPackage ../by-name/ol/ollama/package.nix { acceleration = "cuda"; };
device-tree_rpi = callPackage ../os-specific/linux/device-tree/raspberrypi.nix { };
didyoumean = callPackage ../tools/misc/didyoumean { };
diffPlugins = (callPackage ../build-support/plugins.nix {}).diffPlugins;
dieHook = makeSetupHook {
name = "die-hook";
} ../build-support/setup-hooks/die.sh;
digitalbitbox = libsForQt5.callPackage ../applications/misc/digitalbitbox {
autoreconfHook = buildPackages.autoreconfHook269;
};
gretl = callPackage ../applications/science/math/gretl { };
devShellTools = callPackage ../build-support/dev-shell-tools { };
dockerTools = callPackage ../build-support/docker {
writePython3 = buildPackages.writers.writePython3;
};
tarsum = callPackage ../build-support/docker/tarsum.nix { };
nix-prefetch-docker = callPackage ../build-support/docker/nix-prefetch-docker.nix { };
docker-sync = callPackage ../tools/misc/docker-sync { };
# Dotnet
dotnetCorePackages = recurseIntoAttrs (callPackage ../development/compilers/dotnet {});
dotnet-sdk_6 = dotnetCorePackages.sdk_6_0;
dotnet-sdk_7 = dotnetCorePackages.sdk_7_0;
dotnet-sdk_8 = dotnetCorePackages.sdk_8_0;
dotnet-sdk_9 = dotnetCorePackages.sdk_9_0;
dotnet-runtime_6 = dotnetCorePackages.runtime_6_0;
dotnet-runtime_7 = dotnetCorePackages.runtime_7_0;
dotnet-runtime_8 = dotnetCorePackages.runtime_8_0;
dotnet-runtime_9 = dotnetCorePackages.runtime_9_0;
dotnet-aspnetcore_6 = dotnetCorePackages.aspnetcore_6_0;
dotnet-aspnetcore_7 = dotnetCorePackages.aspnetcore_7_0;
dotnet-aspnetcore_8 = dotnetCorePackages.aspnetcore_8_0;
dotnet-aspnetcore_9 = dotnetCorePackages.aspnetcore_9_0;
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
dotnet-aspnetcore = dotnetCorePackages.aspnetcore_8_0;
inherit (dotnetCorePackages) buildDotnetModule buildDotnetGlobalTool mkNugetSource mkNugetDeps;
fable = callPackage ../development/tools/fable { };
dotnetenv = callPackage ../build-support/dotnet/dotnetenv {
dotnetfx = dotnetfx40;
};
buildDotnetPackage = callPackage ../build-support/dotnet/build-dotnet-package { };
fetchNuGet = callPackage ../build-support/dotnet/fetchnuget { };
dupeguru = callPackage ../applications/misc/dupeguru {
python3Packages = python311Packages;
};
qdmr = libsForQt5.callPackage ../applications/radio/qdmr { };
fetchbower = callPackage ../build-support/fetchbower { };
fetchbzr = callPackage ../build-support/fetchbzr { };
fetchcvs = if stdenv.buildPlatform != stdenv.hostPlatform
# hack around splicing being crummy with things that (correctly) don't eval.
then buildPackages.fetchcvs
else callPackage ../build-support/fetchcvs { };
fetchdarcs = callPackage ../build-support/fetchdarcs { };
fetchdocker = callPackage ../build-support/fetchdocker { };
fetchDockerConfig = callPackage ../build-support/fetchdocker/fetchDockerConfig.nix { };
fetchDockerLayer = callPackage ../build-support/fetchdocker/fetchDockerLayer.nix { };
fetchfossil = callPackage ../build-support/fetchfossil { };
fetchgit = (callPackage ../build-support/fetchgit {
git = buildPackages.gitMinimal;
cacert = buildPackages.cacert;
git-lfs = buildPackages.git-lfs;
}) // { # fetchgit is a function, so we use // instead of passthru.
tests = pkgs.tests.fetchgit;
};
fetchgitLocal = callPackage ../build-support/fetchgitlocal { };
fetchmtn = callPackage ../build-support/fetchmtn (config.fetchmtn or {});
fetchMavenArtifact = callPackage ../build-support/fetchmavenartifact { };
fetchpijul = callPackage ../build-support/fetchpijul { };
inherit (callPackages ../build-support/node/fetch-yarn-deps { })
fixup-yarn-lock
prefetch-yarn-deps
yarnConfigHook
yarnBuildHook
yarnInstallHook
fetchYarnDeps;
prefer-remote-fetch = import ../build-support/prefer-remote-fetch;
opendrop = python3Packages.callPackage ../tools/networking/opendrop { };
perseus-cli = callPackage ../development/tools/perseus-cli { };
pe-bear = libsForQt5.callPackage ../applications/misc/pe-bear { };
magika = with python3Packages; toPythonApplication magika;
mysql-shell = mysql-shell_8;
inherit ({
mysql-shell_8 = callPackage ../development/tools/mysql-shell/8.nix {
antlr = antlr4_10;
icu = icu73;
protobuf = protobuf_24;
};
})
mysql-shell_8
;
mysql-shell-innovation = callPackage ../development/tools/mysql-shell/innovation.nix {
antlr = antlr4_10;
icu = icu73;
protobuf = protobuf_24;
};
fetchpatch = callPackage ../build-support/fetchpatch {
# 0.3.4 would change hashes: https://github.com/NixOS/nixpkgs/issues/25154
patchutils = __splicedPackages.patchutils_0_3_3;
} // {
tests = pkgs.tests.fetchpatch;
version = 1;
};
fetchpatch2 = callPackage ../build-support/fetchpatch {
patchutils = __splicedPackages.patchutils_0_4_2;
} // {
tests = pkgs.tests.fetchpatch2;
version = 2;
};
fetchs3 = callPackage ../build-support/fetchs3 { };
fetchtorrent = callPackage ../build-support/fetchtorrent { };
fetchsvn = if stdenv.buildPlatform != stdenv.hostPlatform
# hack around splicing being crummy with things that (correctly) don't eval.
then buildPackages.fetchsvn
else callPackage ../build-support/fetchsvn { };
fetchsvnrevision = import ../build-support/fetchsvnrevision runCommand subversion;
fetchsvnssh = callPackage ../build-support/fetchsvnssh { };
fetchhg = callPackage ../build-support/fetchhg { };
fetchFirefoxAddon = callPackage ../build-support/fetchfirefoxaddon { }
// {
tests = pkgs.tests.fetchFirefoxAddon;
};
fetchNextcloudApp = callPackage ../build-support/fetchnextcloudapp { };
# `fetchurl' downloads a file from the network.
fetchurl = if stdenv.buildPlatform != stdenv.hostPlatform
then buildPackages.fetchurl # No need to do special overrides twice,
else makeOverridable (import ../build-support/fetchurl) {
inherit lib stdenvNoCC buildPackages;
inherit cacert;
curl = buildPackages.curlMinimal.override (old: rec {
# break dependency cycles
fetchurl = stdenv.fetchurlBoot;
zlib = buildPackages.zlib.override { fetchurl = stdenv.fetchurlBoot; };
pkg-config = buildPackages.pkg-config.override (old: {
pkg-config = old.pkg-config.override {
fetchurl = stdenv.fetchurlBoot;
};
});
perl = buildPackages.perl.override { inherit zlib; fetchurl = stdenv.fetchurlBoot; };
openssl = buildPackages.openssl.override {
fetchurl = stdenv.fetchurlBoot;
buildPackages = {
coreutils = buildPackages.coreutils.override {
fetchurl = stdenv.fetchurlBoot;
inherit perl;
xz = buildPackages.xz.override { fetchurl = stdenv.fetchurlBoot; };
gmpSupport = false;
aclSupport = false;
attrSupport = false;
};
inherit perl;
};
inherit perl;
};
libssh2 = buildPackages.libssh2.override {
fetchurl = stdenv.fetchurlBoot;
inherit zlib openssl;
};
# On darwin, libkrb5 needs bootstrap_cmds which would require
# converting many packages to fetchurl_boot to avoid evaluation cycles.
# So turn gssSupport off there, and on Windows.
# On other platforms, keep the previous value.
gssSupport =
if stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isWindows
then false
else old.gssSupport or true; # `? true` is the default
libkrb5 = buildPackages.krb5.override {
fetchurl = stdenv.fetchurlBoot;
inherit pkg-config perl openssl;
withLibedit = false;
byacc = buildPackages.byacc.override { fetchurl = stdenv.fetchurlBoot; };
keyutils = buildPackages.keyutils.override { fetchurl = stdenv.fetchurlBoot; };
};
nghttp2 = buildPackages.nghttp2.override {
fetchurl = stdenv.fetchurlBoot;
inherit pkg-config;
enableApp = false; # curl just needs libnghttp2
enableTests = false; # avoids bringing `cunit` and `tzdata` into scope
};
});
};
fetchRepoProject = callPackage ../build-support/fetchrepoproject { };
fetchipfs = callPackage ../build-support/fetchipfs { };
fetchzip = callPackage ../build-support/fetchzip { }
// {
tests = pkgs.tests.fetchzip;
};
fetchDebianPatch = callPackage ../build-support/fetchdebianpatch { }
// {
tests = pkgs.tests.fetchDebianPatch;
};
fetchCrate = callPackage ../build-support/rust/fetchcrate.nix { };
fetchFromGitea = callPackage ../build-support/fetchgitea { };
fetchFromGitHub = callPackage ../build-support/fetchgithub { };
fetchFromBitbucket = callPackage ../build-support/fetchbitbucket { };
fetchFromSavannah = callPackage ../build-support/fetchsavannah { };
fetchFromSourcehut = callPackage ../build-support/fetchsourcehut { };
fetchFromGitLab = callPackage ../build-support/fetchgitlab { };
fetchFromGitiles = callPackage ../build-support/fetchgitiles { };
fetchFrom9Front = callPackage ../build-support/fetch9front { };
fetchFromRepoOrCz = callPackage ../build-support/fetchrepoorcz { };
fetchgx = callPackage ../build-support/fetchgx { };
fetchPypi = callPackage ../build-support/fetchpypi { };
fetchPypiLegacy = callPackage ../build-support/fetchpypilegacy { };
resolveMirrorURLs = {url}: fetchurl {
showURLs = true;
inherit url;
};
ld-is-cc-hook = makeSetupHook { name = "ld-is-cc-hook"; }
../build-support/setup-hooks/ld-is-cc-hook.sh;
copyDesktopItems = makeSetupHook {
name = "copy-desktop-items-hook";
} ../build-support/setup-hooks/copy-desktop-items.sh;
makeDesktopItem = callPackage ../build-support/make-desktopitem { };
copyPkgconfigItems = makeSetupHook {
name = "copy-pkg-config-items-hook";
} ../build-support/setup-hooks/copy-pkgconfig-items.sh;
makePkgconfigItem = callPackage ../build-support/make-pkgconfigitem { };
makeDarwinBundle = callPackage ../build-support/make-darwin-bundle { };
makeAutostartItem = callPackage ../build-support/make-startupitem { };
makeImpureTest = callPackage ../build-support/make-impure-test.nix;
makeInitrd = callPackage ../build-support/kernel/make-initrd.nix; # Args intentionally left out
makeInitrdNG = callPackage ../build-support/kernel/make-initrd-ng.nix;
makeInitrdNGTool = callPackage ../build-support/kernel/make-initrd-ng-tool.nix { };
makeWrapper = makeShellWrapper;
makeShellWrapper = makeSetupHook {
name = "make-shell-wrapper-hook";
propagatedBuildInputs = [ dieHook ];
substitutions = {
# targetPackages.runtimeShell only exists when pkgs == targetPackages (when targetPackages is not __raw)
shell = if targetPackages ? runtimeShell then targetPackages.runtimeShell else throw "makeWrapper/makeShellWrapper must be in nativeBuildInputs";
};
passthru = {
tests = tests.makeWrapper;
};
} ../build-support/setup-hooks/make-wrapper.sh;
compressFirmwareXz = callPackage ../build-support/kernel/compress-firmware.nix { type = "xz"; };
compressFirmwareZstd = callPackage ../build-support/kernel/compress-firmware.nix { type = "zstd"; };
makeModulesClosure = { kernel, firmware, rootModules, allowMissing ? false }:
callPackage ../build-support/kernel/modules-closure.nix {
inherit kernel firmware rootModules allowMissing;
};
mkBinaryCache = callPackage ../build-support/binary-cache { };
mkShell = callPackage ../build-support/mkshell { };
mkShellNoCC = mkShell.override { stdenv = stdenvNoCC; };
mpsolve = libsForQt5.callPackage ../applications/science/math/mpsolve { };
nixBufferBuilders = import ../applications/editors/emacs/build-support/buffer.nix {
inherit lib writeText;
inherit (emacs.pkgs) inherit-local;
};
nix-gitignore = callPackage ../build-support/nix-gitignore { };
ociTools = callPackage ../build-support/oci-tools { };
inherit (
callPackages ../build-support/setup-hooks/patch-rc-path-hooks { }
) patchRcPathBash patchRcPathCsh patchRcPathFish patchRcPathPosix;
pathsFromGraph = ../build-support/kernel/paths-from-graph.pl;
pruneLibtoolFiles = makeSetupHook { name = "prune-libtool-files"; }
../build-support/setup-hooks/prune-libtool-files.sh;
closureInfo = callPackage ../build-support/closure-info.nix { };
serverspec = callPackage ../tools/misc/serverspec { };
setupSystemdUnits = callPackage ../build-support/setup-systemd-units.nix { };
shortenPerlShebang = makeSetupHook {
name = "shorten-perl-shebang-hook";
propagatedBuildInputs = [ dieHook ];
} ../build-support/setup-hooks/shorten-perl-shebang.sh;
sile = callPackage ../by-name/si/sile/package.nix {
lua = luajit;
};
singularity-tools = callPackage ../build-support/singularity-tools { };
srcOnly = callPackage ../build-support/src-only { };
substitute = callPackage ../build-support/substitute/substitute.nix { };
substituteAll = callPackage ../build-support/substitute/substitute-all.nix { };
substituteAllFiles = callPackage ../build-support/substitute-files/substitute-all-files.nix { };
replaceDependencies = callPackage ../build-support/replace-dependencies.nix { };
replaceDependency = { drv, oldDependency, newDependency, verbose ? true }: replaceDependencies {
inherit drv verbose;
replacements = [{
inherit oldDependency newDependency;
}];
# When newDependency depends on drv, instead of causing infinite recursion, keep it as is.
cutoffPackages = [ newDependency ];
};
replaceVars = callPackage ../build-support/replace-vars { };
replaceDirectDependencies = callPackage ../build-support/replace-direct-dependencies.nix { };
nukeReferences = callPackage ../build-support/nuke-references {
inherit (darwin) signingUtils;
};
referencesByPopularity = callPackage ../build-support/references-by-popularity { };
dockerMakeLayers = callPackage ../build-support/docker/make-layers.nix { };
removeReferencesTo = callPackage ../build-support/remove-references-to {
inherit (darwin) signingUtils;
};
# No callPackage. In particular, we don't want `img` *package* in parameters.
vmTools = makeOverridable (import ../build-support/vm) { inherit pkgs lib; };
releaseTools = callPackage ../build-support/release { };
inherit (lib.systems) platforms;
setJavaClassPath = makeSetupHook {
name = "set-java-classpath-hook";
} ../build-support/setup-hooks/set-java-classpath.sh;
fixDarwinDylibNames = makeSetupHook {
name = "fix-darwin-dylib-names-hook";
substitutions = { inherit (darwin.binutils) targetPrefix; };
meta.platforms = lib.platforms.darwin;
} ../build-support/setup-hooks/fix-darwin-dylib-names.sh;
writeDarwinBundle = callPackage ../build-support/make-darwin-bundle/write-darwin-bundle.nix { };
desktopToDarwinBundle = makeSetupHook {
name = "desktop-to-darwin-bundle-hook";
propagatedBuildInputs = [ writeDarwinBundle librsvg imagemagick (onlyBin python3Packages.icnsutil) ];
} ../build-support/setup-hooks/desktop-to-darwin-bundle.sh;
keepBuildTree = makeSetupHook {
name = "keep-build-tree-hook";
} ../build-support/setup-hooks/keep-build-tree.sh;
moveBuildTree = makeSetupHook {
name = "move-build-tree-hook";
} ../build-support/setup-hooks/move-build-tree.sh;
enableGCOVInstrumentation = makeSetupHook {
name = "enable-gcov-instrumentation-hook";
} ../build-support/setup-hooks/enable-coverage-instrumentation.sh;
makeGCOVReport = makeSetupHook {
name = "make-gcov-report-hook";
propagatedBuildInputs = [ lcov enableGCOVInstrumentation ];
} ../build-support/setup-hooks/make-coverage-analysis-report.sh;
makeHardcodeGsettingsPatch = callPackage ../build-support/make-hardcode-gsettings-patch { };
mitm-cache = callPackage ../build-support/mitm-cache {
inherit (darwin.apple_sdk.frameworks) Security;
};
# intended to be used like nix-build -E 'with import <nixpkgs> { }; enableDebugging fooPackage'
enableDebugging = pkg: pkg.override { stdenv = stdenvAdapters.keepDebugInfo pkg.stdenv; };
findXMLCatalogs = makeSetupHook {
name = "find-xml-catalogs-hook";
} ../build-support/setup-hooks/find-xml-catalogs.sh;
wrapGAppsHook3 = wrapGAppsNoGuiHook.override {
isGraphical = true;
};
wrapGAppsHook4 = wrapGAppsNoGuiHook.override {
isGraphical = true;
gtk3 = __splicedPackages.gtk4;
};
wrapGAppsNoGuiHook = callPackage ../build-support/setup-hooks/wrap-gapps-hook {
makeWrapper = makeBinaryWrapper;
};
separateDebugInfo = makeSetupHook {
name = "separate-debug-info-hook";
} ../build-support/setup-hooks/separate-debug-info.sh;
setupDebugInfoDirs = makeSetupHook {
name = "setup-debug-info-dirs-hook";
} ../build-support/setup-hooks/setup-debug-info-dirs.sh;
useOldCXXAbi = makeSetupHook {
name = "use-old-cxx-abi-hook";
} ../build-support/setup-hooks/use-old-cxx-abi.sh;
validatePkgConfig = makeSetupHook
{ name = "validate-pkg-config"; propagatedBuildInputs = [ findutils pkg-config ]; }
../build-support/setup-hooks/validate-pkg-config.sh;
#package writers
writers = callPackage ../build-support/writers { };
# lib functions depending on pkgs
inherit (import ../pkgs-lib {
# The `lib` variable in this scope doesn't include any applied lib overlays,
# `pkgs.lib` does.
inherit (pkgs) lib;
inherit pkgs;
}) formats;
testers = callPackage ../build-support/testers { };
### TOOLS
_3llo = callPackage ../tools/misc/3llo { };
_1password-gui = callPackage ../applications/misc/1password-gui { };
_1password-gui-beta = callPackage ../applications/misc/1password-gui { channel = "beta"; };
_7zz = darwin.apple_sdk_11_0.callPackage ../tools/archivers/7zz { };
_7zz-rar = _7zz.override { enableUnfree = true; };
acme-dns = callPackage ../servers/dns/acme-dns/default.nix {
buildGoModule = buildGo122Module; # https://github.com/joohoi/acme-dns/issues/365
};
acquire = with python3Packages; toPythonApplication acquire;
actdiag = with python3.pkgs; toPythonApplication actdiag;
adlplug = callPackage ../applications/audio/adlplug {
jack = libjack2;
};
opnplug = adlplug.override {
type = "OPN";
};
akkoma = callPackage ../servers/akkoma {
elixir = elixir_1_16;
beamPackages = beamPackages.extend (self: super: { elixir = elixir_1_16; });
};
akkoma-frontends = recurseIntoAttrs {
akkoma-fe = callPackage ../servers/akkoma/akkoma-fe { };
admin-fe = callPackage ../servers/akkoma/admin-fe {
nodejs = nodejs_18;
yarn = yarn.override { nodejs = nodejs_18; };
python3 = python311;
};
};
akkoma-emoji = recurseIntoAttrs {
blobs_gg = callPackage ../servers/akkoma/emoji/blobs_gg.nix { };
};
aegisub = callPackage ../by-name/ae/aegisub/package.nix ({
boost = boost179;
luajit = luajit.override { enable52Compat = true; };
wxGTK = wxGTK32;
} // (config.aegisub or {}));
acme-client = callPackage ../tools/networking/acme-client {
stdenv = gccStdenv;
};
honggfuzz = callPackage ../tools/security/honggfuzz {
clang = clang_16;
llvm = llvm_16;
};
aflplusplus = callPackage ../tools/security/aflplusplus {
clang = clang_15;
llvm = llvm_15;
llvmPackages = llvmPackages_15;
wine = null;
};
libdislocator = callPackage ../tools/security/aflplusplus/libdislocator.nix { };
afsctool = callPackage ../tools/filesystems/afsctool { };
aioblescan = with python3Packages; toPythonApplication aioblescan;
ajour = callPackage ../tools/games/ajour {
inherit (plasma5Packages) kdialog;
};
inherit (recurseIntoAttrs (callPackage ../tools/package-management/akku { }))
akku akkuPackages;
alice-tools = callPackage ../tools/games/alice-tools {
withGUI = false;
};
alice-tools-qt5 = libsForQt5.callPackage ../tools/games/alice-tools { };
alice-tools-qt6 = qt6Packages.callPackage ../tools/games/alice-tools { };
auditwheel = with python3Packages; toPythonApplication auditwheel;
awsbck = callPackage ../tools/backup/awsbck { };
bikeshed = python3Packages.callPackage ../applications/misc/bikeshed { };
davinci-resolve = callPackage ../applications/video/davinci-resolve { };
davinci-resolve-studio = callPackage ../applications/video/davinci-resolve { studioVariant = true; };
dehinter = with python3Packages; toPythonApplication dehinter;
gamemode = callPackage ../tools/games/gamemode {
libgamemode32 = pkgsi686Linux.gamemode.lib;
};
gamescope = callPackage ../by-name/ga/gamescope/package.nix {
enableExecutable = true;
enableWsi = false;
wlroots = wlroots_0_17;
};
gamescope-wsi = callPackage ../by-name/ga/gamescope/package.nix {
enableExecutable = false;
enableWsi = true;
wlroots = wlroots_0_17;
};
font-v = with python3Packages; toPythonApplication font-v;