···291291}
292292</programlisting>
293293 </section>
294294+ <section xml:id="sec-overlays-alternatives-mpi">
295295+ <title>Switching the MPI implementation</title>
296296+ <para>
297297+ All programs that are built with
298298+ <link xlink:href="https://en.wikipedia.org/wiki/Message_Passing_Interface">MPI</link>
299299+ support use the generic attribute <varname>mpi</varname>
300300+ as an input. At the moment Nixpkgs natively provides two different
301301+ MPI implementations:
302302+ <itemizedlist>
303303+ <listitem>
304304+ <para>
305305+ <link xlink:href="https://www.open-mpi.org/">Open MPI</link>
306306+ (default), attribute name <varname>openmpi</varname>
307307+ </para>
308308+ </listitem>
309309+ <listitem>
310310+ <para>
311311+ <link xlink:href="https://www.mpich.org/">MPICH</link>,
312312+ attribute name <varname>mpich</varname>
313313+ </para>
314314+ </listitem>
315315+ </itemizedlist>
316316+ </para>
317317+ <para>
318318+ To provide MPI enabled applications that use <literal>MPICH</literal>, instead
319319+ of the default <literal>Open MPI</literal>, simply use the following overlay:
320320+ </para>
321321+ <programlisting>
322322+self: super:
323323+324324+{
325325+ mpi = self.mpich;
326326+}
327327+ </programlisting>
328328+ </section>
294329 </section>
295330</chapter>
+1-1
lib/systems/architectures.nix
···11{ lib }:
2233rec {
44- # platform.gcc.arch to its features (as in /proc/cpuinfo)
44+ # gcc.arch to its features (as in /proc/cpuinfo)
55 features = {
66 default = [ ];
77 # x86_64 Intel
+13-6
lib/systems/default.nix
···2424 # Either of these can be losslessly-extracted from `parsed` iff parsing succeeds.
2525 system = parse.doubleFromSystem final.parsed;
2626 config = parse.tripleFromSystem final.parsed;
2727- # Just a guess, based on `system`
2828- platform = platforms.select final;
2927 # Determine whether we are compatible with the provided CPU
3028 isCompatible = platform: parse.isCompatible final.parsed.cpu platform.parsed.cpu;
3129 # Derived meta-data
···7977 };
8078 isStatic = final.isWasm || final.isRedox;
81798282- kernelArch =
8080+ # Just a guess, based on `system`
8181+ inherit
8282+ ({
8383+ linux-kernel = args.linux-kernel or {};
8484+ gcc = args.gcc or {};
8585+ rustc = args.rust or {};
8686+ } // platforms.select final)
8787+ linux-kernel gcc rustc;
8888+8989+ linuxArch =
8390 if final.isAarch32 then "arm"
8491 else if final.isAarch64 then "arm64"
8585- else if final.isx86_32 then "x86"
8686- else if final.isx86_64 then "x86"
9292+ else if final.isx86_32 then "i386"
9393+ else if final.isx86_64 then "x86_64"
8794 else if final.isMips then "mips"
8895 else final.parsed.cpu.name;
8996···129136 else throw "Don't know how to run ${final.config} executables.";
130137131138 } // mapAttrs (n: v: v final.parsed) inspect.predicates
132132- // mapAttrs (n: v: v final.platform.gcc.arch or "default") architectures.predicates
139139+ // mapAttrs (n: v: v final.gcc.arch or "default") architectures.predicates
133140 // args;
134141 in assert final.useAndroidPrebuilt -> final.isAndroid;
135142 assert lib.foldl
···11{ lib }:
22rec {
33- pcBase = {
44- name = "pc";
55- kernelBaseConfig = "defconfig";
66- # Build whatever possible as a module, if not stated in the extra config.
77- kernelAutoModules = true;
88- kernelTarget = "bzImage";
99- };
1010-1111- pc64 = pcBase // { kernelArch = "x86_64"; };
1212-1313- pc32 = pcBase // { kernelArch = "i386"; };
33+ pc = {
44+ linux-kernel = {
55+ name = "pc";
1461515- pc32_simplekernel = pc32 // {
1616- kernelAutoModules = false;
77+ baseConfig = "defconfig";
88+ # Build whatever possible as a module, if not stated in the extra config.
99+ autoModules = true;
1010+ target = "bzImage";
1111+ };
1712 };
18131919- pc64_simplekernel = pc64 // {
2020- kernelAutoModules = false;
1414+ pc_simplekernel = lib.recursiveUpdate pc {
1515+ linux-kernel.autoModules = false;
2116 };
22172318 powernv = {
2424- name = "PowerNV";
2525- kernelArch = "powerpc";
2626- kernelBaseConfig = "powernv_defconfig";
2727- kernelTarget = "zImage";
2828- kernelInstallTarget = "install";
2929- kernelFile = "vmlinux";
3030- kernelAutoModules = true;
3131- # avoid driver/FS trouble arising from unusual page size
3232- kernelExtraConfig = ''
3333- PPC_64K_PAGES n
3434- PPC_4K_PAGES y
3535- IPV6 y
3636- '';
1919+ linux-kernel = {
2020+ name = "PowerNV";
2121+2222+ baseConfig = "powernv_defconfig";
2323+ target = "zImage";
2424+ installTarget = "install";
2525+ file = "vmlinux";
2626+ autoModules = true;
2727+ # avoid driver/FS trouble arising from unusual page size
2828+ extraConfig = ''
2929+ PPC_64K_PAGES n
3030+ PPC_4K_PAGES y
3131+ IPV6 y
3232+ '';
3333+ };
3734 };
38353936 ##
···4138 ##
42394340 pogoplug4 = {
4444- name = "pogoplug4";
4141+ linux-kernel = {
4242+ name = "pogoplug4";
45434646- gcc = {
4747- arch = "armv5te";
4848- };
4949-5050- kernelBaseConfig = "multi_v5_defconfig";
5151- kernelArch = "arm";
5252- kernelAutoModules = false;
5353- kernelExtraConfig =
5454- ''
4444+ baseConfig = "multi_v5_defconfig";
4545+ autoModules = false;
4646+ extraConfig = ''
5547 # Ubi for the mtd
5648 MTD_UBI y
5749 UBIFS_FS y
···6153 UBIFS_FS_ZLIB y
6254 UBIFS_FS_DEBUG n
6355 '';
6464- kernelMakeFlags = [ "LOADADDR=0x8000" ];
6565- kernelTarget = "uImage";
6666- # TODO reenable once manual-config's config actually builds a .dtb and this is checked to be working
6767- #kernelDTB = true;
5656+ makeFlags = [ "LOADADDR=0x8000" ];
5757+ target = "uImage";
5858+ # TODO reenable once manual-config's config actually builds a .dtb and this is checked to be working
5959+ #DTB = true;
6060+ };
6161+ gcc = {
6262+ arch = "armv5te";
6363+ };
6864 };
69657066 sheevaplug = {
7171- name = "sheevaplug";
7272- kernelBaseConfig = "multi_v5_defconfig";
7373- kernelArch = "arm";
7474- kernelAutoModules = false;
7575- kernelExtraConfig = ''
7676- BLK_DEV_RAM y
7777- BLK_DEV_INITRD y
7878- BLK_DEV_CRYPTOLOOP m
7979- BLK_DEV_DM m
8080- DM_CRYPT m
8181- MD y
8282- REISERFS_FS m
8383- BTRFS_FS m
8484- XFS_FS m
8585- JFS_FS m
8686- EXT4_FS m
8787- USB_STORAGE_CYPRESS_ATACB m
6767+ linux-kernel = {
6868+ name = "sheevaplug";
6969+7070+ baseConfig = "multi_v5_defconfig";
7171+ autoModules = false;
7272+ extraConfig = ''
7373+ BLK_DEV_RAM y
7474+ BLK_DEV_INITRD y
7575+ BLK_DEV_CRYPTOLOOP m
7676+ BLK_DEV_DM m
7777+ DM_CRYPT m
7878+ MD y
7979+ REISERFS_FS m
8080+ BTRFS_FS m
8181+ XFS_FS m
8282+ JFS_FS m
8383+ EXT4_FS m
8484+ USB_STORAGE_CYPRESS_ATACB m
88858989- # mv cesa requires this sw fallback, for mv-sha1
9090- CRYPTO_SHA1 y
9191- # Fast crypto
9292- CRYPTO_TWOFISH y
9393- CRYPTO_TWOFISH_COMMON y
9494- CRYPTO_BLOWFISH y
9595- CRYPTO_BLOWFISH_COMMON y
8686+ # mv cesa requires this sw fallback, for mv-sha1
8787+ CRYPTO_SHA1 y
8888+ # Fast crypto
8989+ CRYPTO_TWOFISH y
9090+ CRYPTO_TWOFISH_COMMON y
9191+ CRYPTO_BLOWFISH y
9292+ CRYPTO_BLOWFISH_COMMON y
96939797- IP_PNP y
9898- IP_PNP_DHCP y
9999- NFS_FS y
100100- ROOT_NFS y
101101- TUN m
102102- NFS_V4 y
103103- NFS_V4_1 y
104104- NFS_FSCACHE y
105105- NFSD m
106106- NFSD_V2_ACL y
107107- NFSD_V3 y
108108- NFSD_V3_ACL y
109109- NFSD_V4 y
110110- NETFILTER y
111111- IP_NF_IPTABLES y
112112- IP_NF_FILTER y
113113- IP_NF_MATCH_ADDRTYPE y
114114- IP_NF_TARGET_LOG y
115115- IP_NF_MANGLE y
116116- IPV6 m
117117- VLAN_8021Q m
9494+ IP_PNP y
9595+ IP_PNP_DHCP y
9696+ NFS_FS y
9797+ ROOT_NFS y
9898+ TUN m
9999+ NFS_V4 y
100100+ NFS_V4_1 y
101101+ NFS_FSCACHE y
102102+ NFSD m
103103+ NFSD_V2_ACL y
104104+ NFSD_V3 y
105105+ NFSD_V3_ACL y
106106+ NFSD_V4 y
107107+ NETFILTER y
108108+ IP_NF_IPTABLES y
109109+ IP_NF_FILTER y
110110+ IP_NF_MATCH_ADDRTYPE y
111111+ IP_NF_TARGET_LOG y
112112+ IP_NF_MANGLE y
113113+ IPV6 m
114114+ VLAN_8021Q m
118115119119- CIFS y
120120- CIFS_XATTR y
121121- CIFS_POSIX y
122122- CIFS_FSCACHE y
123123- CIFS_ACL y
116116+ CIFS y
117117+ CIFS_XATTR y
118118+ CIFS_POSIX y
119119+ CIFS_FSCACHE y
120120+ CIFS_ACL y
124121125125- WATCHDOG y
126126- WATCHDOG_CORE y
127127- ORION_WATCHDOG m
122122+ WATCHDOG y
123123+ WATCHDOG_CORE y
124124+ ORION_WATCHDOG m
128125129129- ZRAM m
130130- NETCONSOLE m
126126+ ZRAM m
127127+ NETCONSOLE m
131128132132- # Disable OABI to have seccomp_filter (required for systemd)
133133- # https://github.com/raspberrypi/firmware/issues/651
134134- OABI_COMPAT n
129129+ # Disable OABI to have seccomp_filter (required for systemd)
130130+ # https://github.com/raspberrypi/firmware/issues/651
131131+ OABI_COMPAT n
135132136136- # Fail to build
137137- DRM n
138138- SCSI_ADVANSYS n
139139- USB_ISP1362_HCD n
140140- SND_SOC n
141141- SND_ALI5451 n
142142- FB_SAVAGE n
143143- SCSI_NSP32 n
144144- ATA_SFF n
145145- SUNGEM n
146146- IRDA n
147147- ATM_HE n
148148- SCSI_ACARD n
149149- BLK_DEV_CMD640_ENHANCED n
133133+ # Fail to build
134134+ DRM n
135135+ SCSI_ADVANSYS n
136136+ USB_ISP1362_HCD n
137137+ SND_SOC n
138138+ SND_ALI5451 n
139139+ FB_SAVAGE n
140140+ SCSI_NSP32 n
141141+ ATA_SFF n
142142+ SUNGEM n
143143+ IRDA n
144144+ ATM_HE n
145145+ SCSI_ACARD n
146146+ BLK_DEV_CMD640_ENHANCED n
150147151151- FUSE_FS m
148148+ FUSE_FS m
152149153153- # systemd uses cgroups
154154- CGROUPS y
150150+ # systemd uses cgroups
151151+ CGROUPS y
155152156156- # Latencytop
157157- LATENCYTOP y
153153+ # Latencytop
154154+ LATENCYTOP y
158155159159- # Ubi for the mtd
160160- MTD_UBI y
161161- UBIFS_FS y
162162- UBIFS_FS_XATTR y
163163- UBIFS_FS_ADVANCED_COMPR y
164164- UBIFS_FS_LZO y
165165- UBIFS_FS_ZLIB y
166166- UBIFS_FS_DEBUG n
156156+ # Ubi for the mtd
157157+ MTD_UBI y
158158+ UBIFS_FS y
159159+ UBIFS_FS_XATTR y
160160+ UBIFS_FS_ADVANCED_COMPR y
161161+ UBIFS_FS_LZO y
162162+ UBIFS_FS_ZLIB y
163163+ UBIFS_FS_DEBUG n
167164168168- # Kdb, for kernel troubles
169169- KGDB y
170170- KGDB_SERIAL_CONSOLE y
171171- KGDB_KDB y
172172- '';
173173- kernelMakeFlags = [ "LOADADDR=0x0200000" ];
174174- kernelTarget = "uImage";
175175- kernelDTB = true; # Beyond 3.10
165165+ # Kdb, for kernel troubles
166166+ KGDB y
167167+ KGDB_SERIAL_CONSOLE y
168168+ KGDB_KDB y
169169+ '';
170170+ makeFlags = [ "LOADADDR=0x0200000" ];
171171+ target = "uImage";
172172+ DTB = true; # Beyond 3.10
173173+ };
176174 gcc = {
177175 arch = "armv5te";
178176 };
179177 };
180178181179 raspberrypi = {
182182- name = "raspberrypi";
183183- kernelBaseConfig = "bcm2835_defconfig";
184184- kernelDTB = true;
185185- kernelArch = "arm";
186186- kernelAutoModules = true;
187187- kernelPreferBuiltin = true;
188188- kernelExtraConfig = ''
189189- # Disable OABI to have seccomp_filter (required for systemd)
190190- # https://github.com/raspberrypi/firmware/issues/651
191191- OABI_COMPAT n
192192- '';
193193- kernelTarget = "zImage";
180180+ linux-kernel = {
181181+ name = "raspberrypi";
182182+183183+ baseConfig = "bcm2835_defconfig";
184184+ DTB = true;
185185+ autoModules = true;
186186+ preferBuiltin = true;
187187+ extraConfig = ''
188188+ # Disable OABI to have seccomp_filter (required for systemd)
189189+ # https://github.com/raspberrypi/firmware/issues/651
190190+ OABI_COMPAT n
191191+ '';
192192+ target = "zImage";
193193+ };
194194 gcc = {
195195 arch = "armv6";
196196 fpu = "vfp";
···201201 raspberrypi2 = armv7l-hf-multiplatform;
202202203203 zero-gravitas = {
204204- name = "zero-gravitas";
205205- kernelBaseConfig = "zero-gravitas_defconfig";
206206- kernelArch = "arm";
207207- # kernelTarget verified by checking /boot on reMarkable 1 device
208208- kernelTarget = "zImage";
209209- kernelAutoModules = false;
210210- kernelDTB = true;
204204+ linux-kernel = {
205205+ name = "zero-gravitas";
206206+207207+ baseConfig = "zero-gravitas_defconfig";
208208+ # Target verified by checking /boot on reMarkable 1 device
209209+ target = "zImage";
210210+ autoModules = false;
211211+ DTB = true;
212212+ };
211213 gcc = {
212214 fpu = "neon";
213215 cpu = "cortex-a9";
···215217 };
216218217219 zero-sugar = {
218218- name = "zero-sugar";
219219- kernelBaseConfig = "zero-sugar_defconfig";
220220- kernelArch = "arm";
221221- kernelDTB = true;
222222- kernelAutoModules = false;
223223- kernelPreferBuiltin = true;
224224- kernelTarget = "zImage";
220220+ linux-kernel = {
221221+ name = "zero-sugar";
222222+223223+ baseConfig = "zero-sugar_defconfig";
224224+ DTB = true;
225225+ autoModules = false;
226226+ preferBuiltin = true;
227227+ target = "zImage";
228228+ };
225229 gcc = {
226230 cpu = "cortex-a7";
227231 fpu = "neon-vfpv4";
···229233 };
230234 };
231235232232- scaleway-c1 = armv7l-hf-multiplatform // {
236236+ scaleway-c1 = lib.recursiveUpdate armv7l-hf-multiplatform {
233237 gcc = {
234238 cpu = "cortex-a9";
235239 fpu = "vfpv3";
···237241 };
238242239243 utilite = {
240240- name = "utilite";
241241- kernelBaseConfig = "multi_v7_defconfig";
242242- kernelArch = "arm";
243243- kernelAutoModules = false;
244244- kernelExtraConfig =
245245- ''
244244+ linux-kernel = {
245245+ name = "utilite";
246246+ maseConfig = "multi_v7_defconfig";
247247+ autoModules = false;
248248+ extraConfig = ''
246249 # Ubi for the mtd
247250 MTD_UBI y
248251 UBIFS_FS y
···252255 UBIFS_FS_ZLIB y
253256 UBIFS_FS_DEBUG n
254257 '';
255255- kernelMakeFlags = [ "LOADADDR=0x10800000" ];
256256- kernelTarget = "uImage";
257257- kernelDTB = true;
258258+ makeFlags = [ "LOADADDR=0x10800000" ];
259259+ target = "uImage";
260260+ DTB = true;
261261+ };
258262 gcc = {
259263 cpu = "cortex-a9";
260264 fpu = "neon";
261265 };
262266 };
263267264264- guruplug = sheevaplug // {
268268+ guruplug = lib.recursiveUpdate sheevaplug {
265269 # Define `CONFIG_MACH_GURUPLUG' (see
266270 # <http://kerneltrap.org/mailarchive/git-commits-head/2010/5/19/33618>)
267271 # and other GuruPlug-specific things. Requires the `guruplug-defconfig'
268272 # patch.
269269-270270- kernelBaseConfig = "guruplug_defconfig";
273273+ linux-kernel.baseConfig = "guruplug_defconfig";
271274 };
272275273273- beaglebone = armv7l-hf-multiplatform // {
274274- name = "beaglebone";
275275- kernelBaseConfig = "bb.org_defconfig";
276276- kernelAutoModules = false;
277277- kernelExtraConfig = ""; # TBD kernel config
278278- kernelTarget = "zImage";
276276+ beaglebone = lib.recursiveUpdate armv7l-hf-multiplatform {
277277+ linux-kernel = {
278278+ name = "beaglebone";
279279+ baseConfig = "bb.org_defconfig";
280280+ autoModules = false;
281281+ extraConfig = ""; # TBD kernel config
282282+ target = "zImage";
283283+ };
279284 };
280285281286 # https://developer.android.com/ndk/guides/abis#v7a
282282- armv7a-android = {
283283- name = "armeabi-v7a";
287287+ armv7a-android = {
288288+ linux-kernel.name = "armeabi-v7a";
284289 gcc = {
285290 arch = "armv7-a";
286291 float-abi = "softfp";
···289294 };
290295291296 armv7l-hf-multiplatform = {
292292- name = "armv7l-hf-multiplatform";
293293- kernelBaseConfig = "multi_v7_defconfig";
294294- kernelArch = "arm";
295295- kernelDTB = true;
296296- kernelAutoModules = true;
297297- kernelPreferBuiltin = true;
298298- kernelTarget = "zImage";
299299- kernelExtraConfig = ''
300300- # Serial port for Raspberry Pi 3. Upstream forgot to add it to the ARMv7 defconfig.
301301- SERIAL_8250_BCM2835AUX y
302302- SERIAL_8250_EXTENDED y
303303- SERIAL_8250_SHARE_IRQ y
297297+ linux-kernel = {
298298+ name = "armv7l-hf-multiplatform";
299299+ Major = "2.6"; # Using "2.6" enables 2.6 kernel syscalls in glibc.
300300+ baseConfig = "multi_v7_defconfig";
301301+ DTB = true;
302302+ autoModules = true;
303303+ PreferBuiltin = true;
304304+ target = "zImage";
305305+ extraConfig = ''
306306+ # Serial port for Raspberry Pi 3. Upstream forgot to add it to the ARMv7 defconfig.
307307+ SERIAL_8250_BCM2835AUX y
308308+ SERIAL_8250_EXTENDED y
309309+ SERIAL_8250_SHARE_IRQ y
304310305305- # Fix broken sunxi-sid nvmem driver.
306306- TI_CPTS y
311311+ # Fix broken sunxi-sid nvmem driver.
312312+ TI_CPTS y
307313308308- # Hangs ODROID-XU4
309309- ARM_BIG_LITTLE_CPUIDLE n
314314+ # Hangs ODROID-XU4
315315+ ARM_BIG_LITTLE_CPUIDLE n
310316311311- # Disable OABI to have seccomp_filter (required for systemd)
312312- # https://github.com/raspberrypi/firmware/issues/651
313313- OABI_COMPAT n
314314- '';
317317+ # Disable OABI to have seccomp_filter (required for systemd)
318318+ # https://github.com/raspberrypi/firmware/issues/651
319319+ OABI_COMPAT n
320320+ '';
321321+ };
315322 gcc = {
316323 # Some table about fpu flags:
317324 # http://community.arm.com/servlet/JiveServlet/showImage/38-1981-3827/blogentry-103749-004812900+1365712953_thumb.png
···336343 };
337344338345 aarch64-multiplatform = {
339339- name = "aarch64-multiplatform";
340340- kernelBaseConfig = "defconfig";
341341- kernelArch = "arm64";
342342- kernelDTB = true;
343343- kernelAutoModules = true;
344344- kernelPreferBuiltin = true;
345345- kernelExtraConfig = ''
346346- # Raspberry Pi 3 stuff. Not needed for kernels >= 4.10.
347347- ARCH_BCM2835 y
348348- BCM2835_MBOX y
349349- BCM2835_WDT y
350350- RASPBERRYPI_FIRMWARE y
351351- RASPBERRYPI_POWER y
352352- SERIAL_8250_BCM2835AUX y
353353- SERIAL_8250_EXTENDED y
354354- SERIAL_8250_SHARE_IRQ y
346346+ linux-kernel = {
347347+ name = "aarch64-multiplatform";
348348+ baseConfig = "defconfig";
349349+ DTB = true;
350350+ autoModules = true;
351351+ preferBuiltin = true;
352352+ extraConfig = ''
353353+ # Raspberry Pi 3 stuff. Not needed for s >= 4.10.
354354+ ARCH_BCM2835 y
355355+ BCM2835_MBOX y
356356+ BCM2835_WDT y
357357+ RASPBERRYPI_FIRMWARE y
358358+ RASPBERRYPI_POWER y
359359+ SERIAL_8250_BCM2835AUX y
360360+ SERIAL_8250_EXTENDED y
361361+ SERIAL_8250_SHARE_IRQ y
355362356356- # Cavium ThunderX stuff.
357357- PCI_HOST_THUNDER_ECAM y
363363+ # Cavium ThunderX stuff.
364364+ PCI_HOST_THUNDER_ECAM y
358365359359- # Nvidia Tegra stuff.
360360- PCI_TEGRA y
366366+ # Nvidia Tegra stuff.
367367+ PCI_TEGRA y
361368362362- # The default (=y) forces us to have the XHCI firmware available in initrd,
363363- # which our initrd builder can't currently do easily.
364364- USB_XHCI_TEGRA m
365365- '';
366366- kernelTarget = "Image";
369369+ # The default (=y) forces us to have the XHCI firmware available in initrd,
370370+ # which our initrd builder can't currently do easily.
371371+ USB_XHCI_TEGRA m
372372+ '';
373373+ target = "Image";
374374+ };
367375 gcc = {
368376 arch = "armv8-a";
369377 };
···374382 ##
375383376384 ben_nanonote = {
377377- name = "ben_nanonote";
378378- kernelArch = "mips";
385385+ linux-kernel = {
386386+ name = "ben_nanonote";
387387+ };
379388 gcc = {
380389 arch = "mips32";
381390 float = "soft";
···383392 };
384393385394 fuloong2f_n32 = {
386386- name = "fuloong2f_n32";
387387- kernelBaseConfig = "lemote2f_defconfig";
388388- kernelArch = "mips";
389389- kernelAutoModules = false;
390390- kernelExtraConfig = ''
391391- MIGRATION n
392392- COMPACTION n
395395+ linux-kernel = {
396396+ name = "fuloong2f_n32";
397397+ baseConfig = "lemote2f_defconfig";
398398+ autoModules = false;
399399+ extraConfig = ''
400400+ MIGRATION n
401401+ COMPACTION n
393402394394- # nixos mounts some cgroup
395395- CGROUPS y
403403+ # nixos mounts some cgroup
404404+ CGROUPS y
396405397397- BLK_DEV_RAM y
398398- BLK_DEV_INITRD y
399399- BLK_DEV_CRYPTOLOOP m
400400- BLK_DEV_DM m
401401- DM_CRYPT m
402402- MD y
403403- REISERFS_FS m
404404- EXT4_FS m
405405- USB_STORAGE_CYPRESS_ATACB m
406406+ BLK_DEV_RAM y
407407+ BLK_DEV_INITRD y
408408+ BLK_DEV_CRYPTOLOOP m
409409+ BLK_DEV_DM m
410410+ DM_CRYPT m
411411+ MD y
412412+ REISERFS_FS m
413413+ EXT4_FS m
414414+ USB_STORAGE_CYPRESS_ATACB m
406415407407- IP_PNP y
408408- IP_PNP_DHCP y
409409- IP_PNP_BOOTP y
410410- NFS_FS y
411411- ROOT_NFS y
412412- TUN m
413413- NFS_V4 y
414414- NFS_V4_1 y
415415- NFS_FSCACHE y
416416- NFSD m
417417- NFSD_V2_ACL y
418418- NFSD_V3 y
419419- NFSD_V3_ACL y
420420- NFSD_V4 y
416416+ IP_PNP y
417417+ IP_PNP_DHCP y
418418+ IP_PNP_BOOTP y
419419+ NFS_FS y
420420+ ROOT_NFS y
421421+ TUN m
422422+ NFS_V4 y
423423+ NFS_V4_1 y
424424+ NFS_FSCACHE y
425425+ NFSD m
426426+ NFSD_V2_ACL y
427427+ NFSD_V3 y
428428+ NFSD_V3_ACL y
429429+ NFSD_V4 y
421430422422- # Fail to build
423423- DRM n
424424- SCSI_ADVANSYS n
425425- USB_ISP1362_HCD n
426426- SND_SOC n
427427- SND_ALI5451 n
428428- FB_SAVAGE n
429429- SCSI_NSP32 n
430430- ATA_SFF n
431431- SUNGEM n
432432- IRDA n
433433- ATM_HE n
434434- SCSI_ACARD n
435435- BLK_DEV_CMD640_ENHANCED n
431431+ # Fail to build
432432+ DRM n
433433+ SCSI_ADVANSYS n
434434+ USB_ISP1362_HCD n
435435+ SND_SOC n
436436+ SND_ALI5451 n
437437+ FB_SAVAGE n
438438+ SCSI_NSP32 n
439439+ ATA_SFF n
440440+ SUNGEM n
441441+ IRDA n
442442+ ATM_HE n
443443+ SCSI_ACARD n
444444+ BLK_DEV_CMD640_ENHANCED n
436445437437- FUSE_FS m
446446+ FUSE_FS m
438447439439- # Needed for udev >= 150
440440- SYSFS_DEPRECATED_V2 n
448448+ # Needed for udev >= 150
449449+ SYSFS_DEPRECATED_V2 n
441450442442- VGA_CONSOLE n
443443- VT_HW_CONSOLE_BINDING y
444444- SERIAL_8250_CONSOLE y
445445- FRAMEBUFFER_CONSOLE y
446446- EXT2_FS y
447447- EXT3_FS y
448448- REISERFS_FS y
449449- MAGIC_SYSRQ y
451451+ VGA_CONSOLE n
452452+ VT_HW_CONSOLE_BINDING y
453453+ SERIAL_8250_CONSOLE y
454454+ FRAMEBUFFER_CONSOLE y
455455+ EXT2_FS y
456456+ EXT3_FS y
457457+ REISERFS_FS y
458458+ MAGIC_SYSRQ y
450459451451- # The kernel doesn't boot at all, with FTRACE
452452- FTRACE n
453453- '';
454454- kernelTarget = "vmlinux";
460460+ # The kernel doesn't boot at all, with FTRACE
461461+ FTRACE n
462462+ '';
463463+ target = "vmlinux";
464464+ };
455465 gcc = {
456466 arch = "loongson2f";
457467 float = "hard";
···464474 ##
465475466476 riscv-multiplatform = {
467467- name = "riscv-multiplatform";
468468- kernelArch = "riscv";
469469- kernelTarget = "vmlinux";
470470- kernelAutoModules = true;
471471- kernelBaseConfig = "defconfig";
472472- kernelExtraConfig = ''
473473- FTRACE n
474474- SERIAL_OF_PLATFORM y
475475- '';
477477+ linux-kernel = {
478478+ name = "riscv-multiplatform";
479479+ target = "vmlinux";
480480+ autoModules = true;
481481+ baseConfig = "defconfig";
482482+ extraConfig = ''
483483+ FTRACE n
484484+ SERIAL_OF_PLATFORM y
485485+ '';
486486+ };
476487 };
477488478489 select = platform:
479490 # x86
480480- /**/ if platform.isx86_32 then pc32
481481- else if platform.isx86_64 then pc64
491491+ /**/ if platform.isx86 then pc
482492483493 # ARM
484494 else if platform.isAarch32 then let
485495 version = platform.parsed.cpu.version or null;
486486- in if version == null then pcBase
496496+ in if version == null then pc
487497 else if lib.versionOlder version "6" then sheevaplug
488498 else if lib.versionOlder version "7" then raspberrypi
489499 else armv7l-hf-multiplatform
490500 else if platform.isAarch64 then aarch64-multiplatform
491501502502+ else if platform.isRiscV then riscv-multiplatform
503503+492504 else if platform.parsed.cpu == lib.systems.parse.cpuTypes.mipsel then fuloong2f_n32
493505494506 else if platform.parsed.cpu == lib.systems.parse.cpuTypes.powerpc64le then powernv
495507496496- else pcBase;
508508+ else pc;
497509}
+36
nixos/doc/manual/release-notes/rl-2103.xml
···420420 </listitem>
421421 <listitem>
422422 <para>
423423+ The attribute <varname>mpi</varname> is now consistently used to
424424+ provide a default, system-wide MPI implementation.
425425+ The default implementation is openmpi, which has been used before by
426426+ all derivations affects by this change.
427427+ Note that all packages that have used <varname>mpi ? null</varname> in the input
428428+ for optional MPI builds, have been changed to the boolean input paramater
429429+ <varname>useMpi</varname> to enable building with MPI.
430430+431431+ Building all packages with <varname>mpich</varname> instead
432432+ of the default <varname>openmpi</varname> can now be achived like this:
433433+ <programlisting>
434434+self: super:
435435+{
436436+ mpi = super.mpich;
437437+}
438438+ </programlisting>
439439+ </para>
440440+ </listitem>
441441+ <listitem>
442442+ <para>
423443 The Searx module has been updated with the ability to configure the
424444 service declaratively and uWSGI integration.
425445 The option <literal>services.searx.configFile</literal> has been renamed
···601621 <para>
602622 NixOS now generates empty <literal>/etc/netgroup</literal>.
603623 <literal>/etc/netgroup</literal> defines network-wide groups and may affect to setups using NIS.
624624+ </para>
625625+ </listitem>
626626+ <listitem>
627627+ <para>
628628+ Platforms, like <varname>stdenv.hostPlatform</varname>, no longer have a <varname>platform</varname> attribute.
629629+ It has been (mostly) flattoned away:
630630+ </para>
631631+ <itemizedlist>
632632+ <listitem><para><varname>platform.gcc</varname> is now <varname>gcc</varname></para></listitem>
633633+ <listitem><para><literal>platform.kernel*</literal> is now <literal>linux-kernel.*</literal></para></listitem>
634634+ </itemizedlist>
635635+ <para>
636636+ Additionally, <varname>platform.kernelArch</varname> moved to the top level as <varname>linuxArch</varname> to match the other <literal>*Arch</literal> variables.
637637+ </para>
638638+ <para>
639639+ The <varname>platform</varname> grouping of these things never meant anything, and was just a historial/implementation artifact that was overdue removal.
604640 </para>
605641 </listitem>
606642 </itemizedlist>
+4-4
nixos/modules/hardware/device-tree.nix
···6868 patchShebangs scripts/*
6969 substituteInPlace scripts/Makefile.lib \
7070 --replace 'DTC_FLAGS += $(DTC_FLAGS_$(basetarget))' 'DTC_FLAGS += $(DTC_FLAGS_$(basetarget)) -@'
7171- make ${pkgs.stdenv.hostPlatform.platform.kernelBaseConfig} ARCH="${pkgs.stdenv.hostPlatform.platform.kernelArch}"
7272- make dtbs ARCH="${pkgs.stdenv.hostPlatform.platform.kernelArch}"
7171+ make ${pkgs.stdenv.hostPlatform.linux-kernel.baseConfig} ARCH="${pkgs.stdenv.hostPlatform.linuxArch}"
7272+ make dtbs ARCH="${pkgs.stdenv.hostPlatform.linuxArch}"
7373 '';
7474 installPhase = ''
7575- make dtbs_install INSTALL_DTBS_PATH=$out/dtbs ARCH="${pkgs.stdenv.hostPlatform.platform.kernelArch}"
7575+ make dtbs_install INSTALL_DTBS_PATH=$out/dtbs ARCH="${pkgs.stdenv.hostPlatform.linuxArch}"
7676 '';
7777 };
7878···115115 options = {
116116 hardware.deviceTree = {
117117 enable = mkOption {
118118- default = pkgs.stdenv.hostPlatform.platform.kernelDTB or false;
118118+ default = pkgs.stdenv.hostPlatform.linux-kernel.DTB or false;
119119 type = types.bool;
120120 description = ''
121121 Build device tree files. These are used to describe the
···190190191191 system.boot.loader.kernelFile = mkOption {
192192 internal = true;
193193- default = pkgs.stdenv.hostPlatform.platform.kernelTarget;
193193+ default = pkgs.stdenv.hostPlatform.linux-kernel.target;
194194 type = types.str;
195195 description = ''
196196 Name of the kernel file to be passed to the bootloader.
···4646 startScript = if stdenv.isx86_32 then "START_LINUX_X86"
4747 else if stdenv.isx86_64 then "START_LINUX_X86_64"
4848 #else if stdenv.isDarwin then "START_MACOS.app" # disabled because I cannot test on Darwin
4949- else abort "Unsupported platform: ${stdenv.platform.kernelArch}.";
4949+ else abort "Unsupported platform: ${stdenv.hostPlatform.linuxArch}.";
50505151 linuxExecutable = if stdenv.isx86_32 then "pixilang_linux_x86"
5252 else if stdenv.isx86_64 then "pixilang_linux_x86_64"
···190190 else if targetPlatform.isRiscV then "lriscv"
191191 else throw "unknown emulation for platform: ${targetPlatform.config}";
192192 in if targetPlatform.useLLVM or false then ""
193193- else targetPlatform.platform.bfdEmulation or (fmt + sep + arch);
193193+ else targetPlatform.bfdEmulation or (fmt + sep + arch);
194194195195 strictDeps = true;
196196 depsTargetTargetPropagated = extraPackages;
+14-14
pkgs/build-support/cc-wrapper/default.nix
···402402 # Always add -march based on cpu in triple. Sometimes there is a
403403 # discrepency (x86_64 vs. x86-64), so we provide an "arch" arg in
404404 # that case.
405405- + optionalString ((targetPlatform ? platform.gcc.arch) &&
406406- isGccArchSupported targetPlatform.platform.gcc.arch) ''
407407- echo "-march=${targetPlatform.platform.gcc.arch}" >> $out/nix-support/cc-cflags-before
405405+ + optionalString ((targetPlatform ? gcc.arch) &&
406406+ isGccArchSupported targetPlatform.gcc.arch) ''
407407+ echo "-march=${targetPlatform.gcc.arch}" >> $out/nix-support/cc-cflags-before
408408 ''
409409410410 # -mcpu is not very useful. You should use mtune and march
411411 # instead. It’s provided here for backwards compatibility.
412412- + optionalString (targetPlatform ? platform.gcc.cpu) ''
413413- echo "-mcpu=${targetPlatform.platform.gcc.cpu}" >> $out/nix-support/cc-cflags-before
412412+ + optionalString (targetPlatform ? gcc.cpu) ''
413413+ echo "-mcpu=${targetPlatform.gcc.cpu}" >> $out/nix-support/cc-cflags-before
414414 ''
415415416416 # -mfloat-abi only matters on arm32 but we set it here
417417 # unconditionally just in case. If the abi specifically sets hard
418418 # vs. soft floats we use it here.
419419- + optionalString (targetPlatform ? platform.gcc.float-abi) ''
420420- echo "-mfloat-abi=${targetPlatform.platform.gcc.float-abi}" >> $out/nix-support/cc-cflags-before
419419+ + optionalString (targetPlatform ? gcc.float-abi) ''
420420+ echo "-mfloat-abi=${targetPlatform.gcc.float-abi}" >> $out/nix-support/cc-cflags-before
421421 ''
422422- + optionalString (targetPlatform ? platform.gcc.fpu) ''
423423- echo "-mfpu=${targetPlatform.platform.gcc.fpu}" >> $out/nix-support/cc-cflags-before
422422+ + optionalString (targetPlatform ? gcc.fpu) ''
423423+ echo "-mfpu=${targetPlatform.gcc.fpu}" >> $out/nix-support/cc-cflags-before
424424 ''
425425- + optionalString (targetPlatform ? platform.gcc.mode) ''
426426- echo "-mmode=${targetPlatform.platform.gcc.mode}" >> $out/nix-support/cc-cflags-before
425425+ + optionalString (targetPlatform ? gcc.mode) ''
426426+ echo "-mmode=${targetPlatform.gcc.mode}" >> $out/nix-support/cc-cflags-before
427427 ''
428428- + optionalString (targetPlatform ? platform.gcc.tune &&
429429- isGccArchSupported targetPlatform.platform.gcc.tune) ''
430430- echo "-mtune=${targetPlatform.platform.gcc.tune}" >> $out/nix-support/cc-cflags-before
428428+ + optionalString (targetPlatform ? gcc.tune &&
429429+ isGccArchSupported targetPlatform.gcc.tune) ''
430430+ echo "-mtune=${targetPlatform.gcc.tune}" >> $out/nix-support/cc-cflags-before
431431 ''
432432433433 # TODO: categorize these and figure out a better place for them
+2-2
pkgs/build-support/kernel/make-initrd.nix
···5656, prepend ? []
57575858# Whether to wrap the initramfs in a u-boot image.
5959-, makeUInitrd ? stdenvNoCC.hostPlatform.platform.kernelTarget == "uImage"
5959+, makeUInitrd ? stdenvNoCC.hostPlatform.linux-kernel.target == "uImage"
60606161# If generating a u-boot image, the architecture to use. The default
6262# guess may not align with u-boot's nomenclature correctly, so it can
6363# be overridden.
6464# See https://gitlab.denx.de/u-boot/u-boot/-/blob/9bfb567e5f1bfe7de8eb41f8c6d00f49d2b9a426/common/image.c#L81-106 for a list.
6565-, uInitrdArch ? stdenvNoCC.hostPlatform.kernelArch
6565+, uInitrdArch ? stdenvNoCC.hostPlatform.linuxArch
66666767# The name of the compression, as recognised by u-boot.
6868# See https://gitlab.denx.de/u-boot/u-boot/-/blob/9bfb567e5f1bfe7de8eb41f8c6d00f49d2b9a426/common/image.c#L195-204 for a list.
···11{ lib, targetPlatform }:
2233let
44- p = targetPlatform.platform.gcc or {}
44+ p = targetPlatform.gcc or {}
55 // targetPlatform.parsed.abi;
66in lib.concatLists [
77 (lib.optional (!targetPlatform.isx86_64 && p ? arch) "--with-arch=${p.arch}") # --with-arch= is unknown flag on x86_64
+1-1
pkgs/development/compilers/julia/1.0.nix
···123123 let
124124 arch = lib.head (lib.splitString "-" stdenv.system);
125125 march = {
126126- x86_64 = stdenv.hostPlatform.platform.gcc.arch or "x86-64";
126126+ x86_64 = stdenv.hostPlatform.gcc.arch or "x86-64";
127127 i686 = "pentium4";
128128 aarch64 = "armv8-a";
129129 }.${arch}
+1-1
pkgs/development/compilers/julia/1.3.nix
···7373 let
7474 arch = head (splitString "-" stdenv.system);
7575 march = {
7676- x86_64 = stdenv.hostPlatform.platform.gcc.arch or "x86-64";
7676+ x86_64 = stdenv.hostPlatform.gcc.arch or "x86-64";
7777 i686 = "pentium4";
7878 aarch64 = "armv8-a";
7979 }.${arch}
+1-1
pkgs/development/compilers/julia/1.5.nix
···7171 let
7272 arch = head (splitString "-" stdenv.system);
7373 march = {
7474- x86_64 = stdenv.hostPlatform.platform.gcc.arch or "x86-64";
7474+ x86_64 = stdenv.hostPlatform.gcc.arch or "x86-64";
7575 i686 = "pentium4";
7676 aarch64 = "armv8-a";
7777 }.${arch}
···4141let
4242 inherit (stdenv) buildPlatform hostPlatform;
43434444- inherit (stdenv.lib) fix' extends makeOverridable;
4444+ inherit (lib) fix' extends makeOverridable;
4545 inherit (haskellLib) overrideCabal;
46464747 mkDerivationImpl = pkgs.callPackage ./generic-builder.nix {
···8484 # lost on `.override`) but determine the auto-args based on `drv` (the problem here
8585 # is that nix has no way to "passthrough" args while preserving the reflection
8686 # info that callPackage uses to determine the arguments).
8787- drv = if stdenv.lib.isFunction fn then fn else import fn;
8888- auto = builtins.intersectAttrs (stdenv.lib.functionArgs drv) scope;
8787+ drv = if lib.isFunction fn then fn else import fn;
8888+ auto = builtins.intersectAttrs (lib.functionArgs drv) scope;
89899090 # this wraps the `drv` function to add a `overrideScope` function to the result.
9191 drvScope = allArgs: drv allArgs // {
···9898 # nothing.
9999 in callPackageWithScope newScope drv manualArgs;
100100 };
101101- in stdenv.lib.makeOverridable drvScope (auto // manualArgs);
101101+ in lib.makeOverridable drvScope (auto // manualArgs);
102102103103 mkScope = scope: let
104104 ps = pkgs.__splicedPackages;
+5-5
pkgs/development/interpreters/acl2/default.nix
···11-{ stdenv, callPackage, fetchFromGitHub, writeShellScriptBin, substituteAll
11+{ lib, stdenv, callPackage, fetchFromGitHub, writeShellScriptBin, substituteAll
22, sbcl, bash, which, perl, nettools
33, openssl, glucose, minisat, abc-verifier, z3, python2
44, certifyBooks ? true
···3939 buildInputs = [
4040 # ACL2 itself only needs a Common Lisp compiler/interpreter:
4141 sbcl
4242- ] ++ stdenv.lib.optionals certifyBooks [
4242+ ] ++ lib.optionals certifyBooks [
4343 # To build community books, we need Perl and a couple of utilities:
4444 which perl nettools
4545 # Some of the books require one or more of these external tools:
···5555 preConfigure = ''
5656 # When certifying books, ACL2 doesn't like $HOME not existing.
5757 export HOME=$(pwd)/fake-home
5858- '' + stdenv.lib.optionalString certifyBooks ''
5858+ '' + lib.optionalString certifyBooks ''
5959 # Some books also care about $USER being nonempty.
6060 export USER=nobody
6161 '';
···7979 installPhase = ''
8080 mkdir -p $out/bin
8181 ln -s $out/share/${pname}/saved_acl2 $out/bin/${pname}
8282- '' + stdenv.lib.optionalString certifyBooks ''
8282+ '' + lib.optionalString certifyBooks ''
8383 ln -s $out/share/${pname}/books/build/cert.pl $out/bin/${pname}-cert
8484 ln -s $out/share/${pname}/books/build/clean.pl $out/bin/${pname}-clean
8585 '';
···100100 rm -rf $out/share/${pname}/books
101101 '';
102102103103- meta = with stdenv.lib; {
103103+ meta = with lib; {
104104 description = "An interpreter and a prover for a Lisp dialect";
105105 longDescription = ''
106106 ACL2 is a logic and programming language in which you can model computer
···11-{ stdenv, fetchurl, graalvm11-ce, glibcLocales }:
11+{ lib, stdenv, fetchurl, graalvm11-ce, glibcLocales }:
2233-with stdenv.lib;
33+with lib;
44stdenv.mkDerivation rec {
55 pname = "babashka";
66 version = "0.2.3";
···5050 cp bb $out/bin/bb
5151 '';
52525353- meta = with stdenv.lib; {
5353+ meta = with lib; {
5454 description = "A Clojure babushka for the grey areas of Bash";
5555 longDescription = ''
5656 The main idea behind babashka is to leverage Clojure in places where you
+2-2
pkgs/development/interpreters/clojure/clooj.nix
···11-{ stdenv, fetchurl, jre, makeWrapper }:
11+{ lib, stdenv, fetchurl, jre, makeWrapper }:
2233let version = "0.4.4"; in
44···2525 meta = {
2626 description = "A lightweight IDE for Clojure";
2727 homepage = "https://github.com/arthuredelstein/clooj";
2828- license = stdenv.lib.licenses.bsd3;
2828+ license = lib.licenses.bsd3;
2929 };
3030}
+3-3
pkgs/development/interpreters/clojure/default.nix
···11-{ stdenv, fetchurl, installShellFiles, jdk, rlwrap, makeWrapper }:
11+{ lib, stdenv, fetchurl, installShellFiles, jdk, rlwrap, makeWrapper }:
2233stdenv.mkDerivation rec {
44 pname = "clojure";
···1717 # See https://github.com/clojure/brew-install/blob/1.10.1/src/main/resources/clojure/install/linux-install.sh
1818 installPhase =
1919 let
2020- binPath = stdenv.lib.makeBinPath [ rlwrap jdk ];
2020+ binPath = lib.makeBinPath [ rlwrap jdk ];
2121 in
2222 ''
2323 clojure_lib_dir=$out
···4747 -Sverbose \
4848 -Scp $out/libexec/clojure-tools-${version}.jar
4949 '';
5050- meta = with stdenv.lib; {
5050+ meta = with lib; {
5151 description = "A Lisp dialect for the JVM";
5252 homepage = "https://clojure.org/";
5353 license = licenses.epl10;
···11-{ stdenv, fetchurl }:
11+{ lib, stdenv, fetchurl }:
2233stdenv.mkDerivation rec {
44 pname = "duktape";
···2121 '';
2222 enableParallelBuilding = true;
23232424- meta = with stdenv.lib; {
2424+ meta = with lib; {
2525 description = "An embeddable Javascript engine, with a focus on portability and compact footprint";
2626 homepage = "https://duktape.org/";
2727 downloadPage = "https://duktape.org/download.html";
+2-2
pkgs/development/interpreters/eff/default.nix
···11-{ stdenv, fetchFromGitHub, which, ocamlPackages }:
11+{ lib, stdenv, fetchFromGitHub, which, ocamlPackages }:
2233let version = "5.0"; in
44···2525 doCheck = true;
2626 checkTarget = "test";
27272828- meta = with stdenv.lib; {
2828+ meta = with lib; {
2929 homepage = "https://www.eff-lang.org";
3030 description = "A functional programming language based on algebraic effects and their handlers";
3131 longDescription = ''
···11-{ stdenv, buildGoModule, fetchFromGitHub }:
11+{ lib, stdenv, buildGoModule, fetchFromGitHub }:
2233buildGoModule rec {
44 pname = "joker";
···21212222 subPackages = [ "." ];
23232424- meta = with stdenv.lib; {
2424+ meta = with lib; {
2525 homepage = "https://github.com/candid82/joker";
2626 description = "A small Clojure interpreter and linter written in Go";
2727 license = licenses.epl10;
+2-2
pkgs/development/interpreters/jruby/default.nix
···11-{ stdenv, callPackage, fetchurl, makeWrapper, jre }:
11+{ lib, stdenv, callPackage, fetchurl, makeWrapper, jre }:
2233let
44# The version number here is whatever is reported by the RUBY_VERSION string
···5050 libPath = "lib/${rubyEngine}/${rubyVersion.libDir}";
5151 };
52525353- meta = with stdenv.lib; {
5353+ meta = with lib; {
5454 description = "Ruby interpreter written in Java";
5555 homepage = "http://jruby.org/";
5656 license = with licenses; [ cpl10 gpl2 lgpl21 ];
···11-{ stdenv, perl, buildEnv, makeWrapper
11+{ lib, stdenv, perl, buildEnv, makeWrapper
22, extraLibs ? []
33, extraOutputsToInstall ? []
44, postBuild ? ""
···2828 mkdir -p "$out/bin"
29293030 # take every binary from perl packages and put them into the env
3131- for path in ${stdenv.lib.concatStringsSep " " paths}; do
3131+ for path in ${lib.concatStringsSep " " paths}; do
3232 if [ -d "$path/bin" ]; then
3333 cd "$path/bin"
3434 for prg in *; do
+1-1
pkgs/development/interpreters/php/generic.nix
···269269 inherit ztsSupport;
270270 };
271271272272- meta = with stdenv.lib; {
272272+ meta = with lib; {
273273 description = "An HTML-embedded scripting language";
274274 homepage = "https://www.php.net/";
275275 license = licenses.php301;
+2-2
pkgs/development/interpreters/picoc/default.nix
···11-{ stdenv, fetchFromGitHub, readline }:
11+{ lib, stdenv, fetchFromGitHub, readline }:
2233stdenv.mkDerivation rec {
44 pname = "picoc";
···3131 install -m644 *.h $out/include
3232 '';
33333434- meta = with stdenv.lib; {
3434+ meta = with lib; {
3535 description = "Very small C interpreter for scripting";
3636 longDescription = ''
3737 PicoC is a very small C interpreter for scripting. It was originally
···2222 # Some tests fail on Darwin
2323 doCheck = !stdenv.isDarwin;
24242525- meta = with stdenv.lib; {
2525+ meta = with lib; {
2626 description = "Raku implementation on top of Moar virtual machine";
2727 homepage = "https://www.rakudo.org";
2828 license = licenses.artistic2;
+3-3
pkgs/development/interpreters/rakudo/moarvm.nix
···11-{ stdenv, fetchurl, perl
11+{ lib, stdenv, fetchurl, perl
22, CoreServices, ApplicationServices }:
3344stdenv.mkDerivation rec {
···1010 sha256 = "18iys1bdb92asggrsz7sg1hh76j7kq63c3fgg33fnla18qf4z488";
1111 };
12121313- buildInputs = [ perl ] ++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices ApplicationServices ];
1313+ buildInputs = [ perl ] ++ lib.optionals stdenv.isDarwin [ CoreServices ApplicationServices ];
1414 doCheck = false; # MoarVM does not come with its own test suite
15151616 configureScript = "${perl}/bin/perl ./Configure.pl";
17171818- meta = with stdenv.lib; {
1818+ meta = with lib; {
1919 description = "VM with adaptive optimization and JIT compilation, built for Rakudo";
2020 homepage = "https://www.moarvm.org/";
2121 license = licenses.artistic2;
+1-1
pkgs/development/interpreters/rakudo/nqp.nix
···19192020 doCheck = true;
21212222- meta = with stdenv.lib; {
2222+ meta = with lib; {
2323 description = "Not Quite Perl -- a lightweight Raku-like environment for virtual machines";
2424 homepage = "https://github.com/perl6/nqp";
2525 license = licenses.artistic2;
···3333 cp r3 $out/bin
3434 '';
35353636- meta = with stdenv.lib; {
3636+ meta = with lib; {
3737 description = "Relative expression based object language, a language where code is data";
3838 maintainers = with maintainers; [ vrthra ];
3939 platforms = [ "x86_64-linux" ];
+2-2
pkgs/development/interpreters/red/default.nix
···11-{ stdenv, stdenv_32bit, pkgsi686Linux, fetchFromGitHub, fetchurl }:
11+{ lib, stdenv, stdenv_32bit, pkgsi686Linux, fetchFromGitHub, fetchurl }:
2233stdenv.mkDerivation rec {
44 pname = "red";
···77777878 '';
79798080- meta = with stdenv.lib; {
8080+ meta = with lib; {
8181 description = ''
8282 New programming language strongly inspired by Rebol, but with a
8383 broader field of usage thanks to its native-code compiler, from system
···2828 url = "https://sources.debian.org/data/main/m/mozjs/1.8.5-1.0.0+dfsg-6/debian/patches/fix-811665.patch";
2929 sha256 = "1q8477xqxiy5d8376k5902l45gd0qkd4nxmhl8vr6rr1pxfcny99";
3030 })
3131- ] ++ stdenv.lib.optionals stdenv.isAarch32 [
3131+ ] ++ lib.optionals stdenv.isAarch32 [
3232 # Explained below in configureFlags for ARM
3333 ./1.8.5-findvanilla.patch
3434 # Fix for hard float flags.
···4949 # of polkit, which is what matters most, it does not override the allocator
5050 # so the failure of that test does not matter much.
5151 configureFlags = [ "--enable-threadsafe" "--with-system-nspr" ] ++
5252- stdenv.lib.optionals (stdenv.hostPlatform.system == "armv5tel-linux") [
5252+ lib.optionals (stdenv.hostPlatform.system == "armv5tel-linux") [
5353 "--with-cpu-arch=armv5t"
5454 "--disable-tracejit" ];
5555···6767 rm jit-test/tests/sunspider/check-date-format-tofte.js # https://bugzil.la/600522
6868 '';
69697070- meta = with stdenv.lib; {
7070+ meta = with lib; {
7171 description = "Mozilla's JavaScript engine written in C/C++";
7272 homepage = "https://developer.mozilla.org/en/SpiderMonkey";
7373 # TODO: MPL/GPL/LGPL tri-license.
···11-{ stdenv
11+{ lib, stdenv
22, fetchFromGitHub
33, automake
44, autoconf
···43434444 # The provided makefile leaves a wrong reference to /build/ in RPATH,
4545 # so we fix it after checking that everything is also present in $out
4646- preFixup = stdenv.lib.optionalString stdenv.isLinux ''
4646+ preFixup = lib.optionalString stdenv.isLinux ''
4747 needed_libraries=$(ls .libs | grep '\.\(so\|la\)$')
4848 for lib in $needed_libraries; do
4949 if ! ls $out/lib | grep "$lib"; then
···5858 done
5959 '';
60606161- meta = with stdenv.lib; {
6161+ meta = with lib; {
6262 description = "GNU readline for interactive tcl shells";
6363 homepage = "https://github.com/flightaware/tclreadline";
6464 license = licenses.bsd3;
···3636 # make sure the test starts even if we have less than 4 cores
3737 export OMPI_MCA_rmaps_base_oversubscribe=1
38383939+ # Fix to make mpich run in a sandbox
4040+ export HYDRA_IFACE=lo
4141+3942 # Run single threaded
4043 export OMP_NUM_THREADS=1
4144
···11-{ stdenv, fetchurl, pkg-config, pure }:
11+{ lib, stdenv, fetchurl, pkg-config, pure }:
2233stdenv.mkDerivation rec {
44 baseName = "mpfr";
···1818 meta = {
1919 description = "This module makes the MPFR multiprecision floats available in Pure";
2020 homepage = "http://puredocs.bitbucket.org/pure-mpfr.html";
2121- license = stdenv.lib.licenses.lgpl3Plus;
2222- platforms = stdenv.lib.platforms.linux;
2323- maintainers = with stdenv.lib.maintainers; [ asppsa ];
2121+ license = lib.licenses.lgpl3Plus;
2222+ platforms = lib.platforms.linux;
2323+ maintainers = with lib.maintainers; [ asppsa ];
2424 };
2525}
+4-4
pkgs/development/pure-modules/octave/default.nix
···11-{ stdenv, fetchurl, pkg-config, pure, octave }:
11+{ lib, stdenv, fetchurl, pkg-config, pure, octave }:
2233stdenv.mkDerivation rec {
44 baseName = "octave";
···1818 meta = {
1919 description = "An Octave module for the Pure programming language";
2020 homepage = "http://puredocs.bitbucket.org/pure-octave.html";
2121- license = stdenv.lib.licenses.gpl3Plus;
2121+ license = lib.licenses.gpl3Plus;
2222 # This is set to none for now because it does not work with the
2323 # current stable version of Octave.
2424- platforms = stdenv.lib.platforms.none;
2525- maintainers = with stdenv.lib.maintainers; [ asppsa ];
2424+ platforms = lib.platforms.none;
2525+ maintainers = with lib.maintainers; [ asppsa ];
2626 };
2727}
···1111# Common deps
1212, git, pybind11, which, binutils, glibcLocales, cython, perl
1313# Common libraries
1414-, jemalloc, openmpi, gast, grpc, sqlite, boringssl, jsoncpp
1414+, jemalloc, mpi, gast, grpc, sqlite, boringssl, jsoncpp
1515, curl, snappy, flatbuffers-core, lmdb-core, icu, double-conversion, libpng, libjpeg_turbo, giflib
1616# Upsteam by default includes cuda support since tensorflow 1.15. We could do
1717# that in nix as well. It would make some things easier and less confusing, but
···129129130130 buildInputs = [
131131 jemalloc
132132- openmpi
132132+ mpi
133133 glibcLocales
134134 git
135135
···11-{ stdenv, fetchurl, makeWrapper, jre }:
11+{ lib, stdenv, fetchurl, makeWrapper, jre }:
2233stdenv.mkDerivation rec {
44 version = "8.39";
···2222 runHook postInstall
2323 '';
24242525- meta = with stdenv.lib; {
2525+ meta = with lib; {
2626 description = "Checks Java source against a coding standard";
2727 longDescription = ''
2828 checkstyle is a development tool to help programmers write Java code that
···11-{ stdenv, fetchurl, perlPackages }:
11+{ lib, stdenv, fetchurl, perlPackages }:
2233perlPackages.buildPerlPackage rec {
44 pname = "egypt";
···15151616 doCheck = true;
17171818- meta = with stdenv.lib; {
1818+ meta = with lib; {
1919 description = "Tool for making call graphs of C programmes";
2020 longDescription = ''
2121 Egypt is a simple tool for creating call graphs of C programs. It neither
···11-{ stdenv, fetchgit }:
11+{ lib, stdenv, fetchgit }:
2233stdenv.mkDerivation {
44···1717 cp ./traceFileSim "$out/bin"
1818 '';
19192020- meta = with stdenv.lib; {
2020+ meta = with lib; {
2121 description = "Ease the analysis of existing memory management techniques, as well as the prototyping of new memory management techniques";
2222 homepage = "https://github.com/GarCoSim";
2323 maintainers = [ maintainers.cmcdragonkai ];
···6767 --replace "Exec=/opt/hopper-${rev}/bin/Hopper" "Exec=$out/bin/hopper"
6868 '';
69697070- meta = with stdenv.lib; {
7070+ meta = with lib; {
7171 homepage = "https://www.hopperapp.com/index.html";
7272 description = "A macOS and Linux Disassembler";
7373 license = licenses.unfree;
···11-{ stdenv, fetchurl, cmake, llvmPackages, python2 }:
11+{ lib, stdenv, fetchurl, cmake, llvmPackages, python2 }:
2233stdenv.mkDerivation rec {
44 pname = "include-what-you-use";
···2020 --replace "'include-what-you-use'" "'$out/bin/include-what-you-use'"
2121 '';
22222323- meta = with stdenv.lib; {
2323+ meta = with lib; {
2424 description = "Analyze #includes in C/C++ source files with clang";
2525 longDescription = ''
2626 For every symbol (type, function variable, or macro) that you use in
···11-{ stdenv
11+{ lib, stdenv
22, fetchFromGitHub
33, cmake
44, pkg-config
···4545 ./no-double-relative.patch
4646 ];
47474848- meta = with stdenv.lib; {
4848+ meta = with lib; {
4949 description = "Tool that generates a compilation database for clang tooling";
5050 longDescription = ''
5151 Note: the bear command is very useful to generate compilation commands
···8282 installShellCompletion --name bloop.fish --fish ${bloop-fish}
8383 '';
84848585- meta = with stdenv.lib; {
8585+ meta = with lib; {
8686 homepage = "https://scalacenter.github.io/bloop/";
8787 license = licenses.asl20;
8888 description = "A Scala build server and command-line tool to make the compile and test developer workflows fast and productive in a build-tool-agnostic way";
···2929 mv "$out/"*.1 "$out/share/man/man1/"
3030 '';
31313232- meta = with stdenv.lib; {
3232+ meta = with lib; {
3333 description = "An improved, cross-platform substitute for Make";
3434 longDescription = ''
3535 SCons is an Open Source software construction tool. Think of
···7070 rm -r $out/lib # it contains only systemd unit file
7171 '');
72727373- meta = with stdenv.lib; {
7373+ meta = with lib; {
7474 description = "Lightweight and modular continuous integration service";
7575 homepage = "https://laminar.ohwg.net";
7676 license = licenses.gpl3;
+2-2
pkgs/development/tools/corgi/default.nix
···11-{ stdenv, buildGoPackage, fetchFromGitHub }:
11+{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
2233buildGoPackage rec {
44 name = "corgi-${rev}";
···16161717 goDeps = ./deps.nix;
18181919- meta = with stdenv.lib; {
1919+ meta = with lib; {
2020 description = "CLI workflow manager";
2121 longDescription = ''
2222 Corgi is a command-line tool that helps with your repetitive command usages by organizing them into reusable snippet.
+3-3
pkgs/development/tools/coursier/default.nix
···11-{ stdenv, fetchurl, makeWrapper, jre, writeScript, common-updater-scripts
11+{ lib, stdenv, fetchurl, makeWrapper, jre, writeScript, common-updater-scripts
22, coreutils, git, gnused, nix, nixfmt }:
3344let
···3737 #!${stdenv.shell}
3838 set -o errexit
3939 PATH=${
4040- stdenv.lib.makeBinPath [
4040+ lib.makeBinPath [
4141 common-updater-scripts
4242 coreutils
4343 git
···6262 fi
6363 '';
64646565- meta = with stdenv.lib; {
6565+ meta = with lib; {
6666 homepage = "https://get-coursier.io/";
6767 description =
6868 "A Scala library to fetch dependencies from Maven / Ivy repositories";
+2-2
pkgs/development/tools/cppclean/default.nix
···11-{ stdenv, fetchFromGitHub, python3Packages }:
11+{ lib, stdenv, fetchFromGitHub, python3Packages }:
2233with python3Packages;
44···2121 ./test.bash
2222 '';
23232424- meta = with stdenv.lib; {
2424+ meta = with lib; {
2525 description = "Finds problems in C++ source that slow development of large code bases";
2626 homepage = "https://github.com/myint/cppclean";
2727 license = licenses.asl20;
+3-3
pkgs/development/tools/cue/default.nix
···11-{ buildGoModule, fetchgit, stdenv }:
11+{ buildGoModule, fetchgit, lib, stdenv }:
2233buildGoModule rec {
44 pname = "cue";
···2323 meta = {
2424 description = "A data constraint language which aims to simplify tasks involving defining and using data";
2525 homepage = "https://cuelang.org/";
2626- maintainers = with stdenv.lib.maintainers; [ solson ];
2727- license = stdenv.lib.licenses.asl20;
2626+ maintainers = with lib.maintainers; [ solson ];
2727+ license = lib.licenses.asl20;
2828 };
2929}
···11-{ stdenv, fetchFromGitHub }:
11+{ lib, stdenv, fetchFromGitHub }:
2233stdenv.mkDerivation rec {
44 pname = "dcadec";
···15151616 doCheck = false; # fails with "ERROR: Run 'git submodule update --init test/samples' first."
17171818- meta = with stdenv.lib; {
1818+ meta = with lib; {
1919 description = "DTS Coherent Acoustics decoder with support for HD extensions";
2020 maintainers = with maintainers; [ edwtjo ];
2121 homepage = "https://github.com/foo86/dcadec";
+2-2
pkgs/development/tools/deis/default.nix
···11-{ stdenv, buildGoPackage, fetchFromGitHub }:
11+{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
2233buildGoPackage rec {
44 pname = "deis";
···2525 export GOPATH=$GOPATH:$NIX_BUILD_TOP/go/src/${goPackagePath}/Godeps/_workspace
2626 '';
27272828- meta = with stdenv.lib; {
2828+ meta = with lib; {
2929 homepage = "https://deis.io";
3030 description = "A command line utility used to interact with the Deis open source PaaS";
3131 license = licenses.asl20;
+2-2
pkgs/development/tools/deisctl/default.nix
···11-{ stdenv, buildGoPackage, fetchFromGitHub }:
11+{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
2233buildGoPackage rec {
44 pname = "deis";
···1919 export GOPATH=$GOPATH:$NIX_BUILD_TOP/go/src/${goPackagePath}/Godeps/_workspace
2020 '';
21212222- meta = with stdenv.lib; {
2222+ meta = with lib; {
2323 homepage = "https://deis.io";
2424 description = "A command-line utility used to provision and operate a Deis cluster";
2525 license = licenses.asl20;
+2-2
pkgs/development/tools/delve/default.nix
···11-{ stdenv, buildGoPackage, fetchFromGitHub }:
11+{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
2233buildGoPackage rec {
44 pname = "delve";
···1414 sha256 = "10zvla2jqxqibxdk3zbnsxg63i0zcwcn9npvw3bbicwd2z4vvskk";
1515 };
16161717- meta = with stdenv.lib; {
1717+ meta = with lib; {
1818 description = "debugger for the Go programming language";
1919 homepage = "https://github.com/derekparker/delve";
2020 maintainers = with maintainers; [ vdemeester ];
···11-{ buildGoPackage, fetchFromGitHub, stdenv }:
11+{ buildGoPackage, fetchFromGitHub, lib, stdenv }:
2233buildGoPackage rec {
44 pname = "devd";
···1111 };
1212 goPackagePath = "github.com/cortesi/devd";
1313 subPackages = [ "cmd/devd" ];
1414- meta = with stdenv.lib; {
1414+ meta = with lib; {
1515 description = "A local webserver for developers";
1616 homepage = "https://github.com/cortesi/devd";
1717 license = licenses.mit;
+2-2
pkgs/development/tools/devpi-client/default.nix
···11-{ stdenv
11+{ lib, stdenv
22, buildPythonApplication
33, fetchPypi
44# buildInputs
···49495050 LC_ALL = "en_US.UTF-8";
51515252- meta = with stdenv.lib; {
5252+ meta = with lib; {
5353 homepage = "http://doc.devpi.net";
5454 description = "Client for devpi, a pypi index server and packaging meta tool";
5555 license = licenses.mit;
+3-3
pkgs/development/tools/devpi-server/default.nix
···11-{ stdenv, fetchFromGitHub, python3Packages, nginx }:
11+{ lib, stdenv, fetchFromGitHub, python3Packages, nginx }:
2233python3Packages.buildPythonApplication rec {
44 pname = "devpi-server";
···3333 pytestCheckHook
3434 pytest-flake8
3535 webtest
3636- ] ++ stdenv.lib.optionals isPy27 [ mock ];
3636+ ] ++ lib.optionals isPy27 [ mock ];
37373838 # root_passwd_hash tries to write to store
3939 # TestMirrorIndexThings tries to write to /var through ngnix
···5555 "TestMirrorIndexThings"
5656 ];
57575858- meta = with stdenv.lib;{
5858+ meta = with lib;{
5959 homepage = "http://doc.devpi.net";
6060 description = "Github-style pypi index server and packaging meta tool";
6161 license = licenses.mit;
···3535 backports_tempfile
3636 ];
37373838- meta = with stdenv.lib; {
3838+ meta = with lib; {
3939 description = "Project documentation with Markdown / static website generator";
4040 longDescription = ''
4141 MkDocs is a fast, simple and downright gorgeous static site generator that's
···11-{ stdenv
11+{ lib, stdenv
22, fetchurl
33, substituteAll
44, nixosTests
···145145 };
146146 };
147147148148- meta = with stdenv.lib; {
148148+ meta = with lib; {
149149 description = "Tool to build flatpaks from source";
150150 homepage = "https://github.com/flatpak/flatpak-builder";
151151 license = licenses.lgpl21Plus;
+2-2
pkgs/development/tools/flootty/default.nix
···11-{ stdenv, python3Packages }:
11+{ lib, stdenv, python3Packages }:
2233python3Packages.buildPythonApplication rec {
44 pname = "Flootty";
···99 sha256 = "0gfl143ly81pmmrcml91yr0ypvwrs5q4s1sfdc0l2qkqpy233ih7";
1010 };
11111212- meta = with stdenv.lib; {
1212+ meta = with lib; {
1313 description = "A collaborative terminal. In practice, it's similar to a shared screen or tmux session";
1414 homepage = "https://floobits.com/help/flootty";
1515 license = licenses.asl20;
+2-2
pkgs/development/tools/flyway/default.nix
···11-{ stdenv, fetchurl, jre_headless, makeWrapper }:
11+{ lib, stdenv, fetchurl, jre_headless, makeWrapper }:
22 let
33 version = "7.3.1";
44 in
···2222 --add-flags "org.flywaydb.commandline.Main" \
2323 --add-flags "-jarDirs='$out/share/flyway/jars'"
2424 '';
2525- meta = with stdenv.lib; {
2525+ meta = with lib; {
2626 description = "Evolve your Database Schema easily and reliably across all your instances";
2727 longDescription = ''
2828 The Flyway command-line tool is a standalone Flyway distribution.
···11-{ stdenv
11+{ lib, stdenv
22, fetchFromGitHub
33, makeWrapper
44, coreutils
···28282929 postInstall =
3030 let
3131- path = stdenv.lib.makeBinPath [
3131+ path = lib.makeBinPath [
3232 coreutils
3333 gawk
3434 git
···4141 wrapProgram $out/bin/git-quick-stats --suffix PATH : ${path}
4242 '';
43434444- meta = with stdenv.lib; {
4444+ meta = with lib; {
4545 homepage = "https://github.com/arzzen/git-quick-stats";
4646 description = "A simple and efficient way to access various statistics in git repository";
4747 platforms = platforms.all;
+2-2
pkgs/development/tools/git-series/default.nix
···11-{ stdenv, fetchFromGitHub, fetchpatch, rustPlatform
11+{ lib, stdenv, fetchFromGitHub, fetchpatch, rustPlatform
22, openssl, cmake, perl, pkg-config, zlib, curl, libgit2, libssh2
33}:
44···4343 install -D "$src/git-series.1" "$out/man/man1/git-series.1"
4444 '';
45454646- meta = with stdenv.lib; {
4646+ meta = with lib; {
4747 description = "A tool to help with formatting git patches for review on mailing lists";
4848 longDescription = ''
4949 git series tracks changes to a patch series over time. git
+2-2
pkgs/development/tools/github/cligh/default.nix
···11-{ stdenv, fetchFromGitHub, buildPythonApplication, pyxdg, PyGithub }:
11+{ lib, stdenv, fetchFromGitHub, buildPythonApplication, pyxdg, PyGithub }:
2233buildPythonApplication rec {
44 pname = "cligh";
···15151616 propagatedBuildInputs = [ pyxdg PyGithub ];
17171818- meta = with stdenv.lib; {
1818+ meta = with lib; {
1919 homepage = "http://the-brannons.com/software/cligh.html";
2020 description = "A simple command-line interface to the facilities of Github";
2121 longDescription = ''
···11-{ stdenv, system, fetchurl }:
11+{ lib, stdenv, system, fetchurl }:
2233let
44 linuxPredicate = system == "x86_64-linux";
···3636 cp "${metadata.archiveBinaryPath}/github-release" "$out/bin/"
3737 '';
38383939- meta = with stdenv.lib; {
3939+ meta = with lib; {
4040 description = "Commandline app to create and edit releases on Github (and upload artifacts)";
4141 longDescription = ''
4242 A small commandline app written in Go that allows you to easily create and
···11-{ stdenv, buildGoPackage, fetchFromGitHub }:
11+{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
2233buildGoPackage rec {
44 pname = "go-bindata-assetfs";
···1313 sha256 = "0b6q8h9fwpgpkvml1j87wq9174g7px1dmskhm884drpvswda2djk";
1414 };
15151616- meta = with stdenv.lib; {
1616+ meta = with lib; {
1717 description = "Serve embedded files from jteeuwen/go-bindata";
1818 license = licenses.bsd2;
1919 maintainers = with maintainers; [ avnik ];
+2-2
pkgs/development/tools/go-bindata/default.nix
···11-{ stdenv, buildGoPackage, fetchFromGitHub }:
11+{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
2233buildGoPackage {
44 pname = "go-bindata";
···15151616 excludedPackages = "testdata";
17171818- meta = with stdenv.lib; {
1818+ meta = with lib; {
1919 homepage = "https://github.com/jteeuwen/go-bindata";
2020 description = "A small utility which generates Go code from any file, useful for embedding binary data in a Go program";
2121 maintainers = with maintainers; [ cstrahan ];
+2-2
pkgs/development/tools/go-langserver/default.nix
···11-{ stdenv, buildGoPackage, fetchFromGitHub }:
11+{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
2233buildGoPackage rec {
44 pname = "go-langserver";
···1414 sha256 = "1wv7xf81s3qi8xydxjkkp8vacdzrq8sbj04346fz73nsn85z0sgp";
1515 };
16161717- meta = with stdenv.lib; {
1717+ meta = with lib; {
1818 description = "A Go language server protocol server";
1919 homepage = "https://github.com/sourcegraph/go-langserver";
2020 license = licenses.mit;
+3-3
pkgs/development/tools/go-outline/default.nix
···11-{ stdenv, buildGoPackage, fetchFromGitHub }:
11+{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
2233buildGoPackage rec {
44 pname = "go-outline";
···1818 meta = {
1919 description = "Utility to extract JSON representation of declarations from a Go source file";
2020 homepage = "https://github.com/ramya-rao-a/go-outline";
2121- maintainers = with stdenv.lib.maintainers; [ vdemeester ];
2222- license = stdenv.lib.licenses.mit;
2121+ maintainers = with lib.maintainers; [ vdemeester ];
2222+ license = lib.licenses.mit;
2323 };
2424}
+2-2
pkgs/development/tools/go-protobuf/default.nix
···11-{ stdenv, buildGoModule, fetchFromGitHub }:
11+{ lib, stdenv, buildGoModule, fetchFromGitHub }:
2233buildGoModule rec {
44 pname = "go-protobuf";
···15151616 doCheck = false;
17171818- meta = with stdenv.lib; {
1818+ meta = with lib; {
1919 homepage = "https://github.com/golang/protobuf";
2020 description = " Go bindings for protocol buffer";
2121 maintainers = with maintainers; [ lewo ];
···11-{ stdenv, buildGoPackage, fetchFromGitHub }:
11+{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
2233buildGoPackage rec {
44 pname = "go-symbols";
···1717 meta = {
1818 description = "A utility for extracting a JSON representation of the package symbols from a go source tree";
1919 homepage = "https://github.com/acroca/go-symbols";
2020- maintainers = with stdenv.lib.maintainers; [ vdemeester ];
2121- license = stdenv.lib.licenses.mit;
2020+ maintainers = with lib.maintainers; [ vdemeester ];
2121+ license = lib.licenses.mit;
2222 };
2323}
+2-2
pkgs/development/tools/go2nix/default.nix
···11-{ stdenv, buildGoPackage, go-bindata, gotools, nix-prefetch-git, git, makeWrapper,
11+{ lib, stdenv, buildGoPackage, go-bindata, gotools, nix-prefetch-git, git, makeWrapper,
22 fetchFromGitHub }:
3344buildGoPackage rec {
···36363737 doCheck = false; # tries to access the net
38383939- meta = with stdenv.lib; {
3939+ meta = with lib; {
4040 description = "Go apps packaging for Nix";
4141 homepage = "https://github.com/kamilchm/go2nix";
4242 license = licenses.mit;
+2-2
pkgs/development/tools/goa/default.nix
···11-{ stdenv, buildGoPackage, fetchFromGitHub }:
11+{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
2233buildGoPackage rec {
44 pname = "goa";
···16161717 goDeps = ./deps.nix;
18181919- meta = with stdenv.lib; {
1919+ meta = with lib; {
2020 homepage = "https://goa.design";
2121 description = "A framework for building microservices in Go using a unique design-first approach";
2222 license = licenses.mit;
+2-2
pkgs/development/tools/gocode-gomod/default.nix
···11-{ stdenv, buildGoModule, fetchFromGitHub }:
11+{ lib, stdenv, buildGoModule, fetchFromGitHub }:
2233buildGoModule rec {
44 pname = "gocode-gomod";
···2424 mv $out/bin/gocode $out/bin/gocode-gomod
2525 '';
26262727- meta = with stdenv.lib; {
2727+ meta = with lib; {
2828 description = "An autocompletion daemon for the Go programming language";
2929 longDescription = ''
3030 Gocode is a helper tool which is intended to be integrated with your
+2-2
pkgs/development/tools/gocode/default.nix
···11-{ stdenv, buildGoPackage, fetchFromGitHub }:
11+{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
2233buildGoPackage rec {
44 pname = "gocode-unstable";
···23232424 goDeps = ./deps.nix;
25252626- meta = with stdenv.lib; {
2626+ meta = with lib; {
2727 description = "An autocompletion daemon for the Go programming language";
2828 longDescription = ''
2929 Gocode is a helper tool which is intended to be integrated with your
+3-3
pkgs/development/tools/goconvey/default.nix
···11-{ stdenv, buildGoPackage, fetchFromGitHub }:
11+{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
2233buildGoPackage rec {
44 pname = "goconvey";
···1919 meta = {
2020 description = "Go testing in the browser. Integrates with `go test`. Write behavioral tests in Go";
2121 homepage = "https://github.com/smartystreets/goconvey";
2222- maintainers = with stdenv.lib.maintainers; [ vdemeester ];
2323- license = stdenv.lib.licenses.mit;
2222+ maintainers = with lib.maintainers; [ vdemeester ];
2323+ license = lib.licenses.mit;
2424 };
2525}
+3-3
pkgs/development/tools/godef/default.nix
···11-{ stdenv, buildGoModule, fetchFromGitHub }:
11+{ lib, stdenv, buildGoModule, fetchFromGitHub }:
2233buildGoModule rec {
44 pname = "godef";
···2121 meta = {
2222 description = "Print where symbols are defined in Go source code";
2323 homepage = "https://github.com/rogpeppe/godef/";
2424- maintainers = with stdenv.lib.maintainers; [ vdemeester rvolosatovs ];
2525- license = stdenv.lib.licenses.bsd3;
2424+ maintainers = with lib.maintainers; [ vdemeester rvolosatovs ];
2525+ license = lib.licenses.bsd3;
2626 };
2727}
+2-2
pkgs/development/tools/godot/default.nix
···6161 meta = {
6262 homepage = "https://godotengine.org";
6363 description = "Free and Open Source 2D and 3D game engine";
6464- license = stdenv.lib.licenses.mit;
6464+ license = lib.licenses.mit;
6565 platforms = [ "i686-linux" "x86_64-linux" ];
6666- maintainers = [ stdenv.lib.maintainers.twey ];
6666+ maintainers = [ lib.maintainers.twey ];
6767 };
6868}
+2-2
pkgs/development/tools/godot/headless.nix
···11-{ godot, stdenv }:
11+{ godot, lib, stdenv }:
22godot.overrideAttrs (oldAttrs: rec {
33 pname = "godot-headless";
44 sconsFlags = "target=release_debug platform=server tools=yes";
···1414 '';
1515 meta.description =
1616 "Free and Open Source 2D and 3D game engine (headless build)";
1717- meta.maintainers = with stdenv.lib.maintainers; [ twey yusdacra ];
1717+ meta.maintainers = with lib.maintainers; [ twey yusdacra ];
1818})
+2-2
pkgs/development/tools/godot/server.nix
···11-{ godot, stdenv }:
11+{ godot, lib, stdenv }:
22godot.overrideAttrs (oldAttrs: rec {
33 pname = "godot-server";
44 sconsFlags = "target=release platform=server tools=no";
···1414 '';
1515 meta.description =
1616 "Free and Open Source 2D and 3D game engine (server build)";
1717- meta.maintainers = with stdenv.lib.maintainers; [ twey yusdacra ];
1717+ meta.maintainers = with lib.maintainers; [ twey yusdacra ];
1818})
+3-3
pkgs/development/tools/golint/default.nix
···11-{ stdenv, buildGoPackage, fetchgit }:
11+{ lib, stdenv, buildGoPackage, fetchgit }:
2233buildGoPackage rec {
44 pname = "lint";
55- version = "20181026-${stdenv.lib.strings.substring 0 7 rev}";
55+ version = "20181026-${lib.strings.substring 0 7 rev}";
66 rev = "c67002cb31c3a748b7688c27f20d8358b4193582";
7788 goPackagePath = "golang.org/x/lint";
···20202121 goDeps = ./deps.nix;
22222323- meta = with stdenv.lib; {
2323+ meta = with lib; {
2424 homepage = "https://golang.org";
2525 description = "Linter for Go source code";
2626 license = licenses.bsd3;
···11-{ stdenv, cmake, llvmPackages, irony }:
11+{ lib, stdenv, cmake, llvmPackages, irony }:
2233stdenv.mkDerivation {
44 pname = "irony-server";
···1515 "-DCMAKE_PREFIX_PATH=${llvmPackages.clang-unwrapped}"
1616 ];
17171818- meta = with stdenv.lib; {
1818+ meta = with lib; {
1919 description = "The server part of irony";
2020 homepage = "https://melpa.org/#/irony";
2121 maintainers = [ maintainers.deepfire ];
+2-2
pkgs/development/tools/java/cfr/default.nix
···11-{ stdenv, makeWrapper, fetchurl, jre }:
11+{ lib, stdenv, makeWrapper, fetchurl, jre }:
2233stdenv.mkDerivation rec {
44 pname = "cfr";
···1717 makeWrapper ${jre}/bin/java $out/bin/cfr --add-flags "-jar $jar"
1818 '';
19192020- meta = with stdenv.lib; {
2020+ meta = with lib; {
2121 description = "Another java decompiler";
2222 longDescription = ''
2323 CFR will decompile modern Java features - Java 8 lambdas (pre and post
+1-1
pkgs/development/tools/java/dex2jar/default.nix
···3434 done
3535 '';
36363737- meta = with stdenv.lib; {
3737+ meta = with lib; {
3838 homepage = https://sourceforge.net/projects/dex2jar/;
3939 description = "Tools to work with android .dex and java .class files";
4040 maintainers = with maintainers; [ makefu ];
···3333 cp -r . $out
3434 '';
35353636- meta = with stdenv.lib; {
3636+ meta = with lib; {
3737 description = "A visual interface for viewing information about Java applications";
3838 longDescription = ''
3939 VisualVM is a visual tool integrating several commandline JDK
+2-2
pkgs/development/tools/jbake/default.nix
···11-{ stdenv, fetchzip, makeWrapper, jre }:
11+{ lib, stdenv, fetchzip, makeWrapper, jre }:
2233stdenv.mkDerivation rec {
44 version = "2.6.5";
···2525 '';
2626 doCheck = true;
27272828- meta = with stdenv.lib; {
2828+ meta = with lib; {
2929 description = "Java based, open source, static site/blog generator for developers & designers";
3030 homepage = "https://jbake.org/";
3131 license = licenses.mit;
+1-1
pkgs/development/tools/jbang/default.nix
···2626 $out/bin/jbang --version 2>&1 | grep -q "${version}"
2727 '';
28282929- meta = with stdenv.lib; {
2929+ meta = with lib; {
3030 description = "Run java as scripts anywhere";
3131 longDescription = ''
3232 jbang uses the java language to build scripts similar to groovy scripts. Dependencies are automatically
···11-{stdenv, fetchurl, m4, perl, lzma}:
11+{lib, stdenv, fetchurl, m4, perl, lzma}:
2233stdenv.mkDerivation rec {
44 name = "autoconf-2.13";
···3434 can use, in the form of M4 macro calls.
3535 '';
36363737- license = stdenv.lib.licenses.gpl2Plus;
3838- platforms = stdenv.lib.platforms.unix;
3737+ license = lib.licenses.gpl2Plus;
3838+ platforms = lib.platforms.unix;
3939 };
4040}
+3-3
pkgs/development/tools/misc/autoconf/2.64.nix
···11-{ stdenv, fetchurl, m4, perl }:
11+{ lib, stdenv, fetchurl, m4, perl }:
2233stdenv.mkDerivation rec {
44 name = "autoconf-2.64";
···4444 can use, in the form of M4 macro calls.
4545 '';
46464747- license = stdenv.lib.licenses.gpl2Plus;
4747+ license = lib.licenses.gpl2Plus;
48484949- platforms = stdenv.lib.platforms.all;
4949+ platforms = lib.platforms.all;
5050 };
5151}
+3-3
pkgs/development/tools/misc/autoconf/2.69.nix
···11-{ stdenv, fetchurl, m4, perl }:
11+{ lib, stdenv, fetchurl, m4, perl }:
2233stdenv.mkDerivation rec {
44 name = "autoconf-2.69";
···4545 can use, in the form of M4 macro calls.
4646 '';
47474848- license = stdenv.lib.licenses.gpl2Plus;
4848+ license = lib.licenses.gpl2Plus;
49495050- platforms = stdenv.lib.platforms.all;
5050+ platforms = lib.platforms.all;
5151 };
5252}
+3-3
pkgs/development/tools/misc/autoconf/default.nix
···11-{ stdenv, fetchurl, m4, perl }:
11+{ lib, stdenv, fetchurl, m4, perl }:
2233# Note: this package is used for bootstrapping fetchurl, and thus
44# cannot use fetchpatch! All mutable patches (generated by GitHub or
···4747 can use, in the form of M4 macro calls.
4848 '';
49495050- license = stdenv.lib.licenses.gpl3Plus;
5050+ license = lib.licenses.gpl3Plus;
51515252- platforms = stdenv.lib.platforms.all;
5252+ platforms = lib.platforms.all;
5353 };
5454}
+5-5
pkgs/development/tools/misc/autogen/default.nix
···11-{ stdenv, buildPackages, fetchurl, autoreconfHook, which, pkg-config, perl, guile, libxml2 }:
11+{ lib, stdenv, buildPackages, fetchurl, autoreconfHook, which, pkg-config, perl, guile, libxml2 }:
2233stdenv.mkDerivation rec {
44 pname = "autogen";
···34343535 nativeBuildInputs = [
3636 which pkg-config perl autoreconfHook/*patches applied*/
3737- ] ++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
3737+ ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
3838 # autogen needs a build autogen when cross-compiling
3939 buildPackages.buildPackages.autogen buildPackages.texinfo
4040 ];
···5656 # Debian: https://salsa.debian.org/debian/autogen/-/blob/master/debian/rules#L21
5757 "--enable-timeout=78"
5858 ]
5959- ++ (stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
5959+ ++ (lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
6060 "--with-libxml2=${libxml2.dev}"
6161 "--with-libxml2-cflags=-I${libxml2.dev}/include/libxml2"
6262 # the configure check for regcomp wants to run a host program
···7676 sed -e "s|$lib/lib|/no-such-autogen-lib-path|" -i $f
7777 done
78787979- '' + stdenv.lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
7979+ '' + lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
8080 # remove /build/** from RPATHs
8181 for f in "$bin"/bin/*; do
8282 local nrp="$(patchelf --print-rpath "$f" | sed -E 's@(:|^)/build/[^:]*:@\1@g')"
···8484 done
8585 '';
86868787- meta = with stdenv.lib; {
8787+ meta = with lib; {
8888 description = "Automated text and program generation tool";
8989 license = with licenses; [ gpl3Plus lgpl3Plus ];
9090 homepage = "https://www.gnu.org/software/autogen/";
···11-{ stdenv, fetchurl, libelf, txt2man }:
11+{ lib, stdenv, fetchurl, libelf, txt2man }:
2233stdenv.mkDerivation {
44 pname = "bin_replace_string";
···14141515 enableParallelBuilding = true;
16161717- meta = with stdenv.lib; {
1717+ meta = with lib; {
1818 description = "Edit precompiled binaries";
1919 longDescription = ''
2020 bin_replace_string edits C-style strings in precompiled binaries. This is
+2-2
pkgs/development/tools/misc/bossa/default.nix
···11-{ stdenv, fetchgit, wxGTK, libX11, readline }:
11+{ lib, stdenv, fetchgit, wxGTK, libX11, readline }:
2233let
44 # BOSSA needs a "bin2c" program to embed images.
···3636 cp bin/bossa{c,sh,} $out/bin/
3737 '';
38383939- meta = with stdenv.lib; {
3939+ meta = with lib; {
4040 description = "A flash programming utility for Atmel's SAM family of flash-based ARM microcontrollers";
4141 longDescription = ''
4242 BOSSA is a flash programming utility for Atmel's SAM family of
+3-3
pkgs/development/tools/misc/bsdbuild/default.nix
···11-{ stdenv, fetchurl, perl, libtool, pkg-config, gettext, mandoc, ed }:
11+{ lib, stdenv, fetchurl, perl, libtool, pkg-config, gettext, mandoc, ed }:
2233stdenv.mkDerivation rec {
44 pname = "bsdbuild";
···6262 directory, BSDBuild will produce the required Makefiles in place).
6363 '';
64646565- license = stdenv.lib.licenses.bsd3;
6666- platforms = stdenv.lib.platforms.linux;
6565+ license = lib.licenses.bsd3;
6666+ platforms = lib.platforms.linux;
6767 };
6868}
···11-{ stdenv
11+{ lib, stdenv
22, fetchFromGitHub
33, autoreconfHook
44, boost
···2929 install -D udev/90-cc-debugger.rules $out/lib/udev/rules.d/90-cc-debugger.rules
3030 '';
31313232- meta = with stdenv.lib; {
3232+ meta = with lib; {
3333 description = "Command line tool for the Texas Instruments CC Debugger";
3434 longDescription = ''
3535 cc-tool provides support for Texas Instruments CC Debugger
+2-2
pkgs/development/tools/misc/ccache/default.nix
···6060 local cname="$1"
6161 if [ -x "${unwrappedCC}/bin/$cname" ]; then
6262 makeWrapper ${ccache}/bin/ccache $out/bin/$cname \
6363- --run ${stdenv.lib.escapeShellArg extraConfig} \
6363+ --run ${lib.escapeShellArg extraConfig} \
6464 --add-flags ${unwrappedCC}/bin/$cname
6565 fi
6666 }
···8484 };
8585 };
86868787- meta = with stdenv.lib; {
8787+ meta = with lib; {
8888 description = "Compiler cache for fast recompilation of C/C++ code";
8989 homepage = "https://ccache.dev";
9090 downloadPage = "https://ccache.dev/download.html";
+3-3
pkgs/development/tools/misc/ccls/default.nix
···11-{ stdenv, fetchFromGitHub
11+{ lib, stdenv, fetchFromGitHub
22, cmake, llvmPackages, rapidjson, runtimeShell }:
3344stdenv.mkDerivation rec {
···2525 postFixup = ''
2626 # We need to tell ccls where to find the standard library headers.
27272828- standard_library_includes="\\\"-isystem\\\", \\\"${stdenv.lib.getDev stdenv.cc.libc}/include\\\""
2828+ standard_library_includes="\\\"-isystem\\\", \\\"${lib.getDev stdenv.cc.libc}/include\\\""
2929 standard_library_includes+=", \\\"-isystem\\\", \\\"${llvmPackages.libcxx}/include/c++/v1\\\""
3030 export standard_library_includes
3131···3737 chmod --reference=$out/bin/$wrapped $out/bin/ccls
3838 '';
39394040- meta = with stdenv.lib; {
4040+ meta = with lib; {
4141 description = "A c/c++ language server powered by clang";
4242 homepage = "https://github.com/MaskRay/ccls";
4343 license = licenses.asl20;
+4-4
pkgs/development/tools/misc/cflow/default.nix
···11-{ stdenv, fetchurl, gettext, emacs }:
11+{ lib, stdenv, fetchurl, gettext, emacs }:
2233stdenv.mkDerivation rec {
44 name = "cflow-1.6";
···16161717 buildInputs = [ gettext ] ++
1818 # We don't have Emacs/GTK/etc. on {Dar,Cyg}win.
1919- stdenv.lib.optional
2020- (! (stdenv.lib.lists.any (x: stdenv.hostPlatform.system == x)
1919+ lib.optional
2020+ (! (lib.lists.any (x: stdenv.hostPlatform.system == x)
2121 [ "i686-cygwin" ]))
2222 emacs;
23232424 doCheck = true;
25252626- meta = with stdenv.lib; {
2626+ meta = with lib; {
2727 description = "Tool to analyze the control flow of C programs";
28282929 longDescription = ''
+2-2
pkgs/development/tools/misc/cgdb/default.nix
···11-{ stdenv, fetchurl, ncurses, readline, flex, texinfo }:
11+{ lib, stdenv, fetchurl, ncurses, readline, flex, texinfo }:
2233stdenv.mkDerivation rec {
44 pname = "cgdb";
···11111212 buildInputs = [ ncurses readline flex texinfo ];
13131414- meta = with stdenv.lib; {
1414+ meta = with lib; {
1515 description = "A curses interface to gdb";
16161717 homepage = "https://cgdb.github.io/";
···11-{ stdenv, fetchurl }:
11+{ lib, stdenv, fetchurl }:
2233stdenv.mkDerivation {
44 name = "chrpath-0.16";
···88 sha256 = "0yvfq891mcdkf8g18gjjkn2m5rvs8z4z4cl1vwdhx6f2p9a4q3dv";
99 };
10101111- meta = with stdenv.lib; {
1111+ meta = with lib; {
1212 description = "Command line tool to adjust the RPATH or RUNPATH of ELF binaries";
1313 longDescription = ''
1414 chrpath changes, lists or removes the rpath or runpath setting in a
···11-{ fetchurl, stdenv }:
11+{ fetchurl, lib, stdenv }:
2233stdenv.mkDerivation rec {
44 name = "cppi-1.18";
···2323 to the level of nesting of that directive.
2424 '';
25252626- license = stdenv.lib.licenses.gpl3Plus;
2626+ license = lib.licenses.gpl3Plus;
27272828 maintainers = [ ];
2929- platforms = stdenv.lib.platforms.all;
2929+ platforms = lib.platforms.all;
3030 };
3131}
+2-2
pkgs/development/tools/misc/cproto/default.nix
···11-{ stdenv, fetchurl, flex, bison }:
11+{ lib, stdenv, fetchurl, flex, bison }:
2233stdenv.mkDerivation rec {
44 pname = "cproto";
···2525 [ "$("$out/bin/cproto" -V 2>&1)" = '${version}' ]
2626 '';
27272828- meta = with stdenv.lib; {
2828+ meta = with lib; {
2929 description = "Tool to generate C function prototypes from C source code";
3030 homepage = "https://invisible-island.net/cproto/";
3131 license = licenses.publicDomain;
+3-3
pkgs/development/tools/misc/creduce/default.nix
···11-{ stdenv, fetchurl, cmake, makeWrapper
11+{ lib, stdenv, fetchurl, cmake, makeWrapper
22, llvm, clang-unwrapped
33, flex
44, zlib
···2727 # On Linux, c-reduce's preferred way to reason about
2828 # the cpu architecture/topology is to use 'lscpu',
2929 # so let's make sure it knows where to find it:
3030- postPatch = stdenv.lib.optionalString stdenv.isLinux ''
3030+ postPatch = lib.optionalString stdenv.isLinux ''
3131 substituteInPlace creduce/creduce_utils.pm --replace \
3232 lscpu ${util-linux}/bin/lscpu
3333 '';
···3636 wrapProgram $out/bin/creduce --prefix PERL5LIB : "$PERL5LIB"
3737 '';
38383939- meta = with stdenv.lib; {
3939+ meta = with lib; {
4040 description = "A C program reducer";
4141 homepage = "https://embed.cs.utah.edu/creduce";
4242 # Officially, the license is: https://github.com/csmith-project/creduce/blob/master/COPYING
···11-{ stdenv, fetchurl, m4, makeWrapper, libbsd, perlPackages }:
11+{ lib, stdenv, fetchurl, m4, makeWrapper, libbsd, perlPackages }:
2233stdenv.mkDerivation rec {
44 pname = "csmith";
···31313232 enableParallelBuilding = true;
33333434- meta = with stdenv.lib; {
3434+ meta = with lib; {
3535 description = "A random generator of C programs";
3636 homepage = "https://embed.cs.utah.edu/csmith";
3737 # Officially, the license is this: https://github.com/csmith-project/csmith/blob/master/COPYING
+2-2
pkgs/development/tools/misc/ctags/default.nix
···11-{ stdenv, fetchsvn, autoreconfHook }:
11+{ lib, stdenv, fetchsvn, autoreconfHook }:
2233stdenv.mkDerivation rec {
44 name = "ctags-${revision}";
···1515 # don't use $T(E)MP which is set to the build directory
1616 configureFlags= [ "--enable-tmpdir=/tmp" ];
17171818- meta = with stdenv.lib; {
1818+ meta = with lib; {
1919 description = "A tool for fast source code browsing (exuberant ctags)";
2020 longDescription = ''
2121 Ctags generates an index (or tag) file of language objects found
+2-2
pkgs/development/tools/misc/cwebbin/default.nix
···11-{ stdenv, fetchFromGitHub, fetchurl, tie }:
11+{ lib, stdenv, fetchFromGitHub, fetchurl, tie }:
2233stdenv.mkDerivation rec {
44 pname = "cwebbin";
···4141 make -f Makefile.unix install $makeFlags
4242 '';
43434444- meta = with stdenv.lib; {
4444+ meta = with lib; {
4545 inherit (src.meta) homepage;
4646 description = "Literate Programming in C/C++";
4747 platforms = with platforms; unix;
+3-3
pkgs/development/tools/misc/d-feet/default.nix
···11-{ stdenv
11+{ lib, stdenv
22, pkg-config
33, fetchurl
44, meson
···2121 format = "other";
22222323 src = fetchurl {
2424- url = "mirror://gnome/sources/d-feet/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2424+ url = "mirror://gnome/sources/d-feet/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2525 sha256 = "1cgxgpj546jgpyns6z9nkm5k48lid8s36mvzj8ydkjqws2d19zqz";
2626 };
2727···6868 };
6969 };
70707171- meta = with stdenv.lib; {
7171+ meta = with lib; {
7272 description = "D-Feet is an easy to use D-Bus debugger";
7373 longDescription = ''
7474 D-Feet can be used to inspect D-Bus interfaces of running programs
+2-2
pkgs/development/tools/misc/dbench/default.nix
···11-{ stdenv, fetchgit, autoconf, popt, zlib, rpcsvc-proto, libtirpc }:
11+{ lib, stdenv, fetchgit, autoconf, popt, zlib, rpcsvc-proto, libtirpc }:
2233stdenv.mkDerivation {
44 name = "dbench-2013-01-01";
···3535 ln -s dbench/doc/dbench/loadfiles $out/share/loadfiles
3636 '';
37373838- meta = with stdenv.lib; {
3838+ meta = with lib; {
3939 description = "Filesystem benchmark tool based on load patterns";
4040 homepage = "https://dbench.samba.org/";
4141 license = licenses.gpl3;
···11-{ stdenv, fetchurl, libusb-compat-0_1 }:
11+{ lib, stdenv, fetchurl, libusb-compat-0_1 }:
22let
33 version = "0.7.2";
44in
···15151616 configureFlags = [ "--disable-libusb_1_0" ];
17171818- meta = with stdenv.lib; {
1818+ meta = with lib; {
1919 license = licenses.gpl2;
2020 description = "A Device Firmware Update based USB programmer for Atmel chips with a USB bootloader";
2121 homepage = "http://dfu-programmer.sourceforge.net/";
+2-2
pkgs/development/tools/misc/dfu-util/default.nix
···11-{ stdenv, fetchurl, pkg-config, libusb1 }:
11+{ lib, stdenv, fetchurl, pkg-config, libusb1 }:
2233stdenv.mkDerivation rec {
44 pname = "dfu-util";
···1212 sha256 = "0hlvc47ccf5hry13saqhc1j5cdq5jyjv4i05kj0mdh3rzj6wagd0";
1313 };
14141515- meta = with stdenv.lib; {
1515+ meta = with lib; {
1616 description = "Device firmware update (DFU) USB programmer";
1717 longDescription = ''
1818 dfu-util is a program that implements the host (PC) side of the USB
···11-{ fetchurl, stdenv, libtool, makeWrapper
11+{ fetchurl, lib, stdenv, libtool, makeWrapper
22, coreutils, ctags, ncurses, pythonPackages, sqlite, universal-ctags
33}:
44···3939 --prefix PYTHONPATH : "$(toPythonPath ${pythonPackages.pygments})"
4040 '';
41414242- meta = with stdenv.lib; {
4242+ meta = with lib; {
4343 description = "Source code tag system";
4444 longDescription = ''
4545 GNU GLOBAL is a source code tagging system that works the same way
+4-4
pkgs/development/tools/misc/gnum4/default.nix
···11-{ stdenv, fetchurl }:
11+{ lib, stdenv, fetchurl }:
2233# Note: this package is used for bootstrapping fetchurl, and thus
44# cannot use fetchpatch! All mutable patches (generated by GitHub or
···2626 sha256 = "12lmdnbml9lfvy0khpjc42riicddaz7li8wmbnsam7zsw6al11qk";
2727 })
2828 ]
2929- ++ stdenv.lib.optional stdenv.isDarwin ./darwin-secure-format.patch;
2929+ ++ lib.optional stdenv.isDarwin ./darwin-secure-format.patch;
30303131 meta = {
3232 homepage = "https://www.gnu.org/software/m4/";
···4949 compiler or as a macro processor in its own right.
5050 '';
51515252- license = stdenv.lib.licenses.gpl3Plus;
5353- platforms = stdenv.lib.platforms.unix ++ stdenv.lib.platforms.windows;
5252+ license = lib.licenses.gpl3Plus;
5353+ platforms = lib.platforms.unix ++ lib.platforms.windows;
5454 };
55555656}
···1919 pkg-config
2020 ];
21212222- meta = with stdenv.lib; {
2222+ meta = with lib; {
2323 description = "A client for the Hydra CI";
2424 homepage = "https://github.com/nlewo/hydra-cli";
2525 license = with licenses; [ mit ];
+1-1
pkgs/development/tools/misc/hydra/common.nix
···128128129129 passthru = { inherit perlDeps migration tests; };
130130131131- meta = with stdenv.lib; {
131131+ meta = with lib; {
132132 description = "Nix-based continuous build system";
133133 license = licenses.gpl3;
134134 platforms = platforms.linux;
···11-{ stdenv, fetchurl, pkg-config, bison, flex, gperf, ncurses, pythonPackages }:
11+{ lib, stdenv, fetchurl, pkg-config, bison, flex, gperf, ncurses, pythonPackages }:
2233stdenv.mkDerivation rec {
44 basename = "kconfig-frontends";
···2121 wrapPythonPrograms
2222 '';
23232424- NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=format-security";
2424+ NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=format-security";
25252626- meta = with stdenv.lib; {
2626+ meta = with lib; {
2727 description = "Out of Linux tree packaging of the kconfig infrastructure";
2828 longDescription = ''
2929 Configuration language and system for the Linux kernel and other
+2-2
pkgs/development/tools/misc/kdbg/default.nix
···11-{ stdenv, fetchurl, cmake, extra-cmake-modules, qt5,
11+{ lib, stdenv, fetchurl, cmake, extra-cmake-modules, qt5,
22 ki18n, kconfig, kiconthemes, kxmlgui, kwindowsystem,
33 qtbase, makeWrapper,
44}:
···1818 wrapProgram $out/bin/kdbg --prefix QT_PLUGIN_PATH : ${qtbase}/${qtbase.qtPluginPrefix}
1919 '';
20202121- meta = with stdenv.lib; {
2121+ meta = with lib; {
2222 homepage = "https://www.kdbg.org/";
2323 description = ''
2424 A graphical user interface to gdb, the GNU debugger. It provides an
···11-{ stdenv, fetchgit, cmake, elfutils, zlib }:
11+{ lib, stdenv, fetchgit, cmake, elfutils, zlib }:
2233stdenv.mkDerivation rec {
44 pname = "pahole";
···1515 # Put libraries in "lib" subdirectory, not top level of $out
1616 cmakeFlags = [ "-D__LIB=lib" ];
17171818- meta = with stdenv.lib; {
1818+ meta = with lib; {
1919 homepage = "https://git.kernel.org/cgit/devel/pahole/pahole.git/";
2020 description = "Pahole and other DWARF utils";
2121 license = licenses.gpl2;
+2-2
pkgs/development/tools/misc/patchelf/default.nix
···11-{ stdenv, fetchurl }:
11+{ lib, stdenv, fetchurl }:
2233# Note: this package is used for bootstrapping fetchurl, and thus
44# cannot use fetchpatch! All mutable patches (generated by GitHub or
···1919 # fails 8 out of 24 tests, problems when loading libc.so.6
2020 doCheck = stdenv.name == "stdenv-linux";
21212222- meta = with stdenv.lib; {
2222+ meta = with lib; {
2323 homepage = "https://github.com/NixOS/patchelf/blob/master/README";
2424 license = licenses.gpl3;
2525 description = "A small utility to modify the dynamic linker and RPATH of ELF executables";
+3-3
pkgs/development/tools/misc/patchelf/unstable.nix
···11-{ stdenv, fetchurl, autoreconfHook, fetchFromGitHub }:
11+{ lib, stdenv, fetchurl, autoreconfHook, fetchFromGitHub }:
2233stdenv.mkDerivation rec {
44 name = "patchelf-${version}";
···1212 };
13131414 # Drop test that fails on musl (?)
1515- postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
1515+ postPatch = lib.optionalString stdenv.hostPlatform.isMusl ''
1616 substituteInPlace tests/Makefile.am \
1717 --replace "set-rpath-library.sh" ""
1818 '';
···24242525 doCheck = !stdenv.isDarwin;
26262727- meta = with stdenv.lib; {
2727+ meta = with lib; {
2828 homepage = "https://github.com/NixOS/patchelf/blob/master/README";
2929 license = licenses.gpl3;
3030 description = "A small utility to modify the dynamic linker and RPATH of ELF executables";
···11-{ stdenv, fetchurl, libarchive, python3, file }:
11+{ lib, stdenv, fetchurl, libarchive, python3, file }:
2233stdenv.mkDerivation rec {
44 pname = "remarkable2-toolchain";
···2929 ./install-toolchain.sh -D -y -d $out
3030 '';
31313232- meta = with stdenv.lib; {
3232+ meta = with lib; {
3333 description = "A toolchain for cross-compiling to reMarkable 2 tablets";
3434 homepage = "https://remarkable.engineering/";
3535 license = licenses.gpl2Plus;
+2-2
pkgs/development/tools/misc/rman/default.nix
···11-{stdenv, fetchurl}:
11+{lib, stdenv, fetchurl}:
2233stdenv.mkDerivation {
44 name = "rman-3.2";
···2727 meta = {
2828 description = "Parse formatted man pages and man page source from most flavors of UNIX and converts them to HTML, ASCII, TkMan, DocBook, and other formats";
2929 license = "artistic";
3030- platforms = stdenv.lib.platforms.linux;
3030+ platforms = lib.platforms.linux;
3131 };
3232}
+2-2
pkgs/development/tools/misc/rolespec/default.nix
···11-{ stdenv, fetchFromGitHub, makeWrapper }:
11+{ lib, stdenv, fetchFromGitHub, makeWrapper }:
2233stdenv.mkDerivation rec {
44···3232 dontPatchELF = true;
3333 dontStrip = true;
34343535- meta = with stdenv.lib; {
3535+ meta = with lib; {
3636 homepage = "https://github.com/nickjj/rolespec";
3737 description = "A test library for testing Ansible roles";
3838 longDescription = ''
···11-{ stdenv, buildGoModule, fetchFromGitHub }:
11+{ lib, stdenv, buildGoModule, fetchFromGitHub }:
2233buildGoModule rec {
44 pname = "scc";
···1616 # scc has a scripts/ sub-package that's for testing.
1717 excludedPackages = [ "scripts" ];
18181919- meta = with stdenv.lib; {
1919+ meta = with lib; {
2020 homepage = "https://github.com/boyter/scc";
2121 description = "A very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go";
2222 maintainers = with maintainers; [ sigma Br1ght0ne ];
+2-2
pkgs/development/tools/misc/sipp/default.nix
···11-{stdenv, fetchurl, ncurses, libpcap }:
11+{lib, stdenv, fetchurl, ncurses, libpcap }:
2233stdenv.mkDerivation rec {
44 version = "3.6.0";
···25252626 buildInputs = [ncurses libpcap];
27272828- meta = with stdenv.lib; {
2828+ meta = with lib; {
2929 homepage = "http://sipp.sf.net";
3030 description = "The SIPp testing tool";
3131 license = licenses.gpl3;
···11-{ stdenv, fetchurl }:
11+{ lib, stdenv, fetchurl }:
2233stdenv.mkDerivation rec {
44 name = "stm32flash-0.5";
···1616 cp stm32flash $out/bin/
1717 '';
18181919- meta = with stdenv.lib; {
1919+ meta = with lib; {
2020 description = "Open source flash program for the STM32 ARM processors using the ST bootloader";
2121 homepage = "https://sourceforge.net/projects/stm32flash/";
2222- license = stdenv.lib.licenses.gpl2;
2222+ license = lib.licenses.gpl2;
2323 platforms = platforms.all; # Should work on all platforms
2424 maintainers = with maintainers; [ elitak ];
2525 };
+3-3
pkgs/development/tools/misc/strace/default.nix
···11-{ stdenv, fetchurl, perl, libunwind, buildPackages }:
11+{ lib, stdenv, fetchurl, perl, libunwind, buildPackages }:
2233stdenv.mkDerivation rec {
44 pname = "strace";
···1212 depsBuildBuild = [ buildPackages.stdenv.cc ];
1313 nativeBuildInputs = [ perl ];
14141515- buildInputs = [ perl.out ] ++ stdenv.lib.optional libunwind.supportsHost libunwind; # support -k
1515+ buildInputs = [ perl.out ] ++ lib.optional libunwind.supportsHost libunwind; # support -k
16161717 postPatch = "patchShebangs --host strace-graph";
18181919 configureFlags = [ "--enable-mpers=check" ];
20202121- meta = with stdenv.lib; {
2121+ meta = with lib; {
2222 homepage = "https://strace.io/";
2323 description = "A system call tracer for Linux";
2424 license = with licenses; [ lgpl21Plus gpl2Plus ]; # gpl2Plus is for the test suite
+2-2
pkgs/development/tools/misc/swig/2.x.nix
···11-{ stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
11+{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
2233stdenv.mkDerivation rec {
44 pname = "swig";
···2525 ./autogen.sh
2626 '';
27272828- meta = with stdenv.lib; {
2828+ meta = with lib; {
2929 description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
3030 homepage = "http://swig.org/";
3131 # Different types of licenses available: http://www.swig.org/Release/LICENSE .
+2-2
pkgs/development/tools/misc/swig/3.x.nix
···11-{ stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
11+{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
2233stdenv.mkDerivation rec {
44 pname = "swig";
···2626 ./autogen.sh
2727 '';
28282929- meta = with stdenv.lib; {
2929+ meta = with lib; {
3030 description = "An interface compiler that connects C/C++ code to higher-level languages";
3131 homepage = "http://swig.org/";
3232 # Different types of licenses available: http://www.swig.org/Release/LICENSE .
+2-2
pkgs/development/tools/misc/swig/4.nix
···11-{ stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
11+{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
2233stdenv.mkDerivation rec {
44 pname = "swig";
···2626 ./autogen.sh
2727 '';
28282929- meta = with stdenv.lib; {
2929+ meta = with lib; {
3030 description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
3131 homepage = "http://swig.org/";
3232 # Different types of licenses available: http://www.swig.org/Release/LICENSE .
+3-3
pkgs/development/tools/misc/swig/default.nix
···11-{ stdenv, fetchurl, boost, tcl }:
11+{ lib, stdenv, fetchurl, boost, tcl }:
2233stdenv.mkDerivation rec {
44 pname = "swig";
···11111212 doCheck = !stdenv.isCygwin;
1313 # 'make check' uses boost and tcl
1414- buildInputs = stdenv.lib.optionals doCheck [ boost tcl ];
1414+ buildInputs = lib.optionals doCheck [ boost tcl ];
15151616 configureFlags = [ "--disable-ccache" ];
171718181919- meta = with stdenv.lib; {
1919+ meta = with lib; {
2020 description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
2121 homepage = "http://swig.org/";
2222 # Different types of licenses available: http://www.swig.org/Release/LICENSE .
···11-{ stdenv, fetchurl }:
11+{ lib, stdenv, fetchurl }:
2233stdenv.mkDerivation rec {
44 pname = "tie";
···1818 cp tie $out/bin
1919 '';
20202121- meta = with stdenv.lib; {
2121+ meta = with lib; {
2222 homepage = "https://www.ctan.org/tex-archive/web/tie";
2323 description = "Allow multiple web change files";
2424 platforms = with platforms; unix;
+3-3
pkgs/development/tools/misc/tokei/default.nix
···11-{ stdenv, fetchFromGitHub, rustPlatform, libiconv, darwin }:
11+{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv, darwin }:
2233rustPlatform.buildRustPackage rec {
44 pname = "tokei";
···13131414 cargoSha256 = "sha256-iUDc54E8AiLMJw9h99kg/3VmaSi8GqfQyrPwa9nJ994=";
15151616- buildInputs = stdenv.lib.optionals stdenv.isDarwin [
1616+ buildInputs = lib.optionals stdenv.isDarwin [
1717 libiconv darwin.apple_sdk.frameworks.Security
1818 ];
19192020 # enable all output formats
2121 cargoBuildFlags = [ "--features" "all" ];
22222323- meta = with stdenv.lib; {
2323+ meta = with lib; {
2424 description = "A program that allows you to count your code, quickly";
2525 longDescription = ''
2626 Tokei is a program that displays statistics about your code. Tokei will show number of files, total lines within those files and code, comments, and blanks grouped by language.
+3-3
pkgs/development/tools/misc/uisp/default.nix
···11-{ stdenv, fetchurl }:
11+{ lib, stdenv, fetchurl }:
2233stdenv.mkDerivation {
44 name = "uisp-20050207";
···12121313 meta = {
1414 description = "Tool for AVR microcontrollers which can interface to many hardware in-system programmers";
1515- license = stdenv.lib.licenses.gpl2;
1515+ license = lib.licenses.gpl2;
1616 homepage = "https://savannah.nongnu.org/projects/uisp";
1717- platforms = stdenv.lib.platforms.linux;
1717+ platforms = lib.platforms.linux;
1818 };
1919}
···11-{ stdenv, fetchurl, writeTextFile, jre, makeWrapper, fontsConf, licenseAccepted ? false }:
11+{ lib, stdenv, fetchurl, writeTextFile, jre, makeWrapper, fontsConf, licenseAccepted ? false }:
2233# If you happen to use this software on the XMonad window manager, you will have issues with
44# grey windows, no resizing, menus not showing and other glitches.
···8787 homepage = "https://www.neotys.com/product/overview-neoload.html";
88888989 # https://www.neotys.com/documents/legal/eula/neoload/eula_en.html
9090- license = stdenv.lib.licenses.unfree;
9090+ license = lib.licenses.unfree;
91919292- maintainers = [ stdenv.lib.maintainers.bluescreen303 ];
9292+ maintainers = [ lib.maintainers.bluescreen303 ];
9393 platforms = [ "i686-linux" "x86_64-linux" ];
9494 };
9595}
+2-2
pkgs/development/tools/node-webkit/nw12.nix
···41414242 ln -s ${lib.getLib systemd}/lib/libudev.so $out/share/nwjs/libudev.so.0
43434444- patchelf --set-rpath "${nwEnv}/lib:${nwEnv}/lib64:${stdenv.lib.makeLibraryPath [ stdenv.cc.cc ]}:$out/share/nwjs" $out/share/nwjs/nw
4444+ patchelf --set-rpath "${nwEnv}/lib:${nwEnv}/lib64:${lib.makeLibraryPath [ stdenv.cc.cc ]}:$out/share/nwjs" $out/share/nwjs/nw
4545 patchelf --set-rpath "${nwEnv}/lib:${nwEnv}/lib64:$out/share/nwjs" $out/share/nwjs/nwjc
46464747 mkdir -p $out/bin
···51515252 buildInputs = [ makeWrapper ];
53535454- meta = with stdenv.lib; {
5454+ meta = with lib; {
5555 description = "An app runtime based on Chromium and node.js";
5656 homepage = "https://nwjs.io/";
5757 platforms = ["i686-linux" "x86_64-linux"];
+1-1
pkgs/development/tools/nrpl/default.nix
···3535 --prefix PATH : ${lib.makeBinPath [ nim tinycc ]}
3636 '';
37373838- meta = with stdenv.lib; {
3838+ meta = with lib; {
3939 description = "REPL for the Nim programming language";
4040 homepage = "https://github.com/wheineman/nrpl";
4141 license = licenses.mit;
+2-2
pkgs/development/tools/nwjs/default.nix
···5353 dontPatchELF = true;
54545555 installPhase =
5656- let ccPath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc ];
5656+ let ccPath = lib.makeLibraryPath [ stdenv.cc.cc ];
5757 in ''
5858 mkdir -p $out/share/nwjs
5959 cp -R * $out/share/nwjs
···85858686 buildInputs = [ makeWrapper ];
87878888- meta = with stdenv.lib; {
8888+ meta = with lib; {
8989 description = "An app runtime based on Chromium and node.js";
9090 homepage = "https://nwjs.io/";
9191 platforms = ["i686-linux" "x86_64-linux"];
···11-{ stdenv, fetchzip, which, ocaml, ocamlbuild }:
11+{ lib, stdenv, fetchzip, which, ocaml, ocamlbuild }:
2233-if stdenv.lib.versionAtLeast ocaml.version "4.09"
33+if lib.versionAtLeast ocaml.version "4.09"
44then throw "camlp4 is not available for OCaml ${ocaml.version}"
55else
66···66666767 dontStrip = true;
68686969- meta = with stdenv.lib; {
6969+ meta = with lib; {
7070 description = "A software system for writing extensible parsers for programming languages";
7171 homepage = "https://github.com/ocaml/camlp4";
7272 platforms = ocaml.meta.platforms or [];
+3-3
pkgs/development/tools/ocaml/camlp5/default.nix
···11-{ stdenv, fetchzip, ocaml, perl }:
11+{ lib, stdenv, fetchzip, ocaml, perl }:
2233-if stdenv.lib.versionOlder ocaml.version "4.02"
33+if lib.versionOlder ocaml.version "4.02"
44then throw "camlp5 is not available for OCaml ${ocaml.version}"
55else
66···26262727 dontStrip = true;
28282929- meta = with stdenv.lib; {
2929+ meta = with lib; {
3030 description = "Preprocessor-pretty-printer for OCaml";
3131 longDescription = ''
3232 Camlp5 is a preprocessor and pretty-printer for OCaml programs.
+3-3
pkgs/development/tools/ocaml/cppo/default.nix
···11-{ stdenv, fetchurl, fetchFromGitHub, ocaml, findlib, ocamlbuild
11+{ lib, stdenv, fetchurl, fetchFromGitHub, ocaml, findlib, ocamlbuild
22, buildDunePackage
33}:
4455let
66 pname = "cppo";
7788- meta = with stdenv.lib; {
88+ meta = with lib; {
99 description = "The C preprocessor for OCaml";
1010 longDescription = ''
1111 Cppo is an equivalent of the C preprocessor targeted at the OCaml language and its variants.
···17171818in
19192020-if stdenv.lib.versionAtLeast ocaml.version "4.02" then
2020+if lib.versionAtLeast ocaml.version "4.02" then
21212222buildDunePackage rec {
2323 inherit pname;
···11-{ stdenv, fetchurl, python2 }:
11+{ lib, stdenv, fetchurl, python2 }:
22stdenv.mkDerivation rec {
3344 pname = "omniorb";
···14141515 hardeningDisable = [ "format" ];
16161717- meta = with stdenv.lib; {
1717+ meta = with lib; {
1818 description = "A robust high performance CORBA ORB for C++ and Python. It is freely available under the terms of the GNU Lesser General Public License (for the libraries), and GNU General Public License (for the tools). omniORB is largely CORBA 2.6 compliant";
1919 homepage = "http://omniorb.sourceforge.net/";
2020 license = licenses.gpl2Plus;
···2929 # FIXME: Use impure version of CoreFoundation because of missing symbols.
3030 # CFURLSetResourcePropertyForKey is defined in the headers but there's no
3131 # corresponding implementation in the sources from opensource.apple.com.
3232- preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
3232+ preConfigure = lib.optionalString stdenv.isDarwin ''
3333 export NIX_CFLAGS_COMPILE="-F${CoreFoundation}/Library/Frameworks $NIX_CFLAGS_COMPILE"
3434 '';
3535
···3636 cp -r --no-preserve=all ${linenoise} ThirdParty/linenoise
3737 '';
38383939- postPatch = stdenv.lib.optionalString (!stdenv.isDarwin) ''
3939+ postPatch = lib.optionalString (!stdenv.isDarwin) ''
4040 # Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror.
4141 sed 1i'#include <sys/sysmacros.h>' \
4242 -i Libraries/xcassets/Headers/xcassets/Slot/SystemVersion.h
4343- '' + stdenv.lib.optionalString stdenv.isDarwin ''
4343+ '' + lib.optionalString stdenv.isDarwin ''
4444 # Apple Open Sourced LZFSE, but not libcompression, and it isn't
4545 # part of an impure framework we can add
4646 substituteInPlace Libraries/libcar/Sources/Rendition.cpp \
···59596060 nativeBuildInputs = [ cmake ninja ];
6161 buildInputs = [ zlib libxml2 libpng ]
6262- ++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices CoreGraphics ImageIO ];
6262+ ++ lib.optionals stdenv.isDarwin [ CoreServices CoreGraphics ImageIO ];
63636464 meta = with lib; {
6565 description = "Xcode-compatible build tool";
+1-1
pkgs/development/web/deno/default.nix
···3232 # Install completions post-install
3333 nativeBuildInputs = [ installShellFiles ];
34343535- buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security CoreServices ];
3535+ buildInputs = lib.optionals stdenv.isDarwin [ Security CoreServices ];
36363737 # The rusty_v8 package will try to download a `librusty_v8.a` release at build time to our read-only filesystem
3838 # To avoid this we pre-download the file and place it in the locations it will require it in advance
···77 pname = "linux-headers";
88 inherit version;
991010- ARCH = stdenvNoCC.hostPlatform.platform.kernelArch or stdenvNoCC.hostPlatform.kernelArch;
1010+ ARCH = stdenvNoCC.hostPlatform.linuxArch;
11111212 # It may look odd that we use `stdenvNoCC`, and yet explicit depend on a cc.
1313 # We do this so we have a build->build, not build->host, C compiler.
+9-9
pkgs/os-specific/linux/kernel/generic.nix
···4242 # symbolic name and `patch' is the actual patch. The patch may
4343 # optionally be compressed with gzip or bzip2.
4444 kernelPatches ? []
4545-, ignoreConfigErrors ? stdenv.hostPlatform.platform.name != "pc" ||
4545+, ignoreConfigErrors ? stdenv.hostPlatform.linux-kernel.name != "pc" ||
4646 stdenv.hostPlatform != stdenv.buildPlatform
4747, extraMeta ? {}
4848···5151, isLibre ? false
5252, isHardened ? false
53535454-# easy overrides to stdenv.hostPlatform.platform members
5555-, autoModules ? stdenv.hostPlatform.platform.kernelAutoModules
5656-, preferBuiltin ? stdenv.hostPlatform.platform.kernelPreferBuiltin or false
5757-, kernelArch ? stdenv.hostPlatform.platform.kernelArch
5454+# easy overrides to stdenv.hostPlatform.linux-kernel members
5555+, autoModules ? stdenv.hostPlatform.linux-kernel.autoModules
5656+, preferBuiltin ? stdenv.hostPlatform.linux-kernel.preferBuiltin or false
5757+, kernelArch ? stdenv.hostPlatform.linuxArch
58585959, ...
6060}:
···8787 intermediateNixConfig = configfile.moduleStructuredConfig.intermediateNixConfig
8888 # extra config in legacy string format
8989 + extraConfig
9090- + lib.optionalString (stdenv.hostPlatform.platform ? kernelExtraConfig) stdenv.hostPlatform.platform.kernelExtraConfig;
9090+ + stdenv.hostPlatform.linux-kernel.extraConfig or "";
91919292 structuredConfigFromPatches =
9393 map ({extraStructuredConfig ? {}, ...}: {settings=extraStructuredConfig;}) kernelPatches;
···113113 nativeBuildInputs = [ perl gmp libmpc mpfr ]
114114 ++ lib.optionals (lib.versionAtLeast version "4.16") [ bison flex ];
115115116116- platformName = stdenv.hostPlatform.platform.name;
116116+ platformName = stdenv.hostPlatform.linux-kernel.name;
117117 # e.g. "defconfig"
118118- kernelBaseConfig = if defconfig != null then defconfig else stdenv.hostPlatform.platform.kernelBaseConfig;
118118+ kernelBaseConfig = if defconfig != null then defconfig else stdenv.hostPlatform.linux-kernel.baseConfig;
119119 # e.g. "bzImage"
120120- kernelTarget = stdenv.hostPlatform.platform.kernelTarget;
120120+ kernelTarget = stdenv.hostPlatform.linux-kernel.target;
121121122122 prePatch = kernel.prePatch + ''
123123 # Patch kconfig to print "###" after every question so that
+15-15
pkgs/os-specific/linux/kernel/manual-config.nix
···64646565 commonMakeFlags = [
6666 "O=$(buildRoot)"
6767- ] ++ lib.optionals (stdenv.hostPlatform.platform ? kernelMakeFlags)
6868- stdenv.hostPlatform.platform.kernelMakeFlags;
6767+ ] ++ lib.optionals (stdenv.hostPlatform.linux-kernel ? makeFlags)
6868+ stdenv.hostPlatform.linux-kernel.makeFlags;
69697070- drvAttrs = config_: platform: kernelPatches: configfile:
7070+ drvAttrs = config_: kernelConf: kernelPatches: configfile:
7171 let
7272 config = let attrName = attr: "CONFIG_" + attr; in {
7373 isSet = attr: hasAttr (attrName attr) config;
···171171172172 buildFlags = [
173173 "KBUILD_BUILD_VERSION=1-NixOS"
174174- platform.kernelTarget
174174+ kernelConf.target
175175 "vmlinux" # for "perf" and things like that
176176 ] ++ optional isModular "modules";
177177···186186 '';
187187188188 # Some image types need special install targets (e.g. uImage is installed with make uinstall)
189189- installTargets = [ (
190190- if platform ? kernelInstallTarget then platform.kernelInstallTarget
191191- else if platform.kernelTarget == "uImage" then "uinstall"
192192- else if platform.kernelTarget == "zImage" || platform.kernelTarget == "Image.gz" then "zinstall"
193193- else "install"
194194- ) ];
189189+ installTargets = [
190190+ (kernelConf.installTarget or (
191191+ /**/ if kernelConf.target == "uImage" then "uinstall"
192192+ else if kernelConf.target == "zImage" || kernelConf.target == "Image.gz" then "zinstall"
193193+ else "install"))
194194+ ];
195195196196 postInstall = (optionalString installsFirmware ''
197197 mkdir -p $out/lib/firmware
198198- '') + (if (platform ? kernelDTB && platform.kernelDTB) then ''
198198+ '') + (if (kernelConf.DTB or false) then ''
199199 make $makeFlags "''${makeFlagsArray[@]}" dtbs dtbs_install INSTALL_DTBS_PATH=$out/dtbs
200200 '' else "") + (if isModular then ''
201201 mkdir -p $dev
···300300assert (lib.versionAtLeast version "4.14" && lib.versionOlder version "5.8") -> libelf != null;
301301assert lib.versionAtLeast version "5.8" -> elfutils != null;
302302303303-stdenv.mkDerivation ((drvAttrs config stdenv.hostPlatform.platform kernelPatches configfile) // {
303303+stdenv.mkDerivation ((drvAttrs config stdenv.hostPlatform.linux-kernel kernelPatches configfile) // {
304304 pname = "linux";
305305 inherit version;
306306···308308309309 depsBuildBuild = [ buildPackages.stdenv.cc ];
310310 nativeBuildInputs = [ perl bc nettools openssl rsync gmp libmpc mpfr gawk zstd ]
311311- ++ optional (stdenv.hostPlatform.platform.kernelTarget == "uImage") buildPackages.ubootTools
311311+ ++ optional (stdenv.hostPlatform.linux-kernel.target == "uImage") buildPackages.ubootTools
312312 ++ optional (lib.versionAtLeast version "4.14" && lib.versionOlder version "5.8") libelf
313313 # Removed util-linuxMinimal since it should not be a dependency.
314314 ++ optionals (lib.versionAtLeast version "4.16") [ bison flex ]
···322322 makeFlags = commonMakeFlags ++ [
323323 "CC=${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc"
324324 "HOSTCC=${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}cc"
325325- "ARCH=${stdenv.hostPlatform.platform.kernelArch}"
325325+ "ARCH=${stdenv.hostPlatform.linuxArch}"
326326 ] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) [
327327 "CROSS_COMPILE=${stdenv.cc.targetPrefix}"
328328 ];
329329330330- karch = stdenv.hostPlatform.platform.kernelArch;
330330+ karch = stdenv.hostPlatform.linuxArch;
331331})
+2-2
pkgs/os-specific/linux/klibc/default.nix
···2525 hardeningDisable = [ "format" "stackprotector" ];
26262727 makeFlags = commonMakeFlags ++ [
2828- "KLIBCARCH=${stdenv.hostPlatform.platform.kernelArch}"
2828+ "KLIBCARCH=${stdenv.hostPlatform.linuxArch}"
2929 "KLIBCKERNELSRC=${linuxHeaders}"
3030 ] # TODO(@Ericson2314): We now can get the ABI from
3131 # `stdenv.hostPlatform.parsed.abi`, is this still a good idea?
3232- ++ lib.optional (stdenv.hostPlatform.platform.kernelArch == "arm") "CONFIG_AEABI=y"
3232+ ++ lib.optional (stdenv.hostPlatform.linuxArch == "arm") "CONFIG_AEABI=y"
3333 ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "CROSS_COMPILE=${stdenv.cc.targetPrefix}";
34343535 # Install static binaries as well.
···2233stdenv.mkDerivation rec {
44 pname = "abcMIDI";
55- version = "2020.12.10";
55+ version = "2021.01.21";
6677 src = fetchzip {
88 url = "https://ifdo.ca/~seymour/runabc/${pname}-${version}.zip";
99- sha256 = "0r9jwjwmdyyfq882mq7gkc2hjrv4ljnidxzlyycjipzndb1gv1ls";
99+ sha256 = "184d59pc60dax60j3nzcsr5kflaygbjpbrwg6r4bky0q0sg17z5i";
1010 };
11111212 # There is also a file called "makefile" which seems to be preferred by the standard build phase
···11/* This function composes the Nix Packages collection. It:
2233- 1. Applies the final stage to the given `config` if it is a function
33+ 1. Elaborates `localSystem` and `crossSystem` with defaults as needed.
4455- 2. Infers an appropriate `platform` based on the `system` if none is
66- provided
55+ 2. Applies the final stage to the given `config` if it is a function
7687 3. Defaults to no non-standard config and no cross-compilation target
98···5049in let
5150 lib = import ../../lib;
52515252+ localSystem = lib.systems.elaborate args.localSystem;
5353+5454+ # Condition preserves sharing which in turn affects equality.
5555+ crossSystem =
5656+ if crossSystem0 == null || crossSystem0 == args.localSystem
5757+ then localSystem
5858+ else lib.systems.elaborate crossSystem0;
5959+5360 # Allow both:
5461 # { /* the config */ } and
5562 # { pkgs, ... } : { /* the config */ }
···5764 if lib.isFunction config0
5865 then config0 { inherit pkgs; }
5966 else config0;
6060-6161- # From a minimum of `system` or `config` (actually a target triple, *not*
6262- # nixpkgs configuration), infer the other one and platform as needed.
6363- localSystem = lib.systems.elaborate (if builtins.isAttrs args.localSystem then (
6464- # Allow setting the platform in the config file. This take precedence over
6565- # the inferred platform, but not over an explicitly passed-in one.
6666- builtins.intersectAttrs { platform = null; } config1
6767- // args.localSystem) else args.localSystem);
6868-6969- crossSystem = if crossSystem0 == null then localSystem
7070- else lib.systems.elaborate crossSystem0;
71677268 configEval = lib.evalModules {
7369 modules = [
+14-20
pkgs/top-level/impure.nix
···12121313in
14141515-{ # We combine legacy `system` and `platform` into `localSystem`, if
1616- # `localSystem` was not passed. Strictly speaking, this is pure desugar, but
1717- # it is most convient to do so before the impure `localSystem.system` default,
1818- # so we do it now.
1919- localSystem ? builtins.intersectAttrs { system = null; platform = null; } args
1515+{ # We put legacy `system` into `localSystem`, if `localSystem` was not passed.
1616+ # If neither is passed, assume we are building packages on the current
1717+ # (build, in GNU Autotools parlance) platform.
1818+ localSystem ? { system = args.system or builtins.currentSystem; }
20192121-, # These are needed only because nix's `--arg` command-line logic doesn't work
2222- # with unnamed parameters allowed by ...
2323- system ? localSystem.system
2424-, platform ? localSystem.platform
2525-, crossSystem ? null
2020+# These are needed only because nix's `--arg` command-line logic doesn't work
2121+# with unnamed parameters allowed by ...
2222+, system ? localSystem.system
2323+, crossSystem ? localSystem
26242725, # Fallback: The contents of the configuration file found at $NIXPKGS_CONFIG or
2826 # $HOME/.config/nixpkgs/config.nix.
···7775, ...
7876} @ args:
79778080-# If `localSystem` was explicitly passed, legacy `system` and `platform` should
8181-# not be passed.
8282-assert args ? localSystem -> !(args ? system || args ? platform);
7878+# If `localSystem` was explicitly passed, legacy `system` should
7979+# not be passed, and vice-versa.
8080+assert args ? localSystem -> !(args ? system);
8181+assert args ? system -> !(args ? localSystem);
83828484-import ./. (builtins.removeAttrs args [ "system" "platform" ] // {
8585- inherit config overlays crossSystem crossOverlays;
8686- # Fallback: Assume we are building packages on the current (build, in GNU
8787- # Autotools parlance) system.
8888- localSystem = if builtins.isString localSystem then localSystem
8989- else (if args ? localSystem then {}
9090- else { system = builtins.currentSystem; }) // localSystem;
8383+import ./. (builtins.removeAttrs args [ "system" ] // {
8484+ inherit config overlays localSystem;
9185})