git.iko.soy/typeable/nixpkgs
on master help sign in
Merge remote-tracking branch 'upstream/master' into gcc-hurd-condition
commitbf7d1bae20070e635b8ce05f7b6ca760acf0eb0f authorJohn Ericson <John.Ericson@Obsidian.Systems> dateMon 14 May 2018, 13:15 (9 years ago) parent3a9654b4edfc0e
4717 files changed+136594−89100
.editorconfig+2−2 .gitattributes+16 .github/CODEOWNERS+5−1 .version+1−1 README.md+4−4 doc/.gitignore+6 doc/Makefile+95 doc/coding-conventions.xml+677−537 doc/configuration.xml+305−260 doc/contributing.xml+28−13 doc/cross-compilation.xml+425−264 doc/default.nix+33−103 doc/functions.xml+596−534 doc/introduction.md → doc/introduction.chapter.md doc/languages-frameworks/beam.xml+277−223 doc/languages-frameworks/bower.xml+137−152 doc/languages-frameworks/coq.xml+31−29 doc/languages-frameworks/emscripten.section.md+185 doc/languages-frameworks/go.xml+84−90 doc/languages-frameworks/haskell.md → doc/languages-frameworks/haskell.section.md+51−3 doc/languages-frameworks/idris.section.md+39 doc/languages-frameworks/index.xml+27−31 doc/languages-frameworks/java.xml+40−53 doc/languages-frameworks/lua.xml+20−23 doc/languages-frameworks/node.section.md+51 doc/languages-frameworks/perl.xml+115−104 doc/languages-frameworks/python.md → doc/languages-frameworks/python.section.md+6−4 doc/languages-frameworks/qt.xml+62−46 doc/languages-frameworks/r.section.md+120 doc/languages-frameworks/ruby.xml+47−45 doc/languages-frameworks/rust.md → doc/languages-frameworks/rust.section.md+85−1 doc/languages-frameworks/texlive.xml+72−33 doc/languages-frameworks/vim.md → doc/languages-frameworks/vim.section.md doc/manual.xml+21−26 doc/meta.xml+295−251 doc/multiple-output.xml+300−80 doc/overlays.xml+143−113 doc/overrides.css+9 doc/package-notes.xml+454−477 doc/platform-notes.xml+38−46 doc/quick-start.xml+184−188 doc/release-notes.xml+710−643 doc/reviewing-contributions.xml+476−261 doc/shell.nix+5 doc/shell.md → doc/shell.section.md+2 doc/stdenv.xml+2311−1838 doc/style.css+23−7 doc/submitting-changes.xml+462−398 lib/debug.nix+128−56 lib/default.nix+30−26 lib/generators.nix+54−13 lib/licenses.nix+6−1 lib/lists.nix+22−1 lib/modules.nix+23−12 lib/strings.nix+42−2 lib/systems/default.nix+9 lib/systems/examples.nix+26−6 lib/systems/for-meta.nix+6−2 lib/systems/inspect.nix+6−5 lib/systems/parse.nix+35−11 lib/tests/misc.nix+33−3 lib/tests/modules.sh+12−1 lib/tests/modules/declare-coerced-value-unsound.nix+10 lib/tests/modules/define-value-string-arbitrary.nix+3 lib/tests/modules/define-value-string-bigint.nix+3 lib/tests/modules/loaOf-with-long-list.nix+19 lib/tests/modules/loaOf-with-many-list-merges.nix+19 lib/tests/release.nix+1−2 lib/trivial.nix+7−4 lib/types.nix+24−16 lib/maintainers-list.nix → maintainers/maintainer-list.nix+323−15 maintainers/scripts/copy-tarballs.pl+8−2 maintainers/scripts/hydra-eval-failures.py+20−15 maintainers/scripts/update-python-libraries+2−2 maintainers/scripts/update.nix+14−3 maintainers/scripts/vanity.sh+1−1 nixos/doc/manual/.gitignore+2 nixos/doc/manual/Makefile+24 nixos/doc/manual/administration/boot-problems.xml+78−58 nixos/doc/manual/administration/cleaning-store.xml+30−39 nixos/doc/manual/administration/container-networking.xml+36−39 nixos/doc/manual/administration/containers.xml+28−28 nixos/doc/manual/administration/control-groups.xml+38−46 nixos/doc/manual/administration/declarative-containers.xml+44−44 nixos/doc/manual/administration/imperative-containers.xml+66−83 nixos/doc/manual/administration/logging.xml+21−30 nixos/doc/manual/administration/maintenance-mode.xml+7−9 nixos/doc/manual/administration/network-problems.xml+14−20 nixos/doc/manual/administration/rebooting.xml+20−29 nixos/doc/manual/administration/rollback.xml+23−30 nixos/doc/manual/administration/running.xml+15−18 nixos/doc/manual/administration/service-mgmt.xml+31−42 nixos/doc/manual/administration/store-corruption.xml+23−24 nixos/doc/manual/administration/troubleshooting.xml+10−12 nixos/doc/manual/administration/user-sessions.xml+15−23 nixos/doc/manual/configuration/abstractions.xml+57−67 nixos/doc/manual/configuration/ad-hoc-network-config.xml+8−12 nixos/doc/manual/configuration/ad-hoc-packages.xml+38−40 nixos/doc/manual/configuration/adding-custom-packages.xml+27−38 nixos/doc/manual/configuration/config-file.xml+112−131 nixos/doc/manual/configuration/config-syntax.xml+18−20 nixos/doc/manual/configuration/configuration.xml+19−26 nixos/doc/manual/configuration/customizing-packages.xml+61−68 nixos/doc/manual/configuration/declarative-packages.xml+26−26 nixos/doc/manual/configuration/file-systems.xml+35−35 nixos/doc/manual/configuration/firewall.xml+27−32 nixos/doc/manual/configuration/ipv4-config.xml+30−31 nixos/doc/manual/configuration/ipv6-config.xml+29−25 nixos/doc/manual/configuration/linux-kernel.xml+49−52 nixos/doc/manual/configuration/luks-file-systems.xml+15−21 nixos/doc/manual/configuration/modularity.xml+81−93 nixos/doc/manual/configuration/network-manager.xml+32−29 nixos/doc/manual/configuration/networking.xml+12−15 nixos/doc/manual/configuration/package-mgmt.xml+25−28 nixos/doc/manual/configuration/ssh.xml+14−19 nixos/doc/manual/configuration/summary.xml+202−167 nixos/doc/manual/configuration/user-mgmt.xml+64−76 nixos/doc/manual/configuration/wireless.xml+24−32 nixos/doc/manual/configuration/x-windows.xml+100−105 nixos/doc/manual/configuration/xfce.xml+57−79 nixos/doc/manual/default.nix+23−14 nixos/doc/manual/development/assertions.xml+29−35 nixos/doc/manual/development/building-nixos.xml+15−20 nixos/doc/manual/development/building-parts.xml+78−79 nixos/doc/manual/development/development.xml+14−17 nixos/doc/manual/development/importing-modules.xml+56 nixos/doc/manual/development/meta-attributes.xml+28−27 nixos/doc/manual/development/nixos-tests.xml+12−13 nixos/doc/manual/development/option-declarations.xml+142−113 nixos/doc/manual/development/option-def.xml+49−62 nixos/doc/manual/development/option-types.xml+627−421 nixos/doc/manual/development/releases.xml+215−209 nixos/doc/manual/development/replace-modules.xml+26−22 nixos/doc/manual/development/running-nixos-tests-interactively.xml+18−21 nixos/doc/manual/development/running-nixos-tests.xml+13−18 nixos/doc/manual/development/sources.xml+48−65 nixos/doc/manual/development/testing-installer.xml+7−14 nixos/doc/manual/development/writing-documentation.xml+140−138 nixos/doc/manual/development/writing-modules.xml+95−94 nixos/doc/manual/development/writing-nixos-tests.xml+338−252 nixos/doc/manual/installation/changing-config.xml+58−75 nixos/doc/manual/installation/installation.xml+11−15 nixos/doc/manual/installation/installing-from-other-distro.xml+321−262 nixos/doc/manual/installation/installing-pxe.xml+33−31 nixos/doc/manual/installation/installing-usb.xml+49−40 nixos/doc/manual/installation/installing-virtualbox-guest.xml+61−43 nixos/doc/manual/installation/installing.xml+322−291 nixos/doc/manual/installation/obtaining.xml+45−39 nixos/doc/manual/installation/upgrading.xml+99−109 nixos/doc/manual/man-configuration.xml+26−33 nixos/doc/manual/man-nixos-build-vms.xml+76−77 nixos/doc/manual/man-nixos-enter.xml+97−97 nixos/doc/manual/man-nixos-generate-config.xml+140−149 nixos/doc/manual/man-nixos-install.xml+197−191 nixos/doc/manual/man-nixos-option.xml+90−99 nixos/doc/manual/man-nixos-rebuild.xml+372−356 nixos/doc/manual/man-nixos-version.xml+88−83 nixos/doc/manual/man-pages.xml+16−29 nixos/doc/manual/manual.xml+40−39 nixos/doc/manual/options-to-docbook.xsl+4−4 nixos/doc/manual/release-notes/release-notes.xml+15−16 nixos/doc/manual/release-notes/rl-1310.xml+4−4 nixos/doc/manual/release-notes/rl-1404.xml+150−131 nixos/doc/manual/release-notes/rl-1412.xml+454−164 nixos/doc/manual/release-notes/rl-1509.xml+641−382 nixos/doc/manual/release-notes/rl-1603.xml+529−311 nixos/doc/manual/release-notes/rl-1609.xml+205−167 nixos/doc/manual/release-notes/rl-1703.xml+685−382 nixos/doc/manual/release-notes/rl-1709.xml+732−444 nixos/doc/manual/release-notes/rl-1803.xml+777−391 nixos/doc/manual/release-notes/rl-1809.xml+243 nixos/doc/manual/shell.nix+8 nixos/doc/manual/style.css−267 nixos/doc/xmlformat.conf+72 nixos/lib/eval-config.nix+2−2 nixos/lib/make-ext4-fs.nix+15−9 nixos/lib/make-system-tarball.nix+11−3 nixos/lib/make-system-tarball.sh+2−3 nixos/lib/test-driver/Machine.pm+15−4 nixos/lib/testing.nix+10−4 pkgs/development/libraries/javascript/jquery-ui/default.nix → nixos/lib/testing/jquery-ui.nix pkgs/development/libraries/javascript/jquery/default.nix → nixos/lib/testing/jquery.nix nixos/maintainers/option-usages.nix+3−3 nixos/maintainers/scripts/ec2/amazon-image.nix+5 nixos/maintainers/scripts/ec2/create-amis.sh+1−1 nixos/maintainers/scripts/gce/create-gce.sh+2−2 nixos/modules/config/i18n.nix+1−1 nixos/modules/config/no-x-libs.nix+1−1 nixos/modules/config/nsswitch.nix+9−9 nixos/modules/config/pulseaudio.nix+2 nixos/modules/config/system-path.nix−1 nixos/modules/config/users-groups.nix+25−29 nixos/modules/config/zram.nix+5−5 nixos/modules/hardware/onlykey.nix+33 nixos/modules/hardware/onlykey.udev+4 nixos/modules/hardware/opengl.nix+85−83 nixos/modules/hardware/video/amdgpu-pro.nix+15−1 nixos/modules/hardware/video/nvidia.nix+6−15 nixos/modules/i18n/input-method/default.xml+39−39 nixos/modules/installer/cd-dvd/channel.nix+2 nixos/modules/installer/cd-dvd/iso-image.nix+3−2 nixos/modules/installer/cd-dvd/sd-image-aarch64.nix−3 nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix−3 nixos/modules/installer/cd-dvd/sd-image-raspberrypi.nix−3 nixos/modules/installer/cd-dvd/sd-image.nix+27−7 nixos/modules/installer/cd-dvd/system-tarball-fuloong2f.nix+1−1 nixos/modules/installer/tools/nix-fallback-paths.nix+4−4 nixos/modules/installer/tools/nixos-enter.sh+2−1 nixos/modules/installer/tools/nixos-generate-config.pl+3−4 nixos/modules/installer/tools/nixos-rebuild.sh+1−1 nixos/modules/installer/virtualbox-demo.nix+2 nixos/modules/misc/documentation.nix+96 nixos/modules/misc/ids.nix+13−9 nixos/modules/misc/locate.nix+15−2 nixos/modules/misc/nixpkgs.nix+66−9 nixos/modules/misc/version.nix+14−13 nixos/modules/module-list.nix+23−17 nixos/modules/profiles/base.nix+2−1 nixos/modules/profiles/demo.nix+6 nixos/modules/profiles/docker-container.nix+1−3 nixos/modules/profiles/minimal.nix+2−3 nixos/modules/programs/bash/bash.nix+2−2 nixos/modules/programs/digitalbitbox/doc.xml+19−19 nixos/modules/programs/iftop.nix+18 nixos/modules/programs/info.nix−30 nixos/modules/programs/less.nix+15−2 nixos/modules/programs/man.nix−31 nixos/modules/programs/plotinus.xml+1−1 nixos/modules/programs/rootston.nix+1−1 nixos/modules/programs/shell.nix+1−1 nixos/modules/programs/singularity.nix+20 nixos/modules/programs/ssh.nix+1−1 nixos/modules/programs/zsh/zsh.nix+1−1 nixos/modules/rename.nix+30−12 nixos/modules/security/acme.nix+86−43 nixos/modules/security/acme.xml+11−11 nixos/modules/security/audit.nix+3−3 nixos/modules/security/dhparams.nix+147−81 nixos/modules/security/duosec.nix+2−2 nixos/modules/security/hidepid.xml+6−6 nixos/modules/security/pam.nix+14−3 nixos/modules/security/sudo.nix+3−3 nixos/modules/security/wrappers/wrapper.c+1−1 nixos/modules/services/audio/alsa.nix+5 nixos/modules/services/backup/almir.nix−173 nixos/modules/services/backup/borgbackup.nix+580 nixos/modules/services/backup/duplicati.nix+40 nixos/modules/services/backup/restic-rest-server.nix+107 nixos/modules/services/backup/restic.nix+150 nixos/modules/services/backup/tarsnap.nix+60−7 nixos/modules/services/backup/znapzend.nix+1−1 nixos/modules/services/cluster/fleet.nix−150 nixos/modules/services/cluster/kubernetes/default.nix+8−8 nixos/modules/services/cluster/panamax.nix−156 nixos/modules/services/computing/boinc/client.nix+45−1 nixos/modules/services/continuous-integration/buildkite-agent.nix+2−2 nixos/modules/services/continuous-integration/jenkins/default.nix+7 nixos/modules/services/databases/4store-endpoint.nix+1−1 nixos/modules/services/databases/4store.nix+1−1 nixos/modules/services/databases/foundationdb.nix+416 nixos/modules/services/databases/foundationdb.xml+322 nixos/modules/services/databases/monetdb.nix+100 nixos/modules/services/databases/mysql.nix+1−1 nixos/modules/services/databases/pgmanage.nix+3−3 nixos/modules/services/databases/postgresql.nix+6−9 nixos/modules/services/databases/postgresql.xml+6−6 nixos/modules/services/editors/emacs.nix+21−2 nixos/modules/services/editors/emacs.xml+10−10 nixos/modules/services/editors/infinoted.nix+1−1 nixos/modules/services/hardware/bluetooth.nix+11−1 nixos/modules/services/hardware/lcd.nix+172 nixos/modules/services/hardware/trezord.nix+10−3 nixos/modules/services/hardware/udev.nix+1−1 nixos/modules/services/logging/graylog.nix+1−1 nixos/modules/services/mail/dovecot.nix+7−2 nixos/modules/services/misc/defaultUnicornConfig.rb+52−188 nixos/modules/services/misc/disnix.nix+1−1 nixos/modules/services/misc/docker-registry.nix+89−8 nixos/modules/services/misc/dysnomia.nix+30−30 nixos/modules/services/misc/folding-at-home.nix+1−1 nixos/modules/services/misc/geoip-updater.nix+1−1 nixos/modules/services/misc/gitea.nix+54−2 nixos/modules/services/misc/gitit.nix+1−1 nixos/modules/services/misc/gitlab.nix+15−20 nixos/modules/services/misc/gitlab.xml+29−30 nixos/modules/services/misc/gitweb.nix+59 nixos/modules/services/misc/gogs.nix+3 nixos/modules/services/misc/home-assistant.nix+46−7 nixos/modules/services/misc/ihaskell.nix+1−1 nixos/modules/services/misc/logkeys.nix+8−1 nixos/modules/services/misc/matrix-synapse.nix+10−10 nixos/modules/services/misc/mesos-slave.nix+3−3 nixos/modules/services/misc/nix-daemon.nix+8−7 nixos/modules/services/misc/nixos-manual.nix+6−6 nixos/modules/services/misc/parsoid.nix+3−1 nixos/modules/services/misc/safeeyes.nix+50 nixos/modules/services/misc/serviio.nix+92 nixos/modules/services/misc/ssm-agent.nix+1−1 nixos/modules/services/misc/taskserver/doc.xml+6−6 nixos/modules/services/monitoring/apcupsd.nix+1−1 nixos/modules/services/monitoring/grafana.nix+14−2 nixos/modules/services/monitoring/monit.nix+6−10 nixos/modules/services/monitoring/prometheus/blackbox-exporter.nix−68 nixos/modules/services/monitoring/prometheus/collectd-exporter.nix−128 nixos/modules/services/monitoring/prometheus/exporters.nix+174 nixos/modules/services/monitoring/prometheus/exporters.xml+135 nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix+31 nixos/modules/services/monitoring/prometheus/exporters/collectd.nix+78 nixos/modules/services/monitoring/prometheus/exporters/dovecot.nix+50 nixos/modules/services/monitoring/prometheus/exporters/fritzbox.nix+39 nixos/modules/services/monitoring/prometheus/exporters/json.nix+36 nixos/modules/services/monitoring/prometheus/exporters/minio.nix+65 nixos/modules/services/monitoring/prometheus/exporters/nginx.nix+47 nixos/modules/services/monitoring/prometheus/exporters/node.nix+39 nixos/modules/services/monitoring/prometheus/exporters/postfix.nix+81 nixos/modules/services/monitoring/prometheus/exporters/snmp.nix+71 nixos/modules/services/monitoring/prometheus/exporters/surfboard.nix+32 nixos/modules/services/monitoring/prometheus/exporters/unifi.nix+67 nixos/modules/services/monitoring/prometheus/exporters/varnish.nix+87 nixos/modules/services/monitoring/prometheus/fritzbox-exporter.nix−76 nixos/modules/services/monitoring/prometheus/json-exporter.nix−74 nixos/modules/services/monitoring/prometheus/minio-exporter.nix−117 nixos/modules/services/monitoring/prometheus/nginx-exporter.nix−78 nixos/modules/services/monitoring/prometheus/node-exporter.nix−87 nixos/modules/services/monitoring/prometheus/snmp-exporter.nix−127 nixos/modules/services/monitoring/prometheus/unifi-exporter.nix−105 nixos/modules/services/monitoring/prometheus/varnish-exporter.nix−61 nixos/modules/services/monitoring/smartd.nix+1−1 nixos/modules/services/network-filesystems/ipfs.nix+1−1 nixos/modules/services/network-filesystems/xtreemfs.nix+1−1 nixos/modules/services/network-filesystems/yandex-disk.nix+2−2 nixos/modules/services/networking/amuled.nix+1−1 nixos/modules/services/networking/dante.nix+7−6 nixos/modules/services/networking/ddclient.nix+59−53 nixos/modules/services/networking/dhcpd.nix+1 nixos/modules/services/networking/dnscache.nix+24−7 nixos/modules/services/networking/dnscrypt-proxy.xml+10−10 nixos/modules/services/networking/firewall.nix+4−1 nixos/modules/services/networking/flashpolicyd.nix+1−1 nixos/modules/services/networking/gnunet.nix+11−3 nixos/modules/services/networking/hans.nix+145 nixos/modules/services/networking/hostapd.nix−5 nixos/modules/services/networking/iodine.nix+17−5 nixos/modules/services/networking/iwd.nix+1−1 nixos/modules/services/networking/keepalived/default.nix+60−2 nixos/modules/services/networking/keepalived/vrrp-options.nix → nixos/modules/services/networking/keepalived/vrrp-instance-options.nix+14 nixos/modules/services/networking/keepalived/vrrp-script-options.nix+64 nixos/modules/services/networking/matterbridge.nix+53−31 nixos/modules/services/networking/minidlna.nix+29−14 nixos/modules/services/networking/murmur.nix+2−1 nixos/modules/services/networking/ndppd.nix+47 nixos/modules/services/networking/networkmanager.nix+16−15 nixos/modules/services/networking/nftables.nix+1−1 nixos/modules/services/networking/nix-serve.nix+2 nixos/modules/services/networking/nsd.nix+141−8 nixos/modules/services/networking/openvpn.nix+1−1 nixos/modules/services/networking/prosody.nix+221−29 nixos/modules/services/networking/quagga.nix+1−1 nixos/modules/services/networking/radicale.nix+2−2 nixos/modules/services/networking/rdnssd.nix+1−1 nixos/modules/services/networking/resilio.nix+1−6 nixos/modules/services/networking/shadowsocks.nix+112 nixos/modules/services/networking/ssh/sshd.nix+62−8 nixos/modules/services/networking/strongswan-swanctl/module.nix+82 nixos/modules/services/networking/strongswan-swanctl/param-constructors.nix+162 nixos/modules/services/networking/strongswan-swanctl/param-lib.nix+82 nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix+1168 nixos/modules/services/networking/tcpcrypt.nix+5−5 nixos/modules/services/networking/unbound.nix+1−1 nixos/modules/services/networking/unifi.nix+32−5 nixos/modules/services/networking/wireguard.nix+51−50 nixos/modules/services/networking/zerotierone.nix+18−4 nixos/modules/services/printing/cupsd.nix+17−5 nixos/modules/services/search/elasticsearch.nix+5−2 nixos/modules/services/security/hologram-server.nix+33−5 nixos/modules/services/security/oauth2_proxy.nix+106−60 nixos/modules/services/security/sshguard.nix+1 nixos/modules/services/security/tor.nix+18−7 nixos/modules/services/security/torify.nix+1−1 nixos/modules/services/security/torsocks.nix+1−1 nixos/modules/services/torrent/deluge.nix+2−12 nixos/modules/services/torrent/transmission.nix+17−5 nixos/modules/services/web-apps/atlassian/jira.nix+1−1 nixos/modules/services/web-apps/nixbot.nix−149 nixos/modules/services/web-apps/tt-rss.nix+4−4 nixos/modules/services/web-apps/youtrack.nix+177 nixos/modules/services/web-servers/apache-httpd/owncloud.nix+1−1 nixos/modules/services/web-servers/apache-httpd/per-server-options.nix+1−1 nixos/modules/services/web-servers/caddy.nix+3−3 nixos/modules/services/web-servers/hitch/default.nix+108 nixos/modules/services/web-servers/lighttpd/gitweb.nix+8−27 nixos/modules/services/web-servers/nginx/default.nix+22−15 nixos/modules/services/web-servers/nginx/gitweb.nix+61 nixos/modules/services/web-servers/nginx/vhost-options.nix+8 nixos/modules/services/web-servers/tomcat.nix+191−189 nixos/modules/services/web-servers/varnish/default.nix+14−5 nixos/modules/services/x11/desktop-managers/default.nix+3−3 nixos/modules/services/x11/desktop-managers/gnome3.nix+1−2 nixos/modules/services/x11/desktop-managers/lxqt.nix+2 nixos/modules/services/x11/desktop-managers/mate.nix+2 nixos/modules/services/x11/desktop-managers/xfce.nix+1−1 nixos/modules/services/x11/desktop-managers/xterm.nix+1 nixos/modules/services/x11/display-managers/slim.nix+1−1 nixos/modules/services/x11/window-managers/bspwm.nix+1−1 nixos/modules/services/x11/window-managers/default.nix+2−3 nixos/modules/services/x11/xserver.nix+5−18 nixos/modules/system/activation/activation-script.nix+1−1 nixos/modules/system/activation/switch-to-configuration.pl+9−10 nixos/modules/system/activation/top-level.nix+2−1 nixos/modules/system/boot/coredump.nix+5−2 nixos/modules/system/boot/grow-partition.nix+10−3 nixos/modules/system/boot/kernel.nix+2−2 nixos/modules/system/boot/kexec.nix+19−18 nixos/modules/system/boot/loader/grub/grub.nix+3−3 nixos/modules/system/boot/loader/grub/install-grub.pl+1−1 nixos/modules/system/boot/loader/raspberrypi/builder.sh+4 nixos/modules/system/boot/loader/raspberrypi/builder_uboot.nix+34 nixos/modules/system/boot/loader/raspberrypi/builder_uboot.sh+29 nixos/modules/system/boot/loader/raspberrypi/raspberrypi.nix+83−17 nixos/modules/system/boot/luksroot.nix−1 nixos/modules/system/boot/networkd.nix+5−1 nixos/modules/system/boot/stage-1-init.sh+26−33 nixos/modules/system/boot/stage-1.nix+49−5 nixos/modules/system/boot/stage-2-init.sh+4−4 nixos/modules/system/boot/stage-2.nix+1 nixos/modules/system/boot/systemd-nspawn.nix+1−1 nixos/modules/system/boot/systemd-unit-options.nix+1−1 nixos/modules/system/boot/systemd.nix+24−9 nixos/modules/tasks/filesystems/exfat.nix+1−1 nixos/modules/tasks/filesystems/zfs.nix+3−1 nixos/modules/tasks/kbd.nix+1−1 nixos/modules/tasks/network-interfaces-scripted.nix+3−4 nixos/modules/tasks/network-interfaces.nix+6−35 nixos/modules/testing/test-instrumentation.nix+6 nixos/modules/virtualisation/amazon-image.nix−7 nixos/modules/virtualisation/amazon-init.nix+1−1 nixos/modules/virtualisation/amazon-options.nix+1−1 nixos/modules/virtualisation/azure-agent.nix+7−3 nixos/modules/virtualisation/containers.nix+19−7 nixos/modules/virtualisation/ec2-amis.nix+18−1 nixos/modules/virtualisation/google-compute-image.nix+23−2 nixos/modules/virtualisation/libvirtd.nix+3−11 nixos/modules/virtualisation/lxc.nix+4−1 nixos/modules/virtualisation/lxd.nix+33−27 nixos/modules/virtualisation/openvswitch.nix+1−1 nixos/modules/virtualisation/qemu-guest-agent.nix+36 nixos/modules/virtualisation/qemu-vm.nix+65−21 nixos/modules/virtualisation/virtualbox-host.nix+4−4 nixos/modules/virtualisation/xen-dom0.nix+9−3 nixos/release-combined.nix+14−7 nixos/release.nix+58−27 nixos/tests/acme.nix+3−1 nixos/tests/atd.nix−6 nixos/tests/borgbackup.nix+152−11 nixos/tests/chromium.nix+27−2 nixos/tests/common/letsencrypt.nix+24−4 nixos/tests/containers-imperative.nix+2−2 nixos/tests/containers-physical_interfaces.nix+2−2 nixos/tests/containers-tmpfs.nix+1−1 nixos/tests/deluge.nix+29 nixos/tests/dhparams.nix+144 nixos/tests/docker-registry.nix+21−1 nixos/tests/docker-tools-overlay.nix+32 nixos/tests/docker-tools.nix+15−5 nixos/tests/dovecot.nix+16−3 nixos/tests/fleet.nix−76 nixos/tests/gnome3-gdm.nix+10−3 nixos/tests/grafana.nix+1−1 nixos/tests/graphite.nix+13−7 nixos/tests/hibernate.nix+1−1 nixos/tests/hitch/default.nix+33 nixos/tests/hitch/example.pem+53 nixos/tests/hitch/example/index.txt+1 nixos/tests/home-assistant.nix+6−6 nixos/tests/iftop.nix+30 nixos/tests/installer.nix+11−4 nixos/tests/kafka.nix+68 nixos/tests/kafka_0_10.nix−48 nixos/tests/kafka_0_11.nix−48 nixos/tests/kafka_0_9.nix−48 nixos/tests/kafka_1_0.nix−48 nixos/tests/kernel-copperhead.nix+2−2 nixos/tests/keymap.nix+45−84 nixos/tests/kubernetes/certs.nix+52−19 nixos/tests/kubernetes/e2e.nix+1−1 nixos/tests/kubernetes/rbac.nix+2−2 nixos/tests/mesos.nix+3−1 nixos/tests/misc.nix+1−1 nixos/tests/mysql-backup.nix+12−4 nixos/tests/nsd.nix+9 nixos/tests/openldap.nix+2−2 nixos/tests/osquery.nix+28 nixos/tests/panamax.nix−21 nixos/tests/plotinus.nix+5−5 nixos/tests/predictable-interface-names.nix+22−25 nixos/tests/printing.nix+3−1 nixos/tests/prosody.nix+75 nixos/tests/radicale.nix+2−2 nixos/tests/statsd.nix+1−1 nixos/tests/strongswan-swanctl.nix+148 nixos/tests/systemd.nix+2 nixos/tests/transmission.nix+21 nixos/tests/udisks2.nix+3−2 nixos/tests/vault.nix+2−2 nixos/tests/virtualbox.nix+3 nixos/tests/xautolock.nix+24 pkgs/applications/altcoins/bitcoin-abc.nix+2−2 pkgs/applications/altcoins/bitcoin-classic.nix+2−2 pkgs/applications/altcoins/bitcoin-unlimited-const-comparators.patch+38 pkgs/applications/altcoins/bitcoin-unlimited.nix+13−6 pkgs/applications/altcoins/bitcoin-xt.nix+7−5 pkgs/applications/altcoins/btc1.nix+2−2 pkgs/applications/altcoins/dcrd.nix+1 pkgs/applications/altcoins/dcrwallet.nix+1 pkgs/applications/altcoins/default.nix+37−15 pkgs/applications/altcoins/ethsign/default.nix+1−1 pkgs/applications/altcoins/freicoin.nix+1−1 pkgs/applications/altcoins/go-ethereum.nix+2−2 pkgs/applications/altcoins/hevm.nix+1 pkgs/applications/altcoins/litecoin.nix+2−2 pkgs/applications/altcoins/masari.nix+27 pkgs/applications/altcoins/memorycoin.nix+1−1 pkgs/applications/altcoins/mist.nix+71 pkgs/applications/altcoins/monero-gui/default.nix+8−6 pkgs/applications/altcoins/monero-gui/move-log-file.patch+13−17 pkgs/applications/altcoins/monero/build-wallet-rpc.patch−78 pkgs/applications/altcoins/monero/default.nix+26−19 pkgs/applications/altcoins/namecoin.nix+2−2 pkgs/applications/altcoins/nano-wallet/CMakeLists.txt.patch+13 pkgs/applications/altcoins/nano-wallet/default.nix+57 pkgs/applications/altcoins/parity-ui/default.nix+50 pkgs/applications/altcoins/parity-ui/env.nix+19 pkgs/applications/altcoins/parity/beta.nix+7 pkgs/applications/altcoins/parity/default.nix+7 pkgs/applications/altcoins/parity/parity.nix+38 pkgs/applications/altcoins/parity/patches/vendored-sources-1.10.patch+114 pkgs/applications/altcoins/parity/patches/vendored-sources-1.9.patch+101 pkgs/applications/altcoins/particl/particl-core.nix+47 pkgs/applications/audio/aj-snapshot/default.nix+2−2 pkgs/applications/audio/asunder/default.nix+2−2 pkgs/applications/audio/audacious/default.nix+1−1 pkgs/applications/audio/audacious/qt-5.nix+1−1 pkgs/applications/audio/bitwig-studio/bitwig-studio2.nix+2−2 pkgs/applications/audio/caps/default.nix+5−1 pkgs/applications/audio/cava/default.nix+2−2 pkgs/applications/audio/cdparanoia/default.nix+2−1 pkgs/applications/audio/cdparanoia/fix_private_keyword.patch+468 pkgs/applications/audio/chuck/clang.patch+58 pkgs/applications/audio/chuck/default.nix+13−6 pkgs/applications/audio/clementine/default.nix+22−35 pkgs/applications/audio/crip/default.nix+68 pkgs/applications/audio/csound/default.nix+2−2 pkgs/applications/audio/deadbeef/default.nix+1−1 pkgs/applications/audio/dragonfly-reverb/default.nix+33 pkgs/applications/audio/drumkv1/default.nix+2−2 pkgs/applications/audio/easytag/default.nix+2−2 pkgs/applications/audio/eflite/buf-overflow.patch−22 pkgs/applications/audio/eflite/cvs-update.patch−98 pkgs/applications/audio/eflite/default.nix+25−6 pkgs/applications/audio/eflite/link.patch−11 pkgs/applications/audio/elisa/default.nix+35 pkgs/applications/audio/eq10q/default.nix+10−1 pkgs/applications/audio/faust/faust1.nix+1−1 pkgs/applications/audio/faust/faust2.nix+3−3 pkgs/applications/audio/flacon/default.nix+2−2 pkgs/applications/audio/fldigi/default.nix+2−2 pkgs/applications/audio/fluidsynth/default.nix+2−2 pkgs/applications/audio/fmit/default.nix+2−2 pkgs/applications/audio/freewheeling/default.nix+2−2 pkgs/applications/audio/gmpc/default.nix+1−1 pkgs/applications/audio/google-play-music-desktop-player/default.nix+2−2 pkgs/applications/audio/gtkpod/default.nix+8−15 pkgs/applications/audio/guitarix/default.nix+2−2 pkgs/applications/audio/kid3/default.nix+11−12 pkgs/applications/audio/lastfmsubmitd/default.nix+2−2 pkgs/applications/audio/mi2ly/default.nix+1 pkgs/applications/audio/mopidy-gmusic/default.nix → pkgs/applications/audio/mopidy/gmusic.nix+1−1 pkgs/applications/audio/mopidy-iris/default.nix → pkgs/applications/audio/mopidy/iris.nix+5−2 pkgs/applications/audio/mopidy-local-images/default.nix → pkgs/applications/audio/mopidy/local-images.nix pkgs/applications/audio/mopidy-local-sqlite/default.nix → pkgs/applications/audio/mopidy/local-sqlite.nix pkgs/applications/audio/mopidy-moped/default.nix → pkgs/applications/audio/mopidy/moped.nix pkgs/applications/audio/mopidy-mopify/default.nix → pkgs/applications/audio/mopidy/mopify.nix pkgs/applications/audio/mopidy-musicbox-webclient/default.nix → pkgs/applications/audio/mopidy/musicbox-webclient.nix pkgs/applications/audio/mopidy-soundcloud/default.nix → pkgs/applications/audio/mopidy/soundcloud.nix pkgs/applications/audio/mopidy-spotify-tunigo/default.nix → pkgs/applications/audio/mopidy/spotify-tunigo.nix pkgs/applications/audio/mopidy-spotify/default.nix → pkgs/applications/audio/mopidy/spotify.nix+1−1 pkgs/applications/audio/mopidy-youtube/default.nix → pkgs/applications/audio/mopidy/youtube.nix pkgs/applications/audio/mp3blaster/default.nix+2−2 pkgs/applications/audio/mpc123/default.nix+1−1 pkgs/applications/audio/mpg123/default.nix+2−2 pkgs/applications/audio/mpg321/default.nix+1−1 pkgs/applications/audio/ncmpc/default.nix+2−4 pkgs/applications/audio/ncmpcpp/default.nix+2−2 pkgs/applications/audio/padthv1/default.nix+2−2 pkgs/applications/audio/pamixer/default.nix+12−5 pkgs/applications/audio/pd-plugins/helmholtz/default.nix+3 pkgs/applications/audio/praat/default.nix+2−2 pkgs/applications/audio/qmmp/default.nix+2−2 pkgs/applications/audio/quodlibet/default.nix+28−13 pkgs/applications/audio/radiotray-ng/default.nix+4−3 pkgs/applications/audio/rhvoice/default.nix+48 pkgs/applications/audio/rhvoice/honor_nix_environment.patch+14 pkgs/applications/audio/rhythmbox/default.nix+9 pkgs/applications/audio/samplv1/default.nix+2−2 pkgs/applications/audio/snd/default.nix+2−2 pkgs/applications/audio/sonata/default.nix+1−3 pkgs/applications/audio/sound-juicer/default.nix+21−29 pkgs/applications/audio/soundscape-renderer/default.nix+2 pkgs/applications/audio/spotify/default.nix+5−8 pkgs/applications/audio/squishyball/default.nix+2 pkgs/applications/audio/streamripper/default.nix+2−3 pkgs/applications/audio/synthv1/default.nix+2−2 pkgs/applications/audio/x42-plugins/default.nix+2−2 pkgs/applications/audio/yoshimi/default.nix+2−2 pkgs/applications/backup/deja-dup/default.nix+9−18 pkgs/applications/backup/deja-dup/fix-paths.patch+10−11 pkgs/applications/display-managers/lightdm-gtk-greeter/default.nix → pkgs/applications/display-managers/lightdm/gtk-greeter.nix+4−2 pkgs/applications/display-managers/sddm/default.nix+4 pkgs/applications/display-managers/slim/default.nix+5−2 pkgs/applications/editors/android-studio/common.nix+10−1 pkgs/applications/editors/android-studio/default.nix+42−15 pkgs/applications/editors/atom/default.nix+5−3 pkgs/applications/editors/bonzomatic/default.nix+30 pkgs/applications/editors/codeblocks/default.nix+4−8 pkgs/applications/editors/dit/default.nix+30 pkgs/applications/editors/eclipse/build-eclipse.nix+4−4 pkgs/applications/editors/eclipse/default.nix+3−3 pkgs/applications/editors/eclipse/plugins.nix+38−20 pkgs/applications/editors/edbrowse/default.nix+8−10 pkgs/applications/editors/emacs-modes/calfw/default.nix+1−1 pkgs/applications/editors/emacs-modes/elpa-generated.nix+88−47 pkgs/applications/editors/emacs-modes/icicles/default.nix+14−14 pkgs/applications/editors/emacs-modes/jdee/default.nix+1−1 pkgs/applications/editors/emacs-modes/melpa-generated.nix+3020−2400 pkgs/applications/editors/emacs-modes/melpa-packages.nix+3−25 pkgs/applications/editors/emacs-modes/melpa-stable-generated.nix+1246−794 pkgs/applications/editors/emacs-modes/melpa-stable-packages.nix+2−6 pkgs/applications/editors/emacs-modes/org-generated.nix+6−6 pkgs/applications/editors/focuswriter/default.nix+3−3 pkgs/applications/editors/geany/default.nix+2−4 pkgs/applications/editors/ghostwriter/default.nix+2−2 pkgs/applications/editors/hexcurse/default.nix+13−1 pkgs/applications/editors/ht/default.nix+2 pkgs/applications/editors/ht/gcc7.patch+11 pkgs/applications/editors/jetbrains/default.nix+32−29 pkgs/applications/editors/kakoune/default.nix+3−3 pkgs/applications/editors/kodestudio/default.nix+1−1 pkgs/applications/editors/moe/default.nix+1−1 pkgs/applications/editors/nano/default.nix+2−2 pkgs/applications/editors/neovim/default.nix+1 pkgs/applications/editors/neovim/ruby_provider/Gemfile.lock+2−2 pkgs/applications/editors/neovim/ruby_provider/gemset.nix+4−4 pkgs/applications/kde/okteta.nix → pkgs/applications/editors/okteta/default.nix+9−3 pkgs/applications/editors/rstudio/default.nix+2−2 pkgs/applications/editors/sublime/default.nix → pkgs/applications/editors/sublime/2/default.nix+2−2 pkgs/applications/editors/sublime3/default.nix → pkgs/applications/editors/sublime/3/common.nix+26−21 pkgs/applications/editors/sublime/3/packages.nix+18 pkgs/applications/editors/texmacs/common.nix+68 pkgs/applications/editors/texmacs/darwin.nix+59 pkgs/applications/editors/texmacs/darwin.patch+29 pkgs/applications/editors/texmacs/default.nix+18−73 pkgs/applications/editors/texmaker/default.nix+9−6 pkgs/applications/editors/texstudio/default.nix+7−6 pkgs/applications/editors/tiled/default.nix+3−3 pkgs/applications/editors/typora/default.nix+3−3 pkgs/applications/editors/vim/common.nix+2−2 pkgs/applications/editors/vim/configurable.nix+6 pkgs/applications/editors/vim/ft-nix-support.patch+1−70 pkgs/applications/editors/vis/default.nix+6−2 pkgs/applications/editors/vscode/default.nix+5−5 pkgs/applications/editors/vscode-with-extensions/default.nix → pkgs/applications/editors/vscode/with-extensions.nix pkgs/applications/editors/wxhexeditor/default.nix+19−9 pkgs/applications/editors/zed/default.nix−82 pkgs/applications/editors/zed/deps.json−6 pkgs/applications/editors/zed/deps.sh−7 pkgs/applications/editors/zed/node-packages.nix−877 pkgs/applications/editors/zed/node.nix−16 pkgs/applications/gis/grass/default.nix+13−2 pkgs/applications/gis/grass/no_symbolic_links.patch+37 pkgs/applications/gis/openorienteering-mapper/default.nix+68 pkgs/applications/gis/qgis/default.nix+49−14 pkgs/applications/gis/saga/default.nix+3−3 pkgs/applications/graphics/ImageMagick/7.0.nix+2−2 pkgs/applications/graphics/ImageMagick/default.nix+1−1 pkgs/applications/graphics/ahoviewer/default.nix+26−16 pkgs/applications/graphics/ao/default.nix+1 pkgs/applications/graphics/avocode/default.nix+99 pkgs/applications/graphics/c3d/default.nix+4−3 pkgs/applications/graphics/darktable/default.nix+2−2 pkgs/applications/graphics/digikam/default.nix+3−3 pkgs/applications/graphics/displaycal/default.nix+5−4 pkgs/applications/graphics/dosage/default.nix+28 pkgs/applications/graphics/draftsight/default.nix+1−3 pkgs/applications/graphics/epeg/default.nix+31 pkgs/applications/graphics/exrdisplay/default.nix+3−3 pkgs/applications/graphics/fbida/default.nix+6−3 pkgs/applications/graphics/feh/default.nix+2−2 pkgs/applications/graphics/fstl/default.nix+35 pkgs/applications/graphics/geeqie/default.nix+1−1 pkgs/applications/graphics/gimp/2.8.nix−58 pkgs/applications/graphics/gimp/default.nix+96 pkgs/applications/graphics/gimp/plugins/default.nix+13−56 pkgs/applications/graphics/gimp/wrapper.nix+4−3 pkgs/applications/graphics/gnuclad/default.nix+22 pkgs/applications/graphics/gocr/default.nix+2−2 pkgs/applications/graphics/goxel/default.nix+4−2 pkgs/applications/graphics/goxel/disable-imgui_ini.patch+13 pkgs/applications/graphics/graphicsmagick/compat.nix+37 pkgs/applications/graphics/graphicsmagick/default.nix+3−4 pkgs/applications/graphics/gthumb/default.nix+25−14 pkgs/applications/graphics/inkscape/default.nix+27−15 pkgs/applications/graphics/jpegoptim/default.nix+2−2 pkgs/applications/graphics/k3d/default.nix+10−9 pkgs/applications/graphics/krita/default.nix+2−2 pkgs/applications/graphics/leocad/default.nix+1−1 pkgs/applications/graphics/meshlab/default.nix+1 pkgs/applications/graphics/nomacs/default.nix+2−4 pkgs/applications/graphics/nomacs/fix-appdata-install.patch−13 pkgs/applications/graphics/ocrad/default.nix+1−1 pkgs/applications/graphics/openimageio/default.nix+4−4 pkgs/applications/graphics/openscad/default.nix+19−9 pkgs/applications/graphics/panotools/default.nix+1−1 pkgs/applications/graphics/paraview/default.nix+18−6 pkgs/applications/graphics/pencil/default.nix+12−12 pkgs/applications/graphics/photoflow/default.nix+55 pkgs/applications/graphics/pqiv/default.nix+2−2 pkgs/applications/graphics/processing/default.nix−39 pkgs/applications/graphics/processing/use-nixpkgs-jre.patch−88 pkgs/applications/graphics/processing3/default.nix+53 pkgs/applications/graphics/qscreenshot/default.nix+3−2 pkgs/applications/graphics/qtpfsgui/default.nix+1−1 pkgs/applications/graphics/rapcad/default.nix+1 pkgs/applications/graphics/rawtherapee/default.nix+2−2 pkgs/applications/graphics/sane/xsane.nix+3−3 pkgs/applications/graphics/scantailor/advanced.nix+3−3 pkgs/applications/graphics/scantailor/default.nix+1−1 pkgs/applications/graphics/shotwell/default.nix+4−4 pkgs/applications/graphics/shutter/default.nix+5−1 pkgs/applications/graphics/solvespace/default.nix+2−2 pkgs/applications/graphics/ufraw/default.nix+21−5 pkgs/applications/graphics/viewnior/default.nix+1−1 pkgs/applications/graphics/xfig/default.nix+1−1 pkgs/applications/kde/akonadi-import-wizard.nix+20 pkgs/applications/kde/akonadi/akonadi-paths.patch+60−61 pkgs/applications/kde/default.nix+9−2 pkgs/applications/kde/fetch.sh+1−1 pkgs/applications/kde/k3b.nix+12−6 pkgs/applications/kde/kalarm.nix+37 pkgs/applications/kde/kalarmcal.nix+2−2 pkgs/applications/kde/kdebugsettings.nix+20 pkgs/applications/kde/kdepim-addons.nix+23 pkgs/applications/kde/konsole.nix+2−2 pkgs/applications/kde/krfb.nix+2−2 pkgs/applications/kde/ksystemlog.nix+17 pkgs/applications/kde/mbox-importer.nix−3 pkgs/applications/kde/okular.nix+16−14 pkgs/applications/kde/spectacle.nix+2−1 pkgs/applications/kde/srcs.nix+860−852 pkgs/applications/misc/1password/default.nix+34 pkgs/applications/misc/alacritty/default.nix+5−3 pkgs/applications/misc/apvlv/default.nix+6−1 pkgs/applications/misc/bb/default.nix+1−1 pkgs/applications/misc/bleachbit/default.nix+2−2 pkgs/applications/misc/blender/default.nix+13−3 pkgs/applications/misc/buku/default.nix+11−6 pkgs/applications/misc/calibre/default.nix+4−12 pkgs/applications/misc/calibre/disable_plugins.patch+17 pkgs/applications/misc/calibre/no_updates_dialog.patch+15 pkgs/applications/misc/cataract/build.nix+1−1 pkgs/applications/misc/cbatticon/default.nix+2−2 pkgs/applications/misc/cheat/default.nix+2−2 pkgs/applications/misc/cherrytree/default.nix+2−2 pkgs/applications/misc/chirp/default.nix+4−4 pkgs/applications/misc/cli-visualizer/default.nix+3−3 pkgs/applications/misc/cointop/default.nix+30 pkgs/applications/misc/cointop/deps.nix+3 pkgs/applications/misc/confclerk/default.nix+3−3 pkgs/applications/misc/copyq/default.nix+2−2 pkgs/applications/misc/coursera-dl/default.nix+41 pkgs/applications/misc/cpp-ethereum/default.nix+1 pkgs/applications/misc/ctodo/default.nix+1−1 pkgs/applications/misc/curabydagoma/default.nix+76 pkgs/applications/misc/dbeaver/default.nix+4−4 pkgs/applications/misc/deco/default.nix+2−2 pkgs/applications/misc/djvulibre/default.nix+2−4 pkgs/applications/misc/dmenu/default.nix+4−4 pkgs/applications/misc/dunst/default.nix+3−3 pkgs/applications/misc/electron-cash/default.nix+2−2 pkgs/applications/misc/electrum-dash/default.nix → pkgs/applications/misc/electrum/dash.nix pkgs/applications/misc/electrum/default.nix+2−11 pkgs/applications/misc/electrum-ltc/default.nix → pkgs/applications/misc/electrum/ltc.nix+2−2 pkgs/applications/misc/et/default.nix+2−2 pkgs/applications/misc/far2l/add-nix-syntax-highlighting.patch+3−3 pkgs/applications/misc/far2l/default.nix+3−3 pkgs/applications/misc/gcal/default.nix+1−1 pkgs/applications/misc/gcalcli/default.nix+44−19 pkgs/applications/misc/girara/default.nix+7−24 pkgs/applications/misc/gkrellm/default.nix+1−1 pkgs/applications/misc/gmtp/default.nix+6−2 pkgs/applications/misc/gnome-usage/default.nix+37 pkgs/applications/misc/gnuradio-ais/default.nix → pkgs/applications/misc/gnuradio/ais.nix pkgs/applications/misc/gnuradio-gsm/default.nix → pkgs/applications/misc/gnuradio/gsm.nix pkgs/applications/misc/gnuradio-nacl/default.nix → pkgs/applications/misc/gnuradio/nacl.nix pkgs/applications/misc/gnuradio-osmosdr/default.nix → pkgs/applications/misc/gnuradio/osmosdr.nix pkgs/applications/misc/gnuradio-rds/default.nix → pkgs/applications/misc/gnuradio/rds.nix pkgs/applications/misc/go-jira/default.nix+22 pkgs/applications/misc/googleearth/default.nix+30−12 pkgs/applications/misc/googler/default.nix+2−2 pkgs/applications/misc/gosmore/default.nix+3 pkgs/applications/misc/gosmore/pointer_int_comparison.patch+11 pkgs/applications/misc/gpa/default.nix+1−1 pkgs/applications/misc/gphoto2/default.nix+2−2 pkgs/applications/misc/gpx/default.nix+23 pkgs/applications/misc/gqrx/default.nix+2−2 pkgs/applications/misc/gramps/default.nix+8−17 pkgs/applications/misc/guake/default.nix+25−57 pkgs/applications/misc/gv/default.nix+14−3 pkgs/applications/misc/haxor-news/default.nix+1−1 pkgs/applications/misc/houdini/runtime.nix+2−2 pkgs/applications/misc/hr/default.nix+1−1 pkgs/applications/misc/hstr/default.nix+3−3 pkgs/applications/misc/hubstaff/default.nix+2−2 pkgs/applications/misc/hugo/default.nix+2−2 pkgs/applications/misc/hugo/deps.nix+61−61 pkgs/applications/misc/hyper/default.nix+2−2 pkgs/applications/misc/ipmicfg/default.nix+3−2 pkgs/applications/misc/ipmiview/default.nix−2 pkgs/applications/misc/jekyll/basic/Gemfile.lock+8−10 pkgs/applications/misc/jekyll/basic/gemset.nix+18−18 pkgs/applications/misc/jekyll/full/Gemfile.lock+10−12 pkgs/applications/misc/jekyll/full/gemset.nix+22−22 pkgs/applications/misc/jekyll/update.sh+15 pkgs/applications/misc/jgmenu/default.nix+1−1 pkgs/applications/misc/josm/default.nix+2−2 pkgs/applications/misc/k2pdfopt/default.nix+1−1 pkgs/applications/misc/kdeconnect/default.nix+5−4 pkgs/applications/misc/keepass/default.nix+2−2 pkgs/applications/misc/keepassx/community.nix+15−4 pkgs/applications/misc/khal/default.nix+1−1 pkgs/applications/misc/khard/default.nix+1−1 pkgs/applications/misc/kitty/default.nix+10−4 pkgs/applications/misc/latte-dock/default.nix+2−2 pkgs/applications/misc/lilyterm/default.nix+2−2 pkgs/applications/misc/limesuite/default.nix+53 pkgs/applications/misc/lyx/default.nix+3−3 pkgs/applications/misc/makeself/default.nix+2−2 pkgs/applications/misc/masterpdfeditor/default.nix+42−52 pkgs/applications/misc/mdp/default.nix+1−1 pkgs/applications/misc/mediainfo-gui/default.nix+2−2 pkgs/applications/misc/mediainfo/default.nix+2−2 pkgs/applications/misc/minergate/default.nix+36 pkgs/applications/misc/mucommander/default.nix+82 pkgs/applications/misc/multimon-ng/default.nix+2−2 pkgs/applications/misc/mupdf/default.nix+4−20 pkgs/applications/misc/mupdf/default.upstream+1−1 pkgs/applications/misc/mupdf/mupdf-1.12-shared_libs-1.patch → pkgs/applications/misc/mupdf/mupdf-1.13-shared_libs-1.patch+9−5 pkgs/applications/misc/mwic/default.nix+3−3 pkgs/applications/misc/netsurf/buildsystem/default.nix+2−2 pkgs/applications/misc/netsurf/libcss/default.nix+2 pkgs/applications/misc/nixnote2/default.nix+6 pkgs/applications/misc/nnn/default.nix+2−2 pkgs/applications/misc/octoprint/default.nix+3 pkgs/applications/misc/onboard/default.nix+1 pkgs/applications/misc/oneko/default.nix+1−1 pkgs/applications/misc/open-pdf-presenter/default.nix−22 pkgs/applications/misc/opencpn/default.nix+2−2 pkgs/applications/misc/orca/default.nix+6−5 pkgs/applications/misc/overmind/default.nix+27 pkgs/applications/misc/pcmanfm/default.nix+2−2 pkgs/applications/misc/pcmanx-gtk2/default.nix+12−6 pkgs/applications/misc/pdf-quench/default.nix+36 pkgs/applications/misc/pdfpc/default.nix+2−2 pkgs/applications/misc/pgmanage/default.nix+10−2 pkgs/applications/misc/plank/default.nix+48 pkgs/applications/misc/playonlinux/default.nix+1−3 pkgs/applications/misc/plover/default.nix+40−19 pkgs/applications/misc/polybar/default.nix+8−1 pkgs/applications/misc/posterazor/default.nix+1−1 pkgs/applications/misc/projectlibre/default.nix+44 pkgs/applications/misc/pytrainer/default.nix+11−7 pkgs/applications/misc/pytrainer/fix-test-tz.patch+7−4 pkgs/applications/misc/qlcplus/default.nix+2−2 pkgs/applications/misc/qmapshack/default.nix+2−2 pkgs/applications/misc/qpdfview/default.nix+8−9 pkgs/applications/misc/qsyncthingtray/default.nix+1−1 pkgs/applications/misc/qtbitcointrader/default.nix+2−2 pkgs/applications/misc/redis-desktop-manager/default.nix+7−11 pkgs/applications/misc/robo3t/default.nix+2−1 pkgs/applications/misc/rofi/config.patch+54 pkgs/applications/misc/rofi/default.nix+14−6 pkgs/applications/misc/rofi/wrapper.nix+17 pkgs/applications/misc/rsibreak/default.nix+28 pkgs/applications/misc/rtl-sdr/default.nix+2−2 pkgs/applications/misc/rtv/default.nix+3−3 pkgs/applications/misc/safeeyes/default.nix+71 pkgs/applications/misc/sakura/default.nix+2−2 pkgs/applications/misc/sc-im/default.nix+1−1 pkgs/applications/misc/sdcv/default.nix+1−2 pkgs/applications/misc/sent/default.nix+6−2 pkgs/applications/misc/sigal/default.nix+4−2 pkgs/applications/misc/simplenote/default.nix+4−3 pkgs/applications/misc/slade/default.nix+1−1 pkgs/applications/misc/slade/git.nix+1−1 pkgs/applications/misc/sleepyhead/default.nix+42 pkgs/applications/misc/slic3r-prusa3d/default.nix → pkgs/applications/misc/slic3r/prusa3d.nix+8−3 pkgs/applications/misc/slstatus/default.nix+30 pkgs/applications/misc/soapyairspy/default.nix+30 pkgs/applications/misc/soapybladerf/default.nix+31 pkgs/applications/misc/soapyhackrf/default.nix+30 pkgs/applications/misc/soapyremote/default.nix+28 pkgs/applications/misc/soapysdr/default.nix+50 pkgs/applications/misc/soapyuhd/default.nix+34 pkgs/applications/misc/spacefm/default.nix+6−2 pkgs/applications/misc/st/default.nix+8−7 pkgs/applications/misc/st/st-fix-deletekey.patch−15 pkgs/applications/misc/stag/default.nix+1−1 pkgs/applications/misc/stupidterm/default.nix+3−3 pkgs/applications/misc/synapse/default.nix+2−2 pkgs/applications/misc/tasknc/default.nix+1−1 pkgs/applications/misc/tasksh/default.nix+1−1 pkgs/applications/misc/taskwarrior/default.nix+4−4 pkgs/applications/misc/terminator/default.nix+6−10 pkgs/applications/misc/terminus/default.nix+43 pkgs/applications/misc/teseq/default.nix+22 pkgs/applications/misc/timewarrior/default.nix+2−2 pkgs/applications/misc/todiff/default.nix+23 pkgs/applications/misc/todolist/default.nix+22 pkgs/applications/misc/toot/default.nix+1−1 pkgs/applications/misc/translate-shell/default.nix+18−81 pkgs/applications/misc/urh/default.nix+2−2 pkgs/applications/misc/urlscan/default.nix+7−4 pkgs/applications/misc/veracrypt/default.nix+2−2 pkgs/applications/misc/vit/default.nix+2−2 pkgs/applications/misc/weather/default.nix+1−1 pkgs/applications/misc/welle-io/default.nix+4−4 pkgs/applications/misc/wmname/default.nix+1−1 pkgs/applications/misc/wordnet/default.nix+1−1 pkgs/applications/misc/workrave/default.nix+10−19 pkgs/applications/misc/xca/default.nix+2−2 pkgs/applications/misc/xfe/default.nix+2−2 pkgs/applications/misc/xfontsel/default.nix+2−2 pkgs/applications/misc/xmr-stak/default.nix+11−6 pkgs/applications/misc/xmrig/default.nix+34 pkgs/applications/misc/xmrig/proxy.nix+34 pkgs/applications/misc/xpdf/default.nix+1−1 pkgs/applications/misc/xterm/default.nix+2−2 pkgs/applications/misc/xtermcontrol/default.nix+2−2 pkgs/applications/misc/yaft/default.nix+1−1 pkgs/applications/misc/yakuake/default.nix+2−2 pkgs/applications/misc/yarssr/default.nix+68 pkgs/applications/misc/yate/default.nix+5−4 pkgs/applications/misc/zathura/core/default.nix+23−33 pkgs/applications/misc/zathura/core/icon.xpm−120 pkgs/applications/misc/zathura/djvu/default.nix+7−16 pkgs/applications/misc/zathura/djvu/gtkflags.patch−23 pkgs/applications/misc/zathura/pdf-mupdf/default.nix+8−15 pkgs/applications/misc/zathura/pdf-poppler/default.nix+7−14 pkgs/applications/misc/zathura/ps/default.nix+8−17 pkgs/applications/misc/zathura/ps/gtkflags.patch−23 pkgs/applications/misc/zathura/wrapper.nix+1−1 pkgs/applications/networking/browsers/chromium/browser.nix+1 pkgs/applications/networking/browsers/chromium/common.nix+16−18 pkgs/applications/networking/browsers/chromium/default.nix+1−1 pkgs/applications/networking/browsers/chromium/patches/chromium-gcc5-r4.patch−98 pkgs/applications/networking/browsers/chromium/patches/constexpr-fix.patch−98 pkgs/applications/networking/browsers/chromium/patches/fix_network_api_crash.patch−77 pkgs/applications/networking/browsers/chromium/patches/include-math-for-round.patch−34 pkgs/applications/networking/browsers/chromium/patches/neon_buildfix.patch+21 pkgs/applications/networking/browsers/chromium/patches/skia_buildfix.patch+22 pkgs/applications/networking/browsers/chromium/plugins.nix+2−2 pkgs/applications/networking/browsers/chromium/upstream-info.nix+9−9 pkgs/applications/networking/browsers/dwb/default.nix−35 pkgs/applications/networking/browsers/eolie/0001-Remove-post-install-script-handle-in-nix-config-inst.patch−23 pkgs/applications/networking/browsers/eolie/default.nix+8−9 pkgs/applications/networking/browsers/falkon/default.nix+2−2 pkgs/applications/networking/browsers/firefox-bin/beta_sources.nix+399−389 pkgs/applications/networking/browsers/firefox-bin/default.nix+7−9 pkgs/applications/networking/browsers/firefox-bin/devedition_sources.nix+399−389 pkgs/applications/networking/browsers/firefox-bin/release_sources.nix+395−385 pkgs/applications/networking/browsers/firefox-bin/update.nix+1−1 pkgs/applications/networking/browsers/firefox/common.nix+3−3 pkgs/applications/networking/browsers/firefox/fix-pa-context-connect-retval.patch+26 pkgs/applications/networking/browsers/firefox/packages.nix+49−34 pkgs/applications/networking/browsers/firefox/update.nix+4−2 pkgs/applications/networking/browsers/firefox/wrapper.nix+13−12 pkgs/applications/networking/browsers/google-chrome/default.nix+7−10 pkgs/applications/networking/browsers/links2/default.nix+2−2 pkgs/applications/networking/browsers/luakit/default.nix+61 pkgs/applications/networking/browsers/lynx/default.nix+7−4 pkgs/applications/networking/browsers/mozilla-plugins/flashplayer/default.nix+6−6 pkgs/applications/networking/browsers/mozilla-plugins/flashplayer/standalone.nix+5−5 pkgs/applications/networking/browsers/mozilla-plugins/trezor/default.nix+3−4 pkgs/applications/networking/browsers/otter/default.nix+2−2 pkgs/applications/networking/browsers/palemoon/default.nix+4−4 pkgs/applications/networking/browsers/qutebrowser/default.nix+2−2 pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix+4−4 pkgs/applications/networking/c14/default.nix+4−5 pkgs/applications/networking/cluster/click/default.nix+28 pkgs/applications/networking/cluster/cni/default.nix+3−6 pkgs/applications/networking/cluster/cni/plugins.nix+33 pkgs/applications/networking/cluster/docker-machine/default.nix+2−2 pkgs/applications/networking/cluster/flink/default.nix+3−3 pkgs/applications/networking/cluster/helm/default.nix+6−5 pkgs/applications/networking/cluster/heptio-ark/default.nix+25 pkgs/applications/networking/cluster/kontemplate/default.nix+25−16 pkgs/applications/networking/cluster/kontemplate/deps.nix+42−51 pkgs/applications/networking/cluster/kubernetes/default.nix+14−5 pkgs/applications/networking/cluster/mesos/default.nix+17−13 pkgs/applications/networking/cluster/minikube/default.nix+4−4 pkgs/applications/networking/cluster/openshift/default.nix+42−17 pkgs/applications/networking/cluster/panamax/api/Gemfile−23 pkgs/applications/networking/cluster/panamax/api/Gemfile.lock−164 pkgs/applications/networking/cluster/panamax/api/default.nix−74 pkgs/applications/networking/cluster/panamax/api/gemset.nix−568 pkgs/applications/networking/cluster/panamax/ui/Gemfile−31 pkgs/applications/networking/cluster/panamax/ui/Gemfile.lock−226 pkgs/applications/networking/cluster/panamax/ui/default.nix−72 pkgs/applications/networking/cluster/panamax/ui/gemset.nix−789 pkgs/applications/networking/cluster/pig/default.nix+2−2 pkgs/applications/networking/cluster/spark/default.nix+11−13 pkgs/applications/networking/cluster/taktuk/default.nix+2−2 pkgs/applications/networking/cluster/terraform-provider-ibm/default.nix+38 pkgs/applications/networking/cluster/terraform-provider-libvirt/default.nix+47 pkgs/applications/networking/cluster/terraform-provider-libvirt/deps.nix+12 pkgs/applications/networking/cluster/terraform-provider-nixos/default.nix+23 pkgs/applications/networking/cluster/terraform/default.nix+7−3 pkgs/applications/networking/cluster/terraform/providers/data.nix+85−64 pkgs/applications/networking/cluster/terraform/providers/update-all+1−1 pkgs/applications/networking/cluster/terragrunt/default.nix+5−5 pkgs/applications/networking/cluster/terragrunt/deps.nix+16−16 pkgs/applications/networking/compactor/default.nix+52 pkgs/applications/networking/corebird/default.nix+14−10 pkgs/applications/networking/dropbox-cli/default.nix → pkgs/applications/networking/dropbox/cli.nix pkgs/applications/networking/dropbox/default.nix+1−1 pkgs/applications/networking/enhanced-ctorrent/default.nix+14−1 pkgs/applications/networking/errbot/default.nix+3−1 pkgs/applications/networking/feedreaders/newsbeuter/default.nix−61 pkgs/applications/networking/feedreaders/newsboat/default.nix+4−2 pkgs/applications/networking/firehol/default.nix+32−3 pkgs/applications/networking/flexget/default.nix+53−61 pkgs/applications/networking/gmailieer/default.nix+2−2 pkgs/applications/networking/gns3/default.nix+3−3 pkgs/applications/networking/google-drive-ocamlfuse/default.nix+6−7 pkgs/applications/networking/ids/snort/default.nix+1−1 pkgs/applications/networking/ike/default.nix−2 pkgs/applications/networking/instant-messengers/baresip/default.nix+7−9 pkgs/applications/networking/instant-messengers/bitlbee/default.nix+1−1 pkgs/applications/networking/instant-messengers/blink/default.nix+7−6 pkgs/applications/networking/instant-messengers/dino/default.nix+3−3 pkgs/applications/networking/instant-messengers/discord/default.nix+2−2 pkgs/applications/networking/instant-messengers/franz/default.nix+1−1 pkgs/applications/networking/instant-messengers/gajim/default.nix+38−97 pkgs/applications/networking/instant-messengers/hipchat/default.nix+2−2 pkgs/applications/networking/instant-messengers/jitsi/default.nix−2 pkgs/applications/networking/instant-messengers/nheko/default.nix+83 pkgs/applications/networking/instant-messengers/nheko/external-deps.patch+94 pkgs/applications/networking/instant-messengers/nheko/fetchurls.patch+21 pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-discord/default.nix+31 pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-hangouts/default.nix+3−3 pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/default.nix+2−2 pkgs/applications/networking/instant-messengers/pidgin-plugins/telegram-purple/default.nix+4−4 pkgs/applications/networking/instant-messengers/profanity/default.nix+27−8 pkgs/applications/networking/instant-messengers/profanity/patches/packages-osx.patch+11 pkgs/applications/networking/instant-messengers/profanity/patches/undefined-macros.patch+40 pkgs/applications/networking/instant-messengers/psi-plus/default.nix+2−2 pkgs/applications/networking/instant-messengers/qtox/default.nix+18−13 pkgs/applications/networking/instant-messengers/quaternion/default.nix+4−7 pkgs/applications/networking/instant-messengers/ratox/default.nix+10−8 pkgs/applications/networking/instant-messengers/ratox/ldlibs.patch−5 pkgs/applications/networking/instant-messengers/ring-daemon/default.nix+2−2 pkgs/applications/networking/instant-messengers/riot/riot-web.nix+2−2 pkgs/applications/networking/instant-messengers/signal-desktop/beta.nix+7−2 pkgs/applications/networking/instant-messengers/signal-desktop/default.nix+5−5 pkgs/applications/networking/instant-messengers/skypeforlinux/default.nix+2−2 pkgs/applications/networking/instant-messengers/slack/default.nix+2−2 pkgs/applications/networking/instant-messengers/stride/default.nix+2−2 pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix+18−129 pkgs/applications/networking/instant-messengers/telegram/tdesktop/generic.nix+140 pkgs/applications/networking/instant-messengers/telepathy/gabble/default.nix+4−4 pkgs/applications/networking/instant-messengers/telepathy/haze/default.nix+1−1 pkgs/applications/networking/instant-messengers/telepathy/idle/default.nix+1−1 pkgs/applications/networking/instant-messengers/telepathy/logger/default.nix+2−2 pkgs/applications/networking/instant-messengers/telepathy/salut/default.nix+1−1 pkgs/applications/networking/instant-messengers/toxic/default.nix+2−2 pkgs/applications/networking/instant-messengers/utox/default.nix+15−9 pkgs/applications/networking/instant-messengers/viber/default.nix+1−3 pkgs/applications/networking/instant-messengers/weechat-matrix-bridge/default.nix+3−3 pkgs/applications/networking/instant-messengers/wire-desktop/default.nix+104 pkgs/applications/networking/instant-messengers/zoom-us/default.nix+24−17 pkgs/applications/networking/insync/default.nix+2−2 pkgs/applications/networking/ipfs/default.nix+3−3 pkgs/applications/networking/irc/bip/default.nix+1−1 pkgs/applications/networking/irc/ii/default.nix+2−2 pkgs/applications/networking/irc/irssi/default.nix+3−3 pkgs/applications/networking/irc/quassel/default.nix−2 pkgs/applications/networking/irc/quassel/source.nix+2−2 pkgs/applications/networking/irc/sic/default.nix+1−1 pkgs/applications/networking/irc/weechat/default.nix+11−3 pkgs/applications/networking/mailreaders/balsa/default.nix+61 pkgs/applications/networking/mailreaders/imapfilter.nix+2−2 pkgs/applications/networking/mailreaders/inboxer/default.nix+2−2 pkgs/applications/networking/mailreaders/lumail/default.nix+42−10 pkgs/applications/networking/mailreaders/mutt/default.nix+2−2 pkgs/applications/networking/mailreaders/neomutt/default.nix+4−4 pkgs/applications/networking/mailreaders/notmuch/default.nix+4−2 pkgs/applications/networking/mailreaders/sylpheed/default.nix+3−3 pkgs/applications/networking/mailreaders/thunderbird-bin/default.nix−2 pkgs/applications/networking/mailreaders/thunderbird-bin/release_sources.nix+237−237 pkgs/applications/networking/mailreaders/thunderbird/default.nix+3−3 pkgs/applications/networking/ndppd/default.nix+17−2 pkgs/applications/networking/netperf/default.nix+13−5 pkgs/applications/networking/newsreaders/liferea/default.nix+2−2 pkgs/applications/networking/newsreaders/pan/default.nix+23−8 pkgs/applications/networking/newsreaders/quiterss/default.nix+2−2 pkgs/applications/networking/nextcloud-client/default.nix+1−1 pkgs/applications/networking/offrss/default.nix+1−1 pkgs/applications/networking/ostinato/default.nix+1−1 pkgs/applications/networking/owncloud-client/default.nix+3−3 pkgs/applications/networking/owncloud-client/find-sql.patch+12 pkgs/applications/networking/p2p/frostwire/default.nix+69−13 pkgs/applications/networking/p2p/frostwire/frostwire-bin.nix+31 pkgs/applications/networking/p2p/gnunet/default.nix+1−1 pkgs/applications/networking/p2p/gnunet/svn.nix → pkgs/applications/networking/p2p/gnunet/git.nix+9−10 pkgs/applications/networking/p2p/qbittorrent/default.nix+2−2 pkgs/applications/networking/p2p/soulseekqt/default.nix+55 pkgs/applications/networking/p2p/tixati/default.nix+2−2 pkgs/applications/networking/p2p/transmission/default.nix+3−3 pkgs/applications/networking/p2p/tribler/default.nix+4−4 pkgs/applications/networking/remote/citrix-receiver/default.nix+35−13 pkgs/applications/networking/remote/freerdp/default.nix+6−6 pkgs/applications/networking/remote/teamviewer/default.nix+16−45 pkgs/applications/networking/resilio-sync/default.nix+3−3 pkgs/applications/networking/seafile-client/default.nix+3−3 pkgs/applications/networking/sniffers/wireshark/default.nix+7−2 pkgs/applications/networking/spideroak/default.nix+7−7 pkgs/applications/networking/sync/backintime/common.nix+2−2 pkgs/applications/networking/sync/backintime/qt4.nix+4−1 pkgs/applications/networking/sync/rclone/default.nix+2−2 pkgs/applications/networking/syncplay/default.nix+3−3 pkgs/applications/networking/syncthing-gtk/default.nix+6−6 pkgs/applications/networking/syncthing-gtk/disable-syncthing-binary-configuration.patch+20−20 pkgs/applications/networking/syncthing/default.nix+2−2 pkgs/applications/networking/testssl/default.nix+22−17 pkgs/applications/networking/testssl/testssl.patch−10 pkgs/applications/networking/vnstat/default.nix+2−2 pkgs/applications/networking/znc/default.nix+2−2 pkgs/applications/office/abiword/default.nix+9−12 pkgs/applications/office/atlassian-cli/default.nix+31 pkgs/applications/office/atlassian-cli/wrapper.sh+20 pkgs/applications/office/beancount/bean-add.nix+1−1 pkgs/applications/office/calligra/default.nix+2−10 pkgs/applications/office/cb2bib/default.nix+2−2 pkgs/applications/office/fava/default.nix+3−3 pkgs/applications/office/gnucash/2.4.nix+85 pkgs/applications/office/gnucash/2.6.nix+1−1 pkgs/applications/office/gnucash/default.nix+60−42 pkgs/applications/office/gnumeric/default.nix+2−2 pkgs/applications/office/homebank/default.nix+2−2 pkgs/applications/office/kexi/default.nix+2−2 pkgs/applications/office/kmymoney/default.nix+70 pkgs/applications/office/ledger/default.nix+2−2 pkgs/applications/office/libreoffice/default-primary-src.nix+3−3 pkgs/applications/office/libreoffice/default.nix+4−4 pkgs/applications/office/libreoffice/libreoffice-srcs.nix+8−8 pkgs/applications/office/libreoffice/still-primary-src.nix+3−3 pkgs/applications/office/libreoffice/still.nix+10−5 pkgs/applications/office/libreoffice/wrapper.nix+16 pkgs/applications/office/libreoffice/wrapper.sh+18 pkgs/applications/office/marp/default.nix+2−2 pkgs/applications/office/mendeley/default.nix+5−8 pkgs/applications/office/mendeley/update.nix+2−2 pkgs/applications/office/skrooge/default.nix+12−4 pkgs/applications/office/spice-up/default.nix+2−6 pkgs/applications/office/todo.txt-cli/default.nix+2−2 pkgs/applications/office/wordgrinder/default.nix+1−1 pkgs/applications/office/zim/default.nix+2−2 pkgs/applications/office/zotero/default.nix+3−3 pkgs/applications/science/astronomy/celestia/default.nix+5−7 pkgs/applications/science/biology/EZminc/default.nix+32 pkgs/applications/science/biology/N3/default.nix+38 pkgs/applications/science/biology/bcftools/default.nix+4−6 pkgs/applications/science/biology/conglomerate/default.nix+34 pkgs/applications/science/biology/igv/default.nix+2−2 pkgs/applications/science/biology/inormalize/default.nix+39 pkgs/applications/science/biology/inormalize/lgmask-interp.patch+10 pkgs/applications/science/biology/inormalize/nu_correct_norm-interp.patch+10 pkgs/applications/science/biology/minc-tools/default.nix+17−10 pkgs/applications/science/biology/minc-widgets/default.nix+34 pkgs/applications/science/biology/mni_autoreg/default.nix+36 pkgs/applications/science/biology/paml/default.nix+2−2 pkgs/applications/science/biology/picard-tools/default.nix+2−2 pkgs/applications/science/biology/samtools/default.nix+2−2 pkgs/applications/science/biology/snpeff/default.nix+3−3 pkgs/applications/science/chemistry/jmol/default.nix+53 pkgs/applications/science/chemistry/octopus/default.nix+2−2 pkgs/applications/science/chemistry/pymol/default.nix+6−6 pkgs/applications/science/electronics/gtkwave/default.nix+2−2 pkgs/applications/science/electronics/kicad/unstable.nix+7−5 pkgs/applications/science/electronics/ngspice/default.nix+8−7 pkgs/applications/science/electronics/pulseview/default.nix+2−2 pkgs/applications/science/electronics/verilator/default.nix+2−2 pkgs/applications/science/logic/abella/default.nix+2−2 pkgs/applications/science/logic/aspino/default.nix+19−7 pkgs/applications/science/logic/beluga/default.nix+34 pkgs/applications/science/logic/coq/default.nix+7−6 pkgs/applications/science/logic/elan/default.nix+44 pkgs/applications/science/logic/lean/default.nix+2−2 pkgs/applications/science/logic/ltl2ba/default.nix+2−2 pkgs/applications/science/logic/mcrl2/default.nix+1−1 pkgs/applications/science/logic/ott/default.nix+2−2 pkgs/applications/science/logic/picosat/default.nix+3 pkgs/applications/science/logic/potassco/clingo.nix+8−5 pkgs/applications/science/logic/symbiyosys/default.nix+5−5 pkgs/applications/science/logic/tamarin-prover/default.nix+17−5 pkgs/applications/science/logic/tlaplus/tlaps.nix+56 pkgs/applications/science/logic/tlaplus/toolbox.nix+77 pkgs/applications/science/logic/tptp/default.nix+2−2 pkgs/applications/science/logic/verifast/default.nix+15−10 pkgs/applications/science/logic/workcraft/default.nix+33 pkgs/applications/science/logic/z3/4.5.0.nix−31 pkgs/applications/science/machine-learning/labelimg/default.nix+23 pkgs/applications/science/machine-learning/shogun/default.nix+15−7 pkgs/applications/science/machine-learning/torch/torch-distro.nix+3−1 pkgs/applications/science/math/R/default.nix+4−3 pkgs/applications/science/math/bcal/default.nix+3−4 pkgs/applications/science/math/calc/default.nix+34−32 pkgs/applications/science/math/ecm/default.nix+3−3 pkgs/applications/science/math/fricas/default.nix+2−2 pkgs/applications/science/math/gap/default.nix+70−15 pkgs/applications/science/math/geogebra/default.nix+4−8 pkgs/applications/science/math/gfan/default.nix+2−2 pkgs/applications/science/math/giac/default.nix+26−8 pkgs/applications/science/math/ginac/default.nix+2−2 pkgs/applications/science/math/gmsh/default.nix+2−2 pkgs/applications/science/math/jags/default.nix+2−2 pkgs/applications/science/math/lrcalc/default.nix+41 pkgs/applications/science/math/mathematica/default.nix+13−14 pkgs/applications/science/math/mathematica/l10ns.nix+33 pkgs/applications/science/math/maxima/default.nix+44−10 pkgs/applications/science/math/maxima/known-ecl-failures.patch+21 pkgs/applications/science/math/nasc/default.nix+71 pkgs/applications/science/math/palp/default.nix+67 pkgs/applications/science/math/pari/default.nix+16−4 pkgs/applications/science/math/pari/gp2c.nix+2−2 pkgs/applications/science/math/pari/unstable.nix−31 pkgs/applications/science/math/pspp/default.nix+1−1 pkgs/applications/science/math/pynac/default.nix+47 pkgs/applications/science/math/qalculate-gtk/default.nix+2−2 pkgs/applications/science/math/sage/default.nix+1−1 pkgs/applications/science/math/scilab-bin/default.nix+7−7 pkgs/applications/science/math/singular/default.nix+67−23 pkgs/applications/science/math/weka/default.nix+7−11 pkgs/applications/science/math/yacas/default.nix+27−32 pkgs/applications/science/math/yacas/gcc43.patch−17 pkgs/applications/science/misc/cytoscape/default.nix+2−2 pkgs/applications/science/misc/gephi/default.nix+54−27 pkgs/applications/science/misc/megam/default.nix+1−1 pkgs/applications/science/misc/motu-client/default.nix+3−3 pkgs/applications/science/misc/openmvg/default.nix+1 pkgs/applications/science/misc/openmvs/default.nix+3−4 pkgs/applications/science/misc/sasview/default.nix+75 pkgs/applications/science/misc/sasview/local_config.patch+22 pkgs/applications/science/misc/sasview/pyparsing-fix.patch+13 pkgs/applications/science/misc/sasview/xhtml2pdf.nix+32 pkgs/applications/science/misc/tulip/default.nix+1−1 pkgs/applications/science/molecular-dynamics/gromacs/default.nix+3−3 pkgs/applications/science/physics/sacrifice/default.nix+9−1 pkgs/applications/science/physics/sherpa/default.nix+2−5 pkgs/applications/science/physics/sherpa/explicit_overloads.patch−119 pkgs/applications/science/robotics/qgroundcontrol/default.nix+4−4 pkgs/applications/science/robotics/yarp/default.nix+2−2 pkgs/applications/science/spyder/default.nix+2−2 pkgs/applications/search/catfish/default.nix+1−1 pkgs/applications/search/grepcidr/default.nix+21 pkgs/applications/taxes/aangifte-2006/builder.sh−17 pkgs/applications/taxes/aangifte-2006/default.nix−21 pkgs/applications/taxes/aangifte-2007/builder.sh−19 pkgs/applications/taxes/aangifte-2007/default.nix−24 pkgs/applications/taxes/aangifte-2008/builder.sh−19 pkgs/applications/taxes/aangifte-2008/default.nix−25 pkgs/applications/taxes/aangifte-2009/default.nix−40 pkgs/applications/taxes/aangifte-2010/default.nix−40 pkgs/applications/taxes/aangifte-2011/default.nix−40 pkgs/applications/taxes/aangifte-2012/default.nix−41 pkgs/applications/taxes/aangifte-2013-wa/default.nix−41 pkgs/applications/taxes/aangifte-2013/default.nix−41 pkgs/applications/taxes/aangifte-2014-wa/default.nix−41 pkgs/applications/taxes/aangifte-2014/default.nix−41 pkgs/applications/version-management/bazaar/default.nix+10−2 pkgs/applications/version-management/bugseverywhere/default.nix+1−1 pkgs/applications/version-management/cvs/default.nix+5−1 pkgs/applications/version-management/fossil/default.nix+8−11 pkgs/applications/version-management/git-and-tools/cgit/default.nix+5−1 pkgs/applications/version-management/git-and-tools/default.nix+11−3 pkgs/applications/version-management/git-and-tools/git-cola/default.nix+4−4 pkgs/applications/version-management/git-and-tools/git-dit/default.nix+1−1 pkgs/applications/version-management/git-and-tools/git-extras/default.nix+2−2 pkgs/applications/version-management/git-and-tools/git-open/default.nix+2−2 pkgs/applications/version-management/git-and-tools/git-radar/default.nix+2−2 pkgs/applications/version-management/git-and-tools/git-recent/default.nix+5−11 pkgs/applications/version-management/git-and-tools/git-remote-gcrypt/default.nix+2−2 pkgs/applications/version-management/git-and-tools/git-secret/default.nix+2−2 pkgs/applications/version-management/git-and-tools/git-secrets/default.nix+40 pkgs/applications/version-management/git-and-tools/git/default.nix+39−30 pkgs/applications/version-management/git-and-tools/git/git-sh-i18n.patch+4−4 pkgs/applications/version-management/git-and-tools/gitweb/default.nix+37 pkgs/applications/version-management/git-and-tools/hub/unstable.nix+36 pkgs/applications/version-management/git-and-tools/stgit/default.nix+4−3 pkgs/applications/version-management/git-and-tools/svn-all-fast-export/default.nix+2−4 pkgs/applications/version-management/git-review/default.nix+2−2 pkgs/applications/version-management/git-sizer/default.nix+23 pkgs/applications/version-management/gitaly/Gemfile+16−3 pkgs/applications/version-management/gitaly/Gemfile.lock+55−25 pkgs/applications/version-management/gitaly/default.nix+2−2 pkgs/applications/version-management/gitaly/gemset.nix+116−29 pkgs/applications/version-management/gitea/default.nix+3−3 pkgs/applications/version-management/gitkraken/default.nix+7−4 pkgs/applications/version-management/gitlab-shell/default.nix+6−26 pkgs/applications/version-management/gitlab-shell/fixes.patch+4−5 pkgs/applications/version-management/gitlab-shell/remove-hardcoded-locations.patch+15−28 pkgs/applications/version-management/gitlab-workhorse/default.nix+3−3 pkgs/applications/version-management/gitlab/Gemfile+86−59 pkgs/applications/version-management/gitlab/Gemfile.lock+217−191 pkgs/applications/version-management/gitlab/default.nix+9−11 pkgs/applications/version-management/gitlab/gemset.nix+312−234 pkgs/applications/version-management/gitlab/nulladapter.patch−33 pkgs/applications/version-management/gitlab/remove-hardcoded-locations.patch+29−33 pkgs/applications/version-management/gitless/default.nix+2−2 pkgs/applications/version-management/gogs/default.nix+2−2 pkgs/applications/version-management/gource/default.nix+2−2 pkgs/applications/version-management/meld/default.nix+2−2 pkgs/applications/version-management/mercurial/default.nix+2−2 pkgs/applications/version-management/nbstripout/default.nix+24−5 pkgs/applications/version-management/p4v/default.nix+48 pkgs/applications/version-management/sit/aarch64-isel.patch+9 pkgs/applications/version-management/sit/default.nix+11−7 pkgs/applications/version-management/src/default.nix+12−4 pkgs/applications/version-management/tortoisehg/default.nix+2−2 pkgs/applications/version-management/vcsh/default.nix+10−17 pkgs/applications/video/avidemux/default.nix+12−3 pkgs/applications/video/avxsynth/default.nix+1 pkgs/applications/video/clipgrab/default.nix+2−2 pkgs/applications/video/dvb-apps/default.nix+1 pkgs/applications/video/handbrake/default.nix+35−29 pkgs/applications/video/kazam/bug_1190693.patch−14 pkgs/applications/video/kazam/datadir.patch−11 pkgs/applications/video/kazam/default.nix+28−33 pkgs/applications/video/kazam/fix-paths.patch+22 pkgs/applications/video/kodi/default.nix+2−2 pkgs/applications/video/kodi/plugins.nix+25−1 pkgs/applications/video/makemkv/default.nix+6−6 pkgs/applications/video/minitube/default.nix+9−6 pkgs/applications/video/mkcast/default.nix−37 pkgs/applications/video/mkvtoolnix/default.nix+2−2 pkgs/applications/video/mpc-qt/default.nix+2−2 pkgs/applications/video/mpv/default.nix+13−20 pkgs/applications/video/mythtv/default.nix+17−12 pkgs/applications/video/obs-studio/default.nix+2−2 pkgs/applications/video/openshot-qt/libopenshot-audio.nix+2−2 pkgs/applications/video/openshot-qt/libopenshot.nix+2−2 pkgs/applications/video/peek/default.nix+7−3 pkgs/applications/video/pitivi/default.nix+40−21 pkgs/applications/video/pitivi/prevent-closure-contamination.patch+23 pkgs/applications/video/qstopmotion/default.nix+5−8 pkgs/applications/video/shotcut/default.nix+3−3 pkgs/applications/video/simplescreenrecorder/default.nix+8−6 pkgs/applications/video/smplayer/default.nix+2−2 pkgs/applications/video/smtube/default.nix+2−2 pkgs/applications/video/streamlink/default.nix+2−2 pkgs/applications/video/vlc/default.nix+1−3 pkgs/applications/video/w_scan/default.nix+2−2 pkgs/applications/video/webtorrent_desktop/default.nix+3−3 pkgs/applications/video/xine-ui/default.nix+2−2 pkgs/applications/video/xscast/default.nix+35 pkgs/applications/virtualization/OVMF/default.nix+39−20 pkgs/applications/virtualization/containerd/default.nix+2−2 pkgs/applications/virtualization/docker/default.nix+18−18 pkgs/applications/virtualization/docker-distribution/default.nix → pkgs/applications/virtualization/docker/distribution.nix pkgs/applications/virtualization/dynamips/default.nix+2−2 pkgs/applications/virtualization/lkl/default.nix+5−4 pkgs/applications/virtualization/qemu/default.nix+45−9 pkgs/applications/virtualization/qemu/riscv-initrd.patch−98 pkgs/applications/virtualization/qemu/riscv.nix−22 pkgs/applications/virtualization/qemu/statfs-flags.patch−197 pkgs/applications/virtualization/remotebox/default.nix+2−2 pkgs/applications/virtualization/rkt/default.nix+2−2 pkgs/applications/virtualization/runc/default.nix+2−2 pkgs/applications/virtualization/singularity/default.nix+8−3 pkgs/applications/virtualization/tini/default.nix+2−2 pkgs/applications/virtualization/virt-manager/default.nix+3 pkgs/applications/virtualization/virt-manager/qt.nix+4−6 pkgs/applications/virtualization/virt-top/default.nix+7−5 pkgs/applications/virtualization/virtualbox/HostServices-SharedClipboard-x11-stub.cpp-use-RT_NOR.patch−153 pkgs/applications/virtualization/virtualbox/default.nix+4−6 pkgs/applications/virtualization/virtualbox/guest-additions/default.nix+1−1 pkgs/applications/virtualization/xen/4.10.nix+185 pkgs/applications/virtualization/xen/4.5.nix+4 pkgs/applications/virtualization/xen/4.8.nix+33−23 pkgs/applications/virtualization/xen/generic.nix+4−3 pkgs/applications/virtualization/xen/packages.nix+50−4 pkgs/applications/virtualization/xen/xsa-patches.nix+69 pkgs/applications/window-managers/bspwm/default.nix+3−3 pkgs/applications/window-managers/dwm/default.nix+1−1 pkgs/applications/window-managers/i3/default.nix+4−4 pkgs/applications/window-managers/i3/gaps.nix+3−3 pkgs/applications/window-managers/i3/lock-color.nix+28−5 pkgs/applications/window-managers/i3/lock.nix+5 pkgs/applications/window-managers/i3/pystatus.nix+12−7 pkgs/applications/window-managers/i3/status-rust.nix+3−3 pkgs/applications/window-managers/i3/status.nix+4−4 pkgs/applications/window-managers/i3/wk-switch.nix+32 pkgs/applications/window-managers/icewm/default.nix+6−1 pkgs/applications/window-managers/icewm/fix-strlcat_strlcpy.patch+236 pkgs/applications/window-managers/icewm/musl.patch+23 pkgs/applications/window-managers/jwm/default.nix+2−2 pkgs/applications/window-managers/sawfish/default.nix+2−2 pkgs/applications/window-managers/stumpwm/default.nix+1 pkgs/applications/window-managers/sway/default.nix+2−2 pkgs/applications/window-managers/sxhkd/default.nix+2−2 pkgs/applications/window-managers/tabbed/default.nix+2−2 pkgs/applications/window-managers/trayer/default.nix+2−2 pkgs/applications/window-managers/velox/dmenu.nix+1−1 pkgs/applications/window-managers/velox/st.nix+1−1 pkgs/applications/window-managers/way-cooler/default.nix+2−10 pkgs/applications/window-managers/weston/default.nix+5−5 pkgs/applications/window-managers/wtftw/default.nix+1−1 pkgs/applications/window-managers/xmonad-log-applet/default.nix → pkgs/applications/window-managers/xmonad/log-applet/default.nix+2−2 pkgs/applications/window-managers/xmonad-log-applet/fix-paths.patch → pkgs/applications/window-managers/xmonad/log-applet/fix-paths.patch pkgs/build-support/bintools-wrapper/default.nix+14−13 pkgs/build-support/build-fhs-userenv/chrootenv/chrootenv.c+1 pkgs/build-support/build-fhs-userenv/env.nix+4−1 pkgs/build-support/build-setupcfg/default.nix+25 pkgs/build-support/cc-wrapper/add-flags.sh−5 pkgs/build-support/cc-wrapper/default.nix+12−38 pkgs/build-support/cc-wrapper/gnat-wrapper.sh−122 pkgs/build-support/cc-wrapper/gnatlink-wrapper.sh−40 pkgs/build-support/cc-wrapper/utils.sh+5−1 pkgs/build-support/docker/default.nix+70−12 pkgs/build-support/docker/examples.nix+11−3 pkgs/build-support/docker/pull.nix−32 pkgs/build-support/docker/pull.sh−36 pkgs/build-support/docker/tarsum.go+1−1 pkgs/build-support/emacs/buffer.nix+2 pkgs/build-support/fetchcvs/builder.sh+5 pkgs/build-support/fetchcvs/default.nix+3−3 pkgs/build-support/fetchgit/nix-prefetch-git+1−1 pkgs/build-support/fetchs3/default.nix+13−5 pkgs/build-support/fetchurl/mirrors.nix+1−1 pkgs/build-support/gcc-wrapper-old/add-flags−28 pkgs/build-support/gcc-wrapper-old/builder.sh−215 pkgs/build-support/gcc-wrapper-old/default.nix−76 pkgs/build-support/gcc-wrapper-old/gcc-wrapper-old.sh−146 pkgs/build-support/gcc-wrapper-old/gcc-wrapper.sh−147 pkgs/build-support/gcc-wrapper-old/gnat-wrapper.sh−113 pkgs/build-support/gcc-wrapper-old/gnatlink-wrapper.sh−43 pkgs/build-support/gcc-wrapper-old/ld-solaris-wrapper.sh−40 pkgs/build-support/gcc-wrapper-old/ld-wrapper.sh−166 pkgs/build-support/gcc-wrapper-old/setup-hook.sh−33 pkgs/build-support/gcc-wrapper-old/utils.sh−26 pkgs/build-support/kernel/modules-closure.nix+1−1 pkgs/build-support/kernel/modules-closure.sh+14 pkgs/build-support/rust/build-rust-crate.nix+29−22 pkgs/build-support/rust/carnix.nix+865−808 pkgs/build-support/rust/default.nix+2−2 pkgs/build-support/singularity-tools/default.nix+1 pkgs/build-support/trivial-builders.nix+1 pkgs/build-support/vm/default.nix+10−10 pkgs/common-updater/scripts/update-source-version+19−2 pkgs/data/documentation/man-pages/default.nix+2−2 pkgs/data/documentation/stdman/default.nix+2−2 pkgs/data/fonts/babelstone-han/default.nix+4−4 pkgs/data/fonts/dejavu-fonts/default.nix+2−2 pkgs/data/fonts/emojione/default.nix+1−1 pkgs/data/fonts/gentium-book-basic/default.nix+1−1 pkgs/data/fonts/iosevka/default.nix+2−2 pkgs/data/fonts/nerdfonts/default.nix+2−2 pkgs/data/fonts/rounded-mgenplus/default.nix+37 pkgs/data/fonts/sarasa-gothic/default.nix+32 pkgs/data/fonts/scheherazade/default.nix+43 pkgs/data/fonts/tex-gyre-math/default.nix+37−34 pkgs/data/fonts/twemoji-color-font/default.nix+5−1 pkgs/data/icons/elementary-xfce-icon-theme/default.nix+3−3 pkgs/data/icons/iconpack-obsidian/default.nix+35 pkgs/data/icons/papirus-icon-theme/default.nix+2−2 pkgs/data/misc/brise/default.nix+1−1 pkgs/data/misc/cacert/default.nix+8−2 pkgs/data/misc/hackage/default.nix+2−2 pkgs/data/misc/iana-etc/default.nix+2−2 pkgs/data/misc/libkkc-data/default.nix+22 pkgs/data/misc/osinfo-db/default.nix+2−2 pkgs/data/misc/poppler-data/default.nix+4−8 pkgs/data/misc/scowl/default.nix+16−8 pkgs/data/misc/tzdata/default.nix+26−7 pkgs/data/misc/wireless-regdb/default.nix+2−2 pkgs/data/sgml+xml/schemas/docbook-5.0/default.nix+1−1 pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix+2−1 pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/docbook-xsl-ns-infinite.patch+30 pkgs/desktops/deepin/deepin-gtk-theme/default.nix+2−2 pkgs/desktops/deepin/default.nix+4−7 pkgs/desktops/enlightenment/econnman.nix+2−3 pkgs/desktops/enlightenment/efl.nix+11−5 pkgs/desktops/enlightenment/enlightenment.nix+4−3 pkgs/desktops/enlightenment/enlightenment.suid-exes.patch+2−2 pkgs/desktops/enlightenment/ephoto.nix+2−6 pkgs/desktops/enlightenment/rage.nix+2−7 pkgs/desktops/enlightenment/terminology.nix+8−12 pkgs/desktops/gnome-2/default.nix+2−4 pkgs/desktops/gnome-2/desktop/gnome-control-center/default.nix+3−3 pkgs/desktops/gnome-2/desktop/gtksourceview/default.nix+2 pkgs/desktops/gnome-2/desktop/libgweather/default.nix+1−1 pkgs/desktops/gnome-2/desktop/rarian/default.nix−12 pkgs/desktops/gnome-2/desktop/zenity/default.nix+2−2 pkgs/desktops/gnome-2/platform/ORBit2/default.nix+3−3 pkgs/desktops/gnome-2/platform/gtkglext/default.nix+15−4 pkgs/desktops/gnome-2/platform/libglade/default.nix−2 pkgs/desktops/gnome-3/apps/accerciser/default.nix+5−2 pkgs/desktops/gnome-3/apps/bijiben/default.nix+31−27 pkgs/desktops/gnome-3/apps/bijiben/no-update-icon-cache.patch−22 pkgs/desktops/gnome-3/apps/cheese/default.nix+2−2 pkgs/desktops/gnome-3/apps/evolution/default.nix+3−3 pkgs/desktops/gnome-3/apps/file-roller/default.nix+21−12 pkgs/desktops/gnome-3/apps/gedit/default.nix+18−19 pkgs/desktops/gnome-3/apps/glade/default.nix+2−2 pkgs/desktops/gnome-3/apps/gnome-boxes/default.nix+28−22 pkgs/desktops/gnome-3/apps/gnome-calendar/default.nix+13−10 pkgs/desktops/gnome-3/apps/gnome-characters/default.nix+18−9 pkgs/desktops/gnome-3/apps/gnome-clocks/default.nix+15−6 pkgs/desktops/gnome-3/apps/gnome-documents/default.nix+30−21 pkgs/desktops/gnome-3/apps/gnome-getting-started-docs/default.nix+2−2 pkgs/desktops/gnome-3/apps/gnome-logs/default.nix+12−12 pkgs/desktops/gnome-3/apps/gnome-maps/default.nix+25−18 pkgs/desktops/gnome-3/apps/gnome-music/default.nix+34−23 pkgs/desktops/gnome-3/apps/gnome-photos/default.nix+30−25 pkgs/desktops/gnome-3/apps/gnome-power-manager/default.nix+12−11 pkgs/desktops/gnome-3/apps/gnome-weather/default.nix+11−8 pkgs/desktops/gnome-3/apps/nautilus-sendto/default.nix+13−4 pkgs/desktops/gnome-3/apps/polari/default.nix+20−19 pkgs/desktops/gnome-3/apps/seahorse/default.nix+19−20 pkgs/desktops/gnome-3/core/adwaita-icon-theme/default.nix+2−2 pkgs/desktops/gnome-3/core/baobab/default.nix+20−20 pkgs/desktops/gnome-3/core/dconf-editor/default.nix+22−13 pkgs/desktops/gnome-3/core/dconf/default.nix+10−10 pkgs/desktops/gnome-3/core/empathy/default.nix+2−2 pkgs/desktops/gnome-3/core/eog/default.nix+28−16 pkgs/desktops/gnome-3/core/epiphany/default.nix+20−25 pkgs/desktops/gnome-3/core/evince/default.nix+5−5 pkgs/desktops/gnome-3/core/evolution-data-server/default.nix+19−21 pkgs/desktops/gnome-3/core/folks/default.nix+1−1 pkgs/desktops/gnome-3/core/gcr/default.nix+2−2 pkgs/desktops/gnome-3/core/gdm/default.nix+2−2 pkgs/desktops/gnome-3/core/gdm/sessions_dir.patch+34−5 pkgs/desktops/gnome-3/core/geocode-glib/default.nix+23−9 pkgs/desktops/gnome-3/core/geocode-glib/installed-tests-path.patch+8 pkgs/desktops/gnome-3/core/gjs/default.nix+2−2 pkgs/desktops/gnome-3/core/gnome-backgrounds/default.nix+4−4 pkgs/desktops/gnome-3/core/gnome-bluetooth/default.nix+2−2 pkgs/desktops/gnome-3/core/gnome-calculator/default.nix+26−16 pkgs/desktops/gnome-3/core/gnome-color-manager/default.nix+30 pkgs/desktops/gnome-3/core/gnome-contacts/default.nix+8−2 pkgs/desktops/gnome-3/core/gnome-control-center/default.nix+33−27 pkgs/desktops/gnome-3/core/gnome-control-center/paths.patch+82 pkgs/desktops/gnome-3/core/gnome-desktop/default.nix+2−2 pkgs/desktops/gnome-3/core/gnome-dictionary/default.nix+11−9 pkgs/desktops/gnome-3/core/gnome-disk-utility/default.nix+12−10 pkgs/desktops/gnome-3/core/gnome-font-viewer/default.nix+2−2 pkgs/desktops/gnome-3/core/gnome-keyring/default.nix+5−6 pkgs/desktops/gnome-3/core/gnome-menus/default.nix+1−1 pkgs/desktops/gnome-3/core/gnome-online-accounts/default.nix+19−16 pkgs/desktops/gnome-3/core/gnome-screenshot/default.nix+18−18 pkgs/desktops/gnome-3/core/gnome-screenshot/prevent-cache-updates.patch−21 pkgs/desktops/gnome-3/core/gnome-session/default.nix+32−17 pkgs/desktops/gnome-3/core/gnome-settings-daemon/default.nix+37−18 pkgs/desktops/gnome-3/core/gnome-settings-daemon/fix-paths.patch+15 pkgs/desktops/gnome-3/core/gnome-shell-extensions/default.nix+40−9 pkgs/desktops/gnome-3/core/gnome-shell-extensions/fix_gmenu.patch+24 pkgs/desktops/gnome-3/core/gnome-shell/default.nix+45−30 pkgs/desktops/gnome-3/core/gnome-shell/fix-paths.patch+20−16 pkgs/desktops/gnome-3/core/gnome-software/default.nix+5−8 pkgs/desktops/gnome-3/core/gnome-software/fix-paths.patch+1−1 pkgs/desktops/gnome-3/core/gnome-system-log/default.nix+16−19 pkgs/desktops/gnome-3/core/gnome-system-monitor/default.nix+19−21 pkgs/desktops/gnome-3/core/gnome-terminal/default.nix+2−2 pkgs/desktops/gnome-3/core/gnome-themes-extra/default.nix+28 pkgs/desktops/gnome-3/core/gnome-themes-standard/default.nix−25 pkgs/desktops/gnome-3/core/gnome-user-docs/default.nix+2−2 pkgs/desktops/gnome-3/core/gnome-user-share/default.nix+2−2 pkgs/desktops/gnome-3/core/gsettings-desktop-schemas/default.nix+2−2 pkgs/desktops/gnome-3/core/gtksourceviewmm/default.nix+2−2 pkgs/desktops/gnome-3/core/gucharmap/default.nix+4−9 pkgs/desktops/gnome-3/core/libgepub/default.nix+2−2 pkgs/desktops/gnome-3/core/libgweather/default.nix+33−18 pkgs/desktops/gnome-3/core/libzapojit/default.nix+5−3 pkgs/desktops/gnome-3/core/mutter/default.nix+2−11 pkgs/desktops/gnome-3/core/nautilus/default.nix+23−19 pkgs/desktops/gnome-3/core/simple-scan/default.nix+2−2 pkgs/desktops/gnome-3/core/sushi/default.nix+2−2 pkgs/desktops/gnome-3/core/totem-pl-parser/default.nix+2−2 pkgs/desktops/gnome-3/core/totem/default.nix+17−15 pkgs/desktops/gnome-3/core/tracker-miners/default.nix+13−8 pkgs/desktops/gnome-3/core/tracker-miners/fix-paths.patch+9 pkgs/desktops/gnome-3/core/tracker/default.nix+16−9 pkgs/desktops/gnome-3/core/vino/default.nix+16−22 pkgs/desktops/gnome-3/core/vte/default.nix+2−2 pkgs/desktops/gnome-3/core/yelp-tools/default.nix+2−2 pkgs/desktops/gnome-3/core/yelp-xsl/default.nix+2−2 pkgs/desktops/gnome-3/core/yelp/default.nix+15−16 pkgs/desktops/gnome-3/core/zenity/default.nix+2−2 pkgs/desktops/gnome-3/default.nix+18−19 pkgs/desktops/gnome-3/devtools/anjuta/default.nix+2−2 pkgs/desktops/gnome-3/devtools/devhelp/default.nix+16−12 pkgs/desktops/gnome-3/devtools/gdl/default.nix+2−2 pkgs/desktops/gnome-3/devtools/gnome-devel-docs/default.nix+2−2 pkgs/desktops/gnome-3/extensions/dash-to-dock/default.nix+2−2 pkgs/desktops/gnome-3/extensions/impatience.nix+6−5 pkgs/desktops/gnome-3/extensions/system-monitor.nix → pkgs/desktops/gnome-3/extensions/system-monitor/default.nix+17−6 pkgs/desktops/gnome-3/extensions/system-monitor/paths_and_nonexisting_dirs.patch+23 pkgs/desktops/gnome-3/extensions/timepp/default.nix+26 pkgs/desktops/gnome-3/games/aisleriot/default.nix+2−2 pkgs/desktops/gnome-3/games/five-or-more/default.nix+2−2 pkgs/desktops/gnome-3/games/four-in-a-row/default.nix+10−10 pkgs/desktops/gnome-3/games/gnome-chess/default.nix+16−11 pkgs/desktops/gnome-3/games/gnome-klotski/default.nix+16−14 pkgs/desktops/gnome-3/games/gnome-mines/default.nix+17−11 pkgs/desktops/gnome-3/games/gnome-robots/default.nix+2−2 pkgs/desktops/gnome-3/games/gnome-sudoku/default.nix+2−2 pkgs/desktops/gnome-3/games/gnome-taquin/default.nix+2−2 pkgs/desktops/gnome-3/games/iagno/default.nix+2−2 pkgs/desktops/gnome-3/games/lightsoff/default.nix+13−11 pkgs/desktops/gnome-3/games/swell-foop/default.nix+19−12 pkgs/desktops/gnome-3/misc/california/0002-Build-with-evolution-data-server-3.13.90.patch−39 pkgs/desktops/gnome-3/misc/california/default.nix+23−21 pkgs/desktops/gnome-3/misc/geary/default.nix+26−17 pkgs/desktops/gnome-3/misc/gfbgraph/default.nix+6−2 pkgs/desktops/gnome-3/misc/gitg/default.nix+26−14 pkgs/desktops/gnome-3/misc/gnome-packagekit/default.nix+2−2 pkgs/desktops/gnome-3/misc/gnome-tweak-tool/default.nix−66 pkgs/desktops/gnome-3/misc/gnome-tweaks/default.nix+54 pkgs/desktops/gnome-3/misc/gpaste/default.nix+2−2 pkgs/desktops/gnome-3/misc/gspell/default.nix+20−12 pkgs/desktops/gnome-3/misc/libgames-support/default.nix → pkgs/desktops/gnome-3/misc/libgnome-games-support/default.nix+7−5 pkgs/desktops/gnustep/back/default.nix+2−2 pkgs/desktops/gnustep/base/default.nix+2−2 pkgs/desktops/gnustep/gorm/default.nix+2−2 pkgs/desktops/gnustep/gui/default.nix+2−2 pkgs/desktops/gnustep/make/default.nix+2−2 pkgs/desktops/lumina/default.nix+1 pkgs/desktops/lxde/core/lxmenu-data.nix+1−1 pkgs/desktops/lxde/core/lxpanel/default.nix+1−1 pkgs/desktops/lxde/core/lxtask/default.nix+4−2 pkgs/desktops/lxqt/base/libqtxdg/default.nix+5−1 pkgs/desktops/lxqt/core/lxqt-panel/default.nix+2−1 pkgs/desktops/mate/caja/default.nix+2−2 pkgs/desktops/mate/libmatekbd/default.nix+2−2 pkgs/desktops/mate/marco/default.nix+2−2 pkgs/desktops/mate/mate-applets/default.nix+2−2 pkgs/desktops/mate/mate-calc/default.nix+3−3 pkgs/desktops/mate/mate-control-center/default.nix+2−2 pkgs/desktops/mate/mate-desktop/default.nix+2−2 pkgs/desktops/mate/mate-icon-theme/default.nix+3−3 pkgs/desktops/mate/mate-panel/default.nix+2−2 pkgs/desktops/mate/mate-power-manager/default.nix+2−2 pkgs/desktops/mate/mate-sensors-applet/default.nix+2−2 pkgs/desktops/mate/mate-settings-daemon/default.nix+2−2 pkgs/desktops/mate/mate-themes/default.nix+2−2 pkgs/desktops/mate/pluma/default.nix+2−2 pkgs/desktops/pantheon/apps/pantheon-terminal/default.nix+2−13 pkgs/desktops/plasma-5/fetch.sh+1−1 pkgs/desktops/plasma-5/kde-gtk-config/default.nix+7−3 pkgs/desktops/plasma-5/kde-gtk-config/0001-follow-symlinks.patch → pkgs/desktops/plasma-5/kde-gtk-config/patches/follow-symlinks.patch+16−19 pkgs/desktops/plasma-5/kde-gtk-config/patches/gsettings.patch+21 pkgs/desktops/plasma-5/kde-gtk-config/patches/series+2 pkgs/desktops/plasma-5/kgamma5.nix+2−2 pkgs/desktops/plasma-5/srcs.nix+176−176 pkgs/desktops/xfce/applications/orage.nix+1−1 pkgs/desktops/xfce/applications/parole.nix+2−2 pkgs/desktops/xfce/applications/xfce4-mixer.nix+2−2 pkgs/desktops/xfce/applications/xfce4-screenshooter.nix+2−2 pkgs/desktops/xfce/core/thunar-build.nix+2−2 pkgs/desktops/xfce/core/thunar.nix+3−3 pkgs/desktops/xfce/core/xfce4-panel.nix+4−4 pkgs/desktops/xfce/core/xfce4-power-manager.nix+2−2 pkgs/desktops/xfce/core/xfce4-session.nix+2−2 pkgs/desktops/xfce/core/xfdesktop.nix+2−2 pkgs/desktops/xfce/core/xfwm4.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-battery-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-clipman-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-cpufreq-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-cpugraph-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-datetime-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-dict-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-dockbarx-plugin.nix+1−1 pkgs/desktops/xfce/panel-plugins/xfce4-embed-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-eyes-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-fsguard-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-genmon-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-hardware-monitor-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-mailwatch-plugin.nix+3−3 pkgs/desktops/xfce/panel-plugins/xfce4-mpc-plugin.nix+3−3 pkgs/desktops/xfce/panel-plugins/xfce4-namebar-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-netload-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-notes-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-systemload-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-timer-plugin.nix+5−4 pkgs/desktops/xfce/panel-plugins/xfce4-verve-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-weather-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-whiskermenu-plugin.nix+3−3 pkgs/desktops/xfce/panel-plugins/xfce4-windowck-plugin.nix+2−2 pkgs/desktops/xfce/panel-plugins/xfce4-xkb-plugin.nix+2−2 pkgs/desktops/xfce/thunar-plugins/archive/default.nix+2−2 pkgs/desktops/xfce4-13/automakeAddFlags.sh+7 pkgs/desktops/xfce4-13/default.nix+80 pkgs/desktops/xfce4-13/exo/default.nix+23 pkgs/desktops/xfce4-13/exo/gtk3-only.patch+28 pkgs/desktops/xfce4-13/garcon/12700.patch+37 pkgs/desktops/xfce4-13/garcon/13785.patch+75 pkgs/desktops/xfce4-13/garcon/default.nix+12 pkgs/desktops/xfce4-13/gigolo/default.nix+11 pkgs/desktops/xfce4-13/libxfce4ui/default.nix+18 pkgs/desktops/xfce4-13/libxfce4util/default.nix+16 pkgs/desktops/xfce4-13/mkXfceDerivation.nix+40 pkgs/desktops/xfce4-13/mousepad/default.nix+12 pkgs/desktops/xfce4-13/orage/default.nix+18 pkgs/desktops/xfce4-13/parole/default.nix+36 pkgs/desktops/xfce4-13/ristretto/default.nix+18 pkgs/desktops/xfce4-13/thunar-volman/default.nix+11 pkgs/desktops/xfce4-13/thunar/default.nix+30 pkgs/desktops/xfce4-13/tumbler/default.nix+14 pkgs/desktops/xfce4-13/xfburn/default.nix+18 pkgs/desktops/xfce4-13/xfce4-appfinder/default.nix+12 pkgs/desktops/xfce4-13/xfce4-dev-tools/default.nix+31 pkgs/desktops/xfce4-13/xfce4-dev-tools/setup-hook.sh+12 pkgs/desktops/xfce4-13/xfce4-dict/configure-gio.patch+11 pkgs/desktops/xfce4-13/xfce4-dict/default.nix+19 pkgs/desktops/xfce4-13/xfce4-mixer/default.nix+30 pkgs/desktops/xfce4-13/xfce4-notifyd/default.nix+13 pkgs/desktops/xfce4-13/xfce4-panel/default.nix+15 pkgs/desktops/xfce4-13/xfce4-power-manager/default.nix+19 pkgs/desktops/xfce4-13/xfce4-screenshooter/default.nix+11 pkgs/desktops/xfce4-13/xfce4-settings/default.nix+39 pkgs/desktops/xfce4-13/xfce4-taskmanager/default.nix+18 pkgs/desktops/xfce4-13/xfce4-terminal/default.nix+15 pkgs/desktops/xfce4-13/xfce4-volumed-pulse/default.nix+15 pkgs/desktops/xfce4-13/xfconf/default.nix+11 pkgs/desktops/xfce4-13/xfdesktop/default.nix+22 pkgs/desktops/xfce4-13/xfwm4/default.nix+27 pkgs/development/arduino/platformio/chrootenv.nix+30−12 pkgs/development/python-modules/platformio/default.nix → pkgs/development/arduino/platformio/core.nix+5−8 pkgs/development/python-modules/platformio/fix-searchpath.patch → pkgs/development/arduino/platformio/fix-searchpath.patch pkgs/development/compilers/adobe-flex-sdk/default.nix+1−1 pkgs/development/compilers/arachne-pnr/default.nix+3−3 pkgs/development/compilers/arm-frc-linux-gnueabi-gcc/default.nix−98 pkgs/development/compilers/arm-frc-linux-gnueabi-gcc/minorSOname.patch−49 pkgs/development/compilers/arm-frc-linux-gnueabi-gcc/no-nested-deprecated-warnings.patch−22 pkgs/development/compilers/as31/default.nix+1−2 pkgs/development/compilers/ats2/default.nix+3−3 pkgs/development/compilers/avian/default.nix+11−5 pkgs/development/compilers/binaryen/default.nix+21−4 pkgs/development/compilers/ccl/default.nix+3−12 pkgs/development/compilers/closure/default.nix+2−2 pkgs/development/compilers/coreclr/default.nix+13−4 pkgs/development/compilers/dtc/default.nix+1−1 pkgs/development/compilers/ecl/16.1.2.nix+18−2 pkgs/development/compilers/ecl/default.nix+6 pkgs/development/compilers/edk2/default.nix+16−7 pkgs/development/compilers/eli/default.nix+91 pkgs/development/compilers/elm/default.nix+12−9 pkgs/development/compilers/elm/packages/elm-package.nix+5−1 pkgs/development/compilers/emscripten/default.nix+22−5 pkgs/development/compilers/emscripten-fastcomp/default.nix → pkgs/development/compilers/emscripten/fastcomp/default.nix+2−2 pkgs/development/compilers/emscripten-fastcomp/emscripten-fastcomp.nix → pkgs/development/compilers/emscripten/fastcomp/emscripten-fastcomp.nix+9−8 pkgs/development/compilers/fpc/lazarus.nix+2−2 pkgs/development/compilers/gambit/bootstrap.nix+1−1 pkgs/development/compilers/gambit/build.nix+70 pkgs/development/compilers/gambit/default.nix+5−67 pkgs/development/compilers/gambit/unstable.nix+11 pkgs/development/compilers/gcc/4.5/ghdl-ortho-cflags.patch−111 pkgs/development/compilers/gcc/4.5/no-sys-dirs.patch−54 pkgs/development/compilers/gcc/4.5/sources.nix−26 pkgs/development/compilers/gcc/4.8/default.nix+2−20 pkgs/development/compilers/gcc/4.9/default.nix+18−23 pkgs/development/compilers/gcc/5/default.nix+2−20 pkgs/development/compilers/gcc/6/default.nix+2−20 pkgs/development/compilers/gcc/7/default.nix+14−23 pkgs/development/compilers/gcc/7/riscv-no-relax.patch+109 pkgs/development/compilers/gcc/7/riscv-pthread-reentrant.patch+13 pkgs/development/compilers/gcc/4.5/default.nix → pkgs/development/compilers/gcc/8/default.nix+168−185 pkgs/development/compilers/gcc/builder.sh−2 pkgs/development/compilers/gcc/gnat-cflags.patch−33 pkgs/development/compilers/gcc/libstdc++-hook.sh+1−1 pkgs/development/compilers/gcc/snapshot/default.nix+2−20 pkgs/development/compilers/gerbil/build.nix+88 pkgs/development/compilers/gerbil/default.nix+7−87 pkgs/development/compilers/gerbil/unstable.nix+12 pkgs/development/compilers/ghc/7.0.4-binary.nix−146 pkgs/development/compilers/ghc/7.0.4.nix−67 pkgs/development/compilers/ghc/7.4.2-binary.nix−148 pkgs/development/compilers/ghc/7.4.2.nix−77 pkgs/development/compilers/ghc/7.6.3.nix−103 pkgs/development/compilers/ghc/7.8.4-binary.nix−156 pkgs/development/compilers/ghc/7.8.4.nix−91 pkgs/development/compilers/ghc/8.2.1-binary.nix+2−1 pkgs/development/compilers/ghc/8.2.2.nix+2 pkgs/development/compilers/ghc/8.4.1.nix → pkgs/development/compilers/ghc/8.4.2.nix+17−23 pkgs/development/compilers/ghc/abi-depends-determinism.nix+12 pkgs/development/compilers/ghc/fix-7.0.4-clang.patch−74 pkgs/development/compilers/ghc/fix-7.2.2-clang.patch−74 pkgs/development/compilers/ghc/fix-7.4.2-clang.patch−57 pkgs/development/compilers/ghc/fix-7.6.3-clang.patch−71 pkgs/development/compilers/ghc/head.nix+3−1 pkgs/development/compilers/ghc/hpc-7.8.4.patch−13 pkgs/development/compilers/ghcjs/base.nix+1−1 pkgs/development/compilers/ghcjs/default.nix−1 pkgs/development/compilers/ghdl/default.nix−44 pkgs/development/compilers/glslang/default.nix+19−5 pkgs/development/compilers/gnatboot/default.nix−48 pkgs/development/compilers/go/1.10.nix+7−4 pkgs/development/compilers/go/1.9.nix+7−4 pkgs/development/compilers/gprolog/default.nix+1−1 pkgs/development/compilers/graalvm/default.nix+2 pkgs/development/compilers/haxe/default.nix+19−1 pkgs/development/compilers/hhvm/default.nix+1−1 pkgs/development/compilers/iasl/default.nix+2−2 pkgs/development/compilers/icedtea-web/default.nix+2−2 pkgs/development/compilers/jetbrains-jdk/default.nix+2−2 pkgs/development/compilers/jsonnet/default.nix+2−2 pkgs/development/compilers/julia/0.5.nix+1−1 pkgs/development/compilers/julia/0.6.nix+9−5 pkgs/development/compilers/julia/default.nix+3−2 pkgs/development/compilers/julia/git.nix+1−1 pkgs/development/compilers/kotlin/default.nix+7−2 pkgs/development/compilers/ldc/default.nix+12−14 pkgs/development/compilers/llvm/3.4/llvm.nix+1−1 pkgs/development/compilers/llvm/3.5/llvm.nix+1−1 pkgs/development/compilers/llvm/4/cmdline-help.patch+39 pkgs/development/compilers/llvm/4/lldb.nix+5 pkgs/development/compilers/llvm/4/llvm.nix+4−3 pkgs/development/compilers/llvm/4/sanitizers-nongnu.patch+368 pkgs/development/compilers/llvm/5/llvm.nix+1−3 pkgs/development/compilers/llvm/5/sanitizers-nongnu.patch+370 pkgs/development/compilers/llvm/6/clang/default.nix+108 pkgs/development/compilers/llvm/6/clang/purity.patch+30 pkgs/development/compilers/llvm/6/compiler-rt-codesign.patch+155 pkgs/development/compilers/llvm/6/default.nix+78 pkgs/development/compilers/llvm/6/libc++/default.nix+51 pkgs/development/compilers/llvm/6/libc++/setup-hook.sh+3 pkgs/development/compilers/llvm/6/libc++abi.nix+49 pkgs/development/compilers/llvm/6/lld.nix+33 pkgs/development/compilers/llvm/6/lldb.nix+56 pkgs/development/compilers/llvm/6/llvm-outputs.patch+26 pkgs/development/compilers/llvm/6/llvm.nix+185 pkgs/development/compilers/llvm/6/openmp.nix+26 pkgs/development/compilers/llvm/6/sanitizers-nongnu.patch+377 pkgs/development/compilers/manticore/default.nix+6−6 pkgs/development/compilers/mit-scheme/default.nix+1−1 pkgs/development/compilers/mono/4.0.nix+3 pkgs/development/compilers/mono/generic-cmake.nix+4−6 pkgs/development/compilers/mono/generic.nix+5−3 pkgs/development/compilers/nasm/default.nix+2−2 pkgs/development/compilers/neko/default.nix+1−1 pkgs/development/compilers/ocaml/4.07.nix+9 pkgs/development/compilers/ocaml/generic.nix+2−1 pkgs/development/compilers/opendylan/bin.nix+2−2 pkgs/development/compilers/opendylan/default.nix+4−4 pkgs/development/compilers/openjdk/9.nix → pkgs/development/compilers/openjdk/10.nix+21−81 pkgs/development/compilers/openjdk/7.nix−244 pkgs/development/compilers/openjdk/8.nix+12−12 pkgs/development/compilers/openjdk/bootstrap.nix+24−36 pkgs/development/compilers/openjdk/cppflags-include-fix.patch−16 pkgs/development/compilers/openjdk/currency-date-range.patch → pkgs/development/compilers/openjdk/currency-date-range-jdk10.patch+2−3 pkgs/development/compilers/openjdk-darwin/8.nix → pkgs/development/compilers/openjdk/darwin/8.nix+5 pkgs/development/compilers/openjdk-darwin/default.nix → pkgs/development/compilers/openjdk/darwin/default.nix+5 pkgs/development/compilers/openjdk/fix-java-home-jdk9.patch → pkgs/development/compilers/openjdk/fix-java-home-jdk10.patch+5−5 pkgs/development/compilers/openjdk/fix-java-home.patch−17 pkgs/development/compilers/openjdk/paxctl.patch−28 pkgs/development/compilers/openjdk/read-truststore-from-env-jdk9.patch → pkgs/development/compilers/openjdk/read-truststore-from-env-jdk10.patch+2−2 pkgs/development/compilers/openjdk/read-truststore-from-env.patch−21 pkgs/development/compilers/openjdk/swing-use-gtk-jdk9.patch → pkgs/development/compilers/openjdk/swing-use-gtk-jdk10.patch+2−4 pkgs/development/compilers/openjdk/swing-use-gtk.patch → pkgs/development/compilers/openjdk/swing-use-gtk-jdk8.patch pkgs/development/compilers/oraclejdk/jdk9-linux.nix → pkgs/development/compilers/oraclejdk/jdk10-linux.nix+7−8 pkgs/development/compilers/oraclejdk/jdk8cpu-linux.nix+5−5 pkgs/development/compilers/oraclejdk/jdk8psu-linux.nix+5−5 pkgs/development/compilers/owl-lisp/default.nix+6−4 pkgs/development/compilers/polyml/default.nix+2−2 pkgs/development/compilers/purescript/psc-package/default.nix+2−2 pkgs/development/compilers/rust/bootstrap.nix+8−8 pkgs/development/compilers/rust/default.nix+10−6 pkgs/development/compilers/rust/patches/aarch64-disable-test_loading_cosine.patch−12 pkgs/development/compilers/rust/rustc.nix+11−6 pkgs/development/compilers/sbcl/default.nix+2−2 pkgs/development/compilers/scala/default.nix+2−2 pkgs/development/compilers/sdcc/default.nix+2−2 pkgs/development/compilers/solc/default.nix+27−13 pkgs/development/compilers/solc/patches/boost-shared-libs.patch+24 pkgs/development/compilers/solc/patches/shared-libs-install.patch+64 pkgs/development/compilers/souffle/default.nix+11−16 pkgs/development/compilers/swi-prolog/default.nix+4−4 pkgs/development/compilers/swift/default.nix+24−42 pkgs/development/compilers/swift/patches/0003-build-presets-linux-disable-tests.patch−38 pkgs/development/compilers/swift/patches/icu59.patch−113 pkgs/development/compilers/swift/patches/remove_xlocale.patch−54 pkgs/development/compilers/swift/patches/sigaltstack.patch−11 pkgs/development/compilers/swift/patches/sigunused.patch−11 pkgs/development/compilers/swift/purity.patch+17−3 pkgs/development/compilers/teyjus/default.nix+7−3 pkgs/development/compilers/teyjus/fix-lex-to-flex.patch+6−4 pkgs/development/compilers/vala/default.nix+16−8 pkgs/development/compilers/yosys/default.nix+14−10 pkgs/development/compilers/zig/default.nix+6−5 pkgs/development/compilers/zulu/8.nix+4−4 pkgs/development/compilers/zulu/default.nix+4−4 pkgs/development/coq-modules/CoLoR/default.nix+1−1 pkgs/development/coq-modules/QuickChick/default.nix+12−7 pkgs/development/coq-modules/autosubst/default.nix+5 pkgs/development/coq-modules/bignums/default.nix+20−15 pkgs/development/coq-modules/contribs/default.nix+17−5 pkgs/development/coq-modules/coq-ext-lib/default.nix+6−2 pkgs/development/coq-modules/coq-haskell/default.nix+7−4 pkgs/development/coq-modules/coquelicot/default.nix+5 pkgs/development/coq-modules/dpdgraph/default.nix+14−2 pkgs/development/coq-modules/fiat/HEAD.nix+8−7 pkgs/development/coq-modules/heq/default.nix+3 pkgs/development/coq-modules/interval/default.nix+6 pkgs/development/coq-modules/mathcomp/default.nix+13−13 pkgs/development/coq-modules/mathcomp/generic.nix+5−1 pkgs/development/coq-modules/paco/default.nix+4 pkgs/development/coq-modules/ssreflect/default.nix+13−13 pkgs/development/coq-modules/ssreflect/generic.nix+5−1 pkgs/development/eclipse/ecj/default.nix−59 pkgs/development/em-modules/generic/default.nix+12−5 pkgs/development/go-modules/generic/default.nix+1−1 pkgs/development/guile-modules/guile-fibers/default.nix+1−1 pkgs/development/guile-modules/guile-lib/default.nix+1−1 pkgs/development/guile-modules/guile-ncurses/default.nix+1−1 pkgs/development/haskell-modules/configuration-common.nix+131−87 pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix+16−5 pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix+8−3 pkgs/development/haskell-modules/configuration-ghc-8.2.x.nix+11−3 pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix+105−383 pkgs/development/haskell-modules/configuration-ghcjs.nix−13 pkgs/development/haskell-modules/configuration-hackage2nix.yaml+1384−1185 pkgs/development/haskell-modules/configuration-nix.nix+14−4 pkgs/development/haskell-modules/default.nix+1−1 pkgs/development/haskell-modules/generic-builder.nix+26−15 pkgs/development/haskell-modules/generic-stack-builder.nix+16−4 pkgs/development/haskell-modules/hackage-packages.nix+14293−9019 pkgs/development/haskell-modules/hie-packages.nix−502 pkgs/development/haskell-modules/initial-packages.nix+1−1 pkgs/development/haskell-modules/lib.nix+4−3 pkgs/development/haskell-modules/make-package-set.nix+63−6 pkgs/development/haskell-modules/patches/encoding-Cabal-2.0.patch+67 pkgs/development/haskell-modules/patches/lzma-tests.patch+8−10 pkgs/development/haskell-modules/patches/xmonad-contrib-ghc-8.4.1-fix.patch+107 pkgs/development/haskell-modules/with-packages-wrapper.nix+9 pkgs/development/idris-modules/README.md+1−39 pkgs/development/idris-modules/array.nix+30 pkgs/development/idris-modules/bi.nix+29 pkgs/development/idris-modules/bifunctors.nix+31 pkgs/development/idris-modules/bytes.nix+29 pkgs/development/idris-modules/canvas.nix+26 pkgs/development/idris-modules/categories.nix+27 pkgs/development/idris-modules/coda.nix+28 pkgs/development/idris-modules/comonad.nix+28 pkgs/development/idris-modules/composition.nix+28 pkgs/development/idris-modules/config.nix+31 pkgs/development/idris-modules/console.nix+30 pkgs/development/idris-modules/containers.nix+34 pkgs/development/idris-modules/cube.nix+29 pkgs/development/idris-modules/curses.nix+36 pkgs/development/idris-modules/data.nix+28 pkgs/development/idris-modules/default.nix+159−6 pkgs/development/idris-modules/derive.nix+29 pkgs/development/idris-modules/descncrunch.nix+28 pkgs/development/idris-modules/dict.nix+32 pkgs/development/idris-modules/dom.nix+30 pkgs/development/idris-modules/electron.nix+36 pkgs/development/idris-modules/eternal.nix+35 pkgs/development/idris-modules/farrp.nix+28 pkgs/development/idris-modules/free.nix+27 pkgs/development/idris-modules/fsm.nix+28 pkgs/development/idris-modules/glfw.nix+32 pkgs/development/idris-modules/graphviz.nix+32 pkgs/development/idris-modules/hamt.nix+29 pkgs/development/idris-modules/heyting-algebra.nix+28 pkgs/development/idris-modules/hezarfen.nix+28 pkgs/development/idris-modules/hrtime.nix+28 pkgs/development/idris-modules/html.nix+34 pkgs/development/idris-modules/http.nix+30 pkgs/development/idris-modules/http4idris.nix+29 pkgs/development/idris-modules/httpclient.nix−36 pkgs/development/idris-modules/iaia.nix+28 pkgs/development/idris-modules/idrishighlighter.nix+29 pkgs/development/idris-modules/idrisscript.nix+28 pkgs/development/idris-modules/ipkgparser.nix+29 pkgs/development/idris-modules/jheiling-extras.nix+29 pkgs/development/idris-modules/jheiling-js.nix+30 pkgs/development/idris-modules/js.nix+29 pkgs/development/idris-modules/lens.nix+29 pkgs/development/idris-modules/lightyear.nix+2−5 pkgs/development/idris-modules/logic.nix+31 pkgs/development/idris-modules/mapping.nix+28 pkgs/development/idris-modules/mhd.nix+33 pkgs/development/idris-modules/pacman.nix+32 pkgs/development/idris-modules/patricia.nix+32 pkgs/development/idris-modules/permutations.nix+32 pkgs/development/idris-modules/pfds.nix+28 pkgs/development/idris-modules/pipes.nix+28 pkgs/development/idris-modules/posix.nix+30 pkgs/development/idris-modules/protobuf.nix+28 pkgs/development/idris-modules/rationals.nix+28 pkgs/development/idris-modules/recursion_schemes.nix+36 pkgs/development/idris-modules/refined.nix+32 pkgs/development/idris-modules/sdl.nix+32 pkgs/development/idris-modules/sdl2.nix+33 pkgs/development/idris-modules/semidirect.nix+28 pkgs/development/idris-modules/setoids.nix+26 pkgs/development/idris-modules/smproc.nix+29 pkgs/development/idris-modules/snippets.nix+28 pkgs/development/idris-modules/software_foundations.nix+27 pkgs/development/idris-modules/specdris.nix+4−7 pkgs/development/idris-modules/tap.nix+32 pkgs/development/idris-modules/test.nix+32 pkgs/development/idris-modules/tlhydra.nix+30 pkgs/development/idris-modules/tomladris.nix+30 pkgs/development/idris-modules/tp.nix+31 pkgs/development/idris-modules/tparsec.nix+28 pkgs/development/idris-modules/transducers.nix+28 pkgs/development/idris-modules/trees.nix+28 pkgs/development/idris-modules/union_type.nix+28 pkgs/development/idris-modules/vdom.nix+28 pkgs/development/idris-modules/vecspace.nix+27 pkgs/development/idris-modules/webgl.nix+28 pkgs/development/idris-modules/wl-pprint.nix+4−8 pkgs/development/idris-modules/wyvern.nix+33 pkgs/development/idris-modules/xhr.nix+28 pkgs/development/idris-modules/yaml.nix+29 pkgs/development/idris-modules/yampa.nix+27 pkgs/development/interpreters/clojure/default.nix+2−2 pkgs/development/interpreters/duktape/default.nix+4−3 pkgs/development/interpreters/eff/default.nix+12−11 pkgs/development/interpreters/elixir/1.6.nix+2−2 pkgs/development/interpreters/erlang/R18.nix+2−2 pkgs/development/interpreters/erlang/R19.nix+2−2 pkgs/development/interpreters/erlang/R20.nix+2−2 pkgs/development/interpreters/erlang/generic-builder.nix+4−4 pkgs/development/interpreters/gnu-apl/default.nix+4−4 pkgs/development/interpreters/groovy/default.nix+2−2 pkgs/development/interpreters/guile/1.8.nix+44−21 pkgs/development/interpreters/guile/2.0.nix+19−21 pkgs/development/interpreters/guile/default.nix+19−21 pkgs/development/interpreters/guile/riscv.patch+13 pkgs/development/interpreters/j/default.nix+2−2 pkgs/development/interpreters/joker/default.nix+2−2 pkgs/development/interpreters/jruby/default.nix+2−2 pkgs/development/interpreters/love/11.1.nix+41 pkgs/development/interpreters/lua-5/5.2.nix+3−28 pkgs/development/interpreters/lua-5/5.3.nix+3−28 pkgs/development/interpreters/octave/default.nix+2−2 pkgs/development/interpreters/perl/MakeMaker-cross.patch+17 pkgs/development/interpreters/perl/default.nix+35−4 pkgs/development/interpreters/perl/setup-hook-cross.sh+12 pkgs/development/interpreters/php/default.nix+8−8 pkgs/development/interpreters/pure/default.nix+3−5 pkgs/development/interpreters/python/build-python-package-flit.nix+1−1 pkgs/development/interpreters/python/cpython/2.7/default.nix+4−1 pkgs/development/interpreters/python/cpython/2.7/use-correct-tcl-tk-on-darwin.patch+48 pkgs/development/interpreters/python/cpython/3.4/default.nix+5 pkgs/development/interpreters/python/cpython/3.4/use-correct-tcl-tk-on-darwin.patch+48 pkgs/development/interpreters/python/cpython/3.5/default.nix+5 pkgs/development/interpreters/python/cpython/3.5/use-correct-tcl-tk-on-darwin.patch+48 pkgs/development/interpreters/python/cpython/3.6/default.nix+7−2 pkgs/development/interpreters/python/cpython/3.6/use-correct-tcl-tk-on-darwin.patch+48 pkgs/development/interpreters/racket/default.nix+1−1 pkgs/development/interpreters/renpy/default.nix+21−13 pkgs/development/interpreters/renpy/launcherenv.patch+14 pkgs/development/interpreters/ruby/default.nix+16−17 pkgs/development/interpreters/ruby/patchsets.nix+3−3 pkgs/development/interpreters/spidermonkey/52.nix+2−2 pkgs/development/interpreters/supercollider/default.nix+2−2 pkgs/development/java-modules/jogl/default.nix+60 pkgs/development/java-modules/junit/default.nix+1−1 pkgs/development/libraries/AntTweakBar/default.nix+2−2 pkgs/development/libraries/CGAL/default.nix+2−2 pkgs/development/libraries/LASzip/default.nix+2−2 pkgs/development/libraries/SDL/default.nix+51−33 pkgs/development/libraries/SDL2/default.nix+46−36 pkgs/development/libraries/SDL2_gfx/default.nix+7−7 pkgs/development/libraries/SDL2_image/default.nix+3−2 pkgs/development/libraries/SDL_gfx/default.nix+2−2 pkgs/development/libraries/Xaw3d/default.nix+2−4 pkgs/development/libraries/accounts-qt/default.nix+3−3 pkgs/development/libraries/accountsservice/default.nix+4−4 pkgs/development/libraries/ace/default.nix+2−2 pkgs/development/libraries/acl/default.nix+2 pkgs/development/libraries/agda/agda-stdlib/default.nix+2−2 pkgs/development/libraries/agda/pretty/default.nix+1 pkgs/development/libraries/agg/default.nix+1−1 pkgs/development/libraries/alembic/default.nix+2−2 pkgs/development/libraries/alkimia/default.nix+31 pkgs/development/libraries/allegro/5.nix+2−2 pkgs/development/libraries/apache-activemq/default.nix+2−2 pkgs/development/libraries/appstream-glib/default.nix+7−3 pkgs/development/libraries/aqbanking/default.nix+5−4 pkgs/development/libraries/aqbanking/gwenhywfar.nix+21−9 pkgs/development/libraries/aqbanking/libchipcard.nix+4−3 pkgs/development/libraries/aqbanking/sources.nix+6−6 pkgs/development/libraries/arb/default.nix+9−3 pkgs/development/libraries/arguments/default.nix+32 pkgs/development/libraries/arm-frc-linux-gnueabi-eglibc/default.nix−65 pkgs/development/libraries/arm-frc-linux-gnueabi-linux-api-headers/default.nix−43 pkgs/development/libraries/armadillo/default.nix+2−2 pkgs/development/libraries/arrow-cpp/default.nix+44 pkgs/development/libraries/asio/default.nix+2−2 pkgs/development/libraries/at-spi2-core/default.nix−3 pkgs/development/libraries/atk/default.nix+17−6 pkgs/development/libraries/attr/default.nix+6 pkgs/development/libraries/audio/jamomacore/default.nix+1 pkgs/development/libraries/audio/libgme/default.nix+2−2 pkgs/development/libraries/audio/rtaudio/default.nix+2−2 pkgs/development/libraries/audio/vamp/default.nix+8−5 pkgs/development/libraries/aws-sdk-cpp/default.nix+2−2 pkgs/development/libraries/babl/default.nix+2−2 pkgs/development/libraries/bamf/default.nix+49 pkgs/development/libraries/bobcat/default.nix+2−2 pkgs/development/libraries/boost/1.66.nix+2−1 pkgs/development/libraries/botan/2.0.nix+2−2 pkgs/development/libraries/bwidget/default.nix+2−2 pkgs/development/libraries/caf/default.nix+2−10 pkgs/development/libraries/cairo/default.nix+3−2 pkgs/development/libraries/cddlib/default.nix+38−6 pkgs/development/libraries/celt/0.5.1.nix+7 pkgs/development/libraries/celt/generic.nix+3 pkgs/development/libraries/ceres-solver/default.nix+2−2 pkgs/development/libraries/cfitsio/default.nix+2−2 pkgs/development/libraries/check/default.nix+2−2 pkgs/development/libraries/clipper/default.nix+27 pkgs/development/libraries/cloog-ppl/default.nix−4 pkgs/development/libraries/clutter-gst/default.nix+3−3 pkgs/development/libraries/clutter-gtk/default.nix+1−1 pkgs/development/libraries/cmark/default.nix+3−3 pkgs/development/libraries/cminpack/default.nix+2−2 pkgs/development/libraries/cogl/default.nix+5−7 pkgs/development/libraries/confuse/default.nix+4−3 pkgs/development/libraries/cpp-gsl/default.nix+1 pkgs/development/libraries/cracklib/default.nix+2−2 pkgs/development/libraries/cyrus-sasl/default.nix+2−1 pkgs/development/libraries/dbus/default.nix+2−2 pkgs/development/libraries/dbus/make-dbus-conf.nix+3−2 pkgs/development/libraries/dbus/make-system-conf.xsl+1 pkgs/development/libraries/dlib/default.nix+1−1 pkgs/development/libraries/double-conversion/default.nix+6−1 pkgs/development/libraries/drumstick/default.nix+2−2 pkgs/development/libraries/easyloggingpp/default.nix+2−2 pkgs/development/libraries/eccodes/default.nix+2−2 pkgs/development/libraries/eclib/default.nix+31−8 pkgs/development/libraries/eigen/3.3.nix+2−2 pkgs/development/libraries/enchant/2.x.nix+27 pkgs/development/libraries/epoxy/default.nix+13−7 pkgs/development/libraries/epoxy/libgl-path.patch+35 pkgs/development/libraries/exempi/default.nix+2−2 pkgs/development/libraries/farbfeld/default.nix+8−4 pkgs/development/libraries/farstream/default.nix+10−6 pkgs/development/libraries/fcppt/default.nix+1−1 pkgs/development/libraries/fdk-aac/default.nix+2−2 pkgs/development/libraries/fflas-ffpack/default.nix+31−6 pkgs/development/libraries/ffmpeg-full/default.nix+4−3 pkgs/development/libraries/ffmpeg/4.nix+12 pkgs/development/libraries/ffmpeg/generic.nix+1−1 pkgs/development/libraries/flint/default.nix+42−5 pkgs/development/libraries/flite/default.nix+12−7 pkgs/development/libraries/flite/fix-rpath.patch−5 pkgs/development/libraries/folly/default.nix+2−2 pkgs/development/libraries/fontconfig/default.nix+5−14 pkgs/development/libraries/fox/fox-1.6.nix+2−2 pkgs/development/libraries/fplll/default.nix+2−2 pkgs/development/libraries/freenect/default.nix+11−7 pkgs/development/libraries/freetds/default.nix+4−6 pkgs/development/libraries/freetype/cve-2017-8105.patch−27 pkgs/development/libraries/freetype/cve-2017-8287.patch−22 pkgs/development/libraries/freetype/default.nix+11−22 pkgs/development/libraries/freetype/pcf-config-long-family-names.patch−553 pkgs/development/libraries/freetype/pcf-introduce-driver.patch−68 pkgs/development/libraries/fstrm/default.nix+2−2 pkgs/development/libraries/gamin/default.nix+1−1 pkgs/development/libraries/gdal/default.nix+2−2 pkgs/development/libraries/gdbm/default.nix+2−2 pkgs/development/libraries/gdcm/default.nix+2−2 pkgs/development/libraries/gdk-pixbuf/default.nix+5−3 pkgs/development/libraries/gecode/default.nix+2−2 pkgs/development/libraries/gegl/3.0.nix+4−6 pkgs/development/libraries/gegl/4.0.nix+38 pkgs/development/libraries/gegl/default.nix+3−5 pkgs/development/libraries/geoclue/2.0.nix+6−8 pkgs/development/libraries/geos/default.nix+2−2 pkgs/development/libraries/getdns/default.nix+3−3 pkgs/development/libraries/gettext/default.nix+1 pkgs/development/libraries/gettext/gettext-setup-hook.sh+21 pkgs/development/libraries/gflags/default.nix−10 pkgs/development/libraries/givaro/default.nix+21−3 pkgs/development/libraries/glbinding/default.nix+22 pkgs/development/libraries/glew/default.nix+2−2 pkgs/development/libraries/glib-networking/default.nix+16−13 pkgs/development/libraries/glib/default.nix+7−13 pkgs/development/libraries/glibc/2.27.nix−101 pkgs/development/libraries/glibc/common-2.27.nix−207 pkgs/development/libraries/glibc/common.nix+31−33 pkgs/development/libraries/glibc/dont-use-system-ld-so-cache-2.27.patch−46 pkgs/development/libraries/glibc/dont-use-system-ld-so-cache.patch+19−19 pkgs/development/libraries/glibc/fix-rpc-types-musl-conflicts.patch+38 pkgs/development/libraries/glibc/nix-locale-archive-2.27.patch−118 pkgs/development/libraries/glibc/nix-locale-archive.patch+63−59 pkgs/development/libraries/glibmm/default.nix+12−4 pkgs/development/libraries/glm/default.nix+6−2 pkgs/development/libraries/globalplatform/default.nix+1−1 pkgs/development/libraries/glpk/default.nix+24−4 pkgs/development/libraries/gmime/3.nix+3−3 pkgs/development/libraries/gnu-efi/default.nix+2−2 pkgs/development/libraries/gnutls/3.6.nix+2−2 pkgs/development/libraries/gnutls/generic.nix+1−3 pkgs/development/libraries/gobject-introspection/absolute_shlib_path.patch+32−41 pkgs/development/libraries/gobject-introspection/default.nix+7−8 pkgs/development/libraries/goffice/default.nix+2−2 pkgs/development/libraries/goocanvas/2.x.nix+3−1 pkgs/development/libraries/google-gflags/default.nix+2−2 pkgs/development/libraries/gperftools/default.nix+5−3 pkgs/development/libraries/gpgme/default.nix+18−5 pkgs/development/libraries/grib-api/default.nix+2−2 pkgs/development/libraries/grpc/default.nix+2−2 pkgs/development/libraries/gsettings-qt/default.nix+58 pkgs/development/libraries/gsl/default.nix+2−1 pkgs/development/libraries/gsm/default.nix+2−2 pkgs/development/libraries/gssdp/default.nix+2−2 pkgs/development/libraries/gstreamer/bad/default.nix+22−30 pkgs/development/libraries/gstreamer/bad/fix_pkgconfig_includedir.patch+15 pkgs/development/libraries/gstreamer/base/default.nix+46−25 pkgs/development/libraries/gstreamer/base/fix_pkgconfig_includedir.patch+15 pkgs/development/libraries/gstreamer/core/default.nix+27−17 pkgs/development/libraries/gstreamer/core/fix_pkgconfig_includedir.patch+15 pkgs/development/libraries/gstreamer/default.nix+4−7 pkgs/development/libraries/gstreamer/ges/default.nix+15−6 pkgs/development/libraries/gstreamer/ges/fix_pkgconfig_includedir.patch+15 pkgs/development/libraries/gstreamer/gnonlin/default.nix−30 pkgs/development/libraries/gstreamer/good/default.nix+20−16 pkgs/development/libraries/gstreamer/good/fix_pkgconfig_includedir.patch+15 pkgs/development/libraries/gstreamer/gstreamermm/default.nix+1−1 pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix+2−5 pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/default.nix+2−5 pkgs/development/libraries/gstreamer/legacy/gst-plugins-ugly/default.nix+2−4 pkgs/development/libraries/gstreamer/legacy/gstreamer/default.nix+3−3 pkgs/development/libraries/gstreamer/libav/default.nix+6−9 pkgs/development/libraries/gstreamer/rtsp-server/default.nix+29 pkgs/development/libraries/gstreamer/ugly/default.nix+13−11 pkgs/development/libraries/gstreamer/vaapi/default.nix+6−7 pkgs/development/libraries/gstreamer/validate/default.nix+2−2 pkgs/development/libraries/gtk+/2.x.nix+1−4 pkgs/development/libraries/gtk+/3.x.nix+11−8 pkgs/development/libraries/gtkdatabox/default.nix+2−2 pkgs/development/libraries/gtkmm/2.x.nix+3−1 pkgs/development/libraries/gtksourceview/3.x-nix_share_path.patch pkgs/development/libraries/gtksourceview/3.x.nix+16−7 pkgs/development/libraries/gtksourceview/4.x-nix_share_path.patch+11 pkgs/development/libraries/gtksourceview/4.x.nix+54 pkgs/development/libraries/gtkspell/3.nix+7−3 pkgs/development/libraries/gts/default.nix+1−1 pkgs/development/libraries/gvfs/default.nix+50−12 pkgs/development/libraries/hamlib/default.nix+2−2 pkgs/development/libraries/harfbuzz/default.nix+5−6 pkgs/development/libraries/herqq/default.nix+2−2 pkgs/development/libraries/hivex/default.nix+2−2 pkgs/development/libraries/hpx/default.nix+2−2 pkgs/development/libraries/http-parser/default.nix+2−2 pkgs/development/libraries/hunspell/dictionaries.nix+60 pkgs/development/libraries/hwloc/default.nix+2−2 pkgs/development/libraries/hyena/default.nix+1 pkgs/development/libraries/idnkit/default.nix+4−3 pkgs/development/libraries/ignition-transport/generic.nix+2−1 pkgs/development/libraries/iml/default.nix+13−3 pkgs/development/libraries/imlib2/default.nix+2−2 pkgs/development/libraries/iniparser/default.nix+5 pkgs/development/libraries/isl/0.11.1.nix+1−1 pkgs/development/libraries/isl/0.12.2.nix+1−1 pkgs/development/libraries/isl/0.14.1.nix+1−1 pkgs/development/libraries/isl/0.15.0.nix+1−1 pkgs/development/libraries/isl/0.17.1.nix+1−1 pkgs/development/libraries/iso-codes/default.nix+4−3 pkgs/development/libraries/itk/default.nix+5−10 pkgs/development/libraries/jama/default.nix+2−2 pkgs/development/libraries/jansson/default.nix+2−2 pkgs/development/libraries/jasper/default.nix+9 pkgs/development/libraries/java/classpath/default.nix−61 pkgs/development/libraries/java/classpath/missing-casts.patch−80 pkgs/development/libraries/java/commons/compress/default.nix+2−2 pkgs/development/libraries/java/commons/io/default.nix+2−2 pkgs/development/libraries/java/hsqldb/default.nix+2−2 pkgs/development/libraries/jemalloc/common.nix+35 pkgs/development/libraries/jemalloc/default.nix+3−33 pkgs/development/libraries/jemalloc/jemalloc450.nix+6 pkgs/development/libraries/json-c/0.11.nix−25 pkgs/development/libraries/json-c/default.nix+4−12 pkgs/development/libraries/json-glib/default.nix+2−5 pkgs/development/libraries/kdb/default.nix+2−2 pkgs/development/libraries/kde-frameworks/default.nix+2 pkgs/development/libraries/kde-frameworks/fetch.sh+1−1 pkgs/development/libraries/kde-frameworks/kdelibs4support/default.nix+2−2 pkgs/development/libraries/kde-frameworks/kdewebkit.nix+11 pkgs/development/libraries/kde-frameworks/kholidays.nix+2−2 pkgs/development/libraries/kde-frameworks/ki18n.nix+7−1 pkgs/development/libraries/kde-frameworks/srcs.nix+312−312 pkgs/development/libraries/kerberos/heimdal-make-missing-headers.patch+10 pkgs/development/libraries/kerberos/heimdal.nix+8−2 pkgs/development/libraries/kirigami/default.nix−47 pkgs/development/libraries/kpmcore/default.nix+6−4 pkgs/development/libraries/kproperty/default.nix+5−4 pkgs/development/libraries/kreport/default.nix+2−2 pkgs/development/libraries/languagemachines/frog.nix+2−2 pkgs/development/libraries/languagemachines/libfolia.nix+2−2 pkgs/development/libraries/languagemachines/mbt.nix+2−2 pkgs/development/libraries/languagemachines/timbl.nix+2−2 pkgs/development/libraries/languagemachines/timblserver.nix+2−2 pkgs/development/libraries/languagemachines/ucto.nix+3−3 pkgs/development/libraries/lcms2/default.nix+2−2 pkgs/development/libraries/ldb/default.nix+4−3 pkgs/development/libraries/leatherman/default.nix+2−2 pkgs/development/libraries/leveldb/default.nix+6−1 pkgs/development/libraries/libLAS/default.nix+14−4 pkgs/development/libraries/libamqpcpp/default.nix+5−3 pkgs/development/libraries/libaom/default.nix+25 pkgs/development/libraries/libassuan/default.nix+1−2 pkgs/development/libraries/libatomic_ops/default.nix+4−5 pkgs/development/libraries/libatomic_ops/riscv.patch−40 pkgs/development/libraries/libaudclient/default.nix+1−1 pkgs/development/libraries/libav/default.nix+9−4 pkgs/development/libraries/libb2/default.nix+17−8 pkgs/development/libraries/libbfd/default.nix+3−5 pkgs/development/libraries/libbsd/cdefs.patch+222 pkgs/development/libraries/libbsd/default.nix+10−1 pkgs/development/libraries/libbsd/features.patch+26 pkgs/development/libraries/libbsd/non-glibc.patch+74 pkgs/development/libraries/libbson/default.nix+2−2 pkgs/development/libraries/libcanberra/default.nix+5−6 pkgs/development/libraries/libcdio-paranoia/default.nix+10−2 pkgs/development/libraries/libcdio/default.nix+2−2 pkgs/development/libraries/libcec/platform.nix+2−2 pkgs/development/libraries/libchamplain/default.nix+1−1 pkgs/development/libraries/libchop/default.nix+1−1 pkgs/development/libraries/libcloudproviders/default.nix+4 pkgs/development/libraries/libcloudproviders/fix-include.patch+11 pkgs/development/libraries/libconfuse/default.nix+3−1 pkgs/development/libraries/libcouchbase/default.nix+2−2 pkgs/development/libraries/libcue/default.nix+2−2 pkgs/development/libraries/libdazzle/default.nix+55 pkgs/development/libraries/libdbusmenu-qt/qt-5.5.nix+1−1 pkgs/development/libraries/libdigidocpp/default.nix+3−3 pkgs/development/libraries/libdrm/default.nix+5−5 pkgs/development/libraries/libdvdcss/default.nix+2−2 pkgs/development/libraries/libdvdnav/default.nix+3−3 pkgs/development/libraries/libdvdread/default.nix+2−2 pkgs/development/libraries/libdwarf/default.nix+5−3 pkgs/development/libraries/libdynd/default.nix+7 pkgs/development/libraries/libe-book/default.nix+6−6 pkgs/development/libraries/libedit/default.nix+2−2 pkgs/development/libraries/libesmtp/default.nix+18 pkgs/development/libraries/libetpan/default.nix+2−2 pkgs/development/libraries/libevdev/default.nix+2−2 pkgs/development/libraries/libevent/default.nix+2−1 pkgs/development/libraries/libf2c/default.nix+2−2 pkgs/development/libraries/libfilezilla/default.nix+2−2 pkgs/development/libraries/libfixposix/default.nix+2−2 pkgs/development/libraries/libfm/default.nix+2−2 pkgs/development/libraries/libftdi/1.x.nix+1−1 pkgs/development/libraries/libftdi/default.nix+2−2 pkgs/development/libraries/libgcrypt/default.nix+3−3 pkgs/development/libraries/libgdiplus/default.nix+2−2 pkgs/development/libraries/libgksu/default.nix+6−2 pkgs/development/libraries/libglvnd/default.nix+22−8 pkgs/development/libraries/libgpg-error/default.nix+14−8 pkgs/development/libraries/libgpg-error/riscv.patch−54 pkgs/development/libraries/libgphoto2/default.nix+3−3 pkgs/development/libraries/libgpod/default.nix+1−1 pkgs/development/libraries/libgringotts/default.nix+3−3 pkgs/development/libraries/libgroove/default.nix+3−1 pkgs/development/libraries/libgroove/no-warnings-as-errors.patch+15 pkgs/development/libraries/libgsf/default.nix+5−8 pkgs/development/libraries/libgtop/default.nix+1−4 pkgs/development/libraries/libguestfs/appliance.nix+7 pkgs/development/libraries/libguestfs/default.nix+24−10 pkgs/development/libraries/libhttpseverywhere/default.nix+7−5 pkgs/development/libraries/libiconv/default.nix+2 pkgs/development/libraries/libiconv/setup-hook.sh+18 pkgs/development/libraries/libidn2/default.nix+4−3 pkgs/development/libraries/libimobiledevice/default.nix+2−1 pkgs/development/libraries/libinfinity/default.nix+8−5 pkgs/development/libraries/libinput/default.nix+2−2 pkgs/development/libraries/libkate/default.nix+2−2 pkgs/development/libraries/libksba/default.nix+1−1 pkgs/development/libraries/liblangtag/default.nix+52 pkgs/development/libraries/liblouis/default.nix+3−2 pkgs/development/libraries/libmbim/default.nix+2−2 pkgs/development/libraries/libmediainfo/default.nix+2−2 pkgs/development/libraries/libmicrohttpd/default.nix+4−6 pkgs/development/libraries/libminc/default.nix+22−11 pkgs/development/libraries/libmng/default.nix+2−2 pkgs/development/libraries/libmnl/default.nix+1−1 pkgs/development/libraries/libmodplug/default.nix+2−2 pkgs/development/libraries/libmowgli/default.nix+4−3 pkgs/development/libraries/libmsgpack/generic.nix+1−1 pkgs/development/libraries/libmtp/default.nix+5−4 pkgs/development/libraries/libmwaw/default.nix+4−4 pkgs/development/libraries/libmypaint/default.nix+9−1 pkgs/development/libraries/libmysqlconnectorcpp/default.nix+2−2 pkgs/development/libraries/libnatspec/default.nix−1 pkgs/development/libraries/libnetfilter_conntrack/default.nix+2−2 pkgs/development/libraries/libnetfilter_cttimeout/default.nix+2−2 pkgs/development/libraries/libnetfilter_log/default.nix+2−2 pkgs/development/libraries/libnfs/default.nix+2 pkgs/development/libraries/libngspice/default.nix+25 pkgs/development/libraries/libofx/default.nix+2−2 pkgs/development/libraries/liboil/default.nix+1−1 pkgs/development/libraries/libopcodes/default.nix+3−3 pkgs/development/libraries/libpar2/default.nix+2 pkgs/development/libraries/libpipeline/default.nix+4−4 pkgs/development/libraries/libpng/12.nix−5 pkgs/development/libraries/libpqxx/default.nix+2−2 pkgs/development/libraries/libqalculate/default.nix+2−2 pkgs/development/libraries/libqglviewer/default.nix+3−2 pkgs/development/libraries/libqmatrixclient/default.nix+3−17 pkgs/development/libraries/libqmi/default.nix+2−2 pkgs/development/libraries/libqrencode/default.nix+2−2 pkgs/development/libraries/libraw/default.nix+2−2 pkgs/development/libraries/libraw1394/default.nix+2−2 pkgs/development/libraries/librdf/rasqal.nix+2−2 pkgs/development/libraries/libre/default.nix+2−2 pkgs/development/libraries/librealsense/default.nix+33 pkgs/development/libraries/librelp/default.nix+2−2 pkgs/development/libraries/librem/default.nix+2−2 pkgs/development/libraries/libressl/default.nix+16−4 pkgs/development/libraries/librime/default.nix+4−4 pkgs/development/libraries/librsvg/default.nix+5−10 pkgs/development/libraries/librsync/default.nix+2−2 pkgs/development/libraries/libs3/default.nix+6−3 pkgs/development/libraries/libsass/default.nix+2−2 pkgs/development/libraries/libsearpc/default.nix+1−1 pkgs/development/libraries/libseccomp/default.nix+3 pkgs/development/libraries/libsecret/default.nix+2−4 pkgs/development/libraries/libsolv/default.nix+2−2 pkgs/development/libraries/libsoup/default.nix+16−26 pkgs/development/libraries/libspatialindex/default.nix+1−1 pkgs/development/libraries/libspatialite/default.nix+2−2 pkgs/development/libraries/libssh2/default.nix+3−17 pkgs/development/libraries/libstrophe/default.nix+2−2 pkgs/development/libraries/libsvm/default.nix+2−2 pkgs/development/libraries/libtar/default.nix+1−1 pkgs/development/libraries/libtheora/default.nix+1−1 pkgs/development/libraries/libtins/default.nix+43 pkgs/development/libraries/libtorrent-rasterbar/default.nix+36−5 pkgs/development/libraries/libtorrent-rasterbar/generic.nix−43 pkgs/development/libraries/libtoxcore/default.nix+43−38 pkgs/development/libraries/libu2f-host/default.nix+2−2 pkgs/development/libraries/libu2f-server/default.nix+4−5 pkgs/development/libraries/libui/default.nix+3−1 pkgs/development/libraries/libunistring/default.nix+2−2 pkgs/development/libraries/libunwind/default.nix+2 pkgs/development/libraries/liburcu/default.nix+2−2 pkgs/development/libraries/libusb1/default.nix+2−2 pkgs/development/libraries/libusbmuxd/default.nix+2−1 pkgs/development/libraries/libuv/default.nix+2−2 pkgs/development/libraries/libva-utils/default.nix+1−1 pkgs/development/libraries/libva/1.0.0.nix+37 pkgs/development/libraries/libva/default.nix+9−7 pkgs/development/libraries/libvdpau/default.nix+4−3 pkgs/development/libraries/libvirt-glib/default.nix+4−2 pkgs/development/libraries/libvirt/build-on-bsd.patch−58 pkgs/development/libraries/libvirt/default.nix+36−25 pkgs/development/libraries/libvisio/default.nix+14−15 pkgs/development/libraries/libvorbis/default.nix+2−12 pkgs/development/libraries/libvpx/git.nix+1−1 pkgs/development/libraries/libwacom/default.nix+2−2 pkgs/development/libraries/libwebsockets/default.nix+2−2 pkgs/development/libraries/libwnck/3.x.nix+24−14 pkgs/development/libraries/libwnck/install_introspection_to_prefix.patch−12 pkgs/development/libraries/libwps/default.nix+2−2 pkgs/development/libraries/libx86emu/default.nix+2−2 pkgs/development/libraries/libxcomp/default.nix+5−4 pkgs/development/libraries/libxkbcommon/default.nix+19−14 pkgs/development/libraries/libxmi/default.nix+1−1 pkgs/development/libraries/libyaml-cpp/default.nix+2−2 pkgs/development/libraries/libyubikey/default.nix+1−1 pkgs/development/libraries/libzdb/default.nix+4−4 pkgs/development/libraries/lightstep-tracer-cpp/default.nix+1 pkgs/development/libraries/linbox/default.nix+79 pkgs/development/libraries/live555/default.nix+19−13 pkgs/development/libraries/lmdb/default.nix+5−2 pkgs/development/libraries/lmdb/hardcoded-compiler.patch+26 pkgs/development/libraries/log4cxx/default.nix+1−1 pkgs/development/libraries/luaffi/darwin.patch+17 pkgs/development/libraries/luaffi/default.nix+3−3 pkgs/development/libraries/mailcore2/default.nix+2−2 pkgs/development/libraries/matio/default.nix+2−2 pkgs/development/libraries/mbedtls/darwin_dylib.patch−28 pkgs/development/libraries/mbedtls/default.nix+13−13 pkgs/development/libraries/mdds/default.nix+2−2 pkgs/development/libraries/mesa-glu/default.nix+4−3 pkgs/development/libraries/mesa/default.nix+71−19 pkgs/development/libraries/mesa/missing-include.patch+11 pkgs/development/libraries/mesa/musl-fixes.patch−22 pkgs/development/libraries/movit/default.nix+2−2 pkgs/development/libraries/mpfr/upstream.patch−1699 pkgs/development/libraries/mpir/default.nix+2 pkgs/development/libraries/mps/default.nix+6 pkgs/development/libraries/mypaint-brushes/default.nix+35 pkgs/development/libraries/mysocketw/default.nix+7−4 pkgs/development/libraries/ncurses/default.nix+5−9 pkgs/development/libraries/ndn-cxx/default.nix+1 pkgs/development/libraries/netcdf-fortran/default.nix+3−3 pkgs/development/libraries/netcdf/default.nix+2−2 pkgs/development/libraries/newt/default.nix+2−2 pkgs/development/libraries/nix-plugins/default.nix+4−4 pkgs/development/libraries/nlohmann_json/default.nix+2−2 pkgs/development/libraries/nspr/default.nix+2−2 pkgs/development/libraries/nss/85_security_load.patch+4−4 pkgs/development/libraries/nss/default.nix+11−3 pkgs/development/libraries/ntbtls/default.nix+6−5 pkgs/development/libraries/ocl-icd/default.nix+2−2 pkgs/development/libraries/ogre/1.9.x.nix+1−1 pkgs/development/libraries/oniguruma/default.nix+6−11 pkgs/development/libraries/openbsm/bsm-add-audit_token_to_pid.patch+24 pkgs/development/libraries/openbsm/default.nix+22 pkgs/development/libraries/opencollada/default.nix+10−3 pkgs/development/libraries/opencolorio/default.nix+5−3 pkgs/development/libraries/opencv/3.x.nix+17−2 pkgs/development/libraries/opencv/default.nix+3−2 pkgs/development/libraries/opendht/default.nix+2−2 pkgs/development/libraries/openexrid-unstable/default.nix+6−1 pkgs/development/libraries/openfst/default.nix+2−2 pkgs/development/libraries/openmpi/default.nix+2−2 pkgs/development/libraries/openpam/default.nix+18 pkgs/development/libraries/openssl/default.nix+6−11 pkgs/development/libraries/opensubdiv/default.nix+9−4 pkgs/development/libraries/openvdb/default.nix+4−4 pkgs/development/libraries/openzwave/default.nix+56 pkgs/development/libraries/p11-kit/default.nix+2−2 pkgs/development/libraries/pango/default.nix+2−2 pkgs/development/libraries/parquet-cpp/default.nix+37 pkgs/development/libraries/pcre/default.nix+4 pkgs/development/libraries/physics/fastjet/default.nix+4−3 pkgs/development/libraries/physics/geant4/datasets-hook.sh+5 pkgs/development/libraries/physics/geant4/datasets.nix+103 pkgs/development/libraries/physics/geant4/default.nix+33−55 pkgs/development/libraries/physics/geant4/fetch.nix+11−1 pkgs/development/libraries/physics/geant4/geant4-hook.sh pkgs/development/libraries/physics/pythia/default.nix+3−2 pkgs/development/libraries/physics/rivet/default.nix+1−1 pkgs/development/libraries/pipewire/default.nix+5−7 pkgs/development/libraries/pipewire/fix-paths.patch−8 pkgs/development/libraries/pixman/default.nix+2−2 pkgs/development/libraries/poco/default.nix+5−2 pkgs/development/libraries/poppler/0.61.nix+56 pkgs/development/libraries/poppler/default.nix+16−32 pkgs/development/libraries/postgis/2.3.nix−102 pkgs/development/libraries/postgis/default.nix+18−2 pkgs/development/libraries/postgis/pg_db_postgis_enable.sh−38 pkgs/development/libraries/postgis/pg_db_postgis_fix_or_load_sql_dump.sh−52 pkgs/development/libraries/protobuf/3.4.nix+2−2 pkgs/development/libraries/protobuf/3.5.nix+6 pkgs/development/libraries/ptex/default.nix+2−2 pkgs/development/libraries/ptlib/default.nix+7−3 pkgs/development/libraries/pugixml/default.nix+2−2 pkgs/development/libraries/qca-qt5/default.nix+5−1 pkgs/development/libraries/qca-qt5/move-project.patch+19 pkgs/development/libraries/qca2/default.nix+3−3 pkgs/development/libraries/qmlbox2d/default.nix+31 pkgs/development/libraries/qpdf/default.nix+2−2 pkgs/development/libraries/qscintilla/default.nix+24−20 pkgs/development/libraries/qt-4.x/4.8/default.nix+2−3 pkgs/development/libraries/qt-4.x/4.8/dlopen-absolute-paths.diff−26 pkgs/development/libraries/qt-5/5.10/default.nix+4−1 pkgs/development/libraries/qt-5/5.10/restore-pc-files.patch+27 pkgs/development/libraries/qt-5/mkDerivation.nix+2−3 pkgs/development/libraries/qt-5/modules/qtbase.nix+1−1 pkgs/development/libraries/qt-5/modules/qtlocation.nix+8−1 pkgs/development/libraries/qt-5/modules/qtspeech.nix+7 pkgs/development/libraries/qt-5/modules/qtwebengine.nix+86−20 pkgs/development/libraries/qt-5/modules/qtwebkit.nix+6−1 pkgs/development/libraries/qtkeychain/default.nix+17−5 pkgs/development/libraries/qtstyleplugin-kvantum/default.nix+8−7 pkgs/development/libraries/quazip/default.nix+2−2 pkgs/development/libraries/qwt/6.nix+1−1 pkgs/development/libraries/qwt/default.nix+1−1 pkgs/development/libraries/rabbitmq-c/default.nix+3−3 pkgs/development/libraries/rapidjson/default.nix+6−1 pkgs/development/libraries/rarian/default.nix pkgs/development/libraries/rdkafka/default.nix+4−6 pkgs/development/libraries/rocksdb/default.nix+16−8 pkgs/development/libraries/schroedinger/default.nix+11−3 pkgs/development/libraries/science/biology/EBTKS/default.nix+28 pkgs/development/libraries/science/biology/bicpl/default.nix+33 pkgs/development/libraries/science/biology/elastix/default.nix+7−11 pkgs/development/libraries/science/biology/oobicpl/default.nix+31 pkgs/development/libraries/science/math/atlas/default.nix+4−2 pkgs/development/libraries/science/math/brial/default.nix+46 pkgs/development/libraries/science/math/caffe2/default.nix+7−3 pkgs/development/libraries/science/math/caffe2/fix_compilation_on_gcc7.patch+46 pkgs/development/libraries/science/math/clblas/default.nix+13−4 pkgs/development/libraries/science/math/cliquer/default.nix+38 pkgs/development/libraries/science/math/flintqs/default.nix+40 pkgs/development/libraries/science/math/lcalc/default.nix+78 pkgs/development/libraries/science/math/lcalc/makefile.patch+113 pkgs/development/libraries/science/math/liblapack/3.5.0.nix−64 pkgs/development/libraries/science/math/liblapack/default.nix+3−4 pkgs/development/libraries/science/math/m4ri/default.nix+30 pkgs/development/libraries/science/math/m4rie/default.nix+39 pkgs/development/libraries/science/math/openblas/default.nix+1−1 pkgs/development/libraries/science/math/openlibm/default.nix+2−2 pkgs/development/libraries/science/math/petsc/default.nix+7−2 pkgs/development/libraries/science/math/planarity/default.nix+40 pkgs/development/libraries/science/math/rankwidth/default.nix+28 pkgs/development/libraries/science/math/rubiks/default.nix+82 pkgs/development/libraries/science/math/sympow/default.nix+91 pkgs/development/libraries/science/math/zn_poly/default.nix+50 pkgs/development/libraries/science/networking/ns3/default.nix+98 pkgs/development/libraries/sfml/default.nix+2−2 pkgs/development/libraries/silgraphite/graphite2.nix+2−2 pkgs/development/libraries/simpleitk/default.nix+29 pkgs/development/libraries/slang/default.nix+18−5 pkgs/development/libraries/soxt/default.nix+21 pkgs/development/libraries/speech-tools/default.nix+13−8 pkgs/development/libraries/spice-gtk/default.nix+38−24 pkgs/development/libraries/sqlite/default.nix+5−3 pkgs/development/libraries/sqlite/sqlite3_analyzer.nix+3−3 pkgs/development/libraries/srtp/default.nix+2−2 pkgs/development/libraries/stfl/default.nix−3 pkgs/development/libraries/sundials/default.nix+28 pkgs/development/libraries/swiften/default.nix+2−2 pkgs/development/libraries/tachyon/default.nix+49−8 pkgs/development/libraries/tachyon/make-archs.patch+37 pkgs/development/libraries/tachyon/no-absolute-paths.patch+57 pkgs/development/libraries/talloc/default.nix+2−2 pkgs/development/libraries/tevent/default.nix+2−2 pkgs/development/libraries/ti-rpc/default.nix+6−8 pkgs/development/libraries/tnt/default.nix+2−2 pkgs/development/libraries/tokyo-tyrant/default.nix+1−1 pkgs/development/libraries/tremor/default.nix+6−6 pkgs/development/libraries/umockdev/default.nix+3−2 pkgs/development/libraries/unibilium/default.nix+2−2 pkgs/development/libraries/unixODBC/default.nix+2−2 pkgs/development/libraries/unixODBCDrivers/default.nix+3−3 pkgs/development/libraries/usbredir/default.nix+1−3 pkgs/development/libraries/utf8proc/default.nix+2−2 pkgs/development/libraries/v8/default.nix+5−3 pkgs/development/libraries/vaapi-intel/default.nix+1−1 pkgs/development/libraries/vapoursynth/default.nix+5−5 pkgs/development/libraries/vcdimager/default.nix+5−3 pkgs/development/libraries/virglrenderer/default.nix+7−2 pkgs/development/libraries/vo-amrwbenc/default.nix+22 pkgs/development/libraries/vulkan-loader/default.nix+14−9 pkgs/development/libraries/vulkan-loader/rev-file.patch+21 pkgs/development/libraries/wayland/protocols.nix+2−2 pkgs/development/libraries/wcslib/default.nix+2−2 pkgs/development/libraries/webkitgtk/2.18.nix−106 pkgs/development/libraries/webkitgtk/2.20.nix+89 pkgs/development/libraries/webkitgtk/2.4.nix+1−1 pkgs/development/libraries/webkitgtk/PR-152650-2.patch−62 pkgs/development/libraries/webkitgtk/PR-153138.patch−26 pkgs/development/libraries/webkitgtk/PR-157554.patch−33 pkgs/development/libraries/webkitgtk/PR-157574.patch−62 pkgs/development/libraries/webkitgtk/finding-harfbuzz-icu.patch−52 pkgs/development/libraries/webkitgtk/gstreamergl-2.17.patch−13 pkgs/development/libraries/wlc/default.nix+4−4 pkgs/development/libraries/wlroots/default.nix+9−9 pkgs/development/libraries/wlroots/libdrm.patch−9 pkgs/development/libraries/wlroots/no-werror.patch−10 pkgs/development/libraries/wt/default.nix+7−9 pkgs/development/libraries/wxSVG/default.nix+2−2 pkgs/development/libraries/wxwidgets/3.0/default.nix+3−3 pkgs/development/libraries/xalanc/default.nix+2−3 pkgs/development/libraries/xercesc/default.nix+2−2 pkgs/development/libraries/xgboost/default.nix+7−4 pkgs/development/libraries/xine-lib/default.nix+2−2 pkgs/development/libraries/xmlrpc-c/default.nix+3−3 pkgs/development/libraries/xxHash/default.nix+3−3 pkgs/development/libraries/zlog/default.nix+1−1 pkgs/development/libraries/zmqpp/default.nix+27 pkgs/development/libraries/zziplib/default.nix+11−6 pkgs/development/lisp-modules/asdf/default.nix+4−4 pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix+5 pkgs/development/misc/amdapp-sdk/default.nix+1−1 pkgs/development/misc/avr/gcc/default.nix+4−4 pkgs/development/misc/loc/default.nix+1−1 pkgs/development/misc/rpiboot/unstable.nix+36 pkgs/development/misc/stm32/betaflight/default.nix pkgs/development/mobile/abootimg/default.nix+43 pkgs/development/mobile/androidenv/androidndk.nix−2 pkgs/development/mobile/androidenv/androidndk_r8e.nix−2 pkgs/development/mobile/androidenv/build-tools.nix+6−6 pkgs/development/mobile/cocoapods/Gemfile+1−1 pkgs/development/mobile/cocoapods/Gemfile.lock+76 pkgs/development/mobile/cocoapods/default.nix+17 pkgs/development/mobile/cocoapods/gemset.nix+242 pkgs/development/mobile/cocoapods/update+10 pkgs/development/mobile/flashtool/default.nix+1−3 pkgs/development/mobile/genymotion/default.nix+2−2 pkgs/development/mobile/titaniumenv/build-app.nix+11−33 pkgs/development/mobile/titaniumenv/default.nix+2−1 pkgs/development/mobile/titaniumenv/examples/default.nix+1−1 pkgs/development/mobile/titaniumenv/examples/kitchensink/default.nix+4−5 pkgs/development/mobile/titaniumenv/titaniumsdk-7.1.nix+102 pkgs/development/mobile/xcodeenv/build-app.nix+30−4 pkgs/development/mobile/xcodeenv/simulate-app.nix+1−1 pkgs/development/node-packages/README.md+1−51 pkgs/development/node-packages/composition-v6.nix+2−1 pkgs/development/node-packages/composition-v8.nix+2−1 pkgs/development/node-packages/default-v6.nix+10−3 pkgs/development/node-packages/node-env.nix+9−3 pkgs/development/node-packages/node-packages-v6.json+7−1 pkgs/development/node-packages/node-packages-v6.nix+6100−4013 pkgs/development/node-packages/node-packages-v8.json+5 pkgs/development/node-packages/node-packages-v8.nix+6414−1134 pkgs/development/ocaml-modules/alcotest/default.nix+2−2 pkgs/development/ocaml-modules/bitstring/camlp4-git.patch−44 pkgs/development/ocaml-modules/bitstring/default.nix+18−13 pkgs/development/ocaml-modules/bitstring/srcdir.patch−11 pkgs/development/ocaml-modules/camlimages/default.nix+20 pkgs/development/ocaml-modules/comparelib/default.nix+2−2 pkgs/development/ocaml-modules/containers/default.nix+2−2 pkgs/development/ocaml-modules/cstruct/default.nix+2−2 pkgs/development/ocaml-modules/eliom/default.nix+26−14 pkgs/development/ocaml-modules/expat/default.nix+2−2 pkgs/development/ocaml-modules/extlib/default.nix+3−3 pkgs/development/ocaml-modules/gapi-ocaml/default.nix+10−7 pkgs/development/ocaml-modules/git-http/default.nix+7−2 pkgs/development/ocaml-modules/git/default.nix+7−3 pkgs/development/ocaml-modules/herelib/default.nix+2−2 pkgs/development/ocaml-modules/http/default.nix+4 pkgs/development/ocaml-modules/janestreet/default.nix+107−116 pkgs/development/ocaml-modules/janestreet/janePackage.nix+3−3 pkgs/development/ocaml-modules/janestreet/old.nix+615 pkgs/development/ocaml-modules/lwt/default.nix+26−47 pkgs/development/ocaml-modules/lwt/legacy.nix+57 pkgs/development/ocaml-modules/lwt/ppx.nix+19 pkgs/development/ocaml-modules/ocaml-libvirt/default.nix+3−3 pkgs/development/ocaml-modules/ocamlnet/default.nix+4−3 pkgs/development/ocaml-modules/ocp-ocamlres/default.nix+8−4 pkgs/development/ocaml-modules/ocsigen-deriving/default.nix+20−5 pkgs/development/ocaml-modules/ocsigen-server/default.nix+24−9 pkgs/development/ocaml-modules/ocsigen-start/default.nix+7−5 pkgs/development/ocaml-modules/ocsigen-toolkit/default.nix+6−6 pkgs/development/ocaml-modules/optcomp/META+12 pkgs/development/ocaml-modules/optcomp/default.nix+23−1 pkgs/development/ocaml-modules/pa_bench/default.nix+2−2 pkgs/development/ocaml-modules/pa_ounit/default.nix+2−2 pkgs/development/ocaml-modules/pcre/default.nix+5−7 pkgs/development/ocaml-modules/pipebang/default.nix+2−2 pkgs/development/ocaml-modules/ppx_derivers/default.nix+2−2 pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix+2−2 pkgs/development/ocaml-modules/sawja/default.nix+3−3 pkgs/development/ocaml-modules/ssl/default.nix+2−2 pkgs/development/ocaml-modules/stdint/default.nix+2−2 pkgs/development/ocaml-modules/type_conv/112.01.01.nix+2−2 pkgs/development/ocaml-modules/uchar/default.nix+3−3 pkgs/development/ocaml-modules/yojson/default.nix+2−2 pkgs/development/perl-modules/MNI/default.nix+21 pkgs/development/perl-modules/MNI/no-stdin.patch+13 pkgs/development/perl-modules/Paranoid-blessed-path.patch+23 pkgs/development/perl-modules/Socket6-sv_undef.patch+18 pkgs/development/perl-modules/generic/builder.sh+1−1 pkgs/development/perl-modules/generic/default.nix+3−2 pkgs/development/perl-modules/perl-POE-1.367-pod_linkcheck.patch+40 pkgs/development/perl-modules/perl-POE-1.367-pod_no404s.patch+46 pkgs/development/python-modules/Babel/default.nix+22 pkgs/development/python-modules/Cython/default.nix+4−17 pkgs/development/python-modules/GeoIP/default.nix+1−1 pkgs/development/python-modules/IPy/default.nix+24 pkgs/development/python-modules/JPype1/default.nix+2−2 pkgs/development/python-modules/MechanicalSoup/default.nix+2−4 pkgs/development/python-modules/Nikola/default.nix+2−2 pkgs/development/python-modules/Rtree/default.nix+29 pkgs/development/python-modules/Theano/default.nix+8−1 pkgs/development/python-modules/WSME/default.nix+49 pkgs/development/python-modules/absl-py/default.nix+2−3 pkgs/development/python-modules/acme/default.nix+16−4 pkgs/development/python-modules/adal/default.nix+2−2 pkgs/development/python-modules/affinity/default.nix+6−2 pkgs/development/python-modules/agate/default.nix+2−2 pkgs/development/python-modules/aiohttp-jinja2/default.nix+26 pkgs/development/python-modules/aiohttp/cors.nix+9−5 pkgs/development/python-modules/aiohttp/default.nix+5−4 pkgs/development/python-modules/aiohue/default.nix+19 pkgs/development/python-modules/ajpy/default.nix+21 pkgs/development/python-modules/alembic/default.nix+2−2 pkgs/development/python-modules/allpairspy/default.nix+25 pkgs/development/python-modules/alot/default.nix+60 pkgs/development/python-modules/altair/default.nix+6−5 pkgs/development/python-modules/amqp/default.nix+20 pkgs/development/python-modules/aniso8601/default.nix+2−2 pkgs/development/python-modules/antlr4-python3-runtime/default.nix+18 pkgs/development/python-modules/anyjson/default.nix+21 pkgs/development/python-modules/application/default.nix+15 pkgs/development/python-modules/apsw/default.nix+9−10 pkgs/development/python-modules/asana/default.nix+13−15 pkgs/development/python-modules/asgi_ipc/default.nix−21 pkgs/development/python-modules/asgi_redis/default.nix−24 pkgs/development/python-modules/asgiref/default.nix+15−7 pkgs/development/python-modules/astral/default.nix+7−5 pkgs/development/python-modules/astroid/default.nix+2−2 pkgs/development/python-modules/astropy/default.nix+6−5 pkgs/development/python-modules/async_generator/default.nix+25 pkgs/development/python-modules/async_timeout/default.nix+2−2 pkgs/development/python-modules/asyncio/default.nix+18 pkgs/development/python-modules/asynctest/default.nix+2−2 pkgs/development/python-modules/atomiclong/default.nix+21 pkgs/development/python-modules/atomicwrites/default.nix+17 pkgs/development/python-modules/attrdict/default.nix+19 pkgs/development/python-modules/autobahn/default.nix+3−3 pkgs/development/python-modules/autopep8/default.nix+2−2 pkgs/development/python-modules/avro/default.nix+17 pkgs/development/python-modules/avro3k/default.nix+19 pkgs/development/python-modules/aws-xray-sdk/default.nix+4−3 pkgs/development/python-modules/babelfish/default.nix+17 pkgs/development/python-modules/backcall/default.nix+28 pkgs/development/python-modules/batinfo/default.nix+22 pkgs/development/python-modules/bayespy/default.nix+2−2 pkgs/development/python-modules/bcdoc/default.nix+22 pkgs/development/python-modules/beancount/default.nix+15−11 pkgs/development/python-modules/behave/default.nix+8−9 pkgs/development/python-modules/betamax/default.nix+22 pkgs/development/python-modules/bibtexparser/default.nix+16−8 pkgs/development/python-modules/billiard/default.nix+20 pkgs/development/python-modules/binaryornot/default.nix+27 pkgs/development/python-modules/biopython/default.nix+2−2 pkgs/development/python-modules/bitbucket-api/default.nix+23 pkgs/development/python-modules/bitbucket-cli/default.nix+23 pkgs/development/python-modules/bitmath/default.nix+20 pkgs/development/python-modules/black/default.nix+23 pkgs/development/python-modules/blaze/default.nix+6−4 pkgs/development/python-modules/bleach/default.nix+3−3 pkgs/development/python-modules/blinker/default.nix+18 pkgs/development/python-modules/blinkstick/default.nix+31 pkgs/development/python-modules/bokeh/default.nix+2−2 pkgs/development/python-modules/bootstrapped-pip/default.nix+6−6 pkgs/development/python-modules/boto3/default.nix+2−2 pkgs/development/python-modules/botocore/default.nix+2−2 pkgs/development/python-modules/bottle/default.nix+21 pkgs/development/python-modules/bugwarrior/default.nix+31 pkgs/development/python-modules/bugzilla/default.nix+30 pkgs/development/python-modules/buildout-nix/default.nix+2−2 pkgs/development/python-modules/buildout/default.nix+18 pkgs/development/python-modules/bumps/default.nix+24 pkgs/development/python-modules/bunch/default.nix+17 pkgs/development/python-modules/buttersink/default.nix+28 pkgs/development/python-modules/cached-property/default.nix+15−7 pkgs/development/python-modules/cachetools/1.nix+2−2 pkgs/development/python-modules/cairosvg/default.nix+25 pkgs/development/python-modules/can/default.nix+2−2 pkgs/development/python-modules/canonicaljson/default.nix+23 pkgs/development/python-modules/carrot/default.nix+22 pkgs/development/python-modules/case/default.nix+20 pkgs/development/python-modules/celery/default.nix+4−3 pkgs/development/python-modules/cerberus/default.nix+19 pkgs/development/python-modules/cffi/default.nix+2−2 pkgs/development/python-modules/chainer/default.nix+2−2 pkgs/development/python-modules/check-manifest/default.nix+20 pkgs/development/python-modules/cheroot/default.nix+2−2 pkgs/development/python-modules/cherrypy/default.nix+4−5 pkgs/development/python-modules/circus/default.nix+16 pkgs/development/python-modules/cjson/default.nix+18 pkgs/development/python-modules/clf/default.nix+29 pkgs/development/python-modules/click-log/default.nix+20 pkgs/development/python-modules/click/default.nix+30 pkgs/development/python-modules/cloudpickle/default.nix+27 pkgs/development/python-modules/cmarkgfm/default.nix+25 pkgs/development/python-modules/cmdline/default.nix+21 pkgs/development/python-modules/codecov/default.nix+6−4 pkgs/development/python-modules/cogapp/default.nix+21 pkgs/development/python-modules/coilmq/default.nix+25 pkgs/development/python-modules/coinmarketcap/default.nix+19 pkgs/development/python-modules/colander/default.nix+21 pkgs/development/python-modules/colorclass/default.nix+20 pkgs/development/python-modules/colour/default.nix+19 pkgs/development/python-modules/commonmark/default.nix+27 pkgs/development/python-modules/configobj/default.nix+34 pkgs/development/python-modules/configparser/default.nix+23 pkgs/development/python-modules/construct/default.nix+6−5 pkgs/development/python-modules/consul/default.nix+24 pkgs/development/python-modules/contexter/default.nix+14 pkgs/development/python-modules/contextvars/default.nix+21 pkgs/development/python-modules/cookiecutter/default.nix+34 pkgs/development/python-modules/cookies/default.nix+19 pkgs/development/python-modules/cov-core/default.nix+17 pkgs/development/python-modules/coveralls/default.nix+2−2 pkgs/development/python-modules/cram/default.nix+4−12 pkgs/development/python-modules/crcmod/default.nix+17 pkgs/development/python-modules/credstash/default.nix+8−3 pkgs/development/python-modules/cryptacular/default.nix+22 pkgs/development/python-modules/cryptography/default.nix+2−2 pkgs/development/python-modules/cryptography_vectors/default.nix+2−2 pkgs/development/python-modules/cssselect/default.nix+17 pkgs/development/python-modules/cssselect2/default.nix+23 pkgs/development/python-modules/cssutils/default.nix+22 pkgs/development/python-modules/csvkit/default.nix+31−21 pkgs/development/python-modules/cupy/default.nix+2−2 pkgs/development/python-modules/curtsies/default.nix+4−4 pkgs/development/python-modules/cvxopt/default.nix+69 pkgs/development/python-modules/cx_oracle/default.nix+25 pkgs/development/python-modules/cypari2/default.nix+55 pkgs/development/python-modules/cysignals/default.nix+41 pkgs/development/python-modules/cytoolz/default.nix+3−10 pkgs/development/python-modules/daphne/default.nix+20−8 pkgs/development/python-modules/darcsver/default.nix+29 pkgs/development/python-modules/dask/default.nix+2−2 pkgs/development/python-modules/dataclasses/default.nix+21 pkgs/development/python-modules/datadog/default.nix+27 pkgs/development/python-modules/datashape/default.nix+3−1 pkgs/development/python-modules/dateutil/1_5.nix+20 pkgs/development/python-modules/datrie/default.nix+21 pkgs/development/python-modules/dbf/default.nix+8−5 pkgs/development/python-modules/debian/default.nix+14 pkgs/development/python-modules/deform/default.nix+41 pkgs/development/python-modules/defusedxml/default.nix+11 pkgs/development/python-modules/deluge-client/default.nix+21 pkgs/development/python-modules/derpconf/default.nix+19 pkgs/development/python-modules/detox/default.nix+27 pkgs/development/python-modules/diff_cover/default.nix+2−2 pkgs/development/python-modules/digitalocean/default.nix+23 pkgs/development/python-modules/discid/default.nix+7−5 pkgs/development/python-modules/distro/default.nix−1 pkgs/development/python-modules/dj-database-url/default.nix+20 pkgs/development/python-modules/django-pipeline/default.nix+36 pkgs/development/python-modules/django-polymorphic/default.nix+12−6 pkgs/development/python-modules/django/1_11.nix+3−4 pkgs/development/python-modules/django/2_0.nix+2−2 pkgs/development/python-modules/django_redis/default.nix+2−2 pkgs/development/python-modules/djangorestframework/default.nix+2−2 pkgs/development/python-modules/docker-pycreds/default.nix+22 pkgs/development/python-modules/docker-registry-core/default.nix+26 pkgs/development/python-modules/docker/default.nix+2−2 pkgs/development/python-modules/docker_compose/default.nix+2−2 pkgs/development/python-modules/dockerpty/default.nix+19 pkgs/development/python-modules/docopt/default.nix+17 pkgs/development/python-modules/doctest-ignore-unicode/default.nix+19 pkgs/development/python-modules/dogpile.cache/default.nix+2−2 pkgs/development/python-modules/dogpile.core/default.nix+19 pkgs/development/python-modules/dropbox/default.nix+24 pkgs/development/python-modules/dugong/default.nix+13 pkgs/development/python-modules/dulwich/default.nix+9−7 pkgs/development/python-modules/easyprocess/default.nix+21 pkgs/development/python-modules/ecpy/default.nix+5−4 pkgs/development/python-modules/elasticsearch-curator/default.nix+2−2 pkgs/development/python-modules/elasticsearch/default.nix+2−2 pkgs/development/python-modules/emoji/default.nix+2−2 pkgs/development/python-modules/entrypoints/default.nix+4−4 pkgs/development/python-modules/envs/default.nix+24 pkgs/development/python-modules/evdev/default.nix+2−2 pkgs/development/python-modules/ewmh/default.nix+23 pkgs/development/python-modules/face_recognition/default.nix+33 pkgs/development/python-modules/face_recognition_models/default.nix+21 pkgs/development/python-modules/faker/default.nix+4−4 pkgs/development/python-modules/faulthandler/default.nix+2−13 pkgs/development/python-modules/flake8-debugger/default.nix+15−6 pkgs/development/python-modules/flake8-import-order/default.nix+2−2 pkgs/development/python-modules/flask-assets/default.nix+1−1 pkgs/development/python-modules/flask-autoindex/default.nix+44 pkgs/development/python-modules/flask-babel/default.nix+44 pkgs/development/python-modules/flask-script/default.nix+8−5 pkgs/development/python-modules/flask-silk/default.nix+26 pkgs/development/python-modules/flit/default.nix+2−2 pkgs/development/python-modules/fonttools/default.nix+8−3 pkgs/development/python-modules/fpylll/default.nix+55 pkgs/development/python-modules/frozendict/default.nix+20 pkgs/development/python-modules/ftfy/default.nix+12−10 pkgs/development/python-modules/ftputil/default.nix+27 pkgs/development/python-modules/futures/default.nix+25 pkgs/development/python-modules/gensim/default.nix+2−2 pkgs/development/python-modules/git-annex-adapter/default.nix+4−5 pkgs/development/python-modules/google-api-python-client/default.nix+23 pkgs/development/python-modules/google_api_core/default.nix+10−7 pkgs/development/python-modules/google_cloud_core/default.nix+2−2 pkgs/development/python-modules/google_cloud_speech/default.nix+4−5 pkgs/development/python-modules/google_gax/default.nix+4−3 pkgs/development/python-modules/gpapi/default.nix+20 pkgs/development/python-modules/gplaycli/default.nix+26 pkgs/development/python-modules/gpy/default.nix+2−2 pkgs/development/python-modules/graph-tool/2.x.x.nix+11−6 pkgs/development/python-modules/green/default.nix+21 pkgs/development/python-modules/gst-python/default.nix+11−8 pkgs/development/python-modules/guessit/2.0.nix+2−2 pkgs/development/python-modules/ha-ffmpeg/default.nix+28 pkgs/development/python-modules/hbmqtt/default.nix+2−2 pkgs/development/python-modules/hdbscan/default.nix+30 pkgs/development/python-modules/heapdict/default.nix+20 pkgs/development/python-modules/howdoi/default.nix+20 pkgs/development/python-modules/html5-parser/default.nix+2−2 pkgs/development/python-modules/htmltreediff/default.nix+26 pkgs/development/python-modules/httplib2/default.nix+18 pkgs/development/python-modules/hupper/default.nix+2−2 pkgs/development/python-modules/hvac/default.nix+22 pkgs/development/python-modules/hyperlink/default.nix+7−6 pkgs/development/python-modules/idna-ssl/default.nix+3−3 pkgs/development/python-modules/idna/default.nix+1−1 pkgs/development/python-modules/imbalanced-learn/default.nix+26 pkgs/development/python-modules/immutables/default.nix+19

1717 more files changed are not listed.

.editorconfig+2−2
@@ -13,8 +13,8 @@ charset = utf-8
1313
1414# see https://nixos.org/nixpkgs/manual/#chap-conventions
1515
16−# Match nix/ruby files, set indent to spaces with width of two
17−[*.{nix,rb}]
16+# Match nix/ruby/docbook files, set indent to spaces with width of two
17+[*.{nix,rb,xml}]
1818indent_style = space
1919indent_size = 2
2020
.gitattributesnew file+16
@@ -0,0 +1,16 @@
1+**/deps.nix linguist-generated
2+**/node-packages.nix linguist-generated
3+
4+pkgs/applications/editors/emacs-modes/*-generated.nix linguist-generated
5+pkgs/development/r-modules/*-packages.nix linguist-generated
6+pkgs/development/haskell-modules/hackage-packages.nix linguist-generated
7+pkgs/development/beam-modules/hex-packages.nix linguist-generated
8+
9+doc/** linguist-documentation
10+doc/default.nix linguist-documentation=false
11+
12+nixos/doc/** linguist-documentation
13+nixos/doc/default.nix linguist-documentation=false
14+
15+nixos/modules/module-list.nix merge=union
16+# pkgs/top-level/all-packages.nix merge=union
.github/CODEOWNERS+5−1
@@ -13,6 +13,8 @@
1313# Libraries
1414/lib @edolstra @nbp
1515/lib/systems @nbp @ericson2314
16+/lib/generators.nix @edolstra @nbp @Profpatsch
17+/lib/debug.nix @edolstra @nbp @Profpatsch
1618
1719# Nixpkgs Internals
1820/default.nix @nbp
@@ -63,6 +65,9 @@
6365/pkgs/development/interpreters/ruby @zimbatm
6466/pkgs/development/ruby-modules @zimbatm
6567
68+# Rust
69+/pkgs/development/compilers/rust @Mic92 @LnL7
70+
6671# Darwin-related
6772/pkgs/stdenv/darwin @NixOS/darwin-maintainers
6873/pkgs/os-specific/darwin @NixOS/darwin-maintainers
@@ -83,7 +88,6 @@
8388/pkgs/applications/editors/eclipse @rycee
8489
8590# https://github.com/NixOS/nixpkgs/issues/31401
86−/lib/maintainers.nix @ghost
8791/lib/licenses.nix @ghost
8892
8993# Qt / KDE
.version+1−1
@@ -1 +1 @@
1−18.03
1+18.09
README.md+4−4
@@ -12,12 +12,12 @@ build daemon as so-called channels. To get channel information via git, add
1212```
1313
1414For stability and maximum binary package support, it is recommended to maintain
15−custom changes on top of one of the channels, e.g. `nixos-17.09` for the latest
15+custom changes on top of one of the channels, e.g. `nixos-18.03` for the latest
1616release and `nixos-unstable` for the latest successful build of master:
1717
1818```
1919% git remote update channels
20−% git rebase channels/nixos-17.09
20+% git rebase channels/nixos-18.03
2121```
2222
2323For pull-requests, please rebase onto nixpkgs `master`.
@@ -31,9 +31,9 @@ For pull-requests, please rebase onto nixpkgs `master`.
3131* [Manual (NixOS)](https://nixos.org/nixos/manual/)
3232* [Community maintained wiki](https://nixos.wiki/)
3333* [Continuous package builds for unstable/master](https://hydra.nixos.org/jobset/nixos/trunk-combined)
34−* [Continuous package builds for 17.09 release](https://hydra.nixos.org/jobset/nixos/release-17.09)
34+* [Continuous package builds for 18.03 release](https://hydra.nixos.org/jobset/nixos/release-18.03)
3535* [Tests for unstable/master](https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents)
36−* [Tests for 17.09 release](https://hydra.nixos.org/job/nixos/release-17.09/tested#tabs-constituents)
36+* [Tests for 18.03 release](https://hydra.nixos.org/job/nixos/release-18.03/tested#tabs-constituents)
3737
3838Communication:
3939
doc/.gitignorenew file+6
@@ -0,0 +1,6 @@
1+*.chapter.xml
2+*.section.xml
3+.version
4+out
5+manual-full.xml
6+highlightjs
doc/Makefilenew file+95
@@ -0,0 +1,95 @@
1+MD_TARGETS=$(addsuffix .xml, $(basename $(wildcard ./*.md ./**/*.md)))
2+
3+.PHONY: all
4+all: validate format out/html/index.html out/epub/manual.epub
5+
6+.PHONY: debug
7+debug:
8+ nix-shell --run "xmloscopy --docbook5 ./manual.xml ./manual-full.xml"
9+
10+.PHONY: format
11+format:
12+ find . -iname '*.xml' -type f -print0 | xargs -0 -I{} -n1 \
13+ xmlformat --config-file "$$XMLFORMAT_CONFIG" -i {}
14+
15+.PHONY: clean
16+clean:
17+ rm -f ${MD_TARGETS} .version manual-full.xml
18+ rm -rf ./out/ ./highlightjs
19+
20+.PHONY: validate
21+validate: manual-full.xml
22+ jing "$$RNG" manual-full.xml
23+
24+out/html/index.html: manual-full.xml style.css highlightjs
25+ mkdir -p out/html
26+ xsltproc ${xsltFlags} \
27+ --nonet --xinclude \
28+ --output $@ \
29+ "$$XSL/docbook/xhtml/docbook.xsl" \
30+ ./manual-full.xml
31+
32+ mkdir -p out/html/highlightjs/
33+ cp -r highlightjs out/html/
34+
35+ cp ./overrides.css out/html/
36+ cp ./style.css out/html/style.css
37+
38+ mkdir -p out/html/images/callouts
39+ cp "$$XSL/docbook/images/callouts/"*.svg out/html/images/callouts/
40+ chmod u+w -R out/html/
41+
42+out/epub/manual.epub: manual-full.xml
43+ mkdir -p out/epub/scratch
44+ xsltproc ${xsltFlags} --nonet \
45+ --output out/epub/scratch/ \
46+ "$$XSL/docbook/epub/docbook.xsl" \
47+ ./manual-full.xml
48+
49+ cp ./overrides.css out/epub/scratch/OEBPS
50+ cp ./style.css out/epub/scratch/OEBPS
51+ mkdir -p out/epub/scratch/OEBPS/images/callouts/
52+ cp "$$XSL/docbook/images/callouts/"*.svg out/epub/scratch/OEBPS/images/callouts/
53+ echo "application/epub+zip" > mimetype
54+ zip -0Xq "out/epub/manual.epub" mimetype
55+ rm mimetype
56+ cd "out/epub/scratch/" && zip -Xr9D "../manual.epub" *
57+ rm -rf "out/epub/scratch/"
58+
59+highlightjs:
60+ mkdir -p highlightjs
61+ cp -r "$$HIGHLIGHTJS/highlight.pack.js" highlightjs/
62+ cp -r "$$HIGHLIGHTJS/LICENSE" highlightjs/
63+ cp -r "$$HIGHLIGHTJS/mono-blue.css" highlightjs/
64+ cp -r "$$HIGHLIGHTJS/loader.js" highlightjs/
65+
66+
67+manual-full.xml: ${MD_TARGETS} .version *.xml
68+ xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml
69+
70+.version:
71+ nix-instantiate --eval \
72+ -E '(import ../lib).version' > .version
73+
74+%.section.xml: %.section.md
75+ pandoc $^ -w docbook+smart \
76+ -f markdown+smart \
77+ | sed -e 's|<ulink url=|<link xlink:href=|' \
78+ -e 's|</ulink>|</link>|' \
79+ -e 's|<sect. id=|<section xml:id=|' \
80+ -e 's|</sect[0-9]>|</section>|' \
81+ -e '1s| id=| xml:id=|' \
82+ -e '1s|\(<[^ ]* \)|\1xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" |' \
83+ | cat > $@
84+
85+%.chapter.xml: %.chapter.md
86+ pandoc $^ -w docbook+smart \
87+ --top-level-division=chapter \
88+ -f markdown+smart \
89+ | sed -e 's|<ulink url=|<link xlink:href=|' \
90+ -e 's|</ulink>|</link>|' \
91+ -e 's|<sect. id=|<section xml:id=|' \
92+ -e 's|</sect[0-9]>|</section>|' \
93+ -e '1s| id=| xml:id=|' \
94+ -e '1s|\(<[^ ]* \)|\1|' \
95+ | cat > $@
doc/coding-conventions.xml+677−537
@@ -1,56 +1,59 @@
11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="chap-conventions">
4−
5−<title>Coding conventions</title>
6−
7−
8−<section xml:id="sec-syntax"><title>Syntax</title>
9−
10−<itemizedlist>
11−
12− <listitem><para>Use 2 spaces of indentation per indentation level in
13− Nix expressions, 4 spaces in shell scripts.</para></listitem>
14−
15− <listitem><para>Do not use tab characters, i.e. configure your
16− editor to use soft tabs. For instance, use <literal>(setq-default
17− indent-tabs-mode nil)</literal> in Emacs. Everybody has different
18− tab settings so it’s asking for trouble.</para></listitem>
19−
20− <listitem><para>Use <literal>lowerCamelCase</literal> for variable
21− names, not <literal>UpperCamelCase</literal>. Note, this rule does
22− not apply to package attribute names, which instead follow the rules
23− in <xref linkend="sec-package-naming"/>.</para></listitem>
24−
25− <listitem><para>Function calls with attribute set arguments are
26− written as
27−
4+ <title>Coding conventions</title>
5+ <section xml:id="sec-syntax">
6+ <title>Syntax</title>
7+
8+ <itemizedlist>
9+ <listitem>
10+ <para>
11+ Use 2 spaces of indentation per indentation level in Nix expressions, 4
12+ spaces in shell scripts.
13+ </para>
14+ </listitem>
15+ <listitem>
16+ <para>
17+ Do not use tab characters, i.e. configure your editor to use soft tabs.
18+ For instance, use <literal>(setq-default indent-tabs-mode nil)</literal>
19+ in Emacs. Everybody has different tab settings so it’s asking for
20+ trouble.
21+ </para>
22+ </listitem>
23+ <listitem>
24+ <para>
25+ Use <literal>lowerCamelCase</literal> for variable names, not
26+ <literal>UpperCamelCase</literal>. Note, this rule does not apply to
27+ package attribute names, which instead follow the rules in
28+ <xref linkend="sec-package-naming"/>.
29+ </para>
30+ </listitem>
31+ <listitem>
32+ <para>
33+ Function calls with attribute set arguments are written as
2834<programlisting>
2935foo {
3036 arg = ...;
3137}
3238</programlisting>
33−
34− not
35−
39+ not
3640<programlisting>
3741foo
3842{
3943 arg = ...;
4044}
4145</programlisting>
42−
43− Also fine is
44−
46+ Also fine is
4547<programlisting>
4648foo { arg = ...; }
4749</programlisting>
48−
49− if it's a short call.</para></listitem>
50−
51− <listitem><para>In attribute sets or lists that span multiple lines,
52− the attribute names or list elements should be aligned:
53−
50+ if it's a short call.
51+ </para>
52+ </listitem>
53+ <listitem>
54+ <para>
55+ In attribute sets or lists that span multiple lines, the attribute names
56+ or list elements should be aligned:
5457<programlisting>
5558# A long list.
5659list =
@@ -73,12 +76,11 @@ attrs = {
7376 if true then big_expr else big_expr;
7477};
7578</programlisting>
76−
77− </para></listitem>
78−
79− <listitem><para>Short lists or attribute sets can be written on one
80− line:
81−
79+ </para>
80+ </listitem>
81+ <listitem>
82+ <para>
83+ Short lists or attribute sets can be written on one line:
8284<programlisting>
8385# A short list.
8486list = [ elem1 elem2 elem3 ];
@@ -86,66 +88,58 @@ list = [ elem1 elem2 elem3 ];
8688# A short set.
8789attrs = { x = 1280; y = 1024; };
8890</programlisting>
89−
90− </para></listitem>
91−
92− <listitem><para>Breaking in the middle of a function argument can
93− give hard-to-read code, like
94−
91+ </para>
92+ </listitem>
93+ <listitem>
94+ <para>
95+ Breaking in the middle of a function argument can give hard-to-read code,
96+ like
9597<programlisting>
9698someFunction { x = 1280;
9799 y = 1024; } otherArg
98100 yetAnotherArg
99101</programlisting>
100−
101− (especially if the argument is very large, spanning multiple
102− lines).</para>
103−
104− <para>Better:
105−
102+ (especially if the argument is very large, spanning multiple lines).
103+ </para>
104+ <para>
105+ Better:
106106<programlisting>
107107someFunction
108108 { x = 1280; y = 1024; }
109109 otherArg
110110 yetAnotherArg
111111</programlisting>
112−
113− or
114−
112+ or
115113<programlisting>
116114let res = { x = 1280; y = 1024; };
117115in someFunction res otherArg yetAnotherArg
118116</programlisting>
119−
120− </para></listitem>
121−
122− <listitem><para>The bodies of functions, asserts, and withs are not
123− indented to prevent a lot of superfluous indentation levels, i.e.
124−
117+ </para>
118+ </listitem>
119+ <listitem>
120+ <para>
121+ The bodies of functions, asserts, and withs are not indented to prevent a
122+ lot of superfluous indentation levels, i.e.
125123<programlisting>
126124{ arg1, arg2 }:
127125assert system == "i686-linux";
128126stdenv.mkDerivation { ...
129127</programlisting>
130−
131− not
132−
128+ not
133129<programlisting>
134130{ arg1, arg2 }:
135131 assert system == "i686-linux";
136132 stdenv.mkDerivation { ...
137133</programlisting>
138−
139− </para></listitem>
140−
141− <listitem><para>Function formal arguments are written as:
142−
134+ </para>
135+ </listitem>
136+ <listitem>
137+ <para>
138+ Function formal arguments are written as:
143139<programlisting>
144140{ arg1, arg2, arg3 }:
145141</programlisting>
146−
147− but if they don't fit on one line they're written as:
148−
142+ but if they don't fit on one line they're written as:
149143<programlisting>
150144{ arg1, arg2, arg3
151145, arg4, ...
@@ -153,35 +147,28 @@ stdenv.mkDerivation { ...
153147 argN
154148}:
155149</programlisting>
156−
157− </para></listitem>
158−
159− <listitem><para>Functions should list their expected arguments as
160− precisely as possible. That is, write
161−
150+ </para>
151+ </listitem>
152+ <listitem>
153+ <para>
154+ Functions should list their expected arguments as precisely as possible.
155+ That is, write
162156<programlisting>
163157{ stdenv, fetchurl, perl }: <replaceable>...</replaceable>
164158</programlisting>
165−
166− instead of
167−
159+ instead of
168160<programlisting>
169161args: with args; <replaceable>...</replaceable>
170162</programlisting>
171−
172− or
173−
163+ or
174164<programlisting>
175165{ stdenv, fetchurl, perl, ... }: <replaceable>...</replaceable>
176166</programlisting>
177−
178− </para>
179−
180− <para>For functions that are truly generic in the number of
181− arguments (such as wrappers around <varname>mkDerivation</varname>)
182− that have some required arguments, you should write them using an
183− <literal>@</literal>-pattern:
184−
167+ </para>
168+ <para>
169+ For functions that are truly generic in the number of arguments (such as
170+ wrappers around <varname>mkDerivation</varname>) that have some required
171+ arguments, you should write them using an <literal>@</literal>-pattern:
185172<programlisting>
186173{ stdenv, doCoverageAnalysis ? false, ... } @ args:
187174
@@ -189,9 +176,7 @@ stdenv.mkDerivation (args // {
189176 <replaceable>...</replaceable> if doCoverageAnalysis then "bla" else "" <replaceable>...</replaceable>
190177})
191178</programlisting>
192−
193− instead of
194−
179+ instead of
195180<programlisting>
196181args:
197182
@@ -199,432 +184,557 @@ args.stdenv.mkDerivation (args // {
199184 <replaceable>...</replaceable> if args ? doCoverageAnalysis &amp;&amp; args.doCoverageAnalysis then "bla" else "" <replaceable>...</replaceable>
200185})
201186</programlisting>
187+ </para>
188+ </listitem>
189+ </itemizedlist>
190+ </section>
191+ <section xml:id="sec-package-naming">
192+ <title>Package naming</title>
202193
203− </para></listitem>
204−
205−</itemizedlist>
206−
207−</section>
208−
209−
210−<section xml:id="sec-package-naming"><title>Package naming</title>
211−
212−<para>In Nixpkgs, there are generally three different names associated with a package:
213−
214−<itemizedlist>
215−
216− <listitem><para>The <varname>name</varname> attribute of the
217− derivation (excluding the version part). This is what most users
218− see, in particular when using
219− <command>nix-env</command>.</para></listitem>
220−
221− <listitem><para>The variable name used for the instantiated package
222− in <filename>all-packages.nix</filename>, and when passing it as a
223− dependency to other functions. Typically this is called the
224− <emphasis>package attribute name</emphasis>. This is what Nix
225− expression authors see. It can also be used when installing using
226− <command>nix-env -iA</command>.</para></listitem>
227−
228− <listitem><para>The filename for (the directory containing) the Nix
229− expression.</para></listitem>
230−
231−</itemizedlist>
232−
233−Most of the time, these are the same. For instance, the package
234−<literal>e2fsprogs</literal> has a <varname>name</varname> attribute
235−<literal>"e2fsprogs-<replaceable>version</replaceable>"</literal>, is
236−bound to the variable name <varname>e2fsprogs</varname> in
237−<filename>all-packages.nix</filename>, and the Nix expression is in
238−<filename>pkgs/os-specific/linux/e2fsprogs/default.nix</filename>.
239−</para>
240−
241−<para>There are a few naming guidelines:
242−
243−<itemizedlist>
244−
245− <listitem><para>Generally, try to stick to the upstream package
246− name.</para></listitem>
247−
248− <listitem><para>Don’t use uppercase letters in the
249− <literal>name</literal> attribute — e.g.,
250− <literal>"mplayer-1.0rc2"</literal> instead of
251− <literal>"MPlayer-1.0rc2"</literal>.</para></listitem>
252−
253− <listitem><para>The version part of the <literal>name</literal>
254− attribute <emphasis>must</emphasis> start with a digit (following a
255− dash) — e.g., <literal>"hello-0.3.1rc2"</literal>.</para></listitem>
256−
257− <listitem><para>If a package is not a release but a commit from a repository, then
258− the version part of the name <emphasis>must</emphasis> be the date of that
259− (fetched) commit. The date must be in <literal>"YYYY-MM-DD"</literal> format.
260− Also append <literal>"unstable"</literal> to the name - e.g.,
261− <literal>"pkgname-unstable-2014-09-23"</literal>.</para></listitem>
262−
263− <listitem><para>Dashes in the package name should be preserved in
264− new variable names, rather than converted to underscores or camel
265− cased — e.g., <varname>http-parser</varname> instead of
266− <varname>http_parser</varname> or <varname>httpParser</varname>. The
267− hyphenated style is preferred in all three package
268− names.</para></listitem>
269−
270− <listitem><para>If there are multiple versions of a package, this
271− should be reflected in the variable names in
272− <filename>all-packages.nix</filename>,
273− e.g. <varname>json-c-0-9</varname> and <varname>json-c-0-11</varname>.
274− If there is an obvious “default” version, make an attribute like
275− <literal>json-c = json-c-0-9;</literal>.
276− See also <xref linkend="sec-versioning" /></para></listitem>
277−
278−</itemizedlist>
279−
280−</para>
281−
282−</section>
283−
284−
285−<section xml:id="sec-organisation"><title>File naming and organisation</title>
286−
287−<para>Names of files and directories should be in lowercase, with
288−dashes between words — not in camel case. For instance, it should be
289−<filename>all-packages.nix</filename>, not
290−<filename>allPackages.nix</filename> or
291−<filename>AllPackages.nix</filename>.</para>
292−
293−<section xml:id="sec-hierarchy"><title>Hierarchy</title>
294−
295−<para>Each package should be stored in its own directory somewhere in
296−the <filename>pkgs/</filename> tree, i.e. in
297−<filename>pkgs/<replaceable>category</replaceable>/<replaceable>subcategory</replaceable>/<replaceable>...</replaceable>/<replaceable>pkgname</replaceable></filename>.
298−Below are some rules for picking the right category for a package.
299−Many packages fall under several categories; what matters is the
300−<emphasis>primary</emphasis> purpose of a package. For example, the
301−<literal>libxml2</literal> package builds both a library and some
302−tools; but it’s a library foremost, so it goes under
303−<filename>pkgs/development/libraries</filename>.</para>
304−
305−<para>When in doubt, consider refactoring the
306−<filename>pkgs/</filename> tree, e.g. creating new categories or
307−splitting up an existing category.</para>
308−
309−<variablelist>
310− <varlistentry>
311− <term>If it’s used to support <emphasis>software development</emphasis>:</term>
194+ <para>
195+ In Nixpkgs, there are generally three different names associated with a
196+ package:
197+ <itemizedlist>
312198 <listitem>
313− <variablelist>
314− <varlistentry>
315− <term>If it’s a <emphasis>library</emphasis> used by other packages:</term>
316− <listitem>
317− <para><filename>development/libraries</filename> (e.g. <filename>libxml2</filename>)</para>
318− </listitem>
319− </varlistentry>
320− <varlistentry>
321− <term>If it’s a <emphasis>compiler</emphasis>:</term>
322− <listitem>
323− <para><filename>development/compilers</filename> (e.g. <filename>gcc</filename>)</para>
324− </listitem>
325− </varlistentry>
326− <varlistentry>
327− <term>If it’s an <emphasis>interpreter</emphasis>:</term>
328− <listitem>
329− <para><filename>development/interpreters</filename> (e.g. <filename>guile</filename>)</para>
330− </listitem>
331− </varlistentry>
332− <varlistentry>
333− <term>If it’s a (set of) development <emphasis>tool(s)</emphasis>:</term>
334− <listitem>
335− <variablelist>
336− <varlistentry>
337− <term>If it’s a <emphasis>parser generator</emphasis> (including lexers):</term>
338− <listitem>
339− <para><filename>development/tools/parsing</filename> (e.g. <filename>bison</filename>, <filename>flex</filename>)</para>
340− </listitem>
341− </varlistentry>
342− <varlistentry>
343− <term>If it’s a <emphasis>build manager</emphasis>:</term>
344− <listitem>
345− <para><filename>development/tools/build-managers</filename> (e.g. <filename>gnumake</filename>)</para>
346− </listitem>
347− </varlistentry>
348− <varlistentry>
349− <term>Else:</term>
350− <listitem>
351− <para><filename>development/tools/misc</filename> (e.g. <filename>binutils</filename>)</para>
352− </listitem>
353− </varlistentry>
354− </variablelist>
355− </listitem>
356− </varlistentry>
357− <varlistentry>
358− <term>Else:</term>
359− <listitem>
360− <para><filename>development/misc</filename></para>
361− </listitem>
362− </varlistentry>
363− </variablelist>
199+ <para>
200+ The <varname>name</varname> attribute of the derivation (excluding the
201+ version part). This is what most users see, in particular when using
202+ <command>nix-env</command>.
203+ </para>
364204 </listitem>
365− </varlistentry>
366− <varlistentry>
367− <term>If it’s a (set of) <emphasis>tool(s)</emphasis>:</term>
368205 <listitem>
369− <para>(A tool is a relatively small program, especially one intended
370− to be used non-interactively.)</para>
371− <variablelist>
372− <varlistentry>
373− <term>If it’s for <emphasis>networking</emphasis>:</term>
374− <listitem>
375− <para><filename>tools/networking</filename> (e.g. <filename>wget</filename>)</para>
376− </listitem>
377− </varlistentry>
378− <varlistentry>
379− <term>If it’s for <emphasis>text processing</emphasis>:</term>
380− <listitem>
381− <para><filename>tools/text</filename> (e.g. <filename>diffutils</filename>)</para>
382− </listitem>
383− </varlistentry>
384− <varlistentry>
385− <term>If it’s a <emphasis>system utility</emphasis>, i.e.,
386− something related or essential to the operation of a
387− system:</term>
388− <listitem>
389− <para><filename>tools/system</filename> (e.g. <filename>cron</filename>)</para>
390− </listitem>
391− </varlistentry>
392− <varlistentry>
393− <term>If it’s an <emphasis>archiver</emphasis> (which may
394− include a compression function):</term>
395− <listitem>
396− <para><filename>tools/archivers</filename> (e.g. <filename>zip</filename>, <filename>tar</filename>)</para>
397− </listitem>
398− </varlistentry>
399− <varlistentry>
400− <term>If it’s a <emphasis>compression</emphasis> program:</term>
401− <listitem>
402− <para><filename>tools/compression</filename> (e.g. <filename>gzip</filename>, <filename>bzip2</filename>)</para>
403− </listitem>
404− </varlistentry>
405− <varlistentry>
406− <term>If it’s a <emphasis>security</emphasis>-related program:</term>
407− <listitem>
408− <para><filename>tools/security</filename> (e.g. <filename>nmap</filename>, <filename>gnupg</filename>)</para>
409− </listitem>
410− </varlistentry>
411− <varlistentry>
412− <term>Else:</term>
413− <listitem>
414− <para><filename>tools/misc</filename></para>
415− </listitem>
416− </varlistentry>
417− </variablelist>
206+ <para>
207+ The variable name used for the instantiated package in
208+ <filename>all-packages.nix</filename>, and when passing it as a
209+ dependency to other functions. Typically this is called the
210+ <emphasis>package attribute name</emphasis>. This is what Nix expression
211+ authors see. It can also be used when installing using <command>nix-env
212+ -iA</command>.
213+ </para>
418214 </listitem>
419− </varlistentry>
420− <varlistentry>
421− <term>If it’s a <emphasis>shell</emphasis>:</term>
422215 <listitem>
423− <para><filename>shells</filename> (e.g. <filename>bash</filename>)</para>
216+ <para>
217+ The filename for (the directory containing) the Nix expression.
218+ </para>
424219 </listitem>
425− </varlistentry>
426− <varlistentry>
427− <term>If it’s a <emphasis>server</emphasis>:</term>
220+ </itemizedlist>
221+ Most of the time, these are the same. For instance, the package
222+ <literal>e2fsprogs</literal> has a <varname>name</varname> attribute
223+ <literal>"e2fsprogs-<replaceable>version</replaceable>"</literal>, is bound
224+ to the variable name <varname>e2fsprogs</varname> in
225+ <filename>all-packages.nix</filename>, and the Nix expression is in
226+ <filename>pkgs/os-specific/linux/e2fsprogs/default.nix</filename>.
227+ </para>
228+
229+ <para>
230+ There are a few naming guidelines:
231+ <itemizedlist>
428232 <listitem>
429− <variablelist>
430− <varlistentry>
431− <term>If it’s a web server:</term>
432− <listitem>
433− <para><filename>servers/http</filename> (e.g. <filename>apache-httpd</filename>)</para>
434− </listitem>
435− </varlistentry>
436− <varlistentry>
437− <term>If it’s an implementation of the X Windowing System:</term>
438− <listitem>
439− <para><filename>servers/x11</filename> (e.g. <filename>xorg</filename> — this includes the client libraries and programs)</para>
440− </listitem>
441− </varlistentry>
442− <varlistentry>
443− <term>Else:</term>
444− <listitem>
445− <para><filename>servers/misc</filename></para>
446− </listitem>
447− </varlistentry>
448− </variablelist>
233+ <para>
234+ Generally, try to stick to the upstream package name.
235+ </para>
449236 </listitem>
450− </varlistentry>
451− <varlistentry>
452− <term>If it’s a <emphasis>desktop environment</emphasis>:</term>
453237 <listitem>
454− <para><filename>desktops</filename> (e.g. <filename>kde</filename>, <filename>gnome</filename>, <filename>enlightenment</filename>)</para>
238+ <para>
239+ Don’t use uppercase letters in the <literal>name</literal> attribute
240+ — e.g., <literal>"mplayer-1.0rc2"</literal> instead of
241+ <literal>"MPlayer-1.0rc2"</literal>.
242+ </para>
455243 </listitem>
456− </varlistentry>
457− <varlistentry>
458− <term>If it’s a <emphasis>window manager</emphasis>:</term>
459244 <listitem>
460− <para><filename>applications/window-managers</filename> (e.g. <filename>awesome</filename>, <filename>stumpwm</filename>)</para>
245+ <para>
246+ The version part of the <literal>name</literal> attribute
247+ <emphasis>must</emphasis> start with a digit (following a dash) — e.g.,
248+ <literal>"hello-0.3.1rc2"</literal>.
249+ </para>
461250 </listitem>
462− </varlistentry>
463− <varlistentry>
464− <term>If it’s an <emphasis>application</emphasis>:</term>
465251 <listitem>
466− <para>A (typically large) program with a distinct user
467− interface, primarily used interactively.</para>
468− <variablelist>
469− <varlistentry>
470− <term>If it’s a <emphasis>version management system</emphasis>:</term>
471− <listitem>
472− <para><filename>applications/version-management</filename> (e.g. <filename>subversion</filename>)</para>
473− </listitem>
474− </varlistentry>
475− <varlistentry>
476− <term>If it’s for <emphasis>video playback / editing</emphasis>:</term>
477− <listitem>
478− <para><filename>applications/video</filename> (e.g. <filename>vlc</filename>)</para>
479− </listitem>
480− </varlistentry>
481− <varlistentry>
482− <term>If it’s for <emphasis>graphics viewing / editing</emphasis>:</term>
483− <listitem>
484− <para><filename>applications/graphics</filename> (e.g. <filename>gimp</filename>)</para>
485− </listitem>
486− </varlistentry>
487− <varlistentry>
488− <term>If it’s for <emphasis>networking</emphasis>:</term>
489− <listitem>
490− <variablelist>
491− <varlistentry>
492− <term>If it’s a <emphasis>mailreader</emphasis>:</term>
493− <listitem>
494− <para><filename>applications/networking/mailreaders</filename> (e.g. <filename>thunderbird</filename>)</para>
495− </listitem>
496− </varlistentry>
497− <varlistentry>
498− <term>If it’s a <emphasis>newsreader</emphasis>:</term>
499− <listitem>
500− <para><filename>applications/networking/newsreaders</filename> (e.g. <filename>pan</filename>)</para>
501− </listitem>
502− </varlistentry>
503− <varlistentry>
504− <term>If it’s a <emphasis>web browser</emphasis>:</term>
505− <listitem>
506− <para><filename>applications/networking/browsers</filename> (e.g. <filename>firefox</filename>)</para>
507− </listitem>
508− </varlistentry>
509− <varlistentry>
510− <term>Else:</term>
511− <listitem>
512− <para><filename>applications/networking/misc</filename></para>
513− </listitem>
514− </varlistentry>
515− </variablelist>
516− </listitem>
517− </varlistentry>
518− <varlistentry>
519− <term>Else:</term>
520− <listitem>
521− <para><filename>applications/misc</filename></para>
522− </listitem>
523− </varlistentry>
524− </variablelist>
252+ <para>
253+ If a package is not a release but a commit from a repository, then the
254+ version part of the name <emphasis>must</emphasis> be the date of that
255+ (fetched) commit. The date must be in <literal>"YYYY-MM-DD"</literal>
256+ format. Also append <literal>"unstable"</literal> to the name - e.g.,
257+ <literal>"pkgname-unstable-2014-09-23"</literal>.
258+ </para>
525259 </listitem>
526− </varlistentry>
527− <varlistentry>
528− <term>If it’s <emphasis>data</emphasis> (i.e., does not have a
529− straight-forward executable semantics):</term>
530260 <listitem>
531− <variablelist>
532− <varlistentry>
533− <term>If it’s a <emphasis>font</emphasis>:</term>
534− <listitem>
535− <para><filename>data/fonts</filename></para>
536− </listitem>
537− </varlistentry>
538− <varlistentry>
539− <term>If it’s related to <emphasis>SGML/XML processing</emphasis>:</term>
540− <listitem>
541− <variablelist>
542− <varlistentry>
543− <term>If it’s an <emphasis>XML DTD</emphasis>:</term>
544− <listitem>
545− <para><filename>data/sgml+xml/schemas/xml-dtd</filename> (e.g. <filename>docbook</filename>)</para>
546− </listitem>
547− </varlistentry>
548− <varlistentry>
549− <term>If it’s an <emphasis>XSLT stylesheet</emphasis>:</term>
550− <listitem>
551− <para>(Okay, these are executable...)</para>
552− <para><filename>data/sgml+xml/stylesheets/xslt</filename> (e.g. <filename>docbook-xsl</filename>)</para>
553− </listitem>
554− </varlistentry>
555− </variablelist>
556− </listitem>
557− </varlistentry>
558− </variablelist>
261+ <para>
262+ Dashes in the package name should be preserved in new variable names,
263+ rather than converted to underscores or camel cased — e.g.,
264+ <varname>http-parser</varname> instead of <varname>http_parser</varname>
265+ or <varname>httpParser</varname>. The hyphenated style is preferred in
266+ all three package names.
267+ </para>
559268 </listitem>
560− </varlistentry>
561− <varlistentry>
562− <term>If it’s a <emphasis>game</emphasis>:</term>
563269 <listitem>
564− <para><filename>games</filename></para>
270+ <para>
271+ If there are multiple versions of a package, this should be reflected in
272+ the variable names in <filename>all-packages.nix</filename>, e.g.
273+ <varname>json-c-0-9</varname> and <varname>json-c-0-11</varname>. If
274+ there is an obvious “default” version, make an attribute like
275+ <literal>json-c = json-c-0-9;</literal>. See also
276+ <xref linkend="sec-versioning" />
277+ </para>
565278 </listitem>
566− </varlistentry>
567− <varlistentry>
568− <term>Else:</term>
569− <listitem>
570− <para><filename>misc</filename></para>
571− </listitem>
572− </varlistentry>
573−</variablelist>
574−
575−</section>
576−
577−<section xml:id="sec-versioning"><title>Versioning</title>
578−
579−<para>Because every version of a package in Nixpkgs creates a
580−potential maintenance burden, old versions of a package should not be
581−kept unless there is a good reason to do so. For instance, Nixpkgs
582−contains several versions of GCC because other packages don’t build
583−with the latest version of GCC. Other examples are having both the
584−latest stable and latest pre-release version of a package, or to keep
585−several major releases of an application that differ significantly in
586−functionality.</para>
587−
588−<para>If there is only one version of a package, its Nix expression
589−should be named <filename>e2fsprogs/default.nix</filename>. If there
590−are multiple versions, this should be reflected in the filename,
591−e.g. <filename>e2fsprogs/1.41.8.nix</filename> and
592−<filename>e2fsprogs/1.41.9.nix</filename>. The version in the
593−filename should leave out unnecessary detail. For instance, if we
594−keep the latest Firefox 2.0.x and 3.5.x versions in Nixpkgs, they
595−should be named <filename>firefox/2.0.nix</filename> and
596−<filename>firefox/3.5.nix</filename>, respectively (which, at a given
597−point, might contain versions <literal>2.0.0.20</literal> and
598−<literal>3.5.4</literal>). If a version requires many auxiliary
599−files, you can use a subdirectory for each version,
600−e.g. <filename>firefox/2.0/default.nix</filename> and
601−<filename>firefox/3.5/default.nix</filename>.</para>
279+ </itemizedlist>
280+ </para>
281+ </section>
282+ <section xml:id="sec-organisation">
283+ <title>File naming and organisation</title>
602284
603−<para>All versions of a package <emphasis>must</emphasis> be included
604−in <filename>all-packages.nix</filename> to make sure that they
605−evaluate correctly.</para>
285+ <para>
286+ Names of files and directories should be in lowercase, with dashes between
287+ words — not in camel case. For instance, it should be
288+ <filename>all-packages.nix</filename>, not
289+ <filename>allPackages.nix</filename> or
290+ <filename>AllPackages.nix</filename>.
291+ </para>
606292
607−</section>
293+ <section xml:id="sec-hierarchy">
294+ <title>Hierarchy</title>
295+
296+ <para>
297+ Each package should be stored in its own directory somewhere in the
298+ <filename>pkgs/</filename> tree, i.e. in
299+ <filename>pkgs/<replaceable>category</replaceable>/<replaceable>subcategory</replaceable>/<replaceable>...</replaceable>/<replaceable>pkgname</replaceable></filename>.
300+ Below are some rules for picking the right category for a package. Many
301+ packages fall under several categories; what matters is the
302+ <emphasis>primary</emphasis> purpose of a package. For example, the
303+ <literal>libxml2</literal> package builds both a library and some tools;
304+ but it’s a library foremost, so it goes under
305+ <filename>pkgs/development/libraries</filename>.
306+ </para>
307+
308+ <para>
309+ When in doubt, consider refactoring the <filename>pkgs/</filename> tree,
310+ e.g. creating new categories or splitting up an existing category.
311+ </para>
312+
313+ <variablelist>
314+ <varlistentry>
315+ <term>If it’s used to support <emphasis>software development</emphasis>:</term>
316+ <listitem>
317+ <variablelist>
318+ <varlistentry>
319+ <term>If it’s a <emphasis>library</emphasis> used by other packages:</term>
320+ <listitem>
321+ <para>
322+ <filename>development/libraries</filename> (e.g.
323+ <filename>libxml2</filename>)
324+ </para>
325+ </listitem>
326+ </varlistentry>
327+ <varlistentry>
328+ <term>If it’s a <emphasis>compiler</emphasis>:</term>
329+ <listitem>
330+ <para>
331+ <filename>development/compilers</filename> (e.g.
332+ <filename>gcc</filename>)
333+ </para>
334+ </listitem>
335+ </varlistentry>
336+ <varlistentry>
337+ <term>If it’s an <emphasis>interpreter</emphasis>:</term>
338+ <listitem>
339+ <para>
340+ <filename>development/interpreters</filename> (e.g.
341+ <filename>guile</filename>)
342+ </para>
343+ </listitem>
344+ </varlistentry>
345+ <varlistentry>
346+ <term>If it’s a (set of) development <emphasis>tool(s)</emphasis>:</term>
347+ <listitem>
348+ <variablelist>
349+ <varlistentry>
350+ <term>If it’s a <emphasis>parser generator</emphasis> (including lexers):</term>
351+ <listitem>
352+ <para>
353+ <filename>development/tools/parsing</filename> (e.g.
354+ <filename>bison</filename>, <filename>flex</filename>)
355+ </para>
356+ </listitem>
357+ </varlistentry>
358+ <varlistentry>
359+ <term>If it’s a <emphasis>build manager</emphasis>:</term>
360+ <listitem>
361+ <para>
362+ <filename>development/tools/build-managers</filename> (e.g.
363+ <filename>gnumake</filename>)
364+ </para>
365+ </listitem>
366+ </varlistentry>
367+ <varlistentry>
368+ <term>Else:</term>
369+ <listitem>
370+ <para>
371+ <filename>development/tools/misc</filename> (e.g.
372+ <filename>binutils</filename>)
373+ </para>
374+ </listitem>
375+ </varlistentry>
376+ </variablelist>
377+ </listitem>
378+ </varlistentry>
379+ <varlistentry>
380+ <term>Else:</term>
381+ <listitem>
382+ <para>
383+ <filename>development/misc</filename>
384+ </para>
385+ </listitem>
386+ </varlistentry>
387+ </variablelist>
388+ </listitem>
389+ </varlistentry>
390+ <varlistentry>
391+ <term>If it’s a (set of) <emphasis>tool(s)</emphasis>:</term>
392+ <listitem>
393+ <para>
394+ (A tool is a relatively small program, especially one intended to be
395+ used non-interactively.)
396+ </para>
397+ <variablelist>
398+ <varlistentry>
399+ <term>If it’s for <emphasis>networking</emphasis>:</term>
400+ <listitem>
401+ <para>
402+ <filename>tools/networking</filename> (e.g.
403+ <filename>wget</filename>)
404+ </para>
405+ </listitem>
406+ </varlistentry>
407+ <varlistentry>
408+ <term>If it’s for <emphasis>text processing</emphasis>:</term>
409+ <listitem>
410+ <para>
411+ <filename>tools/text</filename> (e.g. <filename>diffutils</filename>)
412+ </para>
413+ </listitem>
414+ </varlistentry>
415+ <varlistentry>
416+ <term>If it’s a <emphasis>system utility</emphasis>, i.e.,
417+ something related or essential to the operation of a
418+ system:</term>
419+ <listitem>
420+ <para>
421+ <filename>tools/system</filename> (e.g. <filename>cron</filename>)
422+ </para>
423+ </listitem>
424+ </varlistentry>
425+ <varlistentry>
426+ <term>If it’s an <emphasis>archiver</emphasis> (which may
427+ include a compression function):</term>
428+ <listitem>
429+ <para>
430+ <filename>tools/archivers</filename> (e.g. <filename>zip</filename>,
431+ <filename>tar</filename>)
432+ </para>
433+ </listitem>
434+ </varlistentry>
435+ <varlistentry>
436+ <term>If it’s a <emphasis>compression</emphasis> program:</term>
437+ <listitem>
438+ <para>
439+ <filename>tools/compression</filename> (e.g.
440+ <filename>gzip</filename>, <filename>bzip2</filename>)
441+ </para>
442+ </listitem>
443+ </varlistentry>
444+ <varlistentry>
445+ <term>If it’s a <emphasis>security</emphasis>-related program:</term>
446+ <listitem>
447+ <para>
448+ <filename>tools/security</filename> (e.g. <filename>nmap</filename>,
449+ <filename>gnupg</filename>)
450+ </para>
451+ </listitem>
452+ </varlistentry>
453+ <varlistentry>
454+ <term>Else:</term>
455+ <listitem>
456+ <para>
457+ <filename>tools/misc</filename>
458+ </para>
459+ </listitem>
460+ </varlistentry>
461+ </variablelist>
462+ </listitem>
463+ </varlistentry>
464+ <varlistentry>
465+ <term>If it’s a <emphasis>shell</emphasis>:</term>
466+ <listitem>
467+ <para>
468+ <filename>shells</filename> (e.g. <filename>bash</filename>)
469+ </para>
470+ </listitem>
471+ </varlistentry>
472+ <varlistentry>
473+ <term>If it’s a <emphasis>server</emphasis>:</term>
474+ <listitem>
475+ <variablelist>
476+ <varlistentry>
477+ <term>If it’s a web server:</term>
478+ <listitem>
479+ <para>
480+ <filename>servers/http</filename> (e.g.
481+ <filename>apache-httpd</filename>)
482+ </para>
483+ </listitem>
484+ </varlistentry>
485+ <varlistentry>
486+ <term>If it’s an implementation of the X Windowing System:</term>
487+ <listitem>
488+ <para>
489+ <filename>servers/x11</filename> (e.g. <filename>xorg</filename> —
490+ this includes the client libraries and programs)
491+ </para>
492+ </listitem>
493+ </varlistentry>
494+ <varlistentry>
495+ <term>Else:</term>
496+ <listitem>
497+ <para>
498+ <filename>servers/misc</filename>
499+ </para>
500+ </listitem>
501+ </varlistentry>
502+ </variablelist>
503+ </listitem>
504+ </varlistentry>
505+ <varlistentry>
506+ <term>If it’s a <emphasis>desktop environment</emphasis>:</term>
507+ <listitem>
508+ <para>
509+ <filename>desktops</filename> (e.g. <filename>kde</filename>,
510+ <filename>gnome</filename>, <filename>enlightenment</filename>)
511+ </para>
512+ </listitem>
513+ </varlistentry>
514+ <varlistentry>
515+ <term>If it’s a <emphasis>window manager</emphasis>:</term>
516+ <listitem>
517+ <para>
518+ <filename>applications/window-managers</filename> (e.g.
519+ <filename>awesome</filename>, <filename>stumpwm</filename>)
520+ </para>
521+ </listitem>
522+ </varlistentry>
523+ <varlistentry>
524+ <term>If it’s an <emphasis>application</emphasis>:</term>
525+ <listitem>
526+ <para>
527+ A (typically large) program with a distinct user interface, primarily
528+ used interactively.
529+ </para>
530+ <variablelist>
531+ <varlistentry>
532+ <term>If it’s a <emphasis>version management system</emphasis>:</term>
533+ <listitem>
534+ <para>
535+ <filename>applications/version-management</filename> (e.g.
536+ <filename>subversion</filename>)
537+ </para>
538+ </listitem>
539+ </varlistentry>
540+ <varlistentry>
541+ <term>If it’s for <emphasis>video playback / editing</emphasis>:</term>
542+ <listitem>
543+ <para>
544+ <filename>applications/video</filename> (e.g.
545+ <filename>vlc</filename>)
546+ </para>
547+ </listitem>
548+ </varlistentry>
549+ <varlistentry>
550+ <term>If it’s for <emphasis>graphics viewing / editing</emphasis>:</term>
551+ <listitem>
552+ <para>
553+ <filename>applications/graphics</filename> (e.g.
554+ <filename>gimp</filename>)
555+ </para>
556+ </listitem>
557+ </varlistentry>
558+ <varlistentry>
559+ <term>If it’s for <emphasis>networking</emphasis>:</term>
560+ <listitem>
561+ <variablelist>
562+ <varlistentry>
563+ <term>If it’s a <emphasis>mailreader</emphasis>:</term>
564+ <listitem>
565+ <para>
566+ <filename>applications/networking/mailreaders</filename> (e.g.
567+ <filename>thunderbird</filename>)
568+ </para>
569+ </listitem>
570+ </varlistentry>
571+ <varlistentry>
572+ <term>If it’s a <emphasis>newsreader</emphasis>:</term>
573+ <listitem>
574+ <para>
575+ <filename>applications/networking/newsreaders</filename> (e.g.
576+ <filename>pan</filename>)
577+ </para>
578+ </listitem>
579+ </varlistentry>
580+ <varlistentry>
581+ <term>If it’s a <emphasis>web browser</emphasis>:</term>
582+ <listitem>
583+ <para>
584+ <filename>applications/networking/browsers</filename> (e.g.
585+ <filename>firefox</filename>)
586+ </para>
587+ </listitem>
588+ </varlistentry>
589+ <varlistentry>
590+ <term>Else:</term>
591+ <listitem>
592+ <para>
593+ <filename>applications/networking/misc</filename>
594+ </para>
595+ </listitem>
596+ </varlistentry>
597+ </variablelist>
598+ </listitem>
599+ </varlistentry>
600+ <varlistentry>
601+ <term>Else:</term>
602+ <listitem>
603+ <para>
604+ <filename>applications/misc</filename>
605+ </para>
606+ </listitem>
607+ </varlistentry>
608+ </variablelist>
609+ </listitem>
610+ </varlistentry>
611+ <varlistentry>
612+ <term>If it’s <emphasis>data</emphasis> (i.e., does not have a
613+ straight-forward executable semantics):</term>
614+ <listitem>
615+ <variablelist>
616+ <varlistentry>
617+ <term>If it’s a <emphasis>font</emphasis>:</term>
618+ <listitem>
619+ <para>
620+ <filename>data/fonts</filename>
621+ </para>
622+ </listitem>
623+ </varlistentry>
624+ <varlistentry>
625+ <term>If it’s related to <emphasis>SGML/XML processing</emphasis>:</term>
626+ <listitem>
627+ <variablelist>
628+ <varlistentry>
629+ <term>If it’s an <emphasis>XML DTD</emphasis>:</term>
630+ <listitem>
631+ <para>
632+ <filename>data/sgml+xml/schemas/xml-dtd</filename> (e.g.
633+ <filename>docbook</filename>)
634+ </para>
635+ </listitem>
636+ </varlistentry>
637+ <varlistentry>
638+ <term>If it’s an <emphasis>XSLT stylesheet</emphasis>:</term>
639+ <listitem>
640+ <para>
641+ (Okay, these are executable...)
642+ </para>
643+ <para>
644+ <filename>data/sgml+xml/stylesheets/xslt</filename> (e.g.
645+ <filename>docbook-xsl</filename>)
646+ </para>
647+ </listitem>
648+ </varlistentry>
649+ </variablelist>
650+ </listitem>
651+ </varlistentry>
652+ </variablelist>
653+ </listitem>
654+ </varlistentry>
655+ <varlistentry>
656+ <term>If it’s a <emphasis>game</emphasis>:</term>
657+ <listitem>
658+ <para>
659+ <filename>games</filename>
660+ </para>
661+ </listitem>
662+ </varlistentry>
663+ <varlistentry>
664+ <term>Else:</term>
665+ <listitem>
666+ <para>
667+ <filename>misc</filename>
668+ </para>
669+ </listitem>
670+ </varlistentry>
671+ </variablelist>
672+ </section>
673+
674+ <section xml:id="sec-versioning">
675+ <title>Versioning</title>
676+
677+ <para>
678+ Because every version of a package in Nixpkgs creates a potential
679+ maintenance burden, old versions of a package should not be kept unless
680+ there is a good reason to do so. For instance, Nixpkgs contains several
681+ versions of GCC because other packages don’t build with the latest
682+ version of GCC. Other examples are having both the latest stable and latest
683+ pre-release version of a package, or to keep several major releases of an
684+ application that differ significantly in functionality.
685+ </para>
686+
687+ <para>
688+ If there is only one version of a package, its Nix expression should be
689+ named <filename>e2fsprogs/default.nix</filename>. If there are multiple
690+ versions, this should be reflected in the filename, e.g.
691+ <filename>e2fsprogs/1.41.8.nix</filename> and
692+ <filename>e2fsprogs/1.41.9.nix</filename>. The version in the filename
693+ should leave out unnecessary detail. For instance, if we keep the latest
694+ Firefox 2.0.x and 3.5.x versions in Nixpkgs, they should be named
695+ <filename>firefox/2.0.nix</filename> and
696+ <filename>firefox/3.5.nix</filename>, respectively (which, at a given
697+ point, might contain versions <literal>2.0.0.20</literal> and
698+ <literal>3.5.4</literal>). If a version requires many auxiliary files, you
699+ can use a subdirectory for each version, e.g.
700+ <filename>firefox/2.0/default.nix</filename> and
701+ <filename>firefox/3.5/default.nix</filename>.
702+ </para>
703+
704+ <para>
705+ All versions of a package <emphasis>must</emphasis> be included in
706+ <filename>all-packages.nix</filename> to make sure that they evaluate
707+ correctly.
708+ </para>
709+ </section>
710+ </section>
711+ <section xml:id="sec-sources">
712+ <title>Fetching Sources</title>
608713
609−</section>
610−<section xml:id="sec-sources"><title>Fetching Sources</title>
611− <para>There are multiple ways to fetch a package source in nixpkgs. The
612− general guideline is that you should package sources with a high degree of
613− availability. Right now there is only one fetcher which has mirroring
614− support and that is <literal>fetchurl</literal>. Note that you should also
615− prefer protocols which have a corresponding proxy environment variable.
714+ <para>
715+ There are multiple ways to fetch a package source in nixpkgs. The general
716+ guideline is that you should package sources with a high degree of
717+ availability. Right now there is only one fetcher which has mirroring
718+ support and that is <literal>fetchurl</literal>. Note that you should also
719+ prefer protocols which have a corresponding proxy environment variable.
616720 </para>
617− <para>You can find many source fetch helpers in <literal>pkgs/build-support/fetch*</literal>.
721+
722+ <para>
723+ You can find many source fetch helpers in
724+ <literal>pkgs/build-support/fetch*</literal>.
618725 </para>
619− <para>In the file <literal>pkgs/top-level/all-packages.nix</literal> you can
620− find fetch helpers, these have names on the form
621− <literal>fetchFrom*</literal>. The intention of these are to provide
622− snapshot fetches but using the same api as some of the version controlled
623− fetchers from <literal>pkgs/build-support/</literal>. As an example going
624− from bad to good:
625− <itemizedlist>
626− <listitem>
627− <para>Bad: Uses <literal>git://</literal> which won't be proxied.
726+
727+ <para>
728+ In the file <literal>pkgs/top-level/all-packages.nix</literal> you can find
729+ fetch helpers, these have names on the form <literal>fetchFrom*</literal>.
730+ The intention of these are to provide snapshot fetches but using the same
731+ api as some of the version controlled fetchers from
732+ <literal>pkgs/build-support/</literal>. As an example going from bad to
733+ good:
734+ <itemizedlist>
735+ <listitem>
736+ <para>
737+ Bad: Uses <literal>git://</literal> which won't be proxied.
628738<programlisting>
629739src = fetchgit {
630740 url = "git://github.com/NixOS/nix.git";
@@ -632,10 +742,11 @@ src = fetchgit {
632742 sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg";
633743}
634744</programlisting>
635− </para>
636− </listitem>
637− <listitem>
638− <para>Better: This is ok, but an archive fetch will still be faster.
745+ </para>
746+ </listitem>
747+ <listitem>
748+ <para>
749+ Better: This is ok, but an archive fetch will still be faster.
639750<programlisting>
640751src = fetchgit {
641752 url = "https://github.com/NixOS/nix.git";
@@ -643,10 +754,11 @@ src = fetchgit {
643754 sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg";
644755}
645756</programlisting>
646− </para>
647− </listitem>
648− <listitem>
649− <para>Best: Fetches a snapshot archive and you get the rev you want.
757+ </para>
758+ </listitem>
759+ <listitem>
760+ <para>
761+ Best: Fetches a snapshot archive and you get the rev you want.
650762<programlisting>
651763src = fetchFromGitHub {
652764 owner = "NixOS";
@@ -655,15 +767,19 @@ src = fetchFromGitHub {
655767 sha256 = "04yri911rj9j19qqqn6m82266fl05pz98inasni0vxr1cf1gdgv9";
656768}
657769</programlisting>
658− </para>
659− </listitem>
660− </itemizedlist>
770+ </para>
771+ </listitem>
772+ </itemizedlist>
773+ </para>
774+ </section>
775+ <section xml:id="sec-patches">
776+ <title>Patches</title>
777+
778+ <para>
779+ Patches available online should be retrieved using
780+ <literal>fetchpatch</literal>.
661781 </para>
662−</section>
663782
664−<section xml:id="sec-patches"><title>Patches</title>
665− <para>Patches available online should be retrieved using
666− <literal>fetchpatch</literal>.</para>
667783 <para>
668784<programlisting>
669785patches = [
@@ -675,30 +791,54 @@ patches = [
675791];
676792</programlisting>
677793 </para>
678− <para>Otherwise, you can add a <literal>.patch</literal> file to the
679− <literal>nixpkgs</literal> repository. In the interest of keeping our
680− maintenance burden to a minimum, only patches that are unique
681− to <literal>nixpkgs</literal> should be added in this way.</para>
682−<para><programlisting>
794+
795+ <para>
796+ Otherwise, you can add a <literal>.patch</literal> file to the
797+ <literal>nixpkgs</literal> repository. In the interest of keeping our
798+ maintenance burden to a minimum, only patches that are unique to
799+ <literal>nixpkgs</literal> should be added in this way.
800+ </para>
801+
802+ <para>
803+<programlisting>
683804patches = [ ./0001-changes.patch ];
684−</programlisting></para>
685− <para>If you do need to do create this sort of patch file,
686− one way to do so is with git:
687− <orderedlist>
688− <listitem><para>Move to the root directory of the source code
689− you're patching.<screen>
690−$ cd the/program/source</screen></para></listitem>
691− <listitem><para>If a git repository is not already present,
692− create one and stage all of the source files.<screen>
805+</programlisting>
806+ </para>
807+
808+ <para>
809+ If you do need to do create this sort of patch file, one way to do so is
810+ with git:
811+ <orderedlist>
812+ <listitem>
813+ <para>
814+ Move to the root directory of the source code you're patching.
815+<screen>
816+$ cd the/program/source</screen>
817+ </para>
818+ </listitem>
819+ <listitem>
820+ <para>
821+ If a git repository is not already present, create one and stage all of
822+ the source files.
823+<screen>
693824$ git init
694−$ git add .</screen></para></listitem>
695− <listitem><para>Edit some files to make whatever changes need
696− to be included in the patch.</para></listitem>
697− <listitem><para>Use git to create a diff, and pipe the output
698− to a patch file:<screen>
825+$ git add .</screen>
826+ </para>
827+ </listitem>
828+ <listitem>
829+ <para>
830+ Edit some files to make whatever changes need to be included in the
831+ patch.
832+ </para>
833+ </listitem>
834+ <listitem>
835+ <para>
836+ Use git to create a diff, and pipe the output to a patch file:
837+<screen>
699838$ git diff > nixpkgs/pkgs/the/package/0001-changes.patch</screen>
700− </para></listitem>
701− </orderedlist></para>
702−</section>
703−
839+ </para>
840+ </listitem>
841+ </orderedlist>
842+ </para>
843+ </section>
704844</chapter>
doc/configuration.xml+305−260
@@ -1,40 +1,51 @@
11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="chap-packageconfig">
4−
5−<title>Global configuration</title>
6−
7−<para>Nix comes with certain defaults about what packages can and
8−cannot be installed, based on a package's metadata. By default, Nix
9−will prevent installation if any of the following criteria are
10−true:</para>
11−
12−<itemizedlist>
13− <listitem><para>The package is thought to be broken, and has had
14− its <literal>meta.broken</literal> set to
15− <literal>true</literal>.</para></listitem>
16−
17− <listitem><para>The package's <literal>meta.license</literal> is set
18− to a license which is considered to be unfree.</para></listitem>
19−
20− <listitem><para>The package has known security vulnerabilities but
21− has not or can not be updated for some reason, and a list of issues
22− has been entered in to the package's
23− <literal>meta.knownVulnerabilities</literal>.</para></listitem>
24−</itemizedlist>
25−
26−<para>Note that all this is checked during evaluation already,
27−and the check includes any package that is evaluated.
28−In particular, all build-time dependencies are checked.
29−<literal>nix-env -qa</literal> will (attempt to) hide any packages
30−that would be refused.
31−</para>
32−
33−<para>Each of these criteria can be altered in the nixpkgs
34−configuration.</para>
35−
36−<para>The nixpkgs configuration for a NixOS system is set in the
37−<literal>configuration.nix</literal>, as in the following example:
4+ <title>Global configuration</title>
5+ <para>
6+ Nix comes with certain defaults about what packages can and cannot be
7+ installed, based on a package's metadata. By default, Nix will prevent
8+ installation if any of the following criteria are true:
9+ </para>
10+ <itemizedlist>
11+ <listitem>
12+ <para>
13+ The package is thought to be broken, and has had its
14+ <literal>meta.broken</literal> set to <literal>true</literal>.
15+ </para>
16+ </listitem>
17+ <listitem>
18+ <para>
19+ The package isn't intended to run on the given system, as none of its
20+ <literal>meta.platforms</literal> match the given system.
21+ </para>
22+ </listitem>
23+ <listitem>
24+ <para>
25+ The package's <literal>meta.license</literal> is set to a license which is
26+ considered to be unfree.
27+ </para>
28+ </listitem>
29+ <listitem>
30+ <para>
31+ The package has known security vulnerabilities but has not or can not be
32+ updated for some reason, and a list of issues has been entered in to the
33+ package's <literal>meta.knownVulnerabilities</literal>.
34+ </para>
35+ </listitem>
36+ </itemizedlist>
37+ <para>
38+ Note that all this is checked during evaluation already, and the check
39+ includes any package that is evaluated. In particular, all build-time
40+ dependencies are checked. <literal>nix-env -qa</literal> will (attempt to)
41+ hide any packages that would be refused.
42+ </para>
43+ <para>
44+ Each of these criteria can be altered in the nixpkgs configuration.
45+ </para>
46+ <para>
47+ The nixpkgs configuration for a NixOS system is set in the
48+ <literal>configuration.nix</literal>, as in the following example:
3849<programlisting>
3950{
4051 nixpkgs.config = {
@@ -42,151 +53,197 @@ configuration.</para>
4253 };
4354}
4455</programlisting>
45−However, this does not allow unfree software for individual users.
46−Their configurations are managed separately.</para>
47−
48−<para>A user's of nixpkgs configuration is stored in a user-specific
49−configuration file located at
50−<filename>~/.config/nixpkgs/config.nix</filename>. For example:
56+ However, this does not allow unfree software for individual users. Their
57+ configurations are managed separately.
58+ </para>
59+ <para>
60+ A user's of nixpkgs configuration is stored in a user-specific configuration
61+ file located at <filename>~/.config/nixpkgs/config.nix</filename>. For
62+ example:
5163<programlisting>
5264{
5365 allowUnfree = true;
5466}
5567</programlisting>
56−</para>
57−
58−<para>Note that we are not able to test or build unfree software on Hydra
59−due to policy. Most unfree licenses prohibit us from either executing or
60−distributing the software.</para>
61−
62−<section xml:id="sec-allow-broken">
68+ </para>
69+ <para>
70+ Note that we are not able to test or build unfree software on Hydra due to
71+ policy. Most unfree licenses prohibit us from either executing or
72+ distributing the software.
73+ </para>
74+ <section xml:id="sec-allow-broken">
6375 <title>Installing broken packages</title>
6476
65−
66− <para>There are two ways to try compiling a package which has been
67− marked as broken.</para>
77+ <para>
78+ There are two ways to try compiling a package which has been marked as
79+ broken.
80+ </para>
6881
6982 <itemizedlist>
70− <listitem><para>
71− For allowing the build of a broken package once, you can use an
72− environment variable for a single invocation of the nix tools:
73−
74− <programlisting>$ export NIXPKGS_ALLOW_BROKEN=1</programlisting>
75− </para></listitem>
76−
77− <listitem><para>
78− For permanently allowing broken packages to be built, you may
79− add <literal>allowBroken = true;</literal> to your user's
80− configuration file, like this:
81−
83+ <listitem>
84+ <para>
85+ For allowing the build of a broken package once, you can use an
86+ environment variable for a single invocation of the nix tools:
87+<programlisting>$ export NIXPKGS_ALLOW_BROKEN=1</programlisting>
88+ </para>
89+ </listitem>
90+ <listitem>
91+ <para>
92+ For permanently allowing broken packages to be built, you may add
93+ <literal>allowBroken = true;</literal> to your user's configuration file,
94+ like this:
8295<programlisting>
8396{
8497 allowBroken = true;
8598}
8699</programlisting>
87− </para></listitem>
100+ </para>
101+ </listitem>
88102 </itemizedlist>
89−</section>
103+ </section>
104+ <section xml:id="sec-allow-unsupported-system">
105+ <title>Installing packages on unsupported systems</title>
90106
91−<section xml:id="sec-allow-unfree">
92− <title>Installing unfree packages</title>
93−
94− <para>There are several ways to tweak how Nix handles a package
95− which has been marked as unfree.</para>
107+ <para>
108+ There are also two ways to try compiling a package which has been marked as
109+ unsuported for the given system.
110+ </para>
96111
97112 <itemizedlist>
98− <listitem><para>
99− To temporarily allow all unfree packages, you can use an
100− environment variable for a single invocation of the nix tools:
113+ <listitem>
114+ <para>
115+ For allowing the build of a broken package once, you can use an
116+ environment variable for a single invocation of the nix tools:
117+<programlisting>$ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1</programlisting>
118+ </para>
119+ </listitem>
120+ <listitem>
121+ <para>
122+ For permanently allowing broken packages to be built, you may add
123+ <literal>allowUnsupportedSystem = true;</literal> to your user's
124+ configuration file, like this:
125+<programlisting>
126+{
127+ allowUnsupportedSystem = true;
128+}
129+</programlisting>
130+ </para>
131+ </listitem>
132+ </itemizedlist>
101133
102− <programlisting>$ export NIXPKGS_ALLOW_UNFREE=1</programlisting>
103− </para></listitem>
134+ <para>
135+ The difference between an a package being unsupported on some system and
136+ being broken is admittedly a bit fuzzy. If a program
137+ <emphasis>ought</emphasis> to work on a certain platform, but doesn't, the
138+ platform should be included in <literal>meta.platforms</literal>, but marked
139+ as broken with e.g. <literal>meta.broken =
140+ !hostPlatform.isWindows</literal>. Of course, this begs the question of what
141+ "ought" means exactly. That is left to the package maintainer.
142+ </para>
143+ </section>
144+ <section xml:id="sec-allow-unfree">
145+ <title>Installing unfree packages</title>
104146
105− <listitem><para>
106− It is possible to permanently allow individual unfree packages,
107− while still blocking unfree packages by default using the
108− <literal>allowUnfreePredicate</literal> configuration
109− option in the user configuration file.</para>
147+ <para>
148+ There are several ways to tweak how Nix handles a package which has been
149+ marked as unfree.
150+ </para>
110151
111− <para>This option is a function which accepts a package as a
112− parameter, and returns a boolean. The following example
113− configuration accepts a package and always returns false:
152+ <itemizedlist>
153+ <listitem>
154+ <para>
155+ To temporarily allow all unfree packages, you can use an environment
156+ variable for a single invocation of the nix tools:
157+<programlisting>$ export NIXPKGS_ALLOW_UNFREE=1</programlisting>
158+ </para>
159+ </listitem>
160+ <listitem>
161+ <para>
162+ It is possible to permanently allow individual unfree packages, while
163+ still blocking unfree packages by default using the
164+ <literal>allowUnfreePredicate</literal> configuration option in the user
165+ configuration file.
166+ </para>
167+ <para>
168+ This option is a function which accepts a package as a parameter, and
169+ returns a boolean. The following example configuration accepts a package
170+ and always returns false:
114171<programlisting>
115172{
116173 allowUnfreePredicate = (pkg: false);
117174}
118175</programlisting>
119− </para>
120−
121− <para>A more useful example, the following configuration allows
122− only allows flash player and visual studio code:
123−
176+ </para>
177+ <para>
178+ A more useful example, the following configuration allows only allows
179+ flash player and visual studio code:
124180<programlisting>
125181{
126182 allowUnfreePredicate = (pkg: elem (builtins.parseDrvName pkg.name).name [ "flashplayer" "vscode" ]);
127183}
128184</programlisting>
129− </para></listitem>
130−
131− <listitem>
132− <para>It is also possible to whitelist and blacklist licenses
133− that are specifically acceptable or not acceptable, using
134− <literal>whitelistedLicenses</literal> and
135− <literal>blacklistedLicenses</literal>, respectively.
136− </para>
137−
138− <para>The following example configuration whitelists the
139− licenses <literal>amd</literal> and <literal>wtfpl</literal>:
140−
185+ </para>
186+ </listitem>
187+ <listitem>
188+ <para>
189+ It is also possible to whitelist and blacklist licenses that are
190+ specifically acceptable or not acceptable, using
191+ <literal>whitelistedLicenses</literal> and
192+ <literal>blacklistedLicenses</literal>, respectively.
193+ </para>
194+ <para>
195+ The following example configuration whitelists the licenses
196+ <literal>amd</literal> and <literal>wtfpl</literal>:
141197<programlisting>
142198{
143199 whitelistedLicenses = with stdenv.lib.licenses; [ amd wtfpl ];
144200}
145201</programlisting>
146− </para>
147−
148− <para>The following example configuration blacklists the
149− <literal>gpl3</literal> and <literal>agpl3</literal> licenses:
150−
202+ </para>
203+ <para>
204+ The following example configuration blacklists the <literal>gpl3</literal>
205+ and <literal>agpl3</literal> licenses:
151206<programlisting>
152207{
153208 blacklistedLicenses = with stdenv.lib.licenses; [ agpl3 gpl3 ];
154209}
155210</programlisting>
156− </para>
157− </listitem>
211+ </para>
212+ </listitem>
158213 </itemizedlist>
159214
160− <para>A complete list of licenses can be found in the file
161− <filename>lib/licenses.nix</filename> of the nixpkgs tree.</para>
162−</section>
163−
215+ <para>
216+ A complete list of licenses can be found in the file
217+ <filename>lib/licenses.nix</filename> of the nixpkgs tree.
218+ </para>
219+ </section>
220+ <section xml:id="sec-allow-insecure">
221+ <title>Installing insecure packages</title>
164222
165−<section xml:id="sec-allow-insecure">
166− <title>
167− Installing insecure packages
168− </title>
169−
170− <para>There are several ways to tweak how Nix handles a package
171− which has been marked as insecure.</para>
223+ <para>
224+ There are several ways to tweak how Nix handles a package which has been
225+ marked as insecure.
226+ </para>
172227
173228 <itemizedlist>
174− <listitem><para>
175− To temporarily allow all insecure packages, you can use an
176− environment variable for a single invocation of the nix tools:
177−
178− <programlisting>$ export NIXPKGS_ALLOW_INSECURE=1</programlisting>
179− </para></listitem>
180−
181− <listitem><para>
182− It is possible to permanently allow individual insecure
183− packages, while still blocking other insecure packages by
184− default using the <literal>permittedInsecurePackages</literal>
185− configuration option in the user configuration file.</para>
186−
187− <para>The following example configuration permits the
188− installation of the hypothetically insecure package
189− <literal>hello</literal>, version <literal>1.2.3</literal>:
229+ <listitem>
230+ <para>
231+ To temporarily allow all insecure packages, you can use an environment
232+ variable for a single invocation of the nix tools:
233+<programlisting>$ export NIXPKGS_ALLOW_INSECURE=1</programlisting>
234+ </para>
235+ </listitem>
236+ <listitem>
237+ <para>
238+ It is possible to permanently allow individual insecure packages, while
239+ still blocking other insecure packages by default using the
240+ <literal>permittedInsecurePackages</literal> configuration option in the
241+ user configuration file.
242+ </para>
243+ <para>
244+ The following example configuration permits the installation of the
245+ hypothetically insecure package <literal>hello</literal>, version
246+ <literal>1.2.3</literal>:
190247<programlisting>
191248{
192249 permittedInsecurePackages = [
@@ -194,47 +251,44 @@ distributing the software.</para>
194251 ];
195252}
196253</programlisting>
197− </para>
198− </listitem>
199−
200− <listitem><para>
201− It is also possible to create a custom policy around which
202− insecure packages to allow and deny, by overriding the
203− <literal>allowInsecurePredicate</literal> configuration
204− option.</para>
205−
206− <para>The <literal>allowInsecurePredicate</literal> option is a
207− function which accepts a package and returns a boolean, much
208− like <literal>allowUnfreePredicate</literal>.</para>
209−
210− <para>The following configuration example only allows insecure
211− packages with very short names:
212−
254+ </para>
255+ </listitem>
256+ <listitem>
257+ <para>
258+ It is also possible to create a custom policy around which insecure
259+ packages to allow and deny, by overriding the
260+ <literal>allowInsecurePredicate</literal> configuration option.
261+ </para>
262+ <para>
263+ The <literal>allowInsecurePredicate</literal> option is a function which
264+ accepts a package and returns a boolean, much like
265+ <literal>allowUnfreePredicate</literal>.
266+ </para>
267+ <para>
268+ The following configuration example only allows insecure packages with
269+ very short names:
213270<programlisting>
214271{
215272 allowInsecurePredicate = (pkg: (builtins.stringLength (builtins.parseDrvName pkg.name).name) &lt;= 5);
216273}
217274</programlisting>
218− </para>
219−
220− <para>Note that <literal>permittedInsecurePackages</literal> is
221− only checked if <literal>allowInsecurePredicate</literal> is not
222− specified.
223− </para></listitem>
275+ </para>
276+ <para>
277+ Note that <literal>permittedInsecurePackages</literal> is only checked if
278+ <literal>allowInsecurePredicate</literal> is not specified.
279+ </para>
280+ </listitem>
224281 </itemizedlist>
225−</section>
226−
282+ </section>
227283<!--============================================================-->
228−
229−<section xml:id="sec-modify-via-packageOverrides"><title>Modify
230−packages via <literal>packageOverrides</literal></title>
231−
232−<para>You can define a function called
233−<varname>packageOverrides</varname> in your local
234−<filename>~/.config/nixpkgs/config.nix</filename> to override nix packages. It
235−must be a function that takes pkgs as an argument and return modified
236−set of packages.
237−
284+ <section xml:id="sec-modify-via-packageOverrides">
285+ <title>Modify packages via <literal>packageOverrides</literal></title>
286+
287+ <para>
288+ You can define a function called <varname>packageOverrides</varname> in your
289+ local <filename>~/.config/nixpkgs/config.nix</filename> to override nix
290+ packages. It must be a function that takes pkgs as an argument and return
291+ modified set of packages.
238292<programlisting>
239293{
240294 packageOverrides = pkgs: rec {
@@ -242,30 +296,27 @@ set of packages.
242296 };
243297}
244298</programlisting>
245−
246−</para>
247−
248−</section>
249−
250−<section xml:id="sec-declarative-package-management">
299+ </para>
300+ </section>
301+ <section xml:id="sec-declarative-package-management">
251302 <title>Declarative Package Management</title>
252303
253304 <section xml:id="sec-building-environment">
254− <title>Build an environment</title>
255−
256− <para>
257− Using <literal>packageOverrides</literal>, it is possible to manage
258− packages declaratively. This means that we can list all of our desired
259− packages within a declarative Nix expression. For example, to have
260− <literal>aspell</literal>, <literal>bc</literal>,
261− <literal>ffmpeg</literal>, <literal>coreutils</literal>,
262− <literal>gdb</literal>, <literal>nixUnstable</literal>,
263− <literal>emscripten</literal>, <literal>jq</literal>,
264− <literal>nox</literal>, and <literal>silver-searcher</literal>, we could
265− use the following in <filename>~/.config/nixpkgs/config.nix</filename>:
266− </para>
267−
268− <screen>
305+ <title>Build an environment</title>
306+
307+ <para>
308+ Using <literal>packageOverrides</literal>, it is possible to manage
309+ packages declaratively. This means that we can list all of our desired
310+ packages within a declarative Nix expression. For example, to have
311+ <literal>aspell</literal>, <literal>bc</literal>,
312+ <literal>ffmpeg</literal>, <literal>coreutils</literal>,
313+ <literal>gdb</literal>, <literal>nixUnstable</literal>,
314+ <literal>emscripten</literal>, <literal>jq</literal>,
315+ <literal>nox</literal>, and <literal>silver-searcher</literal>, we could
316+ use the following in <filename>~/.config/nixpkgs/config.nix</filename>:
317+ </para>
318+
319+<screen>
269320{
270321 packageOverrides = pkgs: with pkgs; {
271322 myPackages = pkgs.buildEnv {
@@ -276,17 +327,17 @@ set of packages.
276327}
277328 </screen>
278329
279− <para>
280− To install it into our environment, you can just run <literal>nix-env -iA
281− nixpkgs.myPackages</literal>. If you want to load the packages to be built
282− from a working copy of <literal>nixpkgs</literal> you just run
283− <literal>nix-env -f. -iA myPackages</literal>. To explore what's been
284− installed, just look through <filename>~/.nix-profile/</filename>. You can
285− see that a lot of stuff has been installed. Some of this stuff is useful
286− some of it isn't. Let's tell Nixpkgs to only link the stuff that we want:
287− </para>
288−
289− <screen>
330+ <para>
331+ To install it into our environment, you can just run <literal>nix-env -iA
332+ nixpkgs.myPackages</literal>. If you want to load the packages to be built
333+ from a working copy of <literal>nixpkgs</literal> you just run
334+ <literal>nix-env -f. -iA myPackages</literal>. To explore what's been
335+ installed, just look through <filename>~/.nix-profile/</filename>. You can
336+ see that a lot of stuff has been installed. Some of this stuff is useful
337+ some of it isn't. Let's tell Nixpkgs to only link the stuff that we want:
338+ </para>
339+
340+<screen>
290341{
291342 packageOverrides = pkgs: with pkgs; {
292343 myPackages = pkgs.buildEnv {
@@ -298,51 +349,49 @@ set of packages.
298349}
299350 </screen>
300351
301− <para>
302− <literal>pathsToLink</literal> tells Nixpkgs to only link the paths listed
303− which gets rid of the extra stuff in the profile.
304− <filename>/bin</filename> and <filename>/share</filename> are good
305− defaults for a user environment, getting rid of the clutter. If you are
306− running on Nix on MacOS, you may want to add another path as well,
307− <filename>/Applications</filename>, that makes GUI apps available.
308− </para>
309−
352+ <para>
353+ <literal>pathsToLink</literal> tells Nixpkgs to only link the paths listed
354+ which gets rid of the extra stuff in the profile. <filename>/bin</filename>
355+ and <filename>/share</filename> are good defaults for a user environment,
356+ getting rid of the clutter. If you are running on Nix on MacOS, you may
357+ want to add another path as well, <filename>/Applications</filename>, that
358+ makes GUI apps available.
359+ </para>
310360 </section>
311361
312362 <section xml:id="sec-getting-documentation">
313− <title>Getting documentation</title>
314−
315− <para>
316− After building that new environment, look through
317− <filename>~/.nix-profile</filename> to make sure everything is there that
318− we wanted. Discerning readers will note that some files are missing. Look
319− inside <filename>~/.nix-profile/share/man/man1/</filename> to verify this.
320− There are no man pages for any of the Nix tools! This is because some
321− packages like Nix have multiple outputs for things like documentation (see
322− section 4). Let's make Nix install those as well.
323− </para>
324−
325− <screen>
363+ <title>Getting documentation</title>
364+
365+ <para>
366+ After building that new environment, look through
367+ <filename>~/.nix-profile</filename> to make sure everything is there that
368+ we wanted. Discerning readers will note that some files are missing. Look
369+ inside <filename>~/.nix-profile/share/man/man1/</filename> to verify this.
370+ There are no man pages for any of the Nix tools! This is because some
371+ packages like Nix have multiple outputs for things like documentation (see
372+ section 4). Let's make Nix install those as well.
373+ </para>
374+
375+<screen>
326376{
327377 packageOverrides = pkgs: with pkgs; {
328378 myPackages = pkgs.buildEnv {
329379 name = "my-packages";
330380 paths = [ aspell bc coreutils ffmpeg nixUnstable emscripten jq nox silver-searcher ];
331− pathsToLink = [ "/share/man" "/share/doc" /bin" ];
381+ pathsToLink = [ "/share/man" "/share/doc" "/bin" ];
332382 extraOutputsToInstall = [ "man" "doc" ];
333383 };
334384 };
335385}
336386 </screen>
337387
338− <para>
339− This provides us with some useful documentation for using our packages.
340− However, if we actually want those manpages to be detected by man, we need
341− to set up our environment. This can also be managed within Nix
342− expressions.
343− </para>
388+ <para>
389+ This provides us with some useful documentation for using our packages.
390+ However, if we actually want those manpages to be detected by man, we need
391+ to set up our environment. This can also be managed within Nix expressions.
392+ </para>
344393
345− <screen>
394+<screen>
346395{
347396 packageOverrides = pkgs: with pkgs; rec {
348397 myProfile = writeText "my-profile" ''
@@ -367,20 +416,20 @@ cp ${myProfile} $out/etc/profile.d/my-profile.sh
367416 nox
368417 silver-searcher
369418 ];
370− pathsToLink = [ "/share/man" "/share/doc" /bin" "/etc" ];
419+ pathsToLink = [ "/share/man" "/share/doc" "/bin" "/etc" ];
371420 extraOutputsToInstall = [ "man" "doc" ];
372421 };
373422 };
374423}
375424 </screen>
376425
377− <para>
378− For this to work fully, you must also have this script sourced when you
379− are logged in. Try adding something like this to your
380− <filename>~/.profile</filename> file:
381− </para>
426+ <para>
427+ For this to work fully, you must also have this script sourced when you are
428+ logged in. Try adding something like this to your
429+ <filename>~/.profile</filename> file:
430+ </para>
382431
383− <screen>
432+<screen>
384433#!/bin/sh
385434if [ -d $HOME/.nix-profile/etc/profile.d ]; then
386435 for i in $HOME/.nix-profile/etc/profile.d/*.sh; do
@@ -391,23 +440,22 @@ if [ -d $HOME/.nix-profile/etc/profile.d ]; then
391440fi
392441 </screen>
393442
394− <para>
395− Now just run <literal>source $HOME/.profile</literal> and you can starting
396− loading man pages from your environent.
397− </para>
398−
443+ <para>
444+ Now just run <literal>source $HOME/.profile</literal> and you can starting
445+ loading man pages from your environent.
446+ </para>
399447 </section>
400−
448+
401449 <section xml:id="sec-gnu-info-setup">
402− <title>GNU info setup</title>
450+ <title>GNU info setup</title>
403451
404− <para>
405− Configuring GNU info is a little bit trickier than man pages. To work
406− correctly, info needs a database to be generated. This can be done with
407− some small modifications to our environment scripts.
408− </para>
452+ <para>
453+ Configuring GNU info is a little bit trickier than man pages. To work
454+ correctly, info needs a database to be generated. This can be done with
455+ some small modifications to our environment scripts.
456+ </para>
409457
410− <screen>
458+<screen>
411459{
412460 packageOverrides = pkgs: with pkgs; rec {
413461 myProfile = writeText "my-profile" ''
@@ -449,16 +497,13 @@ cp ${myProfile} $out/etc/profile.d/my-profile.sh
449497}
450498 </screen>
451499
452− <para>
453− <literal>postBuild</literal> tells Nixpkgs to run a command after building
454− the environment. In this case, <literal>install-info</literal> adds the
455− installed info pages to <literal>dir</literal> which is GNU info's default
456− root node. Note that <literal>texinfoInteractive</literal> is added to the
457− environment to give the <literal>install-info</literal> command.
458− </para>
459−
500+ <para>
501+ <literal>postBuild</literal> tells Nixpkgs to run a command after building
502+ the environment. In this case, <literal>install-info</literal> adds the
503+ installed info pages to <literal>dir</literal> which is GNU info's default
504+ root node. Note that <literal>texinfoInteractive</literal> is added to the
505+ environment to give the <literal>install-info</literal> command.
506+ </para>
460507 </section>
461−
462−</section>
463−
508+ </section>
464509</chapter>
doc/contributing.xml+28−13
@@ -1,20 +1,35 @@
11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="chap-contributing">
4−
5−<title>Contributing to this documentation</title>
6−
7−<para>The DocBook sources of the Nixpkgs manual are in the <filename
4+ <title>Contributing to this documentation</title>
5+ <para>
6+ The DocBook sources of the Nixpkgs manual are in the
7+ <filename
88xlink:href="https://github.com/NixOS/nixpkgs/tree/master/doc">doc</filename>
9−subdirectory of the Nixpkgs repository. If you make modifications to
10−the manual, it's important to build it before committing. You can do that as follows:
11−
9+ subdirectory of the Nixpkgs repository.
10+ </para>
11+ <para>
12+ You can quickly check your edits with <command>make</command>:
13+ </para>
1214<screen>
13−$ cd /path/to/nixpkgs
14−$ nix-build doc
15+ $ cd /path/to/nixpkgs/doc
16+ $ nix-shell
17+ [nix-shell]$ make
1518</screen>
16−
17−If the build succeeds, the manual will be in
18−<filename>./result/share/doc/nixpkgs/manual.html</filename>.</para>
19−
19+ <para>
20+ If you experience problems, run <command>make debug</command> to help
21+ understand the docbook errors.
22+ </para>
23+ <para>
24+ After making modifications to the manual, it's important to build it before
25+ committing. You can do that as follows:
26+<screen>
27+ $ cd /path/to/nixpkgs/doc
28+ $ nix-shell
29+ [nix-shell]$ make clean
30+ [nix-shell]$ nix-build .
31+</screen>
32+ If the build succeeds, the manual will be in
33+ <filename>./result/share/doc/nixpkgs/manual.html</filename>.
34+ </para>
2035</chapter>
doc/cross-compilation.xml+425−264
@@ -1,308 +1,469 @@
11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="chap-cross">
4−
5−<title>Cross-compilation</title>
6−
7−<section xml:id="sec-cross-intro">
4+ <title>Cross-compilation</title>
5+ <section xml:id="sec-cross-intro">
86 <title>Introduction</title>
7+
98 <para>
10− "Cross-compilation" means compiling a program on one machine for another type of machine.
11− For example, a typical use of cross compilation is to compile programs for embedded devices.
12− These devices often don't have the computing power and memory to compile their own programs.
13− One might think that cross-compilation is a fairly niche concern, but there are advantages to being rigorous about distinguishing build-time vs run-time environments even when one is developing and deploying on the same machine.
14− Nixpkgs is increasingly adopting the opinion that packages should be written with cross-compilation in mind, and nixpkgs should evaluate in a similar way (by minimizing cross-compilation-specific special cases) whether or not one is cross-compiling.
9+ "Cross-compilation" means compiling a program on one machine for another
10+ type of machine. For example, a typical use of cross compilation is to
11+ compile programs for embedded devices. These devices often don't have the
12+ computing power and memory to compile their own programs. One might think
13+ that cross-compilation is a fairly niche concern, but there are advantages
14+ to being rigorous about distinguishing build-time vs run-time environments
15+ even when one is developing and deploying on the same machine. Nixpkgs is
16+ increasingly adopting the opinion that packages should be written with
17+ cross-compilation in mind, and nixpkgs should evaluate in a similar way (by
18+ minimizing cross-compilation-specific special cases) whether or not one is
19+ cross-compiling.
1520 </para>
1621
1722 <para>
18− This chapter will be organized in three parts.
19− First, it will describe the basics of how to package software in a way that supports cross-compilation.
20− Second, it will describe how to use Nixpkgs when cross-compiling.
21− Third, it will describe the internal infrastructure supporting cross-compilation.
23+ This chapter will be organized in three parts. First, it will describe the
24+ basics of how to package software in a way that supports cross-compilation.
25+ Second, it will describe how to use Nixpkgs when cross-compiling. Third, it
26+ will describe the internal infrastructure supporting cross-compilation.
2227 </para>
23−</section>
24−
28+ </section>
2529<!--============================================================-->
26−
27−<section xml:id="sec-cross-packaging">
30+ <section xml:id="sec-cross-packaging">
2831 <title>Packaging in a cross-friendly manner</title>
2932
3033 <section>
31− <title>Platform parameters</title>
32− <para>
33− Nixpkgs follows the <link xlink:href="https://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html">common historical convention of GNU autoconf</link> of distinguishing between 3 types of platform: <wordasword>build</wordasword>, <wordasword>host</wordasword>, and <wordasword>target</wordasword>.
34+ <title>Platform parameters</title>
3435
35− In summary, <wordasword>build</wordasword> is the platform on which a package is being built, <wordasword>host</wordasword> is the platform on which it is to run. The third attribute, <wordasword>target</wordasword>, is relevant only for certain specific compilers and build tools.
36− </para>
36+ <para>
37+ Nixpkgs follows the
38+ <link xlink:href="https://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html">common
39+ historical convention of GNU autoconf</link> of distinguishing between 3
40+ types of platform: <wordasword>build</wordasword>,
41+ <wordasword>host</wordasword>, and <wordasword>target</wordasword>. In
42+ summary, <wordasword>build</wordasword> is the platform on which a package
43+ is being built, <wordasword>host</wordasword> is the platform on which it
44+ is to run. The third attribute, <wordasword>target</wordasword>, is
45+ relevant only for certain specific compilers and build tools.
46+ </para>
3747
38− <para>
39− In Nixpkgs, these three platforms are defined as attribute sets under the names <literal>buildPlatform</literal>, <literal>hostPlatform</literal>, and <literal>targetPlatform</literal>.
40− All three are always defined as attributes in the standard environment, and at the top level. That means one can get at them just like a dependency in a function that is imported with <literal>callPackage</literal>:
41− <programlisting>{ stdenv, buildPlatform, hostPlatform, fooDep, barDep, .. }: ...buildPlatform...</programlisting>, or just off <varname>stdenv</varname>:
42− <programlisting>{ stdenv, fooDep, barDep, .. }: ...stdenv.buildPlatform...</programlisting>.
43− </para>
44− <variablelist>
45− <varlistentry>
46− <term><varname>buildPlatform</varname></term>
47− <listitem><para>
48− The "build platform" is the platform on which a package is built.
49− Once someone has a built package, or pre-built binary package, the build platform should not matter and be safe to ignore.
50− </para></listitem>
51− </varlistentry>
52− <varlistentry>
53− <term><varname>hostPlatform</varname></term>
54− <listitem><para>
55− The "host platform" is the platform on which a package will be run.
56− This is the simplest platform to understand, but also the one with the worst name.
57− </para></listitem>
58− </varlistentry>
59− <varlistentry>
60− <term><varname>targetPlatform</varname></term>
61− <listitem>
62− <para>
63− The "target platform" attribute is, unlike the other two attributes, not actually fundamental to the process of building software.
64− Instead, it is only relevant for compatibility with building certain specific compilers and build tools.
65− It can be safely ignored for all other packages.
66− </para>
67− <para>
68− The build process of certain compilers is written in such a way that the compiler resulting from a single build can itself only produce binaries for a single platform.
69− The task specifying this single "target platform" is thus pushed to build time of the compiler.
70− The root cause of this mistake is often that the compiler (which will be run on the host) and the the standard library/runtime (which will be run on the target) are built by a single build process.
71− </para>
72− <para>
73− There is no fundamental need to think about a single target ahead of time like this.
74− If the tool supports modular or pluggable backends, both the need to specify the target at build time and the constraint of having only a single target disappear.
75− An example of such a tool is LLVM.
76− </para>
77− <para>
78− Although the existance of a "target platfom" is arguably a historical mistake, it is a common one: examples of tools that suffer from it are GCC, Binutils, GHC and Autoconf.
79− Nixpkgs tries to avoid sharing in the mistake where possible.
80− Still, because the concept of a target platform is so ingrained, it is best to support it as is.
81− </para>
82− </listitem>
83− </varlistentry>
84− </variablelist>
85− <para>
86− The exact schema these fields follow is a bit ill-defined due to a long and convoluted evolution, but this is slowly being cleaned up.
87− You can see examples of ones used in practice in <literal>lib.systems.examples</literal>; note how they are not all very consistent.
88− For now, here are few fields can count on them containing:
89− </para>
90− <variablelist>
91− <varlistentry>
92− <term><varname>system</varname></term>
93− <listitem>
94− <para>
95− This is a two-component shorthand for the platform.
96− Examples of this would be "x86_64-darwin" and "i686-linux"; see <literal>lib.systems.doubles</literal> for more.
97− This format isn't very standard, but has built-in support in Nix, such as the <varname>builtins.currentSystem</varname> impure string.
98− </para>
99− </listitem>
100− </varlistentry>
101− <varlistentry>
102− <term><varname>config</varname></term>
103− <listitem>
104− <para>
105− This is a 3- or 4- component shorthand for the platform.
106− Examples of this would be "x86_64-unknown-linux-gnu" and "aarch64-apple-darwin14".
107− This is a standard format called the "LLVM target triple", as they are pioneered by LLVM and traditionally just used for the <varname>targetPlatform</varname>.
108− This format is strictly more informative than the "Nix host double", as the previous format could analogously be termed.
109− This needs a better name than <varname>config</varname>!
110− </para>
111− </listitem>
112− </varlistentry>
113− <varlistentry>
114− <term><varname>parsed</varname></term>
115− <listitem>
116− <para>
117− This is a nix representation of a parsed LLVM target triple with white-listed components.
118− This can be specified directly, or actually parsed from the <varname>config</varname>.
119− [Technically, only one need be specified and the others can be inferred, though the precision of inference may not be very good.]
120− See <literal>lib.systems.parse</literal> for the exact representation.
121− </para>
122− </listitem>
123− </varlistentry>
124− <varlistentry>
125− <term><varname>libc</varname></term>
126− <listitem>
127− <para>
128− This is a string identifying the standard C library used.
129− Valid identifiers include "glibc" for GNU libc, "libSystem" for Darwin's Libsystem, and "uclibc" for µClibc.
130− It should probably be refactored to use the module system, like <varname>parse</varname>.
131− </para>
132− </listitem>
133− </varlistentry>
134− <varlistentry>
135− <term><varname>is*</varname></term>
136− <listitem>
137− <para>
138− These predicates are defined in <literal>lib.systems.inspect</literal>, and slapped on every platform.
139− They are superior to the ones in <varname>stdenv</varname> as they force the user to be explicit about which platform they are inspecting.
140− Please use these instead of those.
141− </para>
142− </listitem>
143− </varlistentry>
144− <varlistentry>
145− <term><varname>platform</varname></term>
146− <listitem>
147− <para>
148− This is, quite frankly, a dumping ground of ad-hoc settings (it's an attribute set).
149− See <literal>lib.systems.platforms</literal> for examples—there's hopefully one in there that will work verbatim for each platform that is working.
150− Please help us triage these flags and give them better homes!
151− </para>
152− </listitem>
153− </varlistentry>
154− </variablelist>
48+ <para>
49+ In Nixpkgs, these three platforms are defined as attribute sets under the
50+ names <literal>buildPlatform</literal>, <literal>hostPlatform</literal>,
51+ and <literal>targetPlatform</literal>. All three are always defined as
52+ attributes in the standard environment, and at the top level. That means
53+ one can get at them just like a dependency in a function that is imported
54+ with <literal>callPackage</literal>:
55+<programlisting>{ stdenv, buildPlatform, hostPlatform, fooDep, barDep, .. }: ...buildPlatform...</programlisting>
56+ , or just off <varname>stdenv</varname>:
57+<programlisting>{ stdenv, fooDep, barDep, .. }: ...stdenv.buildPlatform...</programlisting>
58+ .
59+ </para>
60+
61+ <variablelist>
62+ <varlistentry>
63+ <term><varname>buildPlatform</varname>
64+ </term>
65+ <listitem>
66+ <para>
67+ The "build platform" is the platform on which a package is built. Once
68+ someone has a built package, or pre-built binary package, the build
69+ platform should not matter and be safe to ignore.
70+ </para>
71+ </listitem>
72+ </varlistentry>
73+ <varlistentry>
74+ <term><varname>hostPlatform</varname>
75+ </term>
76+ <listitem>
77+ <para>
78+ The "host platform" is the platform on which a package will be run. This
79+ is the simplest platform to understand, but also the one with the worst
80+ name.
81+ </para>
82+ </listitem>
83+ </varlistentry>
84+ <varlistentry>
85+ <term><varname>targetPlatform</varname>
86+ </term>
87+ <listitem>
88+ <para>
89+ The "target platform" attribute is, unlike the other two attributes, not
90+ actually fundamental to the process of building software. Instead, it is
91+ only relevant for compatibility with building certain specific compilers
92+ and build tools. It can be safely ignored for all other packages.
93+ </para>
94+ <para>
95+ The build process of certain compilers is written in such a way that the
96+ compiler resulting from a single build can itself only produce binaries
97+ for a single platform. The task specifying this single "target platform"
98+ is thus pushed to build time of the compiler. The root cause of this
99+ mistake is often that the compiler (which will be run on the host) and
100+ the the standard library/runtime (which will be run on the target) are
101+ built by a single build process.
102+ </para>
103+ <para>
104+ There is no fundamental need to think about a single target ahead of
105+ time like this. If the tool supports modular or pluggable backends, both
106+ the need to specify the target at build time and the constraint of
107+ having only a single target disappear. An example of such a tool is
108+ LLVM.
109+ </para>
110+ <para>
111+ Although the existence of a "target platfom" is arguably a historical
112+ mistake, it is a common one: examples of tools that suffer from it are
113+ GCC, Binutils, GHC and Autoconf. Nixpkgs tries to avoid sharing in the
114+ mistake where possible. Still, because the concept of a target platform
115+ is so ingrained, it is best to support it as is.
116+ </para>
117+ </listitem>
118+ </varlistentry>
119+ </variablelist>
120+
121+ <para>
122+ The exact schema these fields follow is a bit ill-defined due to a long and
123+ convoluted evolution, but this is slowly being cleaned up. You can see
124+ examples of ones used in practice in
125+ <literal>lib.systems.examples</literal>; note how they are not all very
126+ consistent. For now, here are few fields can count on them containing:
127+ </para>
128+
129+ <variablelist>
130+ <varlistentry>
131+ <term><varname>system</varname>
132+ </term>
133+ <listitem>
134+ <para>
135+ This is a two-component shorthand for the platform. Examples of this
136+ would be "x86_64-darwin" and "i686-linux"; see
137+ <literal>lib.systems.doubles</literal> for more. This format isn't very
138+ standard, but has built-in support in Nix, such as the
139+ <varname>builtins.currentSystem</varname> impure string.
140+ </para>
141+ </listitem>
142+ </varlistentry>
143+ <varlistentry>
144+ <term><varname>config</varname>
145+ </term>
146+ <listitem>
147+ <para>
148+ This is a 3- or 4- component shorthand for the platform. Examples of
149+ this would be "x86_64-unknown-linux-gnu" and "aarch64-apple-darwin14".
150+ This is a standard format called the "LLVM target triple", as they are
151+ pioneered by LLVM and traditionally just used for the
152+ <varname>targetPlatform</varname>. This format is strictly more
153+ informative than the "Nix host double", as the previous format could
154+ analogously be termed. This needs a better name than
155+ <varname>config</varname>!
156+ </para>
157+ </listitem>
158+ </varlistentry>
159+ <varlistentry>
160+ <term><varname>parsed</varname>
161+ </term>
162+ <listitem>
163+ <para>
164+ This is a nix representation of a parsed LLVM target triple with
165+ white-listed components. This can be specified directly, or actually
166+ parsed from the <varname>config</varname>. [Technically, only one need
167+ be specified and the others can be inferred, though the precision of
168+ inference may not be very good.] See
169+ <literal>lib.systems.parse</literal> for the exact representation.
170+ </para>
171+ </listitem>
172+ </varlistentry>
173+ <varlistentry>
174+ <term><varname>libc</varname>
175+ </term>
176+ <listitem>
177+ <para>
178+ This is a string identifying the standard C library used. Valid
179+ identifiers include "glibc" for GNU libc, "libSystem" for Darwin's
180+ Libsystem, and "uclibc" for µClibc. It should probably be refactored to
181+ use the module system, like <varname>parse</varname>.
182+ </para>
183+ </listitem>
184+ </varlistentry>
185+ <varlistentry>
186+ <term><varname>is*</varname>
187+ </term>
188+ <listitem>
189+ <para>
190+ These predicates are defined in <literal>lib.systems.inspect</literal>,
191+ and slapped on every platform. They are superior to the ones in
192+ <varname>stdenv</varname> as they force the user to be explicit about
193+ which platform they are inspecting. Please use these instead of those.
194+ </para>
195+ </listitem>
196+ </varlistentry>
197+ <varlistentry>
198+ <term><varname>platform</varname>
199+ </term>
200+ <listitem>
201+ <para>
202+ This is, quite frankly, a dumping ground of ad-hoc settings (it's an
203+ attribute set). See <literal>lib.systems.platforms</literal> for
204+ examples—there's hopefully one in there that will work verbatim for
205+ each platform that is working. Please help us triage these flags and
206+ give them better homes!
207+ </para>
208+ </listitem>
209+ </varlistentry>
210+ </variablelist>
155211 </section>
156212
157213 <section>
158− <title>Specifying Dependencies</title>
159− <para>
160− In this section we explore the relationship between both runtime and buildtime dependencies and the 3 Autoconf platforms.
161− </para>
162− <para>
163− A runtime dependency between 2 packages implies that between them both the host and target platforms match.
164− This is directly implied by the meaning of "host platform" and "runtime dependency":
165− The package dependency exists while both packages are running on a single host platform.
166− </para>
167− <para>
168− A build time dependency, however, implies a shift in platforms between the depending package and the depended-on package.
169− The meaning of a build time dependency is that to build the depending package we need to be able to run the depended-on's package.
170− The depending package's build platform is therefore equal to the depended-on package's host platform.
171− Analogously, the depending package's host platform is equal to the depended-on package's target platform.
172− </para>
173− <para>
174− In this manner, given the 3 platforms for one package, we can determine the three platforms for all its transitive dependencies.
175− This is the most important guiding principle behind cross-compilation with Nixpkgs, and will be called the <wordasword>sliding window principle</wordasword>.
176− </para>
214+ <title>Specifying Dependencies</title>
215+
216+ <para>
217+ In this section we explore the relationship between both runtime and
218+ buildtime dependencies and the 3 Autoconf platforms.
219+ </para>
220+
221+ <para>
222+ A runtime dependency between 2 packages implies that between them both the
223+ host and target platforms match. This is directly implied by the meaning of
224+ "host platform" and "runtime dependency": The package dependency exists
225+ while both packages are running on a single host platform.
226+ </para>
227+
228+ <para>
229+ A build time dependency, however, implies a shift in platforms between the
230+ depending package and the depended-on package. The meaning of a build time
231+ dependency is that to build the depending package we need to be able to run
232+ the depended-on's package. The depending package's build platform is
233+ therefore equal to the depended-on package's host platform. Analogously,
234+ the depending package's host platform is equal to the depended-on package's
235+ target platform.
236+ </para>
237+
238+ <para>
239+ In this manner, given the 3 platforms for one package, we can determine the
240+ three platforms for all its transitive dependencies. This is the most
241+ important guiding principle behind cross-compilation with Nixpkgs, and will
242+ be called the <wordasword>sliding window principle</wordasword>.
243+ </para>
244+
245+ <para>
246+ Some examples will probably make this clearer. If a package is being built
247+ with a <literal>(build, host, target)</literal> platform triple of
248+ <literal>(foo, bar, bar)</literal>, then its build-time dependencies would
249+ have a triple of <literal>(foo, foo, bar)</literal>, and <emphasis>those
250+ packages'</emphasis> build-time dependencies would have triple of
251+ <literal>(foo, foo, foo)</literal>. In other words, it should take two
252+ "rounds" of following build-time dependency edges before one reaches a
253+ fixed point where, by the sliding window principle, the platform triple no
254+ longer changes. Indeed, this happens with cross compilation, where only
255+ rounds of native dependencies starting with the second necessarily coincide
256+ with native packages.
257+ </para>
258+
259+ <note>
177260 <para>
178− Some examples will probably make this clearer.
179− If a package is being built with a <literal>(build, host, target)</literal> platform triple of <literal>(foo, bar, bar)</literal>, then its build-time dependencies would have a triple of <literal>(foo, foo, bar)</literal>, and <emphasis>those packages'</emphasis> build-time dependencies would have triple of <literal>(foo, foo, foo)</literal>.
180− In other words, it should take two "rounds" of following build-time dependency edges before one reaches a fixed point where, by the sliding window principle, the platform triple no longer changes.
181− Indeed, this happens with cross compilation, where only rounds of native dependencies starting with the second necessarily coincide with native packages.
261+ The depending package's target platform is unconstrained by the sliding
262+ window principle, which makes sense in that one can in principle build
263+ cross compilers targeting arbitrary platforms.
182264 </para>
183− <note><para>
184− The depending package's target platform is unconstrained by the sliding window principle, which makes sense in that one can in principle build cross compilers targeting arbitrary platforms.
185− </para></note>
265+ </note>
266+
267+ <para>
268+ How does this work in practice? Nixpkgs is now structured so that
269+ build-time dependencies are taken from <varname>buildPackages</varname>,
270+ whereas run-time dependencies are taken from the top level attribute set.
271+ For example, <varname>buildPackages.gcc</varname> should be used at build
272+ time, while <varname>gcc</varname> should be used at run time. Now, for
273+ most of Nixpkgs's history, there was no <varname>buildPackages</varname>,
274+ and most packages have not been refactored to use it explicitly. Instead,
275+ one can use the six (<emphasis>gasp</emphasis>) attributes used for
276+ specifying dependencies as documented in
277+ <xref linkend="ssec-stdenv-dependencies"/>. We "splice" together the
278+ run-time and build-time package sets with <varname>callPackage</varname>,
279+ and then <varname>mkDerivation</varname> for each of four attributes pulls
280+ the right derivation out. This splicing can be skipped when not cross
281+ compiling as the package sets are the same, but is a bit slow for cross
282+ compiling. Because of this, a best-of-both-worlds solution is in the works
283+ with no splicing or explicit access of <varname>buildPackages</varname>
284+ needed. For now, feel free to use either method.
285+ </para>
286+
287+ <note>
186288 <para>
187− How does this work in practice? Nixpkgs is now structured so that build-time dependencies are taken from <varname>buildPackages</varname>, whereas run-time dependencies are taken from the top level attribute set.
188− For example, <varname>buildPackages.gcc</varname> should be used at build time, while <varname>gcc</varname> should be used at run time.
189− Now, for most of Nixpkgs's history, there was no <varname>buildPackages</varname>, and most packages have not been refactored to use it explicitly.
190− Instead, one can use the six (<emphasis>gasp</emphasis>) attributes used for specifying dependencies as documented in <xref linkend="ssec-stdenv-dependencies"/>.
191− We "splice" together the run-time and build-time package sets with <varname>callPackage</varname>, and then <varname>mkDerivation</varname> for each of four attributes pulls the right derivation out.
192− This splicing can be skipped when not cross compiling as the package sets are the same, but is a bit slow for cross compiling.
193− Because of this, a best-of-both-worlds solution is in the works with no splicing or explicit access of <varname>buildPackages</varname> needed.
194− For now, feel free to use either method.
289+ There is also a "backlink" <varname>targetPackages</varname>, yielding a
290+ package set whose <varname>buildPackages</varname> is the current package
291+ set. This is a hack, though, to accommodate compilers with lousy build
292+ systems. Please do not use this unless you are absolutely sure you are
293+ packaging such a compiler and there is no other way.
195294 </para>
196− <note><para>
197− There is also a "backlink" <varname>targetPackages</varname>, yielding a package set whose <varname>buildPackages</varname> is the current package set.
198− This is a hack, though, to accommodate compilers with lousy build systems.
199− Please do not use this unless you are absolutely sure you are packaging such a compiler and there is no other way.
200− </para></note>
295+ </note>
201296 </section>
202297
203298 <section>
204− <title>Cross packagaing cookbook</title>
205− <para>
206− Some frequently problems when packaging for cross compilation are good to just spell and answer.
207− Ideally the information above is exhaustive, so this section cannot provide any new information,
208− but its ludicrous and cruel to expect everyone to spend effort working through the interaction of many features just to figure out the same answer to the same common problem.
209− Feel free to add to this list!
210− </para>
211− <qandaset>
212− <qandaentry>
213− <question><para>
214− What if my package's build system needs to build a C program to be run under the build environment?
215− </para></question>
216− <answer><para>
217− <programlisting>depsBuildBuild = [ buildPackages.stdenv.cc ];</programlisting>
218− Add it to your <function>mkDerivation</function> invocation.
219− </para></answer>
220− </qandaentry>
221− <qandaentry>
222− <question><para>
223− My package fails to find <command>ar</command>.
224− </para></question>
225− <answer><para>
226− Many packages assume that an unprefixed <command>ar</command> is available, but Nix doesn't provide one.
227− It only provides a prefixed one, just as it only does for all the other binutils programs.
228− It may be necessary to patch the package to fix the build system to use a prefixed `ar`.
229− </para></answer>
230− </qandaentry>
231− <qandaentry>
232− <question><para>
233− My package's testsuite needs to run host platform code.
234− </para></question>
235− <answer><para>
236− <programlisting>doCheck = stdenv.hostPlatform != stdenv.buildPlatfrom;</programlisting>
237− Add it to your <function>mkDerivation</function> invocation.
238− </para></answer>
239− </qandaentry>
240− </qandaset>
241− </section>
242−</section>
299+ <title>Cross packagaing cookbook</title>
243300
244−<!--============================================================-->
301+ <para>
302+ Some frequently problems when packaging for cross compilation are good to
303+ just spell and answer. Ideally the information above is exhaustive, so this
304+ section cannot provide any new information, but its ludicrous and cruel to
305+ expect everyone to spend effort working through the interaction of many
306+ features just to figure out the same answer to the same common problem.
307+ Feel free to add to this list!
308+ </para>
245309
246−<section xml:id="sec-cross-usage">
310+ <qandaset>
311+ <qandaentry>
312+ <question>
313+ <para>
314+ What if my package's build system needs to build a C program to be run
315+ under the build environment?
316+ </para>
317+ </question>
318+ <answer>
319+ <para>
320+<programlisting>depsBuildBuild = [ buildPackages.stdenv.cc ];</programlisting>
321+ Add it to your <function>mkDerivation</function> invocation.
322+ </para>
323+ </answer>
324+ </qandaentry>
325+ <qandaentry>
326+ <question>
327+ <para>
328+ My package fails to find <command>ar</command>.
329+ </para>
330+ </question>
331+ <answer>
332+ <para>
333+ Many packages assume that an unprefixed <command>ar</command> is
334+ available, but Nix doesn't provide one. It only provides a prefixed one,
335+ just as it only does for all the other binutils programs. It may be
336+ necessary to patch the package to fix the build system to use a prefixed
337+ `ar`.
338+ </para>
339+ </answer>
340+ </qandaentry>
341+ <qandaentry>
342+ <question>
343+ <para>
344+ My package's testsuite needs to run host platform code.
345+ </para>
346+ </question>
347+ <answer>
348+ <para>
349+<programlisting>doCheck = stdenv.hostPlatform != stdenv.buildPlatfrom;</programlisting>
350+ Add it to your <function>mkDerivation</function> invocation.
351+ </para>
352+ </answer>
353+ </qandaentry>
354+ </qandaset>
355+ </section>
356+ </section>
357+<!--============================================================-->
358+ <section xml:id="sec-cross-usage">
247359 <title>Cross-building packages</title>
248− <note><para>
249− More information needs to moved from the old wiki, especially <link xlink:href="https://nixos.org/wiki/CrossCompiling" />, for this section.
250− </para></note>
360+
361+ <note>
362+ <para>
363+ More information needs to moved from the old wiki, especially
364+ <link xlink:href="https://nixos.org/wiki/CrossCompiling" />, for this
365+ section.
366+ </para>
367+ </note>
368+
251369 <para>
252− Nixpkgs can be instantiated with <varname>localSystem</varname> alone, in which case there is no cross compiling and everything is built by and for that system,
253− or also with <varname>crossSystem</varname>, in which case packages run on the latter, but all building happens on the former.
254− Both parameters take the same schema as the 3 (build, host, and target) platforms defined in the previous section.
255− As mentioned above, <literal>lib.systems.examples</literal> has some platforms which are used as arguments for these parameters in practice.
256− You can use them programmatically, or on the command line: <programlisting>
370+ Nixpkgs can be instantiated with <varname>localSystem</varname> alone, in
371+ which case there is no cross compiling and everything is built by and for
372+ that system, or also with <varname>crossSystem</varname>, in which case
373+ packages run on the latter, but all building happens on the former. Both
374+ parameters take the same schema as the 3 (build, host, and target) platforms
375+ defined in the previous section. As mentioned above,
376+ <literal>lib.systems.examples</literal> has some platforms which are used as
377+ arguments for these parameters in practice. You can use them
378+ programmatically, or on the command line:
379+<programlisting>
257380nix-build &lt;nixpkgs&gt; --arg crossSystem '(import &lt;nixpkgs/lib&gt;).systems.examples.fooBarBaz' -A whatever</programlisting>
258381 </para>
382+
259383 <note>
260− <para>
261− Eventually we would like to make these platform examples an unnecessary convenience so that <programlisting>
384+ <para>
385+ Eventually we would like to make these platform examples an unnecessary
386+ convenience so that
387+<programlisting>
262388nix-build &lt;nixpkgs&gt; --arg crossSystem.config '&lt;arch&gt;-&lt;os&gt;-&lt;vendor&gt;-&lt;abi&gt;' -A whatever</programlisting>
263− works in the vast majority of cases.
264− The problem today is dependencies on other sorts of configuration which aren't given proper defaults.
265− We rely on the examples to crudely to set those configuration parameters in some vaguely sane manner on the users behalf.
266− Issue <link xlink:href="https://github.com/NixOS/nixpkgs/issues/34274">#34274</link> tracks this inconvenience along with its root cause in crufty configuration options.
267− </para>
389+ works in the vast majority of cases. The problem today is dependencies on
390+ other sorts of configuration which aren't given proper defaults. We rely on
391+ the examples to crudely to set those configuration parameters in some
392+ vaguely sane manner on the users behalf. Issue
393+ <link xlink:href="https://github.com/NixOS/nixpkgs/issues/34274">#34274</link>
394+ tracks this inconvenience along with its root cause in crufty configuration
395+ options.
396+ </para>
268397 </note>
398+
269399 <para>
270− While one is free to pass both parameters in full, there's a lot of logic to fill in missing fields.
271− As discussed in the previous section, only one of <varname>system</varname>, <varname>config</varname>, and <varname>parsed</varname> is needed to infer the other two.
272− Additionally, <varname>libc</varname> will be inferred from <varname>parse</varname>.
273− Finally, <literal>localSystem.system</literal> is also <emphasis>impurely</emphasis> inferred based on the platform evaluation occurs.
274− This means it is often not necessary to pass <varname>localSystem</varname> at all, as in the command-line example in the previous paragraph.
400+ While one is free to pass both parameters in full, there's a lot of logic to
401+ fill in missing fields. As discussed in the previous section, only one of
402+ <varname>system</varname>, <varname>config</varname>, and
403+ <varname>parsed</varname> is needed to infer the other two. Additionally,
404+ <varname>libc</varname> will be inferred from <varname>parse</varname>.
405+ Finally, <literal>localSystem.system</literal> is also
406+ <emphasis>impurely</emphasis> inferred based on the platform evaluation
407+ occurs. This means it is often not necessary to pass
408+ <varname>localSystem</varname> at all, as in the command-line example in the
409+ previous paragraph.
275410 </para>
411+
276412 <note>
277− <para>
278− Many sources (manual, wiki, etc) probably mention passing <varname>system</varname>, <varname>platform</varname>, along with the optional <varname>crossSystem</varname> to nixpkgs:
279− <literal>import &lt;nixpkgs&gt; { system = ..; platform = ..; crossSystem = ..; }</literal>.
280− Passing those two instead of <varname>localSystem</varname> is still supported for compatibility, but is discouraged.
281− Indeed, much of the inference we do for these parameters is motivated by compatibility as much as convenience.
282− </para>
413+ <para>
414+ Many sources (manual, wiki, etc) probably mention passing
415+ <varname>system</varname>, <varname>platform</varname>, along with the
416+ optional <varname>crossSystem</varname> to nixpkgs: <literal>import
417+ &lt;nixpkgs&gt; { system = ..; platform = ..; crossSystem = ..;
418+ }</literal>. Passing those two instead of <varname>localSystem</varname> is
419+ still supported for compatibility, but is discouraged. Indeed, much of the
420+ inference we do for these parameters is motivated by compatibility as much
421+ as convenience.
422+ </para>
283423 </note>
424+
284425 <para>
285− One would think that <varname>localSystem</varname> and <varname>crossSystem</varname> overlap horribly with the three <varname>*Platforms</varname> (<varname>buildPlatform</varname>, <varname>hostPlatform,</varname> and <varname>targetPlatform</varname>; see <varname>stage.nix</varname> or the manual).
286− Actually, those identifiers are purposefully not used here to draw a subtle but important distinction:
287− While the granularity of having 3 platforms is necessary to properly *build* packages, it is overkill for specifying the user's *intent* when making a build plan or package set.
288− A simple "build vs deploy" dichotomy is adequate: the sliding window principle described in the previous section shows how to interpolate between the these two "end points" to get the 3 platform triple for each bootstrapping stage.
289− That means for any package a given package set, even those not bound on the top level but only reachable via dependencies or <varname>buildPackages</varname>, the three platforms will be defined as one of <varname>localSystem</varname> or <varname>crossSystem</varname>, with the former replacing the latter as one traverses build-time dependencies.
290− A last simple difference then is <varname>crossSystem</varname> should be null when one doesn't want to cross-compile, while the <varname>*Platform</varname>s are always non-null.
291− <varname>localSystem</varname> is always non-null.
426+ One would think that <varname>localSystem</varname> and
427+ <varname>crossSystem</varname> overlap horribly with the three
428+ <varname>*Platforms</varname> (<varname>buildPlatform</varname>,
429+ <varname>hostPlatform,</varname> and <varname>targetPlatform</varname>; see
430+ <varname>stage.nix</varname> or the manual). Actually, those identifiers are
431+ purposefully not used here to draw a subtle but important distinction: While
432+ the granularity of having 3 platforms is necessary to properly *build*
433+ packages, it is overkill for specifying the user's *intent* when making a
434+ build plan or package set. A simple "build vs deploy" dichotomy is adequate:
435+ the sliding window principle described in the previous section shows how to
436+ interpolate between the these two "end points" to get the 3 platform triple
437+ for each bootstrapping stage. That means for any package a given package
438+ set, even those not bound on the top level but only reachable via
439+ dependencies or <varname>buildPackages</varname>, the three platforms will
440+ be defined as one of <varname>localSystem</varname> or
441+ <varname>crossSystem</varname>, with the former replacing the latter as one
442+ traverses build-time dependencies. A last simple difference then is
443+ <varname>crossSystem</varname> should be null when one doesn't want to
444+ cross-compile, while the <varname>*Platform</varname>s are always non-null.
445+ <varname>localSystem</varname> is always non-null.
292446 </para>
293−</section>
294−
447+ </section>
295448<!--============================================================-->
296−
297−<section xml:id="sec-cross-infra">
449+ <section xml:id="sec-cross-infra">
298450 <title>Cross-compilation infrastructure</title>
299− <para>To be written.</para>
300− <note><para>
301− If one explores nixpkgs, they will see derivations with names like <literal>gccCross</literal>.
302− Such <literal>*Cross</literal> derivations is a holdover from before we properly distinguished between the host and target platforms
303− —the derivation with "Cross" in the name covered the <literal>build = host != target</literal> case, while the other covered the <literal>host = target</literal>, with build platform the same or not based on whether one was using its <literal>.nativeDrv</literal> or <literal>.crossDrv</literal>.
304− This ugliness will disappear soon.
305− </para></note>
306−</section>
307451
452+ <para>
453+ To be written.
454+ </para>
455+
456+ <note>
457+ <para>
458+ If one explores nixpkgs, they will see derivations with names like
459+ <literal>gccCross</literal>. Such <literal>*Cross</literal> derivations is
460+ a holdover from before we properly distinguished between the host and
461+ target platforms —the derivation with "Cross" in the name covered the
462+ <literal>build = host != target</literal> case, while the other covered the
463+ <literal>host = target</literal>, with build platform the same or not based
464+ on whether one was using its <literal>.nativeDrv</literal> or
465+ <literal>.crossDrv</literal>. This ugliness will disappear soon.
466+ </para>
467+ </note>
468+ </section>
308469</chapter>
doc/default.nix+33−103
@@ -7,112 +7,42 @@ in
77pkgs.stdenv.mkDerivation {
88 name = "nixpkgs-manual";
99
10−
11− buildInputs = with pkgs; [ pandoc libxml2 libxslt zip ];
12−
13− xsltFlags = ''
14− --param section.autolabel 1
15− --param section.label.includes.component.label 1
16− --param html.stylesheet 'style.css'
17− --param xref.with.number.and.title 1
18− --param toc.section.depth 3
19− --param admon.style '''
20− --param callout.graphics.extension '.gif'
10+ buildInputs = with pkgs; [ pandoc libxml2 libxslt zip jing xmlformat ];
11+
12+ src = ./.;
13+
14+ # Hacking on these variables? Make sure to close and open
15+ # nix-shell between each test, maybe even:
16+ # $ nix-shell --run "make clean all"
17+ # otherwise they won't reapply :)
18+ HIGHLIGHTJS = pkgs.documentation-highlighter;
19+ XSL = "${pkgs.docbook5_xsl}/xml/xsl";
20+ RNG = "${pkgs.docbook5}/xml/rng/docbook/docbook.rng";
21+ XMLFORMAT_CONFIG = ../nixos/doc/xmlformat.conf;
22+ xsltFlags = lib.concatStringsSep " " [
23+ "--param section.autolabel 1"
24+ "--param section.label.includes.component.label 1"
25+ "--stringparam html.stylesheet 'style.css overrides.css highlightjs/mono-blue.css'"
26+ "--stringparam html.script './highlightjs/highlight.pack.js ./highlightjs/loader.js'"
27+ "--param xref.with.number.and.title 1"
28+ "--param toc.section.depth 3"
29+ "--stringparam admon.style ''"
30+ "--stringparam callout.graphics.extension .svg"
31+ ];
32+
33+ postPatch = ''
34+ echo ${lib.version} > .version
2135 '';
2236
37+ installPhase = ''
38+ dest="$out/share/doc/nixpkgs"
39+ mkdir -p "$(dirname "$dest")"
40+ mv out/html "$dest"
41+ mv "$dest/index.html" "$dest/manual.html"
2342
24− buildCommand = let toDocbook = { useChapters ? false, inputFile, outputFile }:
25− let
26− extraHeader = lib.optionalString (!useChapters)
27− ''xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" '';
28− in ''
29− {
30− pandoc '${inputFile}' -w docbook+smart ${lib.optionalString useChapters "--top-level-division=chapter"} \
31− -f markdown+smart \
32− | sed -e 's|<ulink url=|<link xlink:href=|' \
33− -e 's|</ulink>|</link>|' \
34− -e 's|<sect. id=|<section xml:id=|' \
35− -e 's|</sect[0-9]>|</section>|' \
36− -e '1s| id=| xml:id=|' \
37− -e '1s|\(<[^ ]* \)|\1${extraHeader}|'
38− } > '${outputFile}'
39− '';
40− in
41−
42− ''
43− ln -s '${sources}/'*.xml .
44− mkdir ./languages-frameworks
45− cp -s '${sources-langs}'/* ./languages-frameworks
46− ''
47− + toDocbook {
48− inputFile = ./introduction.md;
49− outputFile = "introduction.xml";
50− useChapters = true;
51− }
52− + toDocbook {
53− inputFile = ./shell.md;
54− outputFile = "shell.xml";
55− }
56− + toDocbook {
57− inputFile = ./languages-frameworks/python.md;
58− outputFile = "./languages-frameworks/python.xml";
59− }
60− + toDocbook {
61− inputFile = ./languages-frameworks/haskell.md;
62− outputFile = "./languages-frameworks/haskell.xml";
63− }
64− + toDocbook {
65− inputFile = ../pkgs/development/idris-modules/README.md;
66− outputFile = "languages-frameworks/idris.xml";
67− }
68− + toDocbook {
69− inputFile = ../pkgs/development/node-packages/README.md;
70− outputFile = "languages-frameworks/node.xml";
71− }
72− + toDocbook {
73− inputFile = ../pkgs/development/r-modules/README.md;
74− outputFile = "languages-frameworks/r.xml";
75− }
76− + toDocbook {
77− inputFile = ./languages-frameworks/rust.md;
78− outputFile = "./languages-frameworks/rust.xml";
79− }
80− + toDocbook {
81− inputFile = ./languages-frameworks/vim.md;
82− outputFile = "./languages-frameworks/vim.xml";
83− }
84− + ''
85− echo ${lib.nixpkgsVersion} > .version
86−
87− # validate against relaxng schema
88− xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml
89− ${pkgs.jing}/bin/jing ${pkgs.docbook5}/xml/rng/docbook/docbook.rng manual-full.xml
90−
91− dst=$out/share/doc/nixpkgs
92− mkdir -p $dst
93− xsltproc $xsltFlags --nonet --xinclude \
94− --output $dst/manual.html \
95− ${pkgs.docbook5_xsl}/xml/xsl/docbook/xhtml/docbook.xsl \
96− ./manual.xml
97−
98− cp ${./style.css} $dst/style.css
99−
100− mkdir -p $dst/images/callouts
101− cp "${pkgs.docbook5_xsl}/xml/xsl/docbook/images/callouts/"*.gif $dst/images/callouts/
102−
103− mkdir -p $out/nix-support
104− echo "doc manual $dst manual.html" >> $out/nix-support/hydra-build-products
105−
106− xsltproc $xsltFlags --nonet --xinclude \
107− --output $dst/epub/ \
108− ${pkgs.docbook5_xsl}/xml/xsl/docbook/epub/docbook.xsl \
109− ./manual.xml
43+ mv out/epub/manual.epub "$dest/nixpkgs-manual.epub"
11044
111− cp -r $dst/images $dst/epub/OEBPS
112− echo "application/epub+zip" > mimetype
113− manual="$dst/nixpkgs-manual.epub"
114− zip -0Xq "$manual" mimetype
115− cd $dst/epub && zip -Xr9D "$manual" *
116− rm -rf $dst/epub
45+ mkdir -p $out/nix-support/
46+ echo "doc manual $dest manual.html" >> $out/nix-support/hydra-build-products
11747 '';
11848}
doc/functions.xml+596−534
@@ -1,144 +1,139 @@
11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="chap-functions">
4−
5−<title>Functions reference</title>
6−
7−<para>
8− The nixpkgs repository has several utility functions to manipulate Nix expressions.
9−</para>
10−
11−<section xml:id="sec-overrides">
4+ <title>Functions reference</title>
5+ <para>
6+ The nixpkgs repository has several utility functions to manipulate Nix
7+ expressions.
8+ </para>
9+ <section xml:id="sec-overrides">
1210 <title>Overriding</title>
1311
1412 <para>
15− Sometimes one wants to override parts of
16− <literal>nixpkgs</literal>, e.g. derivation attributes, the results of
17− derivations or even the whole package set.
13+ Sometimes one wants to override parts of <literal>nixpkgs</literal>, e.g.
14+ derivation attributes, the results of derivations or even the whole package
15+ set.
1816 </para>
1917
2018 <section xml:id="sec-pkg-override">
21− <title>&lt;pkg&gt;.override</title>
19+ <title>&lt;pkg&gt;.override</title>
2220
23− <para>
24− The function <varname>override</varname> is usually available for all the
25− derivations in the nixpkgs expression (<varname>pkgs</varname>).
26− </para>
27− <para>
28− It is used to override the arguments passed to a function.
29− </para>
30− <para>
31− Example usages:
21+ <para>
22+ The function <varname>override</varname> is usually available for all the
23+ derivations in the nixpkgs expression (<varname>pkgs</varname>).
24+ </para>
25+
26+ <para>
27+ It is used to override the arguments passed to a function.
28+ </para>
3229
33− <programlisting>pkgs.foo.override { arg1 = val1; arg2 = val2; ... }</programlisting>
34− <programlisting>import pkgs.path { overlays = [ (self: super: {
30+ <para>
31+ Example usages:
32+<programlisting>pkgs.foo.override { arg1 = val1; arg2 = val2; ... }</programlisting>
33+<programlisting>import pkgs.path { overlays = [ (self: super: {
3534 foo = super.foo.override { barSupport = true ; };
3635 })]};</programlisting>
37− <programlisting>mypkg = pkgs.callPackage ./mypkg.nix {
36+<programlisting>mypkg = pkgs.callPackage ./mypkg.nix {
3837 mydep = pkgs.mydep.override { ... };
3938 }</programlisting>
40− </para>
41−
42− <para>
43− In the first example, <varname>pkgs.foo</varname> is the result of a function call
44− with some default arguments, usually a derivation.
45− Using <varname>pkgs.foo.override</varname> will call the same function with
46− the given new arguments.
47− </para>
48−
39+ </para>
40+
41+ <para>
42+ In the first example, <varname>pkgs.foo</varname> is the result of a
43+ function call with some default arguments, usually a derivation. Using
44+ <varname>pkgs.foo.override</varname> will call the same function with the
45+ given new arguments.
46+ </para>
4947 </section>
5048
5149 <section xml:id="sec-pkg-overrideAttrs">
52− <title>&lt;pkg&gt;.overrideAttrs</title>
53−
54− <para>
55− The function <varname>overrideAttrs</varname> allows overriding the
56− attribute set passed to a <varname>stdenv.mkDerivation</varname> call,
57− producing a new derivation based on the original one.
58− This function is available on all derivations produced by the
59− <varname>stdenv.mkDerivation</varname> function, which is most packages
60− in the nixpkgs expression <varname>pkgs</varname>.
61− </para>
62−
63− <para>
64− Example usage:
65−
66− <programlisting>helloWithDebug = pkgs.hello.overrideAttrs (oldAttrs: rec {
50+ <title>&lt;pkg&gt;.overrideAttrs</title>
51+
52+ <para>
53+ The function <varname>overrideAttrs</varname> allows overriding the
54+ attribute set passed to a <varname>stdenv.mkDerivation</varname> call,
55+ producing a new derivation based on the original one. This function is
56+ available on all derivations produced by the
57+ <varname>stdenv.mkDerivation</varname> function, which is most packages in
58+ the nixpkgs expression <varname>pkgs</varname>.
59+ </para>
60+
61+ <para>
62+ Example usage:
63+<programlisting>helloWithDebug = pkgs.hello.overrideAttrs (oldAttrs: rec {
6764 separateDebugInfo = true;
6865 });</programlisting>
69− </para>
66+ </para>
7067
71− <para>
72− In the above example, the <varname>separateDebugInfo</varname> attribute is
73− overridden to be true, thus building debug info for
74− <varname>helloWithDebug</varname>, while all other attributes will be
75− retained from the original <varname>hello</varname> package.
76− </para>
68+ <para>
69+ In the above example, the <varname>separateDebugInfo</varname> attribute is
70+ overridden to be true, thus building debug info for
71+ <varname>helloWithDebug</varname>, while all other attributes will be
72+ retained from the original <varname>hello</varname> package.
73+ </para>
7774
75+ <para>
76+ The argument <varname>oldAttrs</varname> is conventionally used to refer to
77+ the attr set originally passed to <varname>stdenv.mkDerivation</varname>.
78+ </para>
79+
80+ <note>
7881 <para>
79− The argument <varname>oldAttrs</varname> is conventionally used to refer to
80− the attr set originally passed to <varname>stdenv.mkDerivation</varname>.
82+ Note that <varname>separateDebugInfo</varname> is processed only by the
83+ <varname>stdenv.mkDerivation</varname> function, not the generated, raw
84+ Nix derivation. Thus, using <varname>overrideDerivation</varname> will not
85+ work in this case, as it overrides only the attributes of the final
86+ derivation. It is for this reason that <varname>overrideAttrs</varname>
87+ should be preferred in (almost) all cases to
88+ <varname>overrideDerivation</varname>, i.e. to allow using
89+ <varname>sdenv.mkDerivation</varname> to process input arguments, as well
90+ as the fact that it is easier to use (you can use the same attribute names
91+ you see in your Nix code, instead of the ones generated (e.g.
92+ <varname>buildInputs</varname> vs <varname>nativeBuildInputs</varname>,
93+ and involves less typing.
8194 </para>
82−
83− <note>
84− <para>
85− Note that <varname>separateDebugInfo</varname> is processed only by the
86− <varname>stdenv.mkDerivation</varname> function, not the generated, raw
87− Nix derivation. Thus, using <varname>overrideDerivation</varname> will
88− not work in this case, as it overrides only the attributes of the final
89− derivation. It is for this reason that <varname>overrideAttrs</varname>
90− should be preferred in (almost) all cases to
91− <varname>overrideDerivation</varname>, i.e. to allow using
92− <varname>sdenv.mkDerivation</varname> to process input arguments, as well
93− as the fact that it is easier to use (you can use the same attribute
94− names you see in your Nix code, instead of the ones generated (e.g.
95− <varname>buildInputs</varname> vs <varname>nativeBuildInputs</varname>,
96− and involves less typing.
97− </para>
98− </note>
99−
95+ </note>
10096 </section>
10197
102−
10398 <section xml:id="sec-pkg-overrideDerivation">
104− <title>&lt;pkg&gt;.overrideDerivation</title>
105−
106− <warning>
107− <para>You should prefer <varname>overrideAttrs</varname> in almost all
108− cases, see its documentation for the reasons why.
109− <varname>overrideDerivation</varname> is not deprecated and will continue
110− to work, but is less nice to use and does not have as many abilities as
111− <varname>overrideAttrs</varname>.
112− </para>
113− </warning>
114−
115− <warning>
116− <para>Do not use this function in Nixpkgs as it evaluates a Derivation
117− before modifying it, which breaks package abstraction and removes
118− error-checking of function arguments. In addition, this
119− evaluation-per-function application incurs a performance penalty,
120− which can become a problem if many overrides are used.
121− It is only intended for ad-hoc customisation, such as in
122− <filename>~/.config/nixpkgs/config.nix</filename>.
123− </para>
124− </warning>
99+ <title>&lt;pkg&gt;.overrideDerivation</title>
125100
101+ <warning>
126102 <para>
127− The function <varname>overrideDerivation</varname> creates a new derivation
128− based on an existing one by overriding the original's attributes with
129− the attribute set produced by the specified function.
130− This function is available on all
131− derivations defined using the <varname>makeOverridable</varname> function.
132− Most standard derivation-producing functions, such as
133− <varname>stdenv.mkDerivation</varname>, are defined using this
134− function, which means most packages in the nixpkgs expression,
135− <varname>pkgs</varname>, have this function.
103+ You should prefer <varname>overrideAttrs</varname> in almost all cases,
104+ see its documentation for the reasons why.
105+ <varname>overrideDerivation</varname> is not deprecated and will continue
106+ to work, but is less nice to use and does not have as many abilities as
107+ <varname>overrideAttrs</varname>.
136108 </para>
109+ </warning>
137110
111+ <warning>
138112 <para>
139− Example usage:
140−
141− <programlisting>mySed = pkgs.gnused.overrideDerivation (oldAttrs: {
113+ Do not use this function in Nixpkgs as it evaluates a Derivation before
114+ modifying it, which breaks package abstraction and removes error-checking
115+ of function arguments. In addition, this evaluation-per-function
116+ application incurs a performance penalty, which can become a problem if
117+ many overrides are used. It is only intended for ad-hoc customisation,
118+ such as in <filename>~/.config/nixpkgs/config.nix</filename>.
119+ </para>
120+ </warning>
121+
122+ <para>
123+ The function <varname>overrideDerivation</varname> creates a new derivation
124+ based on an existing one by overriding the original's attributes with the
125+ attribute set produced by the specified function. This function is
126+ available on all derivations defined using the
127+ <varname>makeOverridable</varname> function. Most standard
128+ derivation-producing functions, such as
129+ <varname>stdenv.mkDerivation</varname>, are defined using this function,
130+ which means most packages in the nixpkgs expression,
131+ <varname>pkgs</varname>, have this function.
132+ </para>
133+
134+ <para>
135+ Example usage:
136+<programlisting>mySed = pkgs.gnused.overrideDerivation (oldAttrs: {
142137 name = "sed-4.2.2-pre";
143138 src = fetchurl {
144139 url = ftp://alpha.gnu.org/gnu/sed/sed-4.2.2-pre.tar.bz2;
@@ -146,180 +141,270 @@
146141 };
147142 patches = [];
148143 });</programlisting>
149− </para>
144+ </para>
150145
151− <para>
152− In the above example, the <varname>name</varname>, <varname>src</varname>,
153− and <varname>patches</varname> of the derivation will be overridden, while
154− all other attributes will be retained from the original derivation.
155− </para>
146+ <para>
147+ In the above example, the <varname>name</varname>, <varname>src</varname>,
148+ and <varname>patches</varname> of the derivation will be overridden, while
149+ all other attributes will be retained from the original derivation.
150+ </para>
151+
152+ <para>
153+ The argument <varname>oldAttrs</varname> is used to refer to the attribute
154+ set of the original derivation.
155+ </para>
156156
157+ <note>
157158 <para>
158− The argument <varname>oldAttrs</varname> is used to refer to the attribute set of
159− the original derivation.
159+ A package's attributes are evaluated *before* being modified by the
160+ <varname>overrideDerivation</varname> function. For example, the
161+ <varname>name</varname> attribute reference in <varname>url =
162+ "mirror://gnu/hello/${name}.tar.gz";</varname> is filled-in *before* the
163+ <varname>overrideDerivation</varname> function modifies the attribute set.
164+ This means that overriding the <varname>name</varname> attribute, in this
165+ example, *will not* change the value of the <varname>url</varname>
166+ attribute. Instead, we need to override both the <varname>name</varname>
167+ *and* <varname>url</varname> attributes.
160168 </para>
161−
162− <note>
163− <para>
164− A package's attributes are evaluated *before* being modified by
165− the <varname>overrideDerivation</varname> function.
166− For example, the <varname>name</varname> attribute reference
167− in <varname>url = "mirror://gnu/hello/${name}.tar.gz";</varname>
168− is filled-in *before* the <varname>overrideDerivation</varname> function
169− modifies the attribute set. This means that overriding the
170− <varname>name</varname> attribute, in this example, *will not* change the
171− value of the <varname>url</varname> attribute. Instead, we need to override
172− both the <varname>name</varname> *and* <varname>url</varname> attributes.
173− </para>
174− </note>
175−
169+ </note>
176170 </section>
177171
178172 <section xml:id="sec-lib-makeOverridable">
179− <title>lib.makeOverridable</title>
180−
181− <para>
182− The function <varname>lib.makeOverridable</varname> is used to make the result
183− of a function easily customizable. This utility only makes sense for functions
184− that accept an argument set and return an attribute set.
185− </para>
173+ <title>lib.makeOverridable</title>
186174
187− <para>
188− Example usage:
175+ <para>
176+ The function <varname>lib.makeOverridable</varname> is used to make the
177+ result of a function easily customizable. This utility only makes sense for
178+ functions that accept an argument set and return an attribute set.
179+ </para>
189180
190− <programlisting>f = { a, b }: { result = a+b; }
181+ <para>
182+ Example usage:
183+<programlisting>f = { a, b }: { result = a+b; }
191184 c = lib.makeOverridable f { a = 1; b = 2; }</programlisting>
192−
193− </para>
194−
195− <para>
196− The variable <varname>c</varname> is the value of the <varname>f</varname> function
197− applied with some default arguments. Hence the value of <varname>c.result</varname>
198− is <literal>3</literal>, in this example.
199− </para>
200−
201− <para>
202− The variable <varname>c</varname> however also has some additional functions, like
203− <link linkend="sec-pkg-override">c.override</link> which can be used to
204− override the default arguments. In this example the value of
205− <varname>(c.override { a = 4; }).result</varname> is 6.
206− </para>
207−
185+ </para>
186+
187+ <para>
188+ The variable <varname>c</varname> is the value of the <varname>f</varname>
189+ function applied with some default arguments. Hence the value of
190+ <varname>c.result</varname> is <literal>3</literal>, in this example.
191+ </para>
192+
193+ <para>
194+ The variable <varname>c</varname> however also has some additional
195+ functions, like <link linkend="sec-pkg-override">c.override</link> which
196+ can be used to override the default arguments. In this example the value of
197+ <varname>(c.override { a = 4; }).result</varname> is 6.
198+ </para>
208199 </section>
209−
210−</section>
211−
212−<section xml:id="sec-generators">
200+ </section>
201+ <section xml:id="sec-generators">
213202 <title>Generators</title>
214203
215204 <para>
216− Generators are functions that create file formats from nix
217− data structures, e. g. for configuration files.
218− There are generators available for: <literal>INI</literal>,
219− <literal>JSON</literal> and <literal>YAML</literal>
205+ Generators are functions that create file formats from nix data structures,
206+ e. g. for configuration files. There are generators available for:
207+ <literal>INI</literal>, <literal>JSON</literal> and <literal>YAML</literal>
220208 </para>
221209
222210 <para>
223− All generators follow a similar call interface: <code>generatorName
224− configFunctions data</code>, where <literal>configFunctions</literal> is a
225− set of user-defined functions that format variable parts of the content.
226− They each have common defaults, so often they do not need to be set
227− manually. An example is <code>mkSectionName ? (name: libStr.escape [ "[" "]"
228− ] name)</code> from the <literal>INI</literal> generator. It gets the name
229− of a section and returns a sanitized name. The default
230− <literal>mkSectionName</literal> escapes <literal>[</literal> and
231− <literal>]</literal> with a backslash.
211+ All generators follow a similar call interface: <code>generatorName
212+ configFunctions data</code>, where <literal>configFunctions</literal> is an
213+ attrset of user-defined functions that format nested parts of the content.
214+ They each have common defaults, so often they do not need to be set
215+ manually. An example is <code>mkSectionName ? (name: libStr.escape [ "[" "]"
216+ ] name)</code> from the <literal>INI</literal> generator. It receives the
217+ name of a section and sanitizes it. The default
218+ <literal>mkSectionName</literal> escapes <literal>[</literal> and
219+ <literal>]</literal> with a backslash.
232220 </para>
233221
234− <note><para>Nix store paths can be converted to strings by enclosing a
235− derivation attribute like so: <code>"${drv}"</code>.</para></note>
236−
237222 <para>
238− Detailed documentation for each generator can be found in
239− <literal>lib/generators.nix</literal>.
223+ Generators can be fine-tuned to produce exactly the file format required by
224+ your application/service. One example is an INI-file format which uses
225+ <literal>: </literal> as separator, the strings
226+ <literal>"yes"</literal>/<literal>"no"</literal> as boolean values and
227+ requires all string values to be quoted:
240228 </para>
241229
242−</section>
243−
244−
245−<section xml:id="sec-fhs-environments">
246− <title>buildFHSUserEnv</title>
230+<programlisting>
231+with lib;
232+let
233+ customToINI = generators.toINI {
234+ # specifies how to format a key/value pair
235+ mkKeyValue = generators.mkKeyValueDefault {
236+ # specifies the generated string for a subset of nix values
237+ mkValueString = v:
238+ if v == true then ''"yes"''
239+ else if v == false then ''"no"''
240+ else if isString v then ''"${v}"''
241+ # and delegats all other values to the default generator
242+ else generators.mkValueStringDefault {} v;
243+ } ":";
244+ };
245+
246+# the INI file can now be given as plain old nix values
247+in customToINI {
248+ main = {
249+ pushinfo = true;
250+ autopush = false;
251+ host = "localhost";
252+ port = 42;
253+ };
254+ mergetool = {
255+ merge = "diff3";
256+ };
257+}
258+</programlisting>
247259
248260 <para>
249− <function>buildFHSUserEnv</function> provides a way to build and run
250− FHS-compatible lightweight sandboxes. It creates an isolated root with
251− bound <filename>/nix/store</filename>, so its footprint in terms of disk
252− space needed is quite small. This allows one to run software which is hard or
253− unfeasible to patch for NixOS -- 3rd-party source trees with FHS assumptions,
254− games distributed as tarballs, software with integrity checking and/or external
255− self-updated binaries. It uses Linux namespaces feature to create
256− temporary lightweight environments which are destroyed after all child
257− processes exit, without root user rights requirement. Accepted arguments are:
261+ This will produce the following INI file as nix string:
258262 </para>
259263
260− <variablelist>
261− <varlistentry>
262− <term><literal>name</literal></term>
263−
264− <listitem><para>Environment name.</para></listitem>
265− </varlistentry>
264+<programlisting>
265+[main]
266+autopush:"no"
267+host:"localhost"
268+port:42
269+pushinfo:"yes"
270+str\:ange:"very::strange"
266271
267− <varlistentry>
268− <term><literal>targetPkgs</literal></term>
272+[mergetool]
273+merge:"diff3"
274+</programlisting>
269275
270− <listitem><para>Packages to be installed for the main host's architecture
271− (i.e. x86_64 on x86_64 installations). Along with libraries binaries are also
272− installed.</para></listitem>
273− </varlistentry>
274−
275− <varlistentry>
276− <term><literal>multiPkgs</literal></term>
277−
278− <listitem><para>Packages to be installed for all architectures supported by
279− a host (i.e. i686 and x86_64 on x86_64 installations). Only libraries are
280− installed by default.</para></listitem>
281− </varlistentry>
282−
283− <varlistentry>
284− <term><literal>extraBuildCommands</literal></term>
285−
286− <listitem><para>Additional commands to be executed for finalizing the
287− directory structure.</para></listitem>
288− </varlistentry>
289−
290− <varlistentry>
291− <term><literal>extraBuildCommandsMulti</literal></term>
292−
293− <listitem><para>Like <literal>extraBuildCommands</literal>, but
294− executed only on multilib architectures.</para></listitem>
295− </varlistentry>
296−
297− <varlistentry>
298− <term><literal>extraOutputsToInstall</literal></term>
276+ <note>
277+ <para>
278+ Nix store paths can be converted to strings by enclosing a derivation
279+ attribute like so: <code>"${drv}"</code>.
280+ </para>
281+ </note>
299282
300− <listitem><para>Additional derivation outputs to be linked for both
301− target and multi-architecture packages.</para></listitem>
302− </varlistentry>
283+ <para>
284+ Detailed documentation for each generator can be found in
285+ <literal>lib/generators.nix</literal>.
286+ </para>
287+ </section>
288+ <section xml:id="sec-debug">
289+ <title>Debugging Nix Expressions</title>
303290
304− <varlistentry>
305− <term><literal>extraInstallCommands</literal></term>
291+ <para>
292+ Nix is a unityped, dynamic language, this means every value can potentially
293+ appear anywhere. Since it is also non-strict, evaluation order and what
294+ ultimately is evaluated might surprise you. Therefore it is important to be
295+ able to debug nix expressions.
296+ </para>
306297
307− <listitem><para>Additional commands to be executed for finalizing the
308− derivation with runner script.</para></listitem>
309− </varlistentry>
298+ <para>
299+ In the <literal>lib/debug.nix</literal> file you will find a number of
300+ functions that help (pretty-)printing values while evaluation is runnnig.
301+ You can even specify how deep these values should be printed recursively,
302+ and transform them on the fly. Please consult the docstrings in
303+ <literal>lib/debug.nix</literal> for usage information.
304+ </para>
305+ </section>
306+ <section xml:id="sec-fhs-environments">
307+ <title>buildFHSUserEnv</title>
310308
311− <varlistentry>
312− <term><literal>runScript</literal></term>
309+ <para>
310+ <function>buildFHSUserEnv</function> provides a way to build and run
311+ FHS-compatible lightweight sandboxes. It creates an isolated root with bound
312+ <filename>/nix/store</filename>, so its footprint in terms of disk space
313+ needed is quite small. This allows one to run software which is hard or
314+ unfeasible to patch for NixOS -- 3rd-party source trees with FHS
315+ assumptions, games distributed as tarballs, software with integrity checking
316+ and/or external self-updated binaries. It uses Linux namespaces feature to
317+ create temporary lightweight environments which are destroyed after all
318+ child processes exit, without root user rights requirement. Accepted
319+ arguments are:
320+ </para>
313321
314− <listitem><para>A command that would be executed inside the sandbox and
315− passed all the command line arguments. It defaults to
316− <literal>bash</literal>.</para></listitem>
317− </varlistentry>
322+ <variablelist>
323+ <varlistentry>
324+ <term><literal>name</literal>
325+ </term>
326+ <listitem>
327+ <para>
328+ Environment name.
329+ </para>
330+ </listitem>
331+ </varlistentry>
332+ <varlistentry>
333+ <term><literal>targetPkgs</literal>
334+ </term>
335+ <listitem>
336+ <para>
337+ Packages to be installed for the main host's architecture (i.e. x86_64 on
338+ x86_64 installations). Along with libraries binaries are also installed.
339+ </para>
340+ </listitem>
341+ </varlistentry>
342+ <varlistentry>
343+ <term><literal>multiPkgs</literal>
344+ </term>
345+ <listitem>
346+ <para>
347+ Packages to be installed for all architectures supported by a host (i.e.
348+ i686 and x86_64 on x86_64 installations). Only libraries are installed by
349+ default.
350+ </para>
351+ </listitem>
352+ </varlistentry>
353+ <varlistentry>
354+ <term><literal>extraBuildCommands</literal>
355+ </term>
356+ <listitem>
357+ <para>
358+ Additional commands to be executed for finalizing the directory
359+ structure.
360+ </para>
361+ </listitem>
362+ </varlistentry>
363+ <varlistentry>
364+ <term><literal>extraBuildCommandsMulti</literal>
365+ </term>
366+ <listitem>
367+ <para>
368+ Like <literal>extraBuildCommands</literal>, but executed only on multilib
369+ architectures.
370+ </para>
371+ </listitem>
372+ </varlistentry>
373+ <varlistentry>
374+ <term><literal>extraOutputsToInstall</literal>
375+ </term>
376+ <listitem>
377+ <para>
378+ Additional derivation outputs to be linked for both target and
379+ multi-architecture packages.
380+ </para>
381+ </listitem>
382+ </varlistentry>
383+ <varlistentry>
384+ <term><literal>extraInstallCommands</literal>
385+ </term>
386+ <listitem>
387+ <para>
388+ Additional commands to be executed for finalizing the derivation with
389+ runner script.
390+ </para>
391+ </listitem>
392+ </varlistentry>
393+ <varlistentry>
394+ <term><literal>runScript</literal>
395+ </term>
396+ <listitem>
397+ <para>
398+ A command that would be executed inside the sandbox and passed all the
399+ command line arguments. It defaults to <literal>bash</literal>.
400+ </para>
401+ </listitem>
402+ </varlistentry>
318403 </variablelist>
319404
320405 <para>
321− One can create a simple environment using a <literal>shell.nix</literal>
322− like that:
406+ One can create a simple environment using a <literal>shell.nix</literal>
407+ like that:
323408 </para>
324409
325410<programlisting><![CDATA[
@@ -344,50 +429,49 @@
344429]]></programlisting>
345430
346431 <para>
347− Running <literal>nix-shell</literal> would then drop you into a shell with
348− these libraries and binaries available. You can use this to run
349− closed-source applications which expect FHS structure without hassles:
350− simply change <literal>runScript</literal> to the application path,
351− e.g. <filename>./bin/start.sh</filename> -- relative paths are supported.
352− </para>
353−</section>
354−
355−<section xml:id="sec-pkgs-dockerTools">
356−<title>pkgs.dockerTools</title>
357−
358−<para>
359− <varname>pkgs.dockerTools</varname> is a set of functions for creating and
360− manipulating Docker images according to the
361− <link xlink:href="https://github.com/moby/moby/blob/master/image/spec/v1.2.md#docker-image-specification-v120">
362− Docker Image Specification v1.2.0
363− </link>. Docker itself is not used to perform any of the operations done by these
364− functions.
365−</para>
366−
367−<warning>
368− <para>
369− The <varname>dockerTools</varname> API is unstable and may be subject to
370− backwards-incompatible changes in the future.
371− </para>
372−</warning>
373−
374−<section xml:id="ssec-pkgs-dockerTools-buildImage">
375− <title>buildImage</title>
376−
377− <para>
378− This function is analogous to the <command>docker build</command> command,
379− in that can used to build a Docker-compatible repository tarball containing
380− a single image with one or multiple layers. As such, the result
381− is suitable for being loaded in Docker with <command>docker load</command>.
432+ Running <literal>nix-shell</literal> would then drop you into a shell with
433+ these libraries and binaries available. You can use this to run
434+ closed-source applications which expect FHS structure without hassles:
435+ simply change <literal>runScript</literal> to the application path, e.g.
436+ <filename>./bin/start.sh</filename> -- relative paths are supported.
382437 </para>
438+ </section>
439+ <section xml:id="sec-pkgs-dockerTools">
440+ <title>pkgs.dockerTools</title>
383441
384442 <para>
385− The parameters of <varname>buildImage</varname> with relative example values are
386− described below:
443+ <varname>pkgs.dockerTools</varname> is a set of functions for creating and
444+ manipulating Docker images according to the
445+ <link xlink:href="https://github.com/moby/moby/blob/master/image/spec/v1.2.md#docker-image-specification-v120">
446+ Docker Image Specification v1.2.0 </link>. Docker itself is not used to
447+ perform any of the operations done by these functions.
387448 </para>
388449
389− <example xml:id='ex-dockerTools-buildImage'><title>Docker build</title>
390− <programlisting>
450+ <warning>
451+ <para>
452+ The <varname>dockerTools</varname> API is unstable and may be subject to
453+ backwards-incompatible changes in the future.
454+ </para>
455+ </warning>
456+
457+ <section xml:id="ssec-pkgs-dockerTools-buildImage">
458+ <title>buildImage</title>
459+
460+ <para>
461+ This function is analogous to the <command>docker build</command> command,
462+ in that can used to build a Docker-compatible repository tarball containing
463+ a single image with one or multiple layers. As such, the result is suitable
464+ for being loaded in Docker with <command>docker load</command>.
465+ </para>
466+
467+ <para>
468+ The parameters of <varname>buildImage</varname> with relative example
469+ values are described below:
470+ </para>
471+
472+ <example xml:id='ex-dockerTools-buildImage'>
473+ <title>Docker build</title>
474+<programlisting>
391475 buildImage {
392476 name = "redis"; <co xml:id='ex-dockerTools-buildImage-1' />
393477 tag = "latest"; <co xml:id='ex-dockerTools-buildImage-2' />
@@ -411,238 +495,217 @@
411495 };
412496 }
413497 </programlisting>
414− </example>
415−
416− <para>The above example will build a Docker image <literal>redis/latest</literal>
417− from the given base image. Loading and running this image in Docker results in
418− <literal>redis-server</literal> being started automatically.
419− </para>
420−
421− <calloutlist>
422− <callout arearefs='ex-dockerTools-buildImage-1'>
498+ </example>
499+
500+ <para>
501+ The above example will build a Docker image <literal>redis/latest</literal>
502+ from the given base image. Loading and running this image in Docker results
503+ in <literal>redis-server</literal> being started automatically.
504+ </para>
505+
506+ <calloutlist>
507+ <callout arearefs='ex-dockerTools-buildImage-1'>
508+ <para>
509+ <varname>name</varname> specifies the name of the resulting image. This
510+ is the only required argument for <varname>buildImage</varname>.
511+ </para>
512+ </callout>
513+ <callout arearefs='ex-dockerTools-buildImage-2'>
514+ <para>
515+ <varname>tag</varname> specifies the tag of the resulting image. By
516+ default it's <literal>latest</literal>.
517+ </para>
518+ </callout>
519+ <callout arearefs='ex-dockerTools-buildImage-3'>
520+ <para>
521+ <varname>fromImage</varname> is the repository tarball containing the
522+ base image. It must be a valid Docker image, such as exported by
523+ <command>docker save</command>. By default it's <literal>null</literal>,
524+ which can be seen as equivalent to <literal>FROM scratch</literal> of a
525+ <filename>Dockerfile</filename>.
526+ </para>
527+ </callout>
528+ <callout arearefs='ex-dockerTools-buildImage-4'>
529+ <para>
530+ <varname>fromImageName</varname> can be used to further specify the base
531+ image within the repository, in case it contains multiple images. By
532+ default it's <literal>null</literal>, in which case
533+ <varname>buildImage</varname> will peek the first image available in the
534+ repository.
535+ </para>
536+ </callout>
537+ <callout arearefs='ex-dockerTools-buildImage-5'>
538+ <para>
539+ <varname>fromImageTag</varname> can be used to further specify the tag of
540+ the base image within the repository, in case an image contains multiple
541+ tags. By default it's <literal>null</literal>, in which case
542+ <varname>buildImage</varname> will peek the first tag available for the
543+ base image.
544+ </para>
545+ </callout>
546+ <callout arearefs='ex-dockerTools-buildImage-6'>
547+ <para>
548+ <varname>contents</varname> is a derivation that will be copied in the
549+ new layer of the resulting image. This can be similarly seen as
550+ <command>ADD contents/ /</command> in a <filename>Dockerfile</filename>.
551+ By default it's <literal>null</literal>.
552+ </para>
553+ </callout>
554+ <callout arearefs='ex-dockerTools-buildImage-runAsRoot'>
555+ <para>
556+ <varname>runAsRoot</varname> is a bash script that will run as root in an
557+ environment that overlays the existing layers of the base image with the
558+ new resulting layer, including the previously copied
559+ <varname>contents</varname> derivation. This can be similarly seen as
560+ <command>RUN ...</command> in a <filename>Dockerfile</filename>.
561+ <note>
562+ <para>
563+ Using this parameter requires the <literal>kvm</literal> device to be
564+ available.
565+ </para>
566+ </note>
567+ </para>
568+ </callout>
569+ <callout arearefs='ex-dockerTools-buildImage-8'>
570+ <para>
571+ <varname>config</varname> is used to specify the configuration of the
572+ containers that will be started off the built image in Docker. The
573+ available options are listed in the
574+ <link xlink:href="https://github.com/moby/moby/blob/master/image/spec/v1.2.md#image-json-field-descriptions">
575+ Docker Image Specification v1.2.0 </link>.
576+ </para>
577+ </callout>
578+ </calloutlist>
579+
580+ <para>
581+ After the new layer has been created, its closure (to which
582+ <varname>contents</varname>, <varname>config</varname> and
583+ <varname>runAsRoot</varname> contribute) will be copied in the layer
584+ itself. Only new dependencies that are not already in the existing layers
585+ will be copied.
586+ </para>
587+
588+ <para>
589+ At the end of the process, only one new single layer will be produced and
590+ added to the resulting image.
591+ </para>
592+
593+ <para>
594+ The resulting repository will only list the single image
595+ <varname>image/tag</varname>. In the case of
596+ <xref linkend='ex-dockerTools-buildImage'/> it would be
597+ <varname>redis/latest</varname>.
598+ </para>
599+
600+ <para>
601+ It is possible to inspect the arguments with which an image was built using
602+ its <varname>buildArgs</varname> attribute.
603+ </para>
604+
605+ <note>
423606 <para>
424− <varname>name</varname> specifies the name of the resulting image.
425− This is the only required argument for <varname>buildImage</varname>.
607+ If you see errors similar to <literal>getProtocolByName: does not exist
608+ (no such protocol name: tcp)</literal> you may need to add
609+ <literal>pkgs.iana-etc</literal> to <varname>contents</varname>.
426610 </para>
427− </callout>
611+ </note>
428612
429− <callout arearefs='ex-dockerTools-buildImage-2'>
613+ <note>
430614 <para>
431− <varname>tag</varname> specifies the tag of the resulting image.
432− By default it's <literal>latest</literal>.
615+ If you see errors similar to <literal>Error_Protocol ("certificate has
616+ unknown CA",True,UnknownCa)</literal> you may need to add
617+ <literal>pkgs.cacert</literal> to <varname>contents</varname>.
433618 </para>
434− </callout>
435−
436− <callout arearefs='ex-dockerTools-buildImage-3'>
437− <para>
438− <varname>fromImage</varname> is the repository tarball containing the base image.
439− It must be a valid Docker image, such as exported by <command>docker save</command>.
440− By default it's <literal>null</literal>, which can be seen as equivalent
441− to <literal>FROM scratch</literal> of a <filename>Dockerfile</filename>.
442− </para>
443− </callout>
444−
445− <callout arearefs='ex-dockerTools-buildImage-4'>
446− <para>
447− <varname>fromImageName</varname> can be used to further specify
448− the base image within the repository, in case it contains multiple images.
449− By default it's <literal>null</literal>, in which case
450− <varname>buildImage</varname> will peek the first image available
451− in the repository.
452− </para>
453− </callout>
454−
455− <callout arearefs='ex-dockerTools-buildImage-5'>
456− <para>
457− <varname>fromImageTag</varname> can be used to further specify the tag
458− of the base image within the repository, in case an image contains multiple tags.
459− By default it's <literal>null</literal>, in which case
460− <varname>buildImage</varname> will peek the first tag available for the base image.
461− </para>
462− </callout>
463−
464− <callout arearefs='ex-dockerTools-buildImage-6'>
465− <para>
466− <varname>contents</varname> is a derivation that will be copied in the new
467− layer of the resulting image. This can be similarly seen as
468− <command>ADD contents/ /</command> in a <filename>Dockerfile</filename>.
469− By default it's <literal>null</literal>.
470− </para>
471− </callout>
472−
473− <callout arearefs='ex-dockerTools-buildImage-runAsRoot'>
474− <para>
475− <varname>runAsRoot</varname> is a bash script that will run as root
476− in an environment that overlays the existing layers of the base image with
477− the new resulting layer, including the previously copied
478− <varname>contents</varname> derivation.
479− This can be similarly seen as
480− <command>RUN ...</command> in a <filename>Dockerfile</filename>.
481−
482− <note>
483− <para>
484− Using this parameter requires the <literal>kvm</literal>
485− device to be available.
486− </para>
487− </note>
488− </para>
489− </callout>
490−
491− <callout arearefs='ex-dockerTools-buildImage-8'>
492− <para>
493− <varname>config</varname> is used to specify the configuration of the
494− containers that will be started off the built image in Docker.
495− The available options are listed in the
496− <link xlink:href="https://github.com/moby/moby/blob/master/image/spec/v1.2.md#image-json-field-descriptions">
497− Docker Image Specification v1.2.0
498− </link>.
499− </para>
500− </callout>
501−
502− </calloutlist>
503−
504− <para>
505− After the new layer has been created, its closure
506− (to which <varname>contents</varname>, <varname>config</varname> and
507− <varname>runAsRoot</varname> contribute) will be copied in the layer itself.
508− Only new dependencies that are not already in the existing layers will be copied.
509− </para>
510−
511− <para>
512− At the end of the process, only one new single layer will be produced and
513− added to the resulting image.
514− </para>
515−
516− <para>
517− The resulting repository will only list the single image
518− <varname>image/tag</varname>. In the case of <xref linkend='ex-dockerTools-buildImage'/>
519− it would be <varname>redis/latest</varname>.
520− </para>
521−
522− <para>
523− It is possible to inspect the arguments with which an image was built
524− using its <varname>buildArgs</varname> attribute.
525− </para>
526−
527−
528−
529− <note>
530− <para>
531− If you see errors similar to <literal>getProtocolByName: does not exist (no such protocol name: tcp)</literal>
532− you may need to add <literal>pkgs.iana-etc</literal> to <varname>contents</varname>.
533− </para>
534− </note>
535−
536− <note>
537− <para>
538− If you see errors similar to <literal>Error_Protocol ("certificate has unknown CA",True,UnknownCa)</literal>
539− you may need to add <literal>pkgs.cacert</literal> to <varname>contents</varname>.
540− </para>
541− </note>
619+ </note>
620+ </section>
542621
543−</section>
622+ <section xml:id="ssec-pkgs-dockerTools-fetchFromRegistry">
623+ <title>pullImage</title>
544624
545−<section xml:id="ssec-pkgs-dockerTools-fetchFromRegistry">
546− <title>pullImage</title>
625+ <para>
626+ This function is analogous to the <command>docker pull</command> command,
627+ in that can be used to pull a Docker image from a Docker registry.
628+ By default <link xlink:href="https://hub.docker.com/">Docker Hub</link>
629+ is used to pull images.
630+ </para>
547631
548− <para>
549− This function is analogous to the <command>docker pull</command> command,
550− in that can be used to fetch a Docker image from a Docker registry.
551− Currently only registry <literal>v1</literal> is supported.
552− By default <link xlink:href="https://hub.docker.com/">Docker Hub</link>
553− is used to pull images.
554− </para>
632+ <para>
633+ Its parameters are described in the example below:
634+ </para>
555635
556− <para>
557− Its parameters are described in the example below:
558− </para>
559−
560− <example xml:id='ex-dockerTools-pullImage'><title>Docker pull</title>
561− <programlisting>
636+ <example xml:id='ex-dockerTools-pullImage'>
637+ <title>Docker pull</title>
638+<programlisting>
562639 pullImage {
563− imageName = "debian"; <co xml:id='ex-dockerTools-pullImage-1' />
564− imageTag = "jessie"; <co xml:id='ex-dockerTools-pullImage-2' />
565− imageId = null; <co xml:id='ex-dockerTools-pullImage-3' />
566− sha256 = "1bhw5hkz6chrnrih0ymjbmn69hyfriza2lr550xyvpdrnbzr4gk2"; <co xml:id='ex-dockerTools-pullImage-4' />
567−
568− indexUrl = "https://index.docker.io"; <co xml:id='ex-dockerTools-pullImage-5' />
569− registryVersion = "v1";
640+ imageName = "nixos/nix"; <co xml:id='ex-dockerTools-pullImage-1' />
641+ imageDigest = "sha256:20d9485b25ecfd89204e843a962c1bd70e9cc6858d65d7f5fadc340246e2116b"; <co xml:id='ex-dockerTools-pullImage-2' />
642+ finalImageTag = "1.11"; <co xml:id='ex-dockerTools-pullImage-3' />
643+ sha256 = "0mqjy3zq2v6rrhizgb9nvhczl87lcfphq9601wcprdika2jz7qh8"; <co xml:id='ex-dockerTools-pullImage-4' />
570644 }
571645 </programlisting>
572− </example>
573−
574− <calloutlist>
575− <callout arearefs='ex-dockerTools-pullImage-1'>
576− <para>
577− <varname>imageName</varname> specifies the name of the image to be downloaded,
578− which can also include the registry namespace (e.g. <literal>library/debian</literal>).
579− This argument is required.
580− </para>
581− </callout>
582−
583− <callout arearefs='ex-dockerTools-pullImage-2'>
584− <para>
585− <varname>imageTag</varname> specifies the tag of the image to be downloaded.
586− By default it's <literal>latest</literal>.
587− </para>
588− </callout>
589−
590− <callout arearefs='ex-dockerTools-pullImage-3'>
591− <para>
592− <varname>imageId</varname>, if specified this exact image will be fetched, instead
593− of <varname>imageName/imageTag</varname>. However, the resulting repository
594− will still be named <varname>imageName/imageTag</varname>.
595− By default it's <literal>null</literal>.
596− </para>
597− </callout>
598−
599− <callout arearefs='ex-dockerTools-pullImage-4'>
600− <para>
601− <varname>sha256</varname> is the checksum of the whole fetched image.
602− This argument is required.
603− </para>
646+ </example>
647+
648+ <calloutlist>
649+ <callout arearefs='ex-dockerTools-pullImage-1'>
650+ <para>
651+ <varname>imageName</varname> specifies the name of the image to be downloaded,
652+ which can also include the registry namespace (e.g. <literal>nixos</literal>).
653+ This argument is required.
654+ </para>
655+ </callout>
656+ <callout arearefs='ex-dockerTools-pullImage-2'>
657+ <para>
658+ <varname>imageDigest</varname> specifies the digest of the image
659+ to be downloaded. Skopeo can be used to get the digest of an image
660+<programlisting>
661+ $ skopeo inspect docker://docker.io/nixos/nix:1.11 | jq -r '.Digest'
662+ sha256:20d9485b25ecfd89204e843a962c1bd70e9cc6858d65d7f5fadc340246e2116b
663+ </programlisting>
664+ This argument is required.
665+ </para>
666+ </callout>
667+ <callout arearefs='ex-dockerTools-pullImage-3'>
668+ <para>
669+ <varname>finalImageTag</varname>, if specified, this is the tag of
670+ the image to be created. Note it is never used to fetch the image
671+ since we prefer to rely on the immutable digest ID. By default
672+ it's <literal>latest</literal>.
673+ </para>
674+ </callout>
675+ <callout arearefs='ex-dockerTools-pullImage-4'>
676+ <para>
677+ <varname>sha256</varname> is the checksum of the whole fetched image.
678+ This argument is required.
679+ </para>
680+ </callout>
681+ </calloutlist>
682+ </section>
604683
605− <note>
606− <para>The checksum is computed on the unpacked directory, not on the final tarball.</para>
607− </note>
684+ <section xml:id="ssec-pkgs-dockerTools-exportImage">
685+ <title>exportImage</title>
608686
609− </callout>
687+ <para>
688+ This function is analogous to the <command>docker export</command> command,
689+ in that can used to flatten a Docker image that contains multiple layers.
690+ It is in fact the result of the merge of all the layers of the image. As
691+ such, the result is suitable for being imported in Docker with
692+ <command>docker import</command>.
693+ </para>
610694
611− <callout arearefs='ex-dockerTools-pullImage-5'>
695+ <note>
612696 <para>
613− In the above example the default values are shown for the variables
614− <varname>indexUrl</varname> and <varname>registryVersion</varname>.
615− Hence by default the Docker.io registry is used to pull the images.
697+ Using this function requires the <literal>kvm</literal> device to be
698+ available.
616699 </para>
617− </callout>
618− </calloutlist>
619−
620−</section>
621−
622−<section xml:id="ssec-pkgs-dockerTools-exportImage">
623− <title>exportImage</title>
624−
625− <para>
626− This function is analogous to the <command>docker export</command> command,
627− in that can used to flatten a Docker image that contains multiple layers.
628− It is in fact the result of the merge of all the layers of the image.
629− As such, the result is suitable for being imported in Docker
630− with <command>docker import</command>.
631− </para>
700+ </note>
632701
633− <note>
634− <para>
635− Using this function requires the <literal>kvm</literal>
636− device to be available.
637− </para>
638− </note>
702+ <para>
703+ The parameters of <varname>exportImage</varname> are the following:
704+ </para>
639705
640− <para>
641− The parameters of <varname>exportImage</varname> are the following:
642− </para>
643−
644− <example xml:id='ex-dockerTools-exportImage'><title>Docker export</title>
645− <programlisting>
706+ <example xml:id='ex-dockerTools-exportImage'>
707+ <title>Docker export</title>
708+<programlisting>
646709 exportImage {
647710 fromImage = someLayeredImage;
648711 fromImageName = null;
@@ -651,33 +714,35 @@
651714 name = someLayeredImage.name;
652715 }
653716 </programlisting>
654− </example>
655−
656− <para>
657− The parameters relative to the base image have the same synopsis as
658− described in <xref linkend='ssec-pkgs-dockerTools-buildImage'/>, except that
659− <varname>fromImage</varname> is the only required argument in this case.
660− </para>
661−
662− <para>
663− The <varname>name</varname> argument is the name of the derivation output,
664− which defaults to <varname>fromImage.name</varname>.
665− </para>
666−</section>
717+ </example>
718+
719+ <para>
720+ The parameters relative to the base image have the same synopsis as
721+ described in <xref linkend='ssec-pkgs-dockerTools-buildImage'/>, except
722+ that <varname>fromImage</varname> is the only required argument in this
723+ case.
724+ </para>
725+
726+ <para>
727+ The <varname>name</varname> argument is the name of the derivation output,
728+ which defaults to <varname>fromImage.name</varname>.
729+ </para>
730+ </section>
667731
668−<section xml:id="ssec-pkgs-dockerTools-shadowSetup">
669− <title>shadowSetup</title>
732+ <section xml:id="ssec-pkgs-dockerTools-shadowSetup">
733+ <title>shadowSetup</title>
670734
671− <para>
672− This constant string is a helper for setting up the base files for managing
673− users and groups, only if such files don't exist already.
674− It is suitable for being used in a
675− <varname>runAsRoot</varname> <xref linkend='ex-dockerTools-buildImage-runAsRoot'/> script for cases like
676− in the example below:
677− </para>
735+ <para>
736+ This constant string is a helper for setting up the base files for managing
737+ users and groups, only if such files don't exist already. It is suitable
738+ for being used in a <varname>runAsRoot</varname>
739+ <xref linkend='ex-dockerTools-buildImage-runAsRoot'/> script for cases like
740+ in the example below:
741+ </para>
678742
679− <example xml:id='ex-dockerTools-shadowSetup'><title>Shadow base files</title>
680− <programlisting>
743+ <example xml:id='ex-dockerTools-shadowSetup'>
744+ <title>Shadow base files</title>
745+<programlisting>
681746 buildImage {
682747 name = "shadow-basic";
683748
@@ -691,16 +756,13 @@
691756 '';
692757 }
693758 </programlisting>
694− </example>
695−
696− <para>
697− Creating base files like <literal>/etc/passwd</literal> or
698− <literal>/etc/login.defs</literal> are necessary for shadow-utils to
699− manipulate users and groups.
700− </para>
701−
702−</section>
703−
704−</section>
759+ </example>
705760
761+ <para>
762+ Creating base files like <literal>/etc/passwd</literal> or
763+ <literal>/etc/login.defs</literal> are necessary for shadow-utils to
764+ manipulate users and groups.
765+ </para>
766+ </section>
767+ </section>
706768</chapter>
doc/introduction.md → doc/introduction.chapter.mdrenamed

The content is the same.

doc/languages-frameworks/beam.xml+277−223
@@ -1,124 +1,137 @@
11<section xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="sec-beam">
4+ <title>BEAM Languages (Erlang, Elixir &amp; LFE)</title>
45
5− <title>BEAM Languages (Erlang, Elixir &amp; LFE)</title>
6− <section xml:id="beam-introduction">
7− <title>Introduction</title>
8− <para>
9− In this document and related Nix expressions, we use the term,
10− <emphasis>BEAM</emphasis>, to describe the environment. BEAM is the name
11− of the Erlang Virtual Machine and, as far as we're concerned, from a
12− packaging perspective, all languages that run on the BEAM are
13− interchangeable. That which varies, like the build system, is transparent
14− to users of any given BEAM package, so we make no distinction.
15− </para>
16− </section>
17− <section xml:id="beam-structure">
18− <title>Structure</title>
19− <para>
20− All BEAM-related expressions are available via the top-level
21− <literal>beam</literal> attribute, which includes:
22− </para>
23− <itemizedlist>
24− <listitem>
25− <para>
26− <literal>interpreters</literal>: a set of compilers running on the
27− BEAM, including multiple Erlang/OTP versions
28− (<literal>beam.interpreters.erlangR19</literal>, etc), Elixir
29− (<literal>beam.interpreters.elixir</literal>) and LFE
30− (<literal>beam.interpreters.lfe</literal>).
31− </para>
32− </listitem>
33− <listitem>
34− <para>
35− <literal>packages</literal>: a set of package sets, each compiled with
36− a specific Erlang/OTP version, e.g.
37− <literal>beam.packages.erlangR19</literal>.
38− </para>
39− </listitem>
40− </itemizedlist>
41− <para>
42− The default Erlang compiler, defined by
43− <literal>beam.interpreters.erlang</literal>, is aliased as
44− <literal>erlang</literal>. The default BEAM package set is defined by
45− <literal>beam.packages.erlang</literal> and aliased at the top level as
46− <literal>beamPackages</literal>.
47− </para>
6+ <section xml:id="beam-introduction">
7+ <title>Introduction</title>
8+
9+ <para>
10+ In this document and related Nix expressions, we use the term,
11+ <emphasis>BEAM</emphasis>, to describe the environment. BEAM is the name of
12+ the Erlang Virtual Machine and, as far as we're concerned, from a packaging
13+ perspective, all languages that run on the BEAM are interchangeable. That
14+ which varies, like the build system, is transparent to users of any given
15+ BEAM package, so we make no distinction.
16+ </para>
17+ </section>
18+
19+ <section xml:id="beam-structure">
20+ <title>Structure</title>
21+
22+ <para>
23+ All BEAM-related expressions are available via the top-level
24+ <literal>beam</literal> attribute, which includes:
25+ </para>
26+
27+ <itemizedlist>
28+ <listitem>
4829 <para>
49− To create a package set built with a custom Erlang version, use the
50− lambda, <literal>beam.packagesWith</literal>, which accepts an Erlang/OTP
51− derivation and produces a package set similar to
52− <literal>beam.packages.erlang</literal>.
30+ <literal>interpreters</literal>: a set of compilers running on the BEAM,
31+ including multiple Erlang/OTP versions
32+ (<literal>beam.interpreters.erlangR19</literal>, etc), Elixir
33+ (<literal>beam.interpreters.elixir</literal>) and LFE
34+ (<literal>beam.interpreters.lfe</literal>).
5335 </para>
36+ </listitem>
37+ <listitem>
5438 <para>
55− Many Erlang/OTP distributions available in
56− <literal>beam.interpreters</literal> have versions with ODBC and/or Java
57− enabled. For example, there's
58− <literal>beam.interpreters.erlangR19_odbc_javac</literal>, which
59− corresponds to <literal>beam.interpreters.erlangR19</literal>.
39+ <literal>packages</literal>: a set of package sets, each compiled with a
40+ specific Erlang/OTP version, e.g.
41+ <literal>beam.packages.erlangR19</literal>.
6042 </para>
61− <para xml:id="erlang-call-package">
62− We also provide the lambda,
63− <literal>beam.packages.erlang.callPackage</literal>, which simplifies
64− writing BEAM package definitions by injecting all packages from
65− <literal>beam.packages.erlang</literal> into the top-level context.
66− </para>
67− </section>
68− <section xml:id="build-tools">
43+ </listitem>
44+ </itemizedlist>
45+
46+ <para>
47+ The default Erlang compiler, defined by
48+ <literal>beam.interpreters.erlang</literal>, is aliased as
49+ <literal>erlang</literal>. The default BEAM package set is defined by
50+ <literal>beam.packages.erlang</literal> and aliased at the top level as
51+ <literal>beamPackages</literal>.
52+ </para>
53+
54+ <para>
55+ To create a package set built with a custom Erlang version, use the lambda,
56+ <literal>beam.packagesWith</literal>, which accepts an Erlang/OTP derivation
57+ and produces a package set similar to
58+ <literal>beam.packages.erlang</literal>.
59+ </para>
60+
61+ <para>
62+ Many Erlang/OTP distributions available in
63+ <literal>beam.interpreters</literal> have versions with ODBC and/or Java
64+ enabled. For example, there's
65+ <literal>beam.interpreters.erlangR19_odbc_javac</literal>, which corresponds
66+ to <literal>beam.interpreters.erlangR19</literal>.
67+ </para>
68+
69+ <para xml:id="erlang-call-package">
70+ We also provide the lambda,
71+ <literal>beam.packages.erlang.callPackage</literal>, which simplifies
72+ writing BEAM package definitions by injecting all packages from
73+ <literal>beam.packages.erlang</literal> into the top-level context.
74+ </para>
75+ </section>
76+
77+ <section xml:id="build-tools">
6978 <title>Build Tools</title>
79+
7080 <section xml:id="build-tools-rebar3">
71− <title>Rebar3</title>
72− <para>
73− By default, Rebar3 wants to manage its own dependencies. This is perfectly
74− acceptable in the normal, non-Nix setup, but in the Nix world, it is not.
75− To rectify this, we provide two versions of Rebar3:
76− <itemizedlist>
77− <listitem>
78− <para>
79− <literal>rebar3</literal>: patched to remove the ability to download
80− anything. When not running it via <literal>nix-shell</literal> or
81− <literal>nix-build</literal>, it's probably not going to work as
82− desired.
83− </para>
84− </listitem>
85− <listitem>
86− <para>
87− <literal>rebar3-open</literal>: the normal, unmodified Rebar3. It
88− should work exactly as would any other version of Rebar3. Any Erlang
89− package should rely on <literal>rebar3</literal> instead. See <xref
81+ <title>Rebar3</title>
82+
83+ <para>
84+ By default, Rebar3 wants to manage its own dependencies. This is perfectly
85+ acceptable in the normal, non-Nix setup, but in the Nix world, it is not.
86+ To rectify this, we provide two versions of Rebar3:
87+ <itemizedlist>
88+ <listitem>
89+ <para>
90+ <literal>rebar3</literal>: patched to remove the ability to download
91+ anything. When not running it via <literal>nix-shell</literal> or
92+ <literal>nix-build</literal>, it's probably not going to work as
93+ desired.
94+ </para>
95+ </listitem>
96+ <listitem>
97+ <para>
98+ <literal>rebar3-open</literal>: the normal, unmodified Rebar3. It should
99+ work exactly as would any other version of Rebar3. Any Erlang package
100+ should rely on <literal>rebar3</literal> instead. See
101+ <xref
90102 linkend="rebar3-packages"/>.
91− </para>
92− </listitem>
93− </itemizedlist>
94− </para>
103+ </para>
104+ </listitem>
105+ </itemizedlist>
106+ </para>
95107 </section>
108+
96109 <section xml:id="build-tools-other">
97− <title>Mix &amp; Erlang.mk</title>
98− <para>
99− Both Mix and Erlang.mk work exactly as expected. There is a bootstrap
100− process that needs to be run for both, however, which is supported by the
101− <literal>buildMix</literal> and <literal>buildErlangMk</literal>
102− derivations, respectively.
103− </para>
110+ <title>Mix &amp; Erlang.mk</title>
111+
112+ <para>
113+ Both Mix and Erlang.mk work exactly as expected. There is a bootstrap
114+ process that needs to be run for both, however, which is supported by the
115+ <literal>buildMix</literal> and <literal>buildErlangMk</literal>
116+ derivations, respectively.
117+ </para>
104118 </section>
105−</section>
119+ </section>
106120
107−<section xml:id="how-to-install-beam-packages">
121+ <section xml:id="how-to-install-beam-packages">
108122 <title>How to Install BEAM Packages</title>
123+
109124 <para>
110− BEAM packages are not registered at the top level, simply because they are
111− not relevant to the vast majority of Nix users. They are installable using
112− the <literal>beam.packages.erlang</literal> attribute set (aliased as
113− <literal>beamPackages</literal>), which points to packages built by the
114− default Erlang/OTP version in Nixpkgs, as defined by
115− <literal>beam.interpreters.erlang</literal>.
116−
117− To list the available packages in
118− <literal>beamPackages</literal>, use the following command:
125+ BEAM packages are not registered at the top level, simply because they are
126+ not relevant to the vast majority of Nix users. They are installable using
127+ the <literal>beam.packages.erlang</literal> attribute set (aliased as
128+ <literal>beamPackages</literal>), which points to packages built by the
129+ default Erlang/OTP version in Nixpkgs, as defined by
130+ <literal>beam.interpreters.erlang</literal>. To list the available packages
131+ in <literal>beamPackages</literal>, use the following command:
119132 </para>
120133
121− <programlisting>
134+<programlisting>
122135$ nix-env -f &quot;&lt;nixpkgs&gt;&quot; -qaP -A beamPackages
123136beamPackages.esqlite esqlite-0.2.1
124137beamPackages.goldrush goldrush-0.1.7
@@ -128,34 +141,43 @@ beamPackages.lager lager-3.0.2
128141beamPackages.meck meck-0.8.3
129142beamPackages.rebar3-pc pc-1.1.0
130143 </programlisting>
144+
131145 <para>
132− To install any of those packages into your profile, refer to them by their
133− attribute path (first column):
146+ To install any of those packages into your profile, refer to them by their
147+ attribute path (first column):
134148 </para>
135− <programlisting>
149+
150+<programlisting>
136151$ nix-env -f &quot;&lt;nixpkgs&gt;&quot; -iA beamPackages.ibrowse
137152 </programlisting>
153+
138154 <para>
139− The attribute path of any BEAM package corresponds to the name of that
140− particular package in <link xlink:href="https://hex.pm">Hex</link> or its
141− OTP Application/Release name.
155+ The attribute path of any BEAM package corresponds to the name of that
156+ particular package in <link xlink:href="https://hex.pm">Hex</link> or its
157+ OTP Application/Release name.
142158 </para>
143−</section>
144−<section xml:id="packaging-beam-applications">
159+ </section>
160+
161+ <section xml:id="packaging-beam-applications">
145162 <title>Packaging BEAM Applications</title>
163+
146164 <section xml:id="packaging-erlang-applications">
147− <title>Erlang Applications</title>
148− <section xml:id="rebar3-packages">
149− <title>Rebar3 Packages</title>
150− <para>
151− The Nix function, <literal>buildRebar3</literal>, defined in
152− <literal>beam.packages.erlang.buildRebar3</literal> and aliased at the
153− top level, can be used to build a derivation that understands how to
154− build a Rebar3 project. For example, we can build <link
155− xlink:href="https://github.com/erlang-nix/hex2nix">hex2nix</link> as
156− follows:
157− </para>
158− <programlisting>
165+ <title>Erlang Applications</title>
166+
167+ <section xml:id="rebar3-packages">
168+ <title>Rebar3 Packages</title>
169+
170+ <para>
171+ The Nix function, <literal>buildRebar3</literal>, defined in
172+ <literal>beam.packages.erlang.buildRebar3</literal> and aliased at the top
173+ level, can be used to build a derivation that understands how to build a
174+ Rebar3 project. For example, we can build
175+ <link
176+ xlink:href="https://github.com/erlang-nix/hex2nix">hex2nix</link>
177+ as follows:
178+ </para>
179+
180+<programlisting>
159181 { stdenv, fetchFromGitHub, buildRebar3, ibrowse, jsx, erlware_commons }:
160182
161183 buildRebar3 rec {
@@ -172,33 +194,40 @@ $ nix-env -f &quot;&lt;nixpkgs&gt;&quot; -iA beamPackages.ibrowse
172194 beamDeps = [ ibrowse jsx erlware_commons ];
173195 }
174196 </programlisting>
175− <para>
176− Such derivations are callable with
177− <literal>beam.packages.erlang.callPackage</literal> (see <xref
178− linkend="erlang-call-package"/>). To call this package using the normal
179− <literal>callPackage</literal>, refer to dependency packages via
180− <literal>beamPackages</literal>, e.g.
181− <literal>beamPackages.ibrowse</literal>.
182− </para>
183− <para>
184− Notably, <literal>buildRebar3</literal> includes
185− <literal>beamDeps</literal>, while
186− <literal>stdenv.mkDerivation</literal> does not. BEAM dependencies added
187− there will be correctly handled by the system.
188− </para>
189− <para>
190− If a package needs to compile native code via Rebar3's port compilation
191− mechanism, add <literal>compilePort = true;</literal> to the derivation.
192− </para>
193− </section>
194− <section xml:id="erlang-mk-packages">
195− <title>Erlang.mk Packages</title>
196− <para>
197− Erlang.mk functions similarly to Rebar3, except we use
198− <literal>buildErlangMk</literal> instead of
199− <literal>buildRebar3</literal>.
200− </para>
201− <programlisting>
197+
198+ <para>
199+ Such derivations are callable with
200+ <literal>beam.packages.erlang.callPackage</literal> (see
201+ <xref
202+ linkend="erlang-call-package"/>). To call this package using
203+ the normal <literal>callPackage</literal>, refer to dependency packages
204+ via <literal>beamPackages</literal>, e.g.
205+ <literal>beamPackages.ibrowse</literal>.
206+ </para>
207+
208+ <para>
209+ Notably, <literal>buildRebar3</literal> includes
210+ <literal>beamDeps</literal>, while <literal>stdenv.mkDerivation</literal>
211+ does not. BEAM dependencies added there will be correctly handled by the
212+ system.
213+ </para>
214+
215+ <para>
216+ If a package needs to compile native code via Rebar3's port compilation
217+ mechanism, add <literal>compilePort = true;</literal> to the derivation.
218+ </para>
219+ </section>
220+
221+ <section xml:id="erlang-mk-packages">
222+ <title>Erlang.mk Packages</title>
223+
224+ <para>
225+ Erlang.mk functions similarly to Rebar3, except we use
226+ <literal>buildErlangMk</literal> instead of
227+ <literal>buildRebar3</literal>.
228+ </para>
229+
230+<programlisting>
202231 { buildErlangMk, fetchHex, cowlib, ranch }:
203232
204233 buildErlangMk {
@@ -222,14 +251,17 @@ $ nix-env -f &quot;&lt;nixpkgs&gt;&quot; -iA beamPackages.ibrowse
222251 };
223252 }
224253 </programlisting>
225− </section>
226− <section xml:id="mix-packages">
227− <title>Mix Packages</title>
228− <para>
229− Mix functions similarly to Rebar3, except we use
230− <literal>buildMix</literal> instead of <literal>buildRebar3</literal>.
231− </para>
232− <programlisting>
254+ </section>
255+
256+ <section xml:id="mix-packages">
257+ <title>Mix Packages</title>
258+
259+ <para>
260+ Mix functions similarly to Rebar3, except we use
261+ <literal>buildMix</literal> instead of <literal>buildRebar3</literal>.
262+ </para>
263+
264+<programlisting>
233265 { buildMix, fetchHex, plug, absinthe }:
234266
235267 buildMix {
@@ -253,10 +285,12 @@ $ nix-env -f &quot;&lt;nixpkgs&gt;&quot; -iA beamPackages.ibrowse
253285 };
254286 }
255287 </programlisting>
256− <para>
257− Alternatively, we can use <literal>buildHex</literal> as a shortcut:
258− </para>
259− <programlisting>
288+
289+ <para>
290+ Alternatively, we can use <literal>buildHex</literal> as a shortcut:
291+ </para>
292+
293+<programlisting>
260294 { buildHex, buildMix, plug, absinthe }:
261295
262296 buildHex {
@@ -278,21 +312,25 @@ $ nix-env -f &quot;&lt;nixpkgs&gt;&quot; -iA beamPackages.ibrowse
278312 };
279313 }
280314 </programlisting>
281− </section>
315+ </section>
282316 </section>
283−</section>
284−<section xml:id="how-to-develop">
317+ </section>
318+
319+ <section xml:id="how-to-develop">
285320 <title>How to Develop</title>
321+
286322 <section xml:id="accessing-an-environment">
287− <title>Accessing an Environment</title>
288− <para>
289− Often, we simply want to access a valid environment that contains a
290− specific package and its dependencies. We can accomplish that with the
291− <literal>env</literal> attribute of a derivation. For example, let's say
292− we want to access an Erlang REPL with <literal>ibrowse</literal> loaded
293− up. We could do the following:
294− </para>
295− <programlisting>
323+ <title>Accessing an Environment</title>
324+
325+ <para>
326+ Often, we simply want to access a valid environment that contains a
327+ specific package and its dependencies. We can accomplish that with the
328+ <literal>env</literal> attribute of a derivation. For example, let's say we
329+ want to access an Erlang REPL with <literal>ibrowse</literal> loaded up. We
330+ could do the following:
331+ </para>
332+
333+<programlisting>
296334 $ nix-shell -A beamPackages.ibrowse.env --run "erl"
297335 Erlang/OTP 18 [erts-7.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
298336
@@ -333,22 +371,25 @@ $ nix-env -f &quot;&lt;nixpkgs&gt;&quot; -iA beamPackages.ibrowse
333371 ok
334372 2>
335373 </programlisting>
336− <para>
337− Notice the <literal>-A beamPackages.ibrowse.env</literal>. That is the key
338− to this functionality.
339− </para>
374+
375+ <para>
376+ Notice the <literal>-A beamPackages.ibrowse.env</literal>. That is the key
377+ to this functionality.
378+ </para>
340379 </section>
380+
341381 <section xml:id="creating-a-shell">
342− <title>Creating a Shell</title>
343− <para>
344− Getting access to an environment often isn't enough to do real
345− development. Usually, we need to create a <literal>shell.nix</literal>
346− file and do our development inside of the environment specified therein.
347− This file looks a lot like the packaging described above, except that
348− <literal>src</literal> points to the project root and we call the package
349− directly.
350− </para>
351− <programlisting>
382+ <title>Creating a Shell</title>
383+
384+ <para>
385+ Getting access to an environment often isn't enough to do real development.
386+ Usually, we need to create a <literal>shell.nix</literal> file and do our
387+ development inside of the environment specified therein. This file looks a
388+ lot like the packaging described above, except that <literal>src</literal>
389+ points to the project root and we call the package directly.
390+ </para>
391+
392+<programlisting>
352393{ pkgs ? import &quot;&lt;nixpkgs&quot;&gt; {} }:
353394
354395with pkgs;
@@ -368,13 +409,16 @@ in
368409
369410 drv
370411 </programlisting>
371− <section xml:id="building-in-a-shell">
412+
413+ <section xml:id="building-in-a-shell">
372414 <title>Building in a Shell (for Mix Projects)</title>
415+
373416 <para>
374− We can leverage the support of the derivation, irrespective of the build
375− derivation, by calling the commands themselves.
417+ We can leverage the support of the derivation, irrespective of the build
418+ derivation, by calling the commands themselves.
376419 </para>
377− <programlisting>
420+
421+<programlisting>
378422# =============================================================================
379423# Variables
380424# =============================================================================
@@ -431,44 +475,54 @@ analyze: build plt
431475 $(NIX_SHELL) --run "mix dialyzer --no-compile"
432476
433477 </programlisting>
478+
434479 <para>
435− Using a <literal>shell.nix</literal> as described (see <xref
480+ Using a <literal>shell.nix</literal> as described (see
481+ <xref
436482 linkend="creating-a-shell"/>) should just work. Aside from
437− <literal>test</literal>, <literal>plt</literal>, and
438− <literal>analyze</literal>, the Make targets work just fine for all of the
439− build derivations.
483+ <literal>test</literal>, <literal>plt</literal>, and
484+ <literal>analyze</literal>, the Make targets work just fine for all of the
485+ build derivations.
440486 </para>
487+ </section>
441488 </section>
442−</section>
443−</section>
444−<section xml:id="generating-packages-from-hex-with-hex2nix">
489+ </section>
490+
491+ <section xml:id="generating-packages-from-hex-with-hex2nix">
445492 <title>Generating Packages from Hex with <literal>hex2nix</literal></title>
493+
446494 <para>
447− Updating the <link xlink:href="https://hex.pm">Hex</link> package set
448− requires <link
449− xlink:href="https://github.com/erlang-nix/hex2nix">hex2nix</link>. Given the
450− path to the Erlang modules (usually
451− <literal>pkgs/development/erlang-modules</literal>), it will dump a file
452− called <literal>hex-packages.nix</literal>, containing all the packages that
453− use a recognized build system in <link
454− xlink:href="https://hex.pm">Hex</link>. It can't be determined, however,
455− whether every package is buildable.
456− </para>
457− <para>
458− To make life easier for our users, try to build every <link
459− xlink:href="https://hex.pm">Hex</link> package and remove those that fail.
460− To do that, simply run the following command in the root of your
461− <literal>nixpkgs</literal> repository:
462− </para>
463− <programlisting>
495+ Updating the <link xlink:href="https://hex.pm">Hex</link> package set
496+ requires
497+ <link
498+ xlink:href="https://github.com/erlang-nix/hex2nix">hex2nix</link>.
499+ Given the path to the Erlang modules (usually
500+ <literal>pkgs/development/erlang-modules</literal>), it will dump a file
501+ called <literal>hex-packages.nix</literal>, containing all the packages that
502+ use a recognized build system in
503+ <link
504+ xlink:href="https://hex.pm">Hex</link>. It can't be determined,
505+ however, whether every package is buildable.
506+ </para>
507+
508+ <para>
509+ To make life easier for our users, try to build every
510+ <link
511+ xlink:href="https://hex.pm">Hex</link> package and remove those
512+ that fail. To do that, simply run the following command in the root of your
513+ <literal>nixpkgs</literal> repository:
514+ </para>
515+
516+<programlisting>
464517$ nix-build -A beamPackages
465518 </programlisting>
466− <para>
467− That will attempt to build every package in
468− <literal>beamPackages</literal>. Then manually remove those that fail.
469− Hopefully, someone will improve <link
470− xlink:href="https://github.com/erlang-nix/hex2nix">hex2nix</link> in the
471− future to automate the process.
472− </para>
473−</section>
519+
520+ <para>
521+ That will attempt to build every package in <literal>beamPackages</literal>.
522+ Then manually remove those that fail. Hopefully, someone will improve
523+ <link
524+ xlink:href="https://github.com/erlang-nix/hex2nix">hex2nix</link>
525+ in the future to automate the process.
526+ </para>
527+ </section>
474528</section>
doc/languages-frameworks/bower.xml+137−152
@@ -1,40 +1,37 @@
11<section xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="sec-bower">
4−
5−<title>Bower</title>
6−
7−<para>
8− <link xlink:href="http://bower.io">Bower</link> is a package manager
9− for web site front-end components. Bower packages (comprising of
10− build artefacts and sometimes sources) are stored in
11− <command>git</command> repositories, typically on Github. The
12− package registry is run by the Bower team with package metadata
13− coming from the <filename>bower.json</filename> file within each
14− package.
15−</para>
16−
17−<para>
18− The end result of running Bower is a
19− <filename>bower_components</filename> directory which can be included
20− in the web app's build process.
21−</para>
22−
23−<para>
4+ <title>Bower</title>
5+
6+ <para>
7+ <link xlink:href="http://bower.io">Bower</link> is a package manager for web
8+ site front-end components. Bower packages (comprising of build artefacts and
9+ sometimes sources) are stored in <command>git</command> repositories,
10+ typically on Github. The package registry is run by the Bower team with
11+ package metadata coming from the <filename>bower.json</filename> file within
12+ each package.
13+ </para>
14+
15+ <para>
16+ The end result of running Bower is a <filename>bower_components</filename>
17+ directory which can be included in the web app's build process.
18+ </para>
19+
20+ <para>
2421 Bower can be run interactively, by installing
2522 <varname>nodePackages.bower</varname>. More interestingly, the Bower
2623 components can be declared in a Nix derivation, with the help of
2724 <varname>nodePackages.bower2nix</varname>.
28−</para>
25+ </para>
2926
30−<section xml:id="ssec-bower2nix-usage">
27+ <section xml:id="ssec-bower2nix-usage">
3128 <title><command>bower2nix</command> usage</title>
3229
33−<para>
34− Suppose you have a <filename>bower.json</filename> with the following contents:
35−
36−
37−<example xml:id="ex-bowerJson"><title><filename>bower.json</filename></title>
30+ <para>
31+ Suppose you have a <filename>bower.json</filename> with the following
32+ contents:
33+ <example xml:id="ex-bowerJson">
34+ <title><filename>bower.json</filename></title>
3835<programlisting language="json">
3936<![CDATA[{
4037 "name": "my-web-app",
@@ -44,14 +41,12 @@
4441 }
4542}]]>
4643</programlisting>
47−</example>
48−</para>
49−
50−
51−<para>
52− Running <command>bower2nix</command> will produce something like the
53− following output:
44+ </example>
45+ </para>
5446
47+ <para>
48+ Running <command>bower2nix</command> will produce something like the
49+ following output:
5550<programlisting language="nix">
5651<![CDATA[{ fetchbower, buildEnv }:
5752buildEnv { name = "bower-env"; ignoreCollisions = true; paths = [
@@ -60,31 +55,31 @@ buildEnv { name = "bower-env"; ignoreCollisions = true; paths = [
6055 (fetchbower "jquery" "2.2.2" "1.9.1 - 2" "10sp5h98sqwk90y4k6hbdviwqzvzwqf47r3r51pakch5ii2y7js1")
6156]; }]]>
6257</programlisting>
63−</para>
64−
58+ </para>
6559
66−<para>
67− Using the <command>bower2nix</command> command line arguments, the
68− output can be redirected to a file. A name like
69− <filename>bower-packages.nix</filename> would be fine.
70−</para>
60+ <para>
61+ Using the <command>bower2nix</command> command line arguments, the output
62+ can be redirected to a file. A name like
63+ <filename>bower-packages.nix</filename> would be fine.
64+ </para>
7165
72−<para>
73− The resulting derivation is a union of all the downloaded Bower
74− packages (and their dependencies). To use it, they still need to be
75− linked together by Bower, which is where
76− <varname>buildBowerComponents</varname> is useful.
77−</para>
78−</section>
66+ <para>
67+ The resulting derivation is a union of all the downloaded Bower packages
68+ (and their dependencies). To use it, they still need to be linked together
69+ by Bower, which is where <varname>buildBowerComponents</varname> is useful.
70+ </para>
71+ </section>
7972
80−<section xml:id="ssec-build-bower-components"><title><varname>buildBowerComponents</varname> function</title>
73+ <section xml:id="ssec-build-bower-components">
74+ <title><varname>buildBowerComponents</varname> function</title>
8175
8276 <para>
83− The function is implemented in <link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/bower-modules/generic/default.nix">
84− <filename>pkgs/development/bower-modules/generic/default.nix</filename></link>.
85− Example usage:
86−
87−<example xml:id="ex-buildBowerComponents"><title>buildBowerComponents</title>
77+ The function is implemented in
78+ <link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/bower-modules/generic/default.nix">
79+ <filename>pkgs/development/bower-modules/generic/default.nix</filename></link>.
80+ Example usage:
81+ <example xml:id="ex-buildBowerComponents">
82+ <title>buildBowerComponents</title>
8883<programlisting language="nix">
8984bowerComponents = buildBowerComponents {
9085 name = "my-web-app";
@@ -92,42 +87,42 @@ bowerComponents = buildBowerComponents {
9287 src = myWebApp; <co xml:id="ex-buildBowerComponents-2" />
9388};
9489</programlisting>
95−</example>
90+ </example>
9691 </para>
9792
98−<para>
99−In <xref linkend="ex-buildBowerComponents" />, the following arguments
100−are of special significance to the function:
101−
102−<calloutlist>
103− <callout arearefs="ex-buildBowerComponents-1">
104− <para>
105− <varname>generated</varname> specifies the file which was created by <command>bower2nix</command>.
106− </para>
107− </callout>
108−
109− <callout arearefs="ex-buildBowerComponents-2">
110− <para>
111− <varname>src</varname> is your project's sources. It needs to
112− contain a <filename>bower.json</filename> file.
113− </para>
114− </callout>
115−</calloutlist>
116−</para>
117−
118−<para>
119− <varname>buildBowerComponents</varname> will run Bower to link
120− together the output of <command>bower2nix</command>, resulting in a
121− <filename>bower_components</filename> directory which can be used.
122−</para>
123−
124−<para>
125− Here is an example of a web frontend build process using
126− <command>gulp</command>. You might use <command>grunt</command>, or
127− anything else.
128−</para>
129−
130−<example xml:id="ex-bowerGulpFile"><title>Example build script (<filename>gulpfile.js</filename>)</title>
93+ <para>
94+ In <xref linkend="ex-buildBowerComponents" />, the following arguments are
95+ of special significance to the function:
96+ <calloutlist>
97+ <callout arearefs="ex-buildBowerComponents-1">
98+ <para>
99+ <varname>generated</varname> specifies the file which was created by
100+ <command>bower2nix</command>.
101+ </para>
102+ </callout>
103+ <callout arearefs="ex-buildBowerComponents-2">
104+ <para>
105+ <varname>src</varname> is your project's sources. It needs to contain a
106+ <filename>bower.json</filename> file.
107+ </para>
108+ </callout>
109+ </calloutlist>
110+ </para>
111+
112+ <para>
113+ <varname>buildBowerComponents</varname> will run Bower to link together the
114+ output of <command>bower2nix</command>, resulting in a
115+ <filename>bower_components</filename> directory which can be used.
116+ </para>
117+
118+ <para>
119+ Here is an example of a web frontend build process using
120+ <command>gulp</command>. You might use <command>grunt</command>, or anything
121+ else.
122+ </para>
123+
124+ <example xml:id="ex-bowerGulpFile">
125+ <title>Example build script (<filename>gulpfile.js</filename>)</title>
131126<programlisting language="javascript">
132127<![CDATA[var gulp = require('gulp');
133128
@@ -142,10 +137,10 @@ gulp.task('build', [], function () {
142137 .pipe(gulp.dest("./gulpdist/"));
143138});]]>
144139</programlisting>
145−</example>
140+ </example>
146141
147−<example xml:id="ex-buildBowerComponentsDefaultNix">
148− <title>Full example — <filename>default.nix</filename></title>
142+ <example xml:id="ex-buildBowerComponentsDefaultNix">
143+ <title>Full example — <filename>default.nix</filename></title>
149144<programlisting language="nix">
150145{ myWebApp ? { outPath = ./.; name = "myWebApp"; }
151146, pkgs ? import &lt;nixpkgs&gt; {}
@@ -172,73 +167,63 @@ pkgs.stdenv.mkDerivation {
172167 installPhase = "mv gulpdist $out";
173168}
174169</programlisting>
175−</example>
176−
177−<para>
178−A few notes about <xref linkend="ex-buildBowerComponentsDefaultNix" />:
179−
180−<calloutlist>
181− <callout arearefs="ex-buildBowerComponentsDefault-1">
182− <para>
183− The result of <varname>buildBowerComponents</varname> is an
184− input to the frontend build.
185− </para>
186− </callout>
187−
188− <callout arearefs="ex-buildBowerComponentsDefault-2">
189− <para>
190− Whether to symlink or copy the
191− <filename>bower_components</filename> directory depends on the
192− build tool in use. In this case a copy is used to avoid
193− <command>gulp</command> silliness with permissions.
194− </para>
195− </callout>
196−
197− <callout arearefs="ex-buildBowerComponentsDefault-3">
198− <para>
199− <command>gulp</command> requires <varname>HOME</varname> to
200− refer to a writeable directory.
201− </para>
202− </callout>
203−
204− <callout arearefs="ex-buildBowerComponentsDefault-4">
205− <para>
170+ </example>
171+
172+ <para>
173+ A few notes about <xref linkend="ex-buildBowerComponentsDefaultNix" />:
174+ <calloutlist>
175+ <callout arearefs="ex-buildBowerComponentsDefault-1">
176+ <para>
177+ The result of <varname>buildBowerComponents</varname> is an input to the
178+ frontend build.
179+ </para>
180+ </callout>
181+ <callout arearefs="ex-buildBowerComponentsDefault-2">
182+ <para>
183+ Whether to symlink or copy the <filename>bower_components</filename>
184+ directory depends on the build tool in use. In this case a copy is used
185+ to avoid <command>gulp</command> silliness with permissions.
186+ </para>
187+ </callout>
188+ <callout arearefs="ex-buildBowerComponentsDefault-3">
189+ <para>
190+ <command>gulp</command> requires <varname>HOME</varname> to refer to a
191+ writeable directory.
192+ </para>
193+ </callout>
194+ <callout arearefs="ex-buildBowerComponentsDefault-4">
195+ <para>
206196 The actual build command. Other tools could be used.
207− </para>
208− </callout>
209−</calloutlist>
210−</para>
211−</section>
197+ </para>
198+ </callout>
199+ </calloutlist>
200+ </para>
201+ </section>
212202
213−<section xml:id="ssec-bower2nix-troubleshooting">
203+ <section xml:id="ssec-bower2nix-troubleshooting">
214204 <title>Troubleshooting</title>
215205
216−<variablelist>
217−
218− <varlistentry>
219− <term>
220− <literal>ENOCACHE</literal> errors from
206+ <variablelist>
207+ <varlistentry>
208+ <term><literal>ENOCACHE</literal> errors from
221209 <varname>buildBowerComponents</varname>
222210 </term>
223211 <listitem>
224− <para>
225− This means that Bower was looking for a package version which
226− doesn't exist in the generated
227− <filename>bower-packages.nix</filename>.
228− </para>
229− <para>
230− If <filename>bower.json</filename> has been updated, then run
231− <command>bower2nix</command> again.
232− </para>
233− <para>
234− It could also be a bug in <command>bower2nix</command> or
235− <command>fetchbower</command>. If possible, try reformulating
236− the version specification in <filename>bower.json</filename>.
237− </para>
212+ <para>
213+ This means that Bower was looking for a package version which doesn't
214+ exist in the generated <filename>bower-packages.nix</filename>.
215+ </para>
216+ <para>
217+ If <filename>bower.json</filename> has been updated, then run
218+ <command>bower2nix</command> again.
219+ </para>
220+ <para>
221+ It could also be a bug in <command>bower2nix</command> or
222+ <command>fetchbower</command>. If possible, try reformulating the version
223+ specification in <filename>bower.json</filename>.
224+ </para>
238225 </listitem>
239− </varlistentry>
240−</variablelist>
241−
242−</section>
243−
226+ </varlistentry>
227+ </variablelist>
228+ </section>
244229</section>
doc/languages-frameworks/coq.xml+31−29
@@ -1,36 +1,38 @@
11<section xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="sec-language-coq">
4+ <title>Coq</title>
45
5−<title>Coq</title>
6− <para>
7− Coq libraries should be installed in
8− <literal>$(out)/lib/coq/${coq.coq-version}/user-contrib/</literal>.
9− Such directories are automatically added to the
10− <literal>$COQPATH</literal> environment variable by the hook defined
11− in the Coq derivation.
12− </para>
13− <para>
14− Some libraries require OCaml and sometimes also Camlp5 or findlib.
15− The exact versions that were used to build Coq are saved in the
16− <literal>coq.ocaml</literal> and <literal>coq.camlp5</literal>
17− and <literal>coq.findlib</literal> attributes.
18− </para>
19− <para>
20− Coq libraries may be compatible with some specific versions of Coq only.
21− The <literal>compatibleCoqVersions</literal> attribute is used to
22− precisely select those versions of Coq that are compatible with this
23− derivation.
24− </para>
25− <para>
26− Here is a simple package example. It is a pure Coq library, thus it
27− depends on Coq. It builds on the Mathematical Components library, thus it
28− also takes <literal>mathcomp</literal> as <literal>buildInputs</literal>.
29− Its <literal>Makefile</literal> has been generated using
30− <literal>coq_makefile</literal> so we only have to
31− set the <literal>$COQLIB</literal> variable at install time.
32− </para>
33− <programlisting>
6+ <para>
7+ Coq libraries should be installed in
8+ <literal>$(out)/lib/coq/${coq.coq-version}/user-contrib/</literal>. Such
9+ directories are automatically added to the <literal>$COQPATH</literal>
10+ environment variable by the hook defined in the Coq derivation.
11+ </para>
12+
13+ <para>
14+ Some libraries require OCaml and sometimes also Camlp5 or findlib. The exact
15+ versions that were used to build Coq are saved in the
16+ <literal>coq.ocaml</literal> and <literal>coq.camlp5</literal> and
17+ <literal>coq.findlib</literal> attributes.
18+ </para>
19+
20+ <para>
21+ Coq libraries may be compatible with some specific versions of Coq only. The
22+ <literal>compatibleCoqVersions</literal> attribute is used to precisely
23+ select those versions of Coq that are compatible with this derivation.
24+ </para>
25+
26+ <para>
27+ Here is a simple package example. It is a pure Coq library, thus it depends
28+ on Coq. It builds on the Mathematical Components library, thus it also takes
29+ <literal>mathcomp</literal> as <literal>buildInputs</literal>. Its
30+ <literal>Makefile</literal> has been generated using
31+ <literal>coq_makefile</literal> so we only have to set the
32+ <literal>$COQLIB</literal> variable at install time.
33+ </para>
34+
35+<programlisting>
3436{ stdenv, fetchFromGitHub, coq, mathcomp }:
3537
3638stdenv.mkDerivation rec {
doc/languages-frameworks/emscripten.section.mdnew file+185
@@ -0,0 +1,185 @@
1+# User's Guide to Emscripten in Nixpkgs
2+
3+[Emscripten](https://github.com/kripken/emscripten): An LLVM-to-JavaScript Compiler
4+
5+This section of the manual covers how to use `emscripten` in nixpkgs.
6+
7+Minimal requirements:
8+
9+* nix
10+* nixpkgs
11+
12+Modes of use of `emscripten`:
13+
14+* **Imperative usage** (on the command line):
15+
16+ If you want to work with `emcc`, `emconfigure` and `emmake` as you are used to from Ubuntu and similar distributions you can use these commands:
17+
18+ * `nix-env -i emscripten`
19+ * `nix-shell -p emscripten`
20+
21+* **Declarative usage**:
22+
23+ This mode is far more power full since this makes use of `nix` for dependency management of emscripten libraries and targets by using the `mkDerivation` which is implemented by `pkgs.emscriptenStdenv` and `pkgs.buildEmscriptenPackage`. The source for the packages is in `pkgs/top-level/emscripten-packages.nix` and the abstraction behind it in `pkgs/development/em-modules/generic/default.nix`.
24+ * build and install all packages:
25+ * `nix-env -iA emscriptenPackages`
26+
27+ * dev-shell for zlib implementation hacking:
28+ * `nix-shell -A emscriptenPackages.zlib`
29+
30+
31+## Imperative usage
32+
33+A few things to note:
34+
35+* `export EMCC_DEBUG=2` is nice for debugging
36+* `~/.emscripten`, the build artifact cache sometimes creates issues and needs to be removed from time to time
37+
38+
39+## Declarative usage
40+
41+Let's see two different examples from `pkgs/top-level/emscripten-packages.nix`:
42+
43+* `pkgs.zlib.override`
44+* `pkgs.buildEmscriptenPackage`
45+
46+Both are interesting concepts.
47+
48+A special requirement of the `pkgs.buildEmscriptenPackage` is the `doCheck = true` is a default meaning that each emscriptenPackage requires a `checkPhase` implemented.
49+
50+* Use `export EMCC_DEBUG=2` from within a emscriptenPackage's `phase` to get more detailed debug output what is going wrong.
51+* ~/.emscripten cache is requiring us to set `HOME=$TMPDIR` in individual phases. This makes compilation slower but also makes it more deterministic.
52+
53+### Usage 1: pkgs.zlib.override
54+
55+This example uses `zlib` from nixpkgs but instead of compiling **C** to **ELF** it compiles **C** to **JS** since we were using `pkgs.zlib.override` and changed stdenv to `pkgs.emscriptenStdenv`. A few adaptions and hacks were set in place to make it working. One advantage is that when `pkgs.zlib` is updated, it will automatically update this package as well. However, this can also be the downside...
56+
57+See the `zlib` example:
58+
59+ zlib = (pkgs.zlib.override {
60+ stdenv = pkgs.emscriptenStdenv;
61+ }).overrideDerivation
62+ (old: rec {
63+ buildInputs = old.buildInputs ++ [ pkgconfig ];
64+ # we need to reset this setting!
65+ NIX_CFLAGS_COMPILE="";
66+ configurePhase = ''
67+ # FIXME: Some tests require writing at $HOME
68+ HOME=$TMPDIR
69+ runHook preConfigure
70+
71+ #export EMCC_DEBUG=2
72+ emconfigure ./configure --prefix=$out --shared
73+
74+ runHook postConfigure
75+ '';
76+ dontStrip = true;
77+ outputs = [ "out" ];
78+ buildPhase = ''
79+ emmake make
80+ '';
81+ installPhase = ''
82+ emmake make install
83+ '';
84+ checkPhase = ''
85+ echo "================= testing zlib using node ================="
86+
87+ echo "Compiling a custom test"
88+ set -x
89+ emcc -O2 -s EMULATE_FUNCTION_POINTER_CASTS=1 test/example.c -DZ_SOLO \
90+ libz.so.${old.version} -I . -o example.js
91+
92+ echo "Using node to execute the test"
93+ ${pkgs.nodejs}/bin/node ./example.js
94+
95+ set +x
96+ if [ $? -ne 0 ]; then
97+ echo "test failed for some reason"
98+ exit 1;
99+ else
100+ echo "it seems to work! very good."
101+ fi
102+ echo "================= /testing zlib using node ================="
103+ '';
104+
105+ postPatch = pkgs.stdenv.lib.optionalString pkgs.stdenv.isDarwin ''
106+ substituteInPlace configure \
107+ --replace '/usr/bin/libtool' 'ar' \
108+ --replace 'AR="libtool"' 'AR="ar"' \
109+ --replace 'ARFLAGS="-o"' 'ARFLAGS="-r"'
110+ '';
111+ });
112+
113+### Usage 2: pkgs.buildEmscriptenPackage
114+
115+This `xmlmirror` example features a emscriptenPackage which is defined completely from this context and no `pkgs.zlib.override` is used.
116+
117+ xmlmirror = pkgs.buildEmscriptenPackage rec {
118+ name = "xmlmirror";
119+
120+ buildInputs = [ pkgconfig autoconf automake libtool gnumake libxml2 nodejs openjdk json_c ];
121+ nativeBuildInputs = [ pkgconfig zlib ];
122+
123+ src = pkgs.fetchgit {
124+ url = "https://gitlab.com/odfplugfest/xmlmirror.git";
125+ rev = "4fd7e86f7c9526b8f4c1733e5c8b45175860a8fd";
126+ sha256 = "1jasdqnbdnb83wbcnyrp32f36w3xwhwp0wq8lwwmhqagxrij1r4b";
127+ };
128+
129+ configurePhase = ''
130+ rm -f fastXmlLint.js*
131+ # a fix for ERROR:root:For asm.js, TOTAL_MEMORY must be a multiple of 16MB, was 234217728
132+ # https://gitlab.com/odfplugfest/xmlmirror/issues/8
133+ sed -e "s/TOTAL_MEMORY=234217728/TOTAL_MEMORY=268435456/g" -i Makefile.emEnv
134+ # https://github.com/kripken/emscripten/issues/6344
135+ # https://gitlab.com/odfplugfest/xmlmirror/issues/9
136+ sed -e "s/\$(JSONC_LDFLAGS) \$(ZLIB_LDFLAGS) \$(LIBXML20_LDFLAGS)/\$(JSONC_LDFLAGS) \$(LIBXML20_LDFLAGS) \$(ZLIB_LDFLAGS) /g" -i Makefile.emEnv
137+ # https://gitlab.com/odfplugfest/xmlmirror/issues/11
138+ sed -e "s/-o fastXmlLint.js/-s EXTRA_EXPORTED_RUNTIME_METHODS='[\"ccall\", \"cwrap\"]' -o fastXmlLint.js/g" -i Makefile.emEnv
139+ '';
140+
141+ buildPhase = ''
142+ HOME=$TMPDIR
143+ make -f Makefile.emEnv
144+ '';
145+
146+ outputs = [ "out" "doc" ];
147+
148+ installPhase = ''
149+ mkdir -p $out/share
150+ mkdir -p $doc/share/${name}
151+
152+ cp Demo* $out/share
153+ cp -R codemirror-5.12 $out/share
154+ cp fastXmlLint.js* $out/share
155+ cp *.xsd $out/share
156+ cp *.js $out/share
157+ cp *.xhtml $out/share
158+ cp *.html $out/share
159+ cp *.json $out/share
160+ cp *.rng $out/share
161+ cp README.md $doc/share/${name}
162+ '';
163+ checkPhase = ''
164+
165+ '';
166+ };
167+
168+### Declarative debugging
169+
170+Use `nix-shell -I nixpkgs=/some/dir/nixpkgs -A emscriptenPackages.libz` and from there you can go trough the individual steps. This makes it easy to build a good `unit test` or list the files of the project.
171+
172+1. `nix-shell -I nixpkgs=/some/dir/nixpkgs -A emscriptenPackages.libz`
173+2. `cd /tmp/`
174+3. `unpackPhase`
175+4. cd libz-1.2.3
176+5. `configurePhase`
177+6. `buildPhase`
178+7. ... happy hacking...
179+
180+## Summary
181+
182+Using this toolchain makes it easy to leverage `nix` from NixOS, MacOSX or even Windows (WSL+ubuntu+nix). This toolchain is reproducible, behaves like the rest of the packages from nixpkgs and contains a set of well working examples to learn and adapt from.
183+
184+If in trouble, ask the maintainers.
185+
doc/languages-frameworks/go.xml+84−90
@@ -1,14 +1,14 @@
11<section xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="sec-language-go">
4+ <title>Go</title>
45
5−<title>Go</title>
6+ <para>
7+ The function <varname>buildGoPackage</varname> builds standard Go programs.
8+ </para>
69
7−<para>The function <varname>buildGoPackage</varname> builds
8−standard Go programs.
9−</para>
10−
11−<example xml:id='ex-buildGoPackage'><title>buildGoPackage</title>
10+ <example xml:id='ex-buildGoPackage'>
11+ <title>buildGoPackage</title>
1212<programlisting>
1313deis = buildGoPackage rec {
1414 name = "deis-${version}";
@@ -29,55 +29,56 @@ deis = buildGoPackage rec {
2929 buildFlags = "--tags release"; <co xml:id='ex-buildGoPackage-4' />
3030}
3131</programlisting>
32−</example>
33−
34−<para><xref linkend='ex-buildGoPackage'/> is an example expression using buildGoPackage,
35−the following arguments are of special significance to the function:
36−
37−<calloutlist>
38−
39− <callout arearefs='ex-buildGoPackage-1'>
32+ </example>
33+
34+ <para>
35+ <xref linkend='ex-buildGoPackage'/> is an example expression using
36+ buildGoPackage, the following arguments are of special significance to the
37+ function:
38+ <calloutlist>
39+ <callout arearefs='ex-buildGoPackage-1'>
4040 <para>
41− <varname>goPackagePath</varname> specifies the package's canonical Go import path.
41+ <varname>goPackagePath</varname> specifies the package's canonical Go
42+ import path.
4243 </para>
43− </callout>
44−
45− <callout arearefs='ex-buildGoPackage-2'>
44+ </callout>
45+ <callout arearefs='ex-buildGoPackage-2'>
4646 <para>
47− <varname>subPackages</varname> limits the builder from building child packages that
48− have not been listed. If <varname>subPackages</varname> is not specified, all child
49− packages will be built.
47+ <varname>subPackages</varname> limits the builder from building child
48+ packages that have not been listed. If <varname>subPackages</varname> is
49+ not specified, all child packages will be built.
5050 </para>
5151 <para>
52− In this example only <literal>github.com/deis/deis/client</literal> will be built.
52+ In this example only <literal>github.com/deis/deis/client</literal> will
53+ be built.
5354 </para>
54− </callout>
55−
56− <callout arearefs='ex-buildGoPackage-3'>
55+ </callout>
56+ <callout arearefs='ex-buildGoPackage-3'>
5757 <para>
58− <varname>goDeps</varname> is where the Go dependencies of a Go program are listed
59− as a list of package source identified by Go import path.
60− It could be imported as a separate <varname>deps.nix</varname> file for
61− readability. The dependency data structure is described below.
58+ <varname>goDeps</varname> is where the Go dependencies of a Go program are
59+ listed as a list of package source identified by Go import path. It could
60+ be imported as a separate <varname>deps.nix</varname> file for
61+ readability. The dependency data structure is described below.
6262 </para>
63− </callout>
64−
65− <callout arearefs='ex-buildGoPackage-4'>
63+ </callout>
64+ <callout arearefs='ex-buildGoPackage-4'>
6665 <para>
67− <varname>buildFlags</varname> is a list of flags passed to the go build command.
66+ <varname>buildFlags</varname> is a list of flags passed to the go build
67+ command.
6868 </para>
69− </callout>
70−
71−</calloutlist>
72−
73−</para>
74−
75−<para>The <varname>goDeps</varname> attribute can be imported from a separate
76− <varname>nix</varname> file that defines which Go libraries are needed and should
77− be included in <varname>GOPATH</varname> for <varname>buildPhase</varname>.
78−</para>
79−
80−<example xml:id='ex-goDeps'><title>deps.nix</title>
69+ </callout>
70+ </calloutlist>
71+ </para>
72+
73+ <para>
74+ The <varname>goDeps</varname> attribute can be imported from a separate
75+ <varname>nix</varname> file that defines which Go libraries are needed and
76+ should be included in <varname>GOPATH</varname> for
77+ <varname>buildPhase</varname>.
78+ </para>
79+
80+ <example xml:id='ex-goDeps'>
81+ <title>deps.nix</title>
8182<programlisting>
8283[ <co xml:id='ex-goDeps-1' />
8384 {
@@ -100,67 +101,60 @@ the following arguments are of special significance to the function:
100101 }
101102]
102103</programlisting>
103−</example>
104+ </example>
104105
105−<para>
106−
107−<calloutlist>
108−
109− <callout arearefs='ex-goDeps-1'>
106+ <para>
107+ <calloutlist>
108+ <callout arearefs='ex-goDeps-1'>
110109 <para>
111− <varname>goDeps</varname> is a list of Go dependencies.
110+ <varname>goDeps</varname> is a list of Go dependencies.
112111 </para>
113− </callout>
114−
115− <callout arearefs='ex-goDeps-2'>
112+ </callout>
113+ <callout arearefs='ex-goDeps-2'>
116114 <para>
117− <varname>goPackagePath</varname> specifies Go package import path.
115+ <varname>goPackagePath</varname> specifies Go package import path.
118116 </para>
119− </callout>
120−
121− <callout arearefs='ex-goDeps-3'>
117+ </callout>
118+ <callout arearefs='ex-goDeps-3'>
122119 <para>
123− <varname>fetch type</varname> that needs to be used to get package source. If <varname>git</varname>
124− is used there should be <varname>url</varname>, <varname>rev</varname> and <varname>sha256</varname>
125− defined next to it.
120+ <varname>fetch type</varname> that needs to be used to get package source.
121+ If <varname>git</varname> is used there should be <varname>url</varname>,
122+ <varname>rev</varname> and <varname>sha256</varname> defined next to it.
126123 </para>
127− </callout>
128−
129−</calloutlist>
130−
131−</para>
132−
133−<para>To extract dependency information from a Go package in automated way use <link xlink:href="https://github.com/kamilchm/go2nix">go2nix</link>.
134− It can produce complete derivation and <varname>goDeps</varname> file for Go programs.</para>
135−
136−<para>
137− <varname>buildGoPackage</varname> produces <xref linkend='chap-multiple-output' xrefstyle="select: title" />
138− where <varname>bin</varname> includes program binaries. You can test build a Go binary as follows:
139−
140− <screen>
124+ </callout>
125+ </calloutlist>
126+ </para>
127+
128+ <para>
129+ To extract dependency information from a Go package in automated way use
130+ <link xlink:href="https://github.com/kamilchm/go2nix">go2nix</link>. It can
131+ produce complete derivation and <varname>goDeps</varname> file for Go
132+ programs.
133+ </para>
134+
135+ <para>
136+ <varname>buildGoPackage</varname> produces
137+ <xref linkend='chap-multiple-output' xrefstyle="select: title" /> where
138+ <varname>bin</varname> includes program binaries. You can test build a Go
139+ binary as follows:
140+<screen>
141141 $ nix-build -A deis.bin
142142 </screen>
143−
144143 or build all outputs with:
145−
146− <screen>
144+<screen>
147145 $ nix-build -A deis.all
148146 </screen>
147+ <varname>bin</varname> output will be installed by default with
148+ <varname>nix-env -i</varname> or <varname>systemPackages</varname>.
149+ </para>
149150
150− <varname>bin</varname> output will be installed by default with <varname>nix-env -i</varname>
151− or <varname>systemPackages</varname>.
152−
153−</para>
154−
155−<para>
156−You may use Go packages installed into the active Nix profiles by adding
157−the following to your ~/.bashrc:
158−
151+ <para>
152+ You may use Go packages installed into the active Nix profiles by adding the
153+ following to your ~/.bashrc:
159154<screen>
160155for p in $NIX_PROFILES; do
161156 GOPATH="$p/share/go:$GOPATH"
162157done
163158</screen>
164−</para>
165−
159+ </para>
166160</section>
doc/languages-frameworks/haskell.md → doc/languages-frameworks/haskell.section.mdrenamed+51−3
@@ -666,6 +666,56 @@ prefer one built with GHC 7.8.x in the first place. However, for users who
666666cannot use GHC 7.10.x at all for some reason, the approach of downgrading to an
667667older version might be useful.
668668
669+### How to override packages in all compiler-specific package sets
670+
671+In the previous section we learned how to override a package in a single
672+compiler-specific package set. You may have some overrides defined that you want
673+to use across multiple package sets. To accomplish this you could use the
674+technique that we learned in the previous section by repeating the overrides for
675+all the compiler-specific package sets. For example:
676+
677+```nix
678+{
679+ packageOverrides = super: let self = super.pkgs; in
680+ {
681+ haskell = super.haskell // {
682+ packages = super.haskell.packages // {
683+ ghc784 = super.haskell.packages.ghc784.override {
684+ overrides = self: super: {
685+ my-package = ...;
686+ my-other-package = ...;
687+ };
688+ };
689+ ghc822 = super.haskell.packages.ghc784.override {
690+ overrides = self: super: {
691+ my-package = ...;
692+ my-other-package = ...;
693+ };
694+ };
695+ ...
696+ };
697+ };
698+ };
699+}
700+```
701+
702+However there's a more convenient way to override all compiler-specific package
703+sets at once:
704+
705+```nix
706+{
707+ packageOverrides = super: let self = super.pkgs; in
708+ {
709+ haskell = super.haskell // {
710+ packageOverrides = self: super: {
711+ my-package = ...;
712+ my-other-package = ...;
713+ };
714+ };
715+ };
716+}
717+```
718+
669719### How to recover from GHC's infamous non-deterministic library ID bug
670720
671721GHC and distributed build farms don't get along well:
@@ -689,9 +739,7 @@ might be necessary to purge the local caches that store data from those
689739machines to disable these binary channels for the duration of the previous
690740command, i.e. by running:
691741```shell
692−rm /nix/var/nix/binary-cache-v3.sqlite
693−rm /nix/var/nix/manifests/*
694−rm /nix/var/nix/channel-cache/*
742+rm ~/.cache/nix/binary-cache*.sqlite
695743```
696744
697745### Builds on Darwin fail with `math.h` not found
doc/languages-frameworks/idris.section.mdnew file+39
@@ -0,0 +1,39 @@
1+Idris packages
2+==============
3+
4+This directory contains build rules for idris packages. In addition,
5+it contains several functions to build and compose those packages.
6+Everything is exposed to the user via the `idrisPackages` attribute.
7+
8+callPackage
9+------------
10+
11+This is like the normal nixpkgs callPackage function, specialized to
12+idris packages.
13+
14+builtins
15+---------
16+
17+This is a list of all of the libraries that come packaged with Idris
18+itself.
19+
20+build-idris-package
21+--------------------
22+
23+A function to build an idris package. Its sole argument is a set like
24+you might pass to `stdenv.mkDerivation`, except `build-idris-package`
25+sets several attributes for you. See `build-idris-package.nix` for
26+details.
27+
28+build-builtin-package
29+----------------------
30+
31+A version of `build-idris-package` specialized to builtin libraries.
32+Mostly for internal use.
33+
34+with-packages
35+-------------
36+
37+Bundle idris together with a list of packages. Because idris currently
38+only supports a single directory in its library path, you must include
39+all desired libraries here, including `prelude` and `base`.
doc/languages-frameworks/index.xml+27−31
@@ -1,35 +1,31 @@
11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xi="http://www.w3.org/2001/XInclude"
33 xml:id="chap-language-support">
4−
5−<title>Support for specific programming languages and frameworks</title>
6−
7−<para>The <link linkend="chap-stdenv">standard build
8−environment</link> makes it easy to build typical Autotools-based
9−packages with very little code. Any other kind of package can be
10−accomodated by overriding the appropriate phases of
11−<literal>stdenv</literal>. However, there are specialised functions
12−in Nixpkgs to easily build packages for other programming languages,
13−such as Perl or Haskell. These are described in this chapter.</para>
14−
15−
16−<xi:include href="beam.xml" />
17−<xi:include href="bower.xml" />
18−<xi:include href="coq.xml" />
19−<xi:include href="go.xml" />
20−<xi:include href="haskell.xml" />
21−<xi:include href="idris.xml" /> <!-- generated from ../../pkgs/development/idris-modules/README.md -->
22−<xi:include href="java.xml" />
23−<xi:include href="lua.xml" />
24−<xi:include href="node.xml" /> <!-- generated from ../../pkgs/development/node-packages/README.md -->
25−<xi:include href="perl.xml" />
26−<xi:include href="python.xml" />
27−<xi:include href="qt.xml" />
28−<xi:include href="r.xml" /> <!-- generated from ../../pkgs/development/r-modules/README.md -->
29−<xi:include href="ruby.xml" />
30−<xi:include href="rust.xml" />
31−<xi:include href="texlive.xml" />
32−<xi:include href="vim.xml" />
33−
34−
4+ <title>Support for specific programming languages and frameworks</title>
5+ <para>
6+ The <link linkend="chap-stdenv">standard build environment</link> makes it
7+ easy to build typical Autotools-based packages with very little code. Any
8+ other kind of package can be accomodated by overriding the appropriate phases
9+ of <literal>stdenv</literal>. However, there are specialised functions in
10+ Nixpkgs to easily build packages for other programming languages, such as
11+ Perl or Haskell. These are described in this chapter.
12+ </para>
13+ <xi:include href="beam.xml" />
14+ <xi:include href="bower.xml" />
15+ <xi:include href="coq.xml" />
16+ <xi:include href="go.xml" />
17+ <xi:include href="haskell.section.xml" />
18+ <xi:include href="idris.section.xml" />
19+ <xi:include href="java.xml" />
20+ <xi:include href="lua.xml" />
21+ <xi:include href="node.section.xml" />
22+ <xi:include href="perl.xml" />
23+ <xi:include href="python.section.xml" />
24+ <xi:include href="qt.xml" />
25+ <xi:include href="r.section.xml" />
26+ <xi:include href="ruby.xml" />
27+ <xi:include href="rust.section.xml" />
28+ <xi:include href="texlive.xml" />
29+ <xi:include href="vim.section.xml" />
30+ <xi:include href="emscripten.section.xml" />
3531</chapter>
doc/languages-frameworks/java.xml+40−53
@@ -1,11 +1,10 @@
11<section xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="sec-language-java">
4+ <title>Java</title>
45
5−<title>Java</title>
6−
7−<para>Ant-based Java packages are typically built from source as follows:
8−
6+ <para>
7+ Ant-based Java packages are typically built from source as follows:
98<programlisting>
109stdenv.mkDerivation {
1110 name = "...";
@@ -16,33 +15,33 @@ stdenv.mkDerivation {
1615 buildPhase = "ant";
1716}
1817</programlisting>
19−
20−Note that <varname>jdk</varname> is an alias for the OpenJDK.</para>
21−
22−<para>JAR files that are intended to be used by other packages should
23−be installed in <filename>$out/share/java</filename>. The OpenJDK has
24−a stdenv setup hook that adds any JARs in the
25−<filename>share/java</filename> directories of the build inputs to the
26−<envar>CLASSPATH</envar> environment variable. For instance, if the
27−package <literal>libfoo</literal> installs a JAR named
28−<filename>foo.jar</filename> in its <filename>share/java</filename>
29−directory, and another package declares the attribute
30−
18+ Note that <varname>jdk</varname> is an alias for the OpenJDK.
19+ </para>
20+
21+ <para>
22+ JAR files that are intended to be used by other packages should be installed
23+ in <filename>$out/share/java</filename>. The OpenJDK has a stdenv setup hook
24+ that adds any JARs in the <filename>share/java</filename> directories of the
25+ build inputs to the <envar>CLASSPATH</envar> environment variable. For
26+ instance, if the package <literal>libfoo</literal> installs a JAR named
27+ <filename>foo.jar</filename> in its <filename>share/java</filename>
28+ directory, and another package declares the attribute
3129<programlisting>
3230buildInputs = [ jdk libfoo ];
3331</programlisting>
34−
35−then <envar>CLASSPATH</envar> will be set to
36−<filename>/nix/store/...-libfoo/share/java/foo.jar</filename>.</para>
37−
38−<para>Private JARs
39−should be installed in a location like
40−<filename>$out/share/<replaceable>package-name</replaceable></filename>.</para>
41−
42−<para>If your Java package provides a program, you need to generate a
43−wrapper script to run it using the OpenJRE. You can use
44−<literal>makeWrapper</literal> for this:
45−
32+ then <envar>CLASSPATH</envar> will be set to
33+ <filename>/nix/store/...-libfoo/share/java/foo.jar</filename>.
34+ </para>
35+
36+ <para>
37+ Private JARs should be installed in a location like
38+ <filename>$out/share/<replaceable>package-name</replaceable></filename>.
39+ </para>
40+
41+ <para>
42+ If your Java package provides a program, you need to generate a wrapper
43+ script to run it using the OpenJRE. You can use
44+ <literal>makeWrapper</literal> for this:
4645<programlisting>
4746buildInputs = [ makeWrapper ];
4847
@@ -53,32 +52,20 @@ installPhase =
5352 --add-flags "-cp $out/share/java/foo.jar org.foo.Main"
5453 '';
5554</programlisting>
56−
57−Note the use of <literal>jre</literal>, which is the part of the
58−OpenJDK package that contains the Java Runtime Environment. By using
59−<literal>${jre}/bin/java</literal> instead of
60−<literal>${jdk}/bin/java</literal>, you prevent your package from
61−depending on the JDK at runtime.</para>
62−
63−<para>It is possible to use a different Java compiler than
64−<command>javac</command> from the OpenJDK. For instance, to use the
65−Eclipse Java Compiler:
66−
67−<programlisting>
68−buildInputs = [ jre ant ecj ];
69−</programlisting>
70−
71−(Note that here you don’t need the full JDK as an input, but just the
72−JRE.) The ECJ has a stdenv setup hook that sets some environment
73−variables to cause Ant to use ECJ, but this doesn’t work with all Ant
74−files. Similarly, you can use the GNU Java Compiler:
75−
55+ Note the use of <literal>jre</literal>, which is the part of the OpenJDK
56+ package that contains the Java Runtime Environment. By using
57+ <literal>${jre}/bin/java</literal> instead of
58+ <literal>${jdk}/bin/java</literal>, you prevent your package from depending
59+ on the JDK at runtime.
60+ </para>
61+
62+ <para>
63+ It is possible to use a different Java compiler than <command>javac</command>
64+ from the OpenJDK. For instance, to use the GNU Java Compiler:
7665<programlisting>
7766buildInputs = [ gcj ant ];
7867</programlisting>
79−
80−Here, Ant will automatically use <command>gij</command> (the GNU Java
81−Runtime) instead of the OpenJRE.</para>
82−
68+ Here, Ant will automatically use <command>gij</command> (the GNU Java
69+ Runtime) instead of the OpenJRE.
70+ </para>
8371</section>
84−
doc/languages-frameworks/lua.xml+20−23
@@ -1,24 +1,22 @@
11<section xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="sec-language-lua">
4+ <title>Lua</title>
45
5−<title>Lua</title>
6−
7−<para>
8− Lua packages are built by the <varname>buildLuaPackage</varname> function. This function is
9− implemented
10− in <link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/lua-modules/generic/default.nix">
6+ <para>
7+ Lua packages are built by the <varname>buildLuaPackage</varname> function.
8+ This function is implemented in
9+ <link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/lua-modules/generic/default.nix">
1110 <filename>pkgs/development/lua-modules/generic/default.nix</filename></link>
1211 and works similarly to <varname>buildPerlPackage</varname>. (See
1312 <xref linkend="sec-language-perl"/> for details.)
14−</para>
13+ </para>
1514
16−<para>
17− Lua packages are defined
18− in <link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/lua-packages.nix"><filename>pkgs/top-level/lua-packages.nix</filename></link>.
15+ <para>
16+ Lua packages are defined in
17+ <link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/lua-packages.nix"><filename>pkgs/top-level/lua-packages.nix</filename></link>.
1918 Most of them are simple. For example:
20−
21− <programlisting>
19+<programlisting>
2220fileSystem = buildLuaPackage {
2321 name = "filesystem-1.6.2";
2422 src = fetchurl {
@@ -32,20 +30,19 @@ fileSystem = buildLuaPackage {
3230 };
3331};
3432 </programlisting>
35−</para>
33+ </para>
3634
37−<para>
35+ <para>
3836 Though, more complicated package should be placed in a seperate file in
3937 <link
4038 xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/lua-modules"><filename>pkgs/development/lua-modules</filename></link>.
41−</para>
42−<para>
43− Lua packages accept additional parameter <varname>disabled</varname>, which defines
44− the condition of disabling package from luaPackages. For example, if package has
45− <varname>disabled</varname> assigned to <literal>lua.luaversion != "5.1"</literal>,
46− it will not be included in any luaPackages except lua51Packages, making it
47− only be built for lua 5.1.
48−</para>
39+ </para>
4940
41+ <para>
42+ Lua packages accept additional parameter <varname>disabled</varname>, which
43+ defines the condition of disabling package from luaPackages. For example, if
44+ package has <varname>disabled</varname> assigned to <literal>lua.luaversion
45+ != "5.1"</literal>, it will not be included in any luaPackages except
46+ lua51Packages, making it only be built for lua 5.1.
47+ </para>
5048</section>
51−
doc/languages-frameworks/node.section.mdnew file+51
@@ -0,0 +1,51 @@
1+Node.js packages
2+================
3+The `pkgs/development/node-packages` folder contains a generated collection of
4+[NPM packages](https://npmjs.com/) that can be installed with the Nix package
5+manager.
6+
7+As a rule of thumb, the package set should only provide *end user* software
8+packages, such as command-line utilities. Libraries should only be added to the
9+package set if there is a non-NPM package that requires it.
10+
11+When it is desired to use NPM libraries in a development project, use the
12+`node2nix` generator directly on the `package.json` configuration file of the
13+project.
14+
15+The package set also provides support for multiple Node.js versions. The policy
16+is that a new package should be added to the collection for the latest stable LTS
17+release (which is currently 6.x), unless there is an explicit reason to support
18+a different release.
19+
20+If your package uses native addons, you need to examine what kind of native
21+build system it uses. Here are some examples:
22+
23+* `node-gyp`
24+* `node-gyp-builder`
25+* `node-pre-gyp`
26+
27+After you have identified the correct system, you need to override your package
28+expression while adding in build system as a build input. For example, `dat`
29+requires `node-gyp-build`, so we override its expression in `default-v6.nix`:
30+
31+```nix
32+dat = nodePackages.dat.override (oldAttrs: {
33+ buildInputs = oldAttrs.buildInputs ++ [ nodePackages.node-gyp-build ];
34+});
35+```
36+
37+To add a package from NPM to nixpkgs:
38+
39+ 1. Modify `pkgs/development/node-packages/node-packages-v6.json` to add, update
40+ or remove package entries. (Or `pkgs/development/node-packages/node-packages-v4.json`
41+ for packages depending on Node.js 4.x)
42+ 2. Run the script: `(cd pkgs/development/node-packages && ./generate.sh)`.
43+ 3. Build your new package to test your changes:
44+ `cd /path/to/nixpkgs && nix-build -A nodePackages.<new-or-updated-package>`.
45+ To build against a specific Node.js version (e.g. 4.x):
46+ `nix-build -A nodePackages_4_x.<new-or-updated-package>`
47+ 4. Add and commit all modified and generated files.
48+
49+For more information about the generation process, consult the
50+[README.md](https://github.com/svanderburg/node2nix) file of the `node2nix`
51+tool.
doc/languages-frameworks/perl.xml+115−104
@@ -1,24 +1,27 @@
11<section xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="sec-language-perl">
4−
5−<title>Perl</title>
6−
7−<para>Nixpkgs provides a function <varname>buildPerlPackage</varname>,
8−a generic package builder function for any Perl package that has a
9−standard <varname>Makefile.PL</varname>. It’s implemented in <link
10−xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/perl-modules/generic"><filename>pkgs/development/perl-modules/generic</filename></link>.</para>
11−
12−<para>Perl packages from CPAN are defined in <link
4+ <title>Perl</title>
5+
6+ <para>
7+ Nixpkgs provides a function <varname>buildPerlPackage</varname>, a generic
8+ package builder function for any Perl package that has a standard
9+ <varname>Makefile.PL</varname>. It’s implemented in
10+ <link
11+xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/perl-modules/generic"><filename>pkgs/development/perl-modules/generic</filename></link>.
12+ </para>
13+
14+ <para>
15+ Perl packages from CPAN are defined in
16+ <link
1317xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/perl-packages.nix"><filename>pkgs/top-level/perl-packages.nix</filename></link>,
14−rather than <filename>pkgs/all-packages.nix</filename>. Most Perl
15−packages are so straight-forward to build that they are defined here
16−directly, rather than having a separate function for each package
17−called from <filename>perl-packages.nix</filename>. However, more
18−complicated packages should be put in a separate file, typically in
19−<filename>pkgs/development/perl-modules</filename>. Here is an
20−example of the former:
21−
18+ rather than <filename>pkgs/all-packages.nix</filename>. Most Perl packages
19+ are so straight-forward to build that they are defined here directly, rather
20+ than having a separate function for each package called from
21+ <filename>perl-packages.nix</filename>. However, more complicated packages
22+ should be put in a separate file, typically in
23+ <filename>pkgs/development/perl-modules</filename>. Here is an example of the
24+ former:
2225<programlisting>
2326ClassC3 = buildPerlPackage rec {
2427 name = "Class-C3-0.21";
@@ -28,74 +31,72 @@ ClassC3 = buildPerlPackage rec {
2831 };
2932};
3033</programlisting>
31−
32−Note the use of <literal>mirror://cpan/</literal>, and the
33−<literal>${name}</literal> in the URL definition to ensure that the
34−name attribute is consistent with the source that we’re actually
35−downloading. Perl packages are made available in
36−<filename>all-packages.nix</filename> through the variable
37−<varname>perlPackages</varname>. For instance, if you have a package
38−that needs <varname>ClassC3</varname>, you would typically write
39−
34+ Note the use of <literal>mirror://cpan/</literal>, and the
35+ <literal>${name}</literal> in the URL definition to ensure that the name
36+ attribute is consistent with the source that we’re actually downloading.
37+ Perl packages are made available in <filename>all-packages.nix</filename>
38+ through the variable <varname>perlPackages</varname>. For instance, if you
39+ have a package that needs <varname>ClassC3</varname>, you would typically
40+ write
4041<programlisting>
4142foo = import ../path/to/foo.nix {
4243 inherit stdenv fetchurl ...;
4344 inherit (perlPackages) ClassC3;
4445};
4546</programlisting>
46−
47−in <filename>all-packages.nix</filename>. You can test building a
48−Perl package as follows:
49−
47+ in <filename>all-packages.nix</filename>. You can test building a Perl
48+ package as follows:
5049<screen>
5150$ nix-build -A perlPackages.ClassC3
5251</screen>
53−
54−<varname>buildPerlPackage</varname> adds <literal>perl-</literal> to
55−the start of the name attribute, so the package above is actually
56−called <literal>perl-Class-C3-0.21</literal>. So to install it, you
57−can say:
58−
52+ <varname>buildPerlPackage</varname> adds <literal>perl-</literal> to the
53+ start of the name attribute, so the package above is actually called
54+ <literal>perl-Class-C3-0.21</literal>. So to install it, you can say:
5955<screen>
6056$ nix-env -i perl-Class-C3
6157</screen>
62−
63−(Of course you can also install using the attribute name:
64−<literal>nix-env -i -A perlPackages.ClassC3</literal>.)</para>
65−
66−<para>So what does <varname>buildPerlPackage</varname> do? It does
67−the following:
68−
69−<orderedlist>
70−
71− <listitem><para>In the configure phase, it calls <literal>perl
72− Makefile.PL</literal> to generate a Makefile. You can set the
73− variable <varname>makeMakerFlags</varname> to pass flags to
74− <filename>Makefile.PL</filename></para></listitem>
75−
76− <listitem><para>It adds the contents of the <envar>PERL5LIB</envar>
77− environment variable to <literal>#! .../bin/perl</literal> line of
78− Perl scripts as <literal>-I<replaceable>dir</replaceable></literal>
79− flags. This ensures that a script can find its
80− dependencies.</para></listitem>
81−
82− <listitem><para>In the fixup phase, it writes the propagated build
83− inputs (<varname>propagatedBuildInputs</varname>) to the file
84− <filename>$out/nix-support/propagated-user-env-packages</filename>.
85− <command>nix-env</command> recursively installs all packages listed
86− in this file when you install a package that has it. This ensures
87− that a Perl package can find its dependencies.</para></listitem>
88−
89−</orderedlist>
90−
91−</para>
92−
93−<para><varname>buildPerlPackage</varname> is built on top of
94−<varname>stdenv</varname>, so everything can be customised in the
95−usual way. For instance, the <literal>BerkeleyDB</literal> module has
96−a <varname>preConfigure</varname> hook to generate a configuration
97−file used by <filename>Makefile.PL</filename>:
98−
58+ (Of course you can also install using the attribute name: <literal>nix-env -i
59+ -A perlPackages.ClassC3</literal>.)
60+ </para>
61+
62+ <para>
63+ So what does <varname>buildPerlPackage</varname> do? It does the following:
64+ <orderedlist>
65+ <listitem>
66+ <para>
67+ In the configure phase, it calls <literal>perl Makefile.PL</literal> to
68+ generate a Makefile. You can set the variable
69+ <varname>makeMakerFlags</varname> to pass flags to
70+ <filename>Makefile.PL</filename>
71+ </para>
72+ </listitem>
73+ <listitem>
74+ <para>
75+ It adds the contents of the <envar>PERL5LIB</envar> environment variable
76+ to <literal>#! .../bin/perl</literal> line of Perl scripts as
77+ <literal>-I<replaceable>dir</replaceable></literal> flags. This ensures
78+ that a script can find its dependencies.
79+ </para>
80+ </listitem>
81+ <listitem>
82+ <para>
83+ In the fixup phase, it writes the propagated build inputs
84+ (<varname>propagatedBuildInputs</varname>) to the file
85+ <filename>$out/nix-support/propagated-user-env-packages</filename>.
86+ <command>nix-env</command> recursively installs all packages listed in
87+ this file when you install a package that has it. This ensures that a Perl
88+ package can find its dependencies.
89+ </para>
90+ </listitem>
91+ </orderedlist>
92+ </para>
93+
94+ <para>
95+ <varname>buildPerlPackage</varname> is built on top of
96+ <varname>stdenv</varname>, so everything can be customised in the usual way.
97+ For instance, the <literal>BerkeleyDB</literal> module has a
98+ <varname>preConfigure</varname> hook to generate a configuration file used by
99+ <filename>Makefile.PL</filename>:
99100<programlisting>
100101{ buildPerlPackage, fetchurl, db }:
101102
@@ -113,18 +114,15 @@ buildPerlPackage rec {
113114 '';
114115}
115116</programlisting>
116−
117−</para>
118−
119−<para>Dependencies on other Perl packages can be specified in the
120−<varname>buildInputs</varname> and
121−<varname>propagatedBuildInputs</varname> attributes. If something is
122−exclusively a build-time dependency, use
123−<varname>buildInputs</varname>; if it’s (also) a runtime dependency,
124−use <varname>propagatedBuildInputs</varname>. For instance, this
125−builds a Perl module that has runtime dependencies on a bunch of other
126−modules:
127−
117+ </para>
118+
119+ <para>
120+ Dependencies on other Perl packages can be specified in the
121+ <varname>buildInputs</varname> and <varname>propagatedBuildInputs</varname>
122+ attributes. If something is exclusively a build-time dependency, use
123+ <varname>buildInputs</varname>; if it’s (also) a runtime dependency, use
124+ <varname>propagatedBuildInputs</varname>. For instance, this builds a Perl
125+ module that has runtime dependencies on a bunch of other modules:
128126<programlisting>
129127ClassC3Componentised = buildPerlPackage rec {
130128 name = "Class-C3-Componentised-1.0004";
@@ -137,24 +135,26 @@ ClassC3Componentised = buildPerlPackage rec {
137135 ];
138136};
139137</programlisting>
138+ </para>
140139
141−</para>
140+ <section xml:id="ssec-generation-from-CPAN">
141+ <title>Generation from CPAN</title>
142142
143−<section xml:id="ssec-generation-from-CPAN"><title>Generation from CPAN</title>
144−
145−<para>Nix expressions for Perl packages can be generated (almost)
146−automatically from CPAN. This is done by the program
147−<command>nix-generate-from-cpan</command>, which can be installed
148−as follows:</para>
143+ <para>
144+ Nix expressions for Perl packages can be generated (almost) automatically
145+ from CPAN. This is done by the program
146+ <command>nix-generate-from-cpan</command>, which can be installed as
147+ follows:
148+ </para>
149149
150150<screen>
151151$ nix-env -i nix-generate-from-cpan
152152</screen>
153153
154−<para>This program takes a Perl module name, looks it up on CPAN,
155−fetches and unpacks the corresponding package, and prints a Nix
156−expression on standard output. For example:
157−
154+ <para>
155+ This program takes a Perl module name, looks it up on CPAN, fetches and
156+ unpacks the corresponding package, and prints a Nix expression on standard
157+ output. For example:
158158<screen>
159159$ nix-generate-from-cpan XML::Simple
160160 XMLSimple = buildPerlPackage rec {
@@ -170,12 +170,23 @@ $ nix-generate-from-cpan XML::Simple
170170 };
171171 };
172172</screen>
173−
174−The output can be pasted into
175−<filename>pkgs/top-level/perl-packages.nix</filename> or wherever else
176−you need it.</para>
177−
173+ The output can be pasted into
174+ <filename>pkgs/top-level/perl-packages.nix</filename> or wherever else you
175+ need it.
176+ </para>
177+ </section>
178+
179+ <section xml:id="ssec-perl-cross-compilation">
180+ <title>Cross-compiling modules</title>
181+
182+ <para>
183+ Nixpkgs has experimental support for cross-compiling Perl modules. In many
184+ cases, it will just work out of the box, even for modules with native
185+ extensions. Sometimes, however, the Makefile.PL for a module may
186+ (indirectly) import a native module. In that case, you will need to make a
187+ stub for that module that will satisfy the Makefile.PL and install it into
188+ <filename>lib/perl5/site_perl/cross_perl/${perl.version}</filename>. See the
189+ <varname>postInstall</varname> for <varname>DBI</varname> for an example.
190+ </para>
191+ </section>
178192</section>
179−
180−</section>
181−
doc/languages-frameworks/python.md → doc/languages-frameworks/python.section.mdrenamed+6−4
@@ -374,7 +374,7 @@ and `CFLAGS`.
374374 description = "A pythonic wrapper around FFTW, the FFT library, presenting a unified interface for all the supported transforms";
375375 homepage = http://hgomersall.github.com/pyFFTW/;
376376 license = with licenses; [ bsd2 bsd3 ];
377− maintainer = with maintainers; [ fridh ];
377+ maintainers = with maintainers; [ fridh ];
378378 };
379379 };
380380}
@@ -871,8 +871,10 @@ Executing `python setup.py bdist_wheel` in a `nix-shell `fails with
871871```
872872ValueError: ZIP does not support timestamps before 1980
873873```
874−This is because files are included that depend on items in the Nix store which have a timestamp of, that is, it corresponds to January the 1st, 1970 at 00:00:00. And as the error informs you, ZIP does not support that.
875−The command `bdist_wheel` takes into account `SOURCE_DATE_EPOCH`, and `nix-shell` sets this to 1. By setting it to a value corresponding to 1980 or later, or by unsetting it, it is possible to build wheels.
874+
875+This is because files from the Nix store (which have a timestamp of the UNIX epoch of January 1, 1970) are included in the .ZIP, but .ZIP archives follow the DOS convention of counting timestamps from 1980.
876+
877+The command `bdist_wheel` reads the `SOURCE_DATE_EPOCH` environment variable, which `nix-shell` sets to 1. Unsetting this variable or giving it a value corresponding to 1980 or later enables building wheels.
876878
877879Use 1980 as timestamp:
878880```shell
@@ -882,7 +884,7 @@ or the current time:
882884```shell
883885nix-shell --run "SOURCE_DATE_EPOCH=$(date +%s) python3 setup.py bdist_wheel"
884886```
885−or unset:
887+or unset `SOURCE_DATE_EPOCH`:
886888```shell
887889nix-shell --run "unset SOURCE_DATE_EPOCH; python3 setup.py bdist_wheel"
888890```
doc/languages-frameworks/qt.xml+62−46
@@ -1,58 +1,74 @@
11<section xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="sec-language-qt">
4+ <title>Qt</title>
45
5−<title>Qt</title>
6−
7−<para>
8−Qt is a comprehensive desktop and mobile application development toolkit for C++.
9−Legacy support is available for Qt 3 and Qt 4, but all current development uses Qt 5.
10−The Qt 5 packages in Nixpkgs are updated frequently to take advantage of new features,
11−but older versions are typically retained until their support window ends.
12−The most important consideration in packaging Qt-based software is ensuring that each package and all its dependencies use the same version of Qt 5;
13−this consideration motivates most of the tools described below.
14−</para>
15−
16−<section xml:id="ssec-qt-libraries"><title>Packaging Libraries for Nixpkgs</title>
17−
18−<para>
19−Whenever possible, libraries that use Qt 5 should be built with each available version.
20−Packages providing libraries should be added to the top-level function <varname>mkLibsForQt5</varname>,
21−which is used to build a set of libraries for every Qt 5 version.
22−A special <varname>callPackage</varname> function is used in this scope to ensure that the entire dependency tree uses the same Qt 5 version.
23−Import dependencies unqualified, i.e., <literal>qtbase</literal> not <literal>qt5.qtbase</literal>.
24−<emphasis>Do not</emphasis> import a package set such as <literal>qt5</literal> or <literal>libsForQt5</literal>.
25−</para>
26−
27−<para>
28−If a library does not support a particular version of Qt 5, it is best to mark it as broken by setting its <literal>meta.broken</literal> attribute.
29−A package may be marked broken for certain versions by testing the <literal>qtbase.version</literal> attribute, which will always give the current Qt 5 version.
30−</para>
6+ <para>
7+ Qt is a comprehensive desktop and mobile application development toolkit for
8+ C++. Legacy support is available for Qt 3 and Qt 4, but all current
9+ development uses Qt 5. The Qt 5 packages in Nixpkgs are updated frequently to
10+ take advantage of new features, but older versions are typically retained
11+ until their support window ends. The most important consideration in
12+ packaging Qt-based software is ensuring that each package and all its
13+ dependencies use the same version of Qt 5; this consideration motivates most
14+ of the tools described below.
15+ </para>
3116
32−</section>
17+ <section xml:id="ssec-qt-libraries">
18+ <title>Packaging Libraries for Nixpkgs</title>
3319
34−<section xml:id="ssec-qt-applications"><title>Packaging Applications for Nixpkgs</title>
20+ <para>
21+ Whenever possible, libraries that use Qt 5 should be built with each
22+ available version. Packages providing libraries should be added to the
23+ top-level function <varname>mkLibsForQt5</varname>, which is used to build a
24+ set of libraries for every Qt 5 version. A special
25+ <varname>callPackage</varname> function is used in this scope to ensure that
26+ the entire dependency tree uses the same Qt 5 version. Import dependencies
27+ unqualified, i.e., <literal>qtbase</literal> not
28+ <literal>qt5.qtbase</literal>. <emphasis>Do not</emphasis> import a package
29+ set such as <literal>qt5</literal> or <literal>libsForQt5</literal>.
30+ </para>
3531
36−<para>
37−Call your application expression using <literal>libsForQt5.callPackage</literal> instead of <literal>callPackage</literal>.
38−Import dependencies unqualified, i.e., <literal>qtbase</literal> not <literal>qt5.qtbase</literal>.
39−<emphasis>Do not</emphasis> import a package set such as <literal>qt5</literal> or <literal>libsForQt5</literal>.
40−</para>
32+ <para>
33+ If a library does not support a particular version of Qt 5, it is best to
34+ mark it as broken by setting its <literal>meta.broken</literal> attribute. A
35+ package may be marked broken for certain versions by testing the
36+ <literal>qtbase.version</literal> attribute, which will always give the
37+ current Qt 5 version.
38+ </para>
39+ </section>
4140
42−<para>
43−Qt 5 maintains strict backward compatibility, so it is generally best to build an application package against the latest version using the <varname>libsForQt5</varname> library set.
44−In case a package does not build with the latest Qt version, it is possible to pick a set pinned to a particular version, e.g. <varname>libsForQt55</varname> for Qt 5.5, if that is the latest version the package supports.
45−If a package must be pinned to an older Qt version, be sure to file a bug upstream;
46−because Qt is strictly backwards-compatible, any incompatibility is by definition a bug in the application.
47−</para>
41+ <section xml:id="ssec-qt-applications">
42+ <title>Packaging Applications for Nixpkgs</title>
4843
49−<para>
50−When testing applications in Nixpkgs, it is a common practice to build the package with <literal>nix-build</literal> and run it using the created symbolic link.
51−This will not work with Qt applications, however, because they have many hard runtime requirements that can only be guaranteed if the package is actually installed.
52−To test a Qt application, install it with <literal>nix-env</literal> or run it inside <literal>nix-shell</literal>.
53−</para>
44+ <para>
45+ Call your application expression using
46+ <literal>libsForQt5.callPackage</literal> instead of
47+ <literal>callPackage</literal>. Import dependencies unqualified, i.e.,
48+ <literal>qtbase</literal> not <literal>qt5.qtbase</literal>. <emphasis>Do
49+ not</emphasis> import a package set such as <literal>qt5</literal> or
50+ <literal>libsForQt5</literal>.
51+ </para>
5452
55−</section>
53+ <para>
54+ Qt 5 maintains strict backward compatibility, so it is generally best to
55+ build an application package against the latest version using the
56+ <varname>libsForQt5</varname> library set. In case a package does not build
57+ with the latest Qt version, it is possible to pick a set pinned to a
58+ particular version, e.g. <varname>libsForQt55</varname> for Qt 5.5, if that
59+ is the latest version the package supports. If a package must be pinned to
60+ an older Qt version, be sure to file a bug upstream; because Qt is strictly
61+ backwards-compatible, any incompatibility is by definition a bug in the
62+ application.
63+ </para>
5664
65+ <para>
66+ When testing applications in Nixpkgs, it is a common practice to build the
67+ package with <literal>nix-build</literal> and run it using the created
68+ symbolic link. This will not work with Qt applications, however, because
69+ they have many hard runtime requirements that can only be guaranteed if the
70+ package is actually installed. To test a Qt application, install it with
71+ <literal>nix-env</literal> or run it inside <literal>nix-shell</literal>.
72+ </para>
73+ </section>
5774</section>
58−
doc/languages-frameworks/r.section.mdnew file+120
@@ -0,0 +1,120 @@
1+R packages
2+==========
3+
4+## Installation
5+
6+Define an environment for R that contains all the libraries that you'd like to
7+use by adding the following snippet to your $HOME/.config/nixpkgs/config.nix file:
8+
9+```nix
10+{
11+ packageOverrides = super: let self = super.pkgs; in
12+ {
13+
14+ rEnv = super.rWrapper.override {
15+ packages = with self.rPackages; [
16+ devtools
17+ ggplot2
18+ reshape2
19+ yaml
20+ optparse
21+ ];
22+ };
23+ };
24+}
25+```
26+
27+Then you can use `nix-env -f "<nixpkgs>" -iA rEnv` to install it into your user
28+profile. The set of available libraries can be discovered by running the
29+command `nix-env -f "<nixpkgs>" -qaP -A rPackages`. The first column from that
30+output is the name that has to be passed to rWrapper in the code snipped above.
31+
32+However, if you'd like to add a file to your project source to make the
33+environment available for other contributors, you can create a `default.nix`
34+file like so:
35+```nix
36+let
37+ pkgs = import <nixpkgs> {};
38+ stdenv = pkgs.stdenv;
39+in with pkgs; {
40+ myProject = stdenv.mkDerivation {
41+ name = "myProject";
42+ version = "1";
43+ src = if pkgs.lib.inNixShell then null else nix;
44+
45+ buildInputs = with rPackages; [
46+ R
47+ ggplot2
48+ knitr
49+ ];
50+ };
51+}
52+```
53+and then run `nix-shell .` to be dropped into a shell with those packages
54+available.
55+
56+## RStudio
57+
58+RStudio uses a standard set of packages and ignores any custom R
59+environments or installed packages you may have. To create a custom
60+environment, see `rstudioWrapper`, which functions similarly to
61+`rWrapper`:
62+
63+```nix
64+{
65+ packageOverrides = super: let self = super.pkgs; in
66+ {
67+
68+ rstudioEnv = super.rstudioWrapper.override {
69+ packages = with self.rPackages; [
70+ dplyr
71+ ggplot2
72+ reshape2
73+ ];
74+ };
75+ };
76+}
77+```
78+
79+Then like above, `nix-env -f "<nixpkgs>" -iA rstudioEnv` will install
80+this into your user profile.
81+
82+Alternatively, you can create a self-contained `shell.nix` without the need to
83+modify any configuration files:
84+
85+```nix
86+{ pkgs ? import <nixpkgs> {}
87+}:
88+
89+pkgs.rstudioWrapper.override {
90+ packages = with pkgs.rPackages; [ dplyr ggplot2 reshape2 ];
91+}
92+
93+```
94+
95+Executing `nix-shell` will then drop you into an environment equivalent to the
96+one above. If you need additional packages just add them to the list and
97+re-enter the shell.
98+
99+## Updating the package set
100+
101+```bash
102+nix-shell generate-shell.nix
103+
104+Rscript generate-r-packages.R cran > cran-packages.nix.new
105+mv cran-packages.nix.new cran-packages.nix
106+
107+Rscript generate-r-packages.R bioc > bioc-packages.nix.new
108+mv bioc-packages.nix.new bioc-packages.nix
109+```
110+
111+`generate-r-packages.R <repo>` reads `<repo>-packages.nix`, therefor the renaming.
112+
113+
114+## Testing if the Nix-expression could be evaluated
115+
116+```bash
117+nix-build test-evaluation.nix --dry-run
118+```
119+
120+If this exits fine, the expression is ok. If not, you have to edit `default.nix`
doc/languages-frameworks/ruby.xml+47−45
@@ -1,17 +1,19 @@
11<section xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="sec-language-ruby">
4+ <title>Ruby</title>
45
5−<title>Ruby</title>
6+ <para>
7+ There currently is support to bundle applications that are packaged as Ruby
8+ gems. The utility "bundix" allows you to write a
9+ <filename>Gemfile</filename>, let bundler create a
10+ <filename>Gemfile.lock</filename>, and then convert this into a nix
11+ expression that contains all Gem dependencies automatically.
12+ </para>
613
7−<para>There currently is support to bundle applications that are packaged as
8−Ruby gems. The utility "bundix" allows you to write a
9−<filename>Gemfile</filename>, let bundler create a
10−<filename>Gemfile.lock</filename>, and then convert this into a nix
11−expression that contains all Gem dependencies automatically.
12−</para>
13−
14−<para>For example, to package sensu, we did:</para>
14+ <para>
15+ For example, to package sensu, we did:
16+ </para>
1517
1618<screen>
1719<![CDATA[$ cd pkgs/servers/monitoring
@@ -42,17 +44,18 @@ bundlerEnv rec {
4244}]]>
4345</screen>
4446
45−<para>Please check in the <filename>Gemfile</filename>,
46−<filename>Gemfile.lock</filename> and the
47−<filename>gemset.nix</filename> so future updates can be run easily.
48−</para>
47+ <para>
48+ Please check in the <filename>Gemfile</filename>,
49+ <filename>Gemfile.lock</filename> and the <filename>gemset.nix</filename> so
50+ future updates can be run easily.
51+ </para>
4952
50−<para>For tools written in Ruby - i.e. where the desire is to install
51−a package and then execute e.g. <command>rake</command> at the command
52−line, there is an alternative builder called <literal>bundlerApp</literal>.
53−Set up the <filename>gemset.nix</filename> the same way, and then, for
54−example:
55−</para>
53+ <para>
54+ For tools written in Ruby - i.e. where the desire is to install a package and
55+ then execute e.g. <command>rake</command> at the command line, there is an
56+ alternative builder called <literal>bundlerApp</literal>. Set up the
57+ <filename>gemset.nix</filename> the same way, and then, for example:
58+ </para>
5659
5760<screen>
5861<![CDATA[{ lib, bundlerApp }:
@@ -72,31 +75,31 @@ bundlerApp {
7275}]]>
7376</screen>
7477
75−<para>The chief advantage of <literal>bundlerApp</literal> over
76−<literal>bundlerEnv</literal> is the executables introduced in the
77−environment are precisely those selected in the <literal>exes</literal>
78−list, as opposed to <literal>bundlerEnv</literal> which adds all the
79−executables made available by gems in the gemset, which can mean e.g.
80−<command>rspec</command> or <command>rake</command> in unpredictable
81−versions available from various packages.
82−</para>
83−
84−<para>Resulting derivations for both builders also have two helpful
85−attributes, <literal>env</literal> and <literal>wrappedRuby</literal>.
86−The first one allows one to quickly drop into
87−<command>nix-shell</command> with the specified environment present.
88−E.g. <command>nix-shell -A sensu.env</command> would give you an
89−environment with Ruby preset so it has all the libraries necessary
90−for <literal>sensu</literal> in its paths. The second one can be
91−used to make derivations from custom Ruby scripts which have
92−<filename>Gemfile</filename>s with their dependencies specified. It is
93−a derivation with <command>ruby</command> wrapped so it can find all
94−the needed dependencies. For example, to make a derivation
95−<literal>my-script</literal> for a <filename>my-script.rb</filename>
96−(which should be placed in <filename>bin</filename>) you should run
97−<command>bundix</command> as specified above and then use
98−<literal>bundlerEnv</literal> like this:
99−</para>
78+ <para>
79+ The chief advantage of <literal>bundlerApp</literal> over
80+ <literal>bundlerEnv</literal> is the executables introduced in the
81+ environment are precisely those selected in the <literal>exes</literal> list,
82+ as opposed to <literal>bundlerEnv</literal> which adds all the executables
83+ made available by gems in the gemset, which can mean e.g.
84+ <command>rspec</command> or <command>rake</command> in unpredictable versions
85+ available from various packages.
86+ </para>
87+
88+ <para>
89+ Resulting derivations for both builders also have two helpful attributes,
90+ <literal>env</literal> and <literal>wrappedRuby</literal>. The first one
91+ allows one to quickly drop into <command>nix-shell</command> with the
92+ specified environment present. E.g. <command>nix-shell -A sensu.env</command>
93+ would give you an environment with Ruby preset so it has all the libraries
94+ necessary for <literal>sensu</literal> in its paths. The second one can be
95+ used to make derivations from custom Ruby scripts which have
96+ <filename>Gemfile</filename>s with their dependencies specified. It is a
97+ derivation with <command>ruby</command> wrapped so it can find all the needed
98+ dependencies. For example, to make a derivation <literal>my-script</literal>
99+ for a <filename>my-script.rb</filename> (which should be placed in
100+ <filename>bin</filename>) you should run <command>bundix</command> as
101+ specified above and then use <literal>bundlerEnv</literal> like this:
102+ </para>
100103
101104<programlisting>
102105<![CDATA[let env = bundlerEnv {
@@ -118,5 +121,4 @@ in stdenv.mkDerivation {
118121 '';
119122}]]>
120123</programlisting>
121−
122124</section>
doc/languages-frameworks/rust.md → doc/languages-frameworks/rust.section.mdrenamed+85−1
@@ -16,6 +16,12 @@ cargo
1616into the `environment.systemPackages` or bring them into
1717scope with `nix-shell -p rustc cargo`.
1818
19+> If you are using NixOS and you want to use rust without a nix expression you
20+> probably want to add the following in your `configuration.nix` to build
21+> crates with C dependencies.
22+>
23+> environment.systemPackages = [binutils gcc gnumake openssl pkgconfig]
24+
1925For daily builds (beta and nightly) use either rustup from
2026nixpkgs or use the [Rust nightlies
2127overlay](#using-the-rust-nightlies-overlay).
@@ -76,7 +82,7 @@ an example for a minimal `hello` crate:
7682 Compiling hello v0.1.0 (file:///tmp/hello)
7783 Finished dev [unoptimized + debuginfo] target(s) in 0.20 secs
7884 $ carnix -o hello.nix --src ./. Cargo.lock --standalone
79− $ nix-build hello.nix
85+ $ nix-build hello.nix -A hello_0_1_0
8086
8187Now, the file produced by the call to `carnix`, called `hello.nix`, looks like:
8288
@@ -276,6 +282,84 @@ features, we would write:
276282
277283Where `diesel.nix` is the file generated by Carnix, as explained above.
278284
285+
286+## Setting Up `nix-shell`
287+Oftentimes you want to develop code from within `nix-shell`. Unfortunately
288+`buildRustCrate` does not support common `nix-shell` operations directly
289+(see [this issue](https://github.com/NixOS/nixpkgs/issues/37945))
290+so we will use `stdenv.mkDerivation` instead.
291+
292+Using the example `hello` project above, we want to do the following:
293+- Have access to `cargo` and `rustc`
294+- Have the `openssl` library available to a crate through it's _normal_
295+ compilation mechanism (`pkg-config`).
296+
297+A typical `shell.nix` might look like:
298+
299+```
300+with import <nixpkgs> {};
301+
302+stdenv.mkDerivation {
303+ name = "rust-env";
304+ buildInputs = [
305+ rustc cargo
306+
307+ # Example Additional Dependencies
308+ pkgconfig openssl
309+ ];
310+
311+ # Set Environment Variables
312+ RUST_BACKTRACE = 1;
313+}
314+```
315+
316+You should now be able to run the following:
317+```
318+$ nix-shell --pure
319+$ cargo build
320+$ cargo test
321+```
322+
323+### Controlling Rust Version Inside `nix-shell`
324+To control your rust version (i.e. use nightly) from within `shell.nix` (or
325+other nix expressions) you can use the following `shell.nix`
326+
327+```
328+# Latest Nightly
329+with import <nixpkgs> {};
330+let src = fetchFromGitHub {
331+ owner = "mozilla";
332+ repo = "nixpkgs-mozilla";
333+ # commit from: 2018-03-27
334+ rev = "2945b0b6b2fd19e7d23bac695afd65e320efcebe";
335+ sha256 = "034m1dryrzh2lmjvk3c0krgip652dql46w5yfwpvh7gavd3iypyw";
336+ };
337+in
338+with import "${src.out}/rust-overlay.nix" pkgs pkgs;
339+stdenv.mkDerivation {
340+ name = "rust-env";
341+ buildInputs = [
342+ # Note: to use use stable, just replace `nightly` with `stable`
343+ latest.rustChannels.nightly.rust
344+
345+ # Add some extra dependencies from `pkgs`
346+ pkgconfig openssl
347+ ];
348+
349+ # Set Environment Variables
350+ RUST_BACKTRACE = 1;
351+}
352+```
353+
354+Now run:
355+```
356+$ rustc --version
357+rustc 1.26.0-nightly (188e693b3 2018-03-26)
358+```
359+
360+To see that you are using nightly.
361+
362+
279363## Using the Rust nightlies overlay
280364
281365Mozilla provides an overlay for nixpkgs to bring a nightly version of Rust into scope.
doc/languages-frameworks/texlive.xml+72−33
@@ -1,27 +1,42 @@
11<section xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="sec-language-texlive">
4+ <title>TeX Live</title>
45
5−<title>TeX Live</title>
6+ <para>
7+ Since release 15.09 there is a new TeX Live packaging that lives entirely
8+ under attribute <varname>texlive</varname>.
9+ </para>
10+
11+ <section>
12+ <title>User's guide</title>
613
7−<para>Since release 15.09 there is a new TeX Live packaging that lives entirely under attribute <varname>texlive</varname>.</para>
8−<section><title>User's guide</title>
914 <itemizedlist>
10− <listitem><para>
11− For basic usage just pull <varname>texlive.combined.scheme-basic</varname> for an environment with basic LaTeX support.</para></listitem>
12− <listitem><para>
13− It typically won't work to use separately installed packages together.
14− Instead, you can build a custom set of packages like this:
15− <programlisting>
15+ <listitem>
16+ <para>
17+ For basic usage just pull <varname>texlive.combined.scheme-basic</varname>
18+ for an environment with basic LaTeX support.
19+ </para>
20+ </listitem>
21+ <listitem>
22+ <para>
23+ It typically won't work to use separately installed packages together.
24+ Instead, you can build a custom set of packages like this:
25+<programlisting>
1626texlive.combine {
1727 inherit (texlive) scheme-small collection-langkorean algorithms cm-super;
1828}
1929 </programlisting>
20− There are all the schemes, collections and a few thousand packages, as defined upstream (perhaps with tiny differences).
21− </para></listitem>
22− <listitem><para>
23− By default you only get executables and files needed during runtime, and a little documentation for the core packages. To change that, you need to add <varname>pkgFilter</varname> function to <varname>combine</varname>.
24− <programlisting>
30+ There are all the schemes, collections and a few thousand packages, as
31+ defined upstream (perhaps with tiny differences).
32+ </para>
33+ </listitem>
34+ <listitem>
35+ <para>
36+ By default you only get executables and files needed during runtime, and a
37+ little documentation for the core packages. To change that, you need to
38+ add <varname>pkgFilter</varname> function to <varname>combine</varname>.
39+<programlisting>
2540texlive.combine {
2641 # inherit (texlive) whatever-you-want;
2742 pkgFilter = pkg:
@@ -30,31 +45,55 @@ texlive.combine {
3045 # there are also other attributes: version, name
3146}
3247 </programlisting>
33− </para></listitem>
34− <listitem><para>
35− You can list packages e.g. by <command>nix-repl</command>.
36− <programlisting>
48+ </para>
49+ </listitem>
50+ <listitem>
51+ <para>
52+ You can list packages e.g. by <command>nix-repl</command>.
53+<programlisting>
3754$ nix-repl
3855nix-repl> :l &lt;nixpkgs>
3956nix-repl> texlive.collection-&lt;TAB>
4057 </programlisting>
41− </para></listitem>
58+ </para>
59+ </listitem>
60+ <listitem>
61+ <para>
62+ Note that the wrapper assumes that the result has a chance to be useful.
63+ For example, the core executables should be present, as well as some core
64+ data files. The supported way of ensuring this is by including some
65+ scheme, for example <varname>scheme-basic</varname>, into the combination.
66+ </para>
67+ </listitem>
4268 </itemizedlist>
43−</section>
69+ </section>
70+
71+ <section>
72+ <title>Known problems</title>
4473
45−<section><title>Known problems</title>
4674 <itemizedlist>
47− <listitem><para>
48− Some tools are still missing, e.g. luajittex;</para></listitem>
49− <listitem><para>
50− some apps aren't packaged/tested yet (asymptote, biber, etc.);</para></listitem>
51− <listitem><para>
52− feature/bug: when a package is rejected by <varname>pkgFilter</varname>, its dependencies are still propagated;</para></listitem>
53− <listitem><para>
54− in case of any bugs or feature requests, file a github issue or better a pull request and /cc @vcunat.</para></listitem>
75+ <listitem>
76+ <para>
77+ Some tools are still missing, e.g. luajittex;
78+ </para>
79+ </listitem>
80+ <listitem>
81+ <para>
82+ some apps aren't packaged/tested yet (asymptote, biber, etc.);
83+ </para>
84+ </listitem>
85+ <listitem>
86+ <para>
87+ feature/bug: when a package is rejected by <varname>pkgFilter</varname>,
88+ its dependencies are still propagated;
89+ </para>
90+ </listitem>
91+ <listitem>
92+ <para>
93+ in case of any bugs or feature requests, file a github issue or better a
94+ pull request and /cc @vcunat.
95+ </para>
96+ </listitem>
5597 </itemizedlist>
98+ </section>
5699</section>
57−
58−
59−</section>
60−
doc/languages-frameworks/vim.md → doc/languages-frameworks/vim.section.mdrenamed

The content is the same.

doc/manual.xml+21−26
@@ -1,29 +1,24 @@
11<book xmlns="http://docbook.org/ns/docbook"
22 xmlns:xi="http://www.w3.org/2001/XInclude">
3−
4− <info>
5−
6− <title>Nixpkgs Contributors Guide</title>
7−
8− <subtitle>Version <xi:include href=".version" parse="text" /></subtitle>
9−
10− </info>
11−
12− <xi:include href="introduction.xml" />
13− <xi:include href="quick-start.xml" />
14− <xi:include href="stdenv.xml" />
15− <xi:include href="multiple-output.xml" />
16− <xi:include href="cross-compilation.xml" />
17− <xi:include href="configuration.xml" />
18− <xi:include href="functions.xml" />
19− <xi:include href="meta.xml" />
20− <xi:include href="languages-frameworks/index.xml" />
21− <xi:include href="platform-notes.xml" />
22− <xi:include href="package-notes.xml" />
23− <xi:include href="overlays.xml" />
24− <xi:include href="coding-conventions.xml" />
25− <xi:include href="submitting-changes.xml" />
26− <xi:include href="reviewing-contributions.xml" />
27− <xi:include href="contributing.xml" />
28−
3+ <info>
4+ <title>Nixpkgs Contributors Guide</title>
5+ <subtitle>Version <xi:include href=".version" parse="text" />
6+ </subtitle>
7+ </info>
8+ <xi:include href="introduction.chapter.xml" />
9+ <xi:include href="quick-start.xml" />
10+ <xi:include href="stdenv.xml" />
11+ <xi:include href="multiple-output.xml" />
12+ <xi:include href="cross-compilation.xml" />
13+ <xi:include href="configuration.xml" />
14+ <xi:include href="functions.xml" />
15+ <xi:include href="meta.xml" />
16+ <xi:include href="languages-frameworks/index.xml" />
17+ <xi:include href="platform-notes.xml" />
18+ <xi:include href="package-notes.xml" />
19+ <xi:include href="overlays.xml" />
20+ <xi:include href="coding-conventions.xml" />
21+ <xi:include href="submitting-changes.xml" />
22+ <xi:include href="reviewing-contributions.xml" />
23+ <xi:include href="contributing.xml" />
2924</book>
doc/meta.xml+295−251
@@ -1,14 +1,12 @@
11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="chap-meta">
4−
5−<title>Meta-attributes</title>
6−
7−<para>Nix packages can declare <emphasis>meta-attributes</emphasis>
8−that contain information about a package such as a description, its
9−homepage, its license, and so on. For instance, the GNU Hello package
10−has a <varname>meta</varname> declaration like this:
11−
4+ <title>Meta-attributes</title>
5+ <para>
6+ Nix packages can declare <emphasis>meta-attributes</emphasis> that contain
7+ information about a package such as a description, its homepage, its license,
8+ and so on. For instance, the GNU Hello package has a <varname>meta</varname>
9+ declaration like this:
1210<programlisting>
1311meta = {
1412 description = "A program that produces a familiar, friendly greeting";
@@ -22,16 +20,15 @@ meta = {
2220 platforms = stdenv.lib.platforms.all;
2321};
2422</programlisting>
25−
26−</para>
27−
28−<para>Meta-attributes are not passed to the builder of the package.
29−Thus, a change to a meta-attribute doesn’t trigger a recompilation of
30−the package. The value of a meta-attribute must be a string.</para>
31−
32−<para>The meta-attributes of a package can be queried from the
33−command-line using <command>nix-env</command>:
34−
23+ </para>
24+ <para>
25+ Meta-attributes are not passed to the builder of the package. Thus, a change
26+ to a meta-attribute doesn’t trigger a recompilation of the package. The
27+ value of a meta-attribute must be a string.
28+ </para>
29+ <para>
30+ The meta-attributes of a package can be queried from the command-line using
31+ <command>nix-env</command>:
3532<screen>
3633$ nix-env -qa hello --json
3734{
@@ -70,252 +67,299 @@ $ nix-env -qa hello --json
7067
7168
7269</screen>
73−
74−<command>nix-env</command> knows about the
75−<varname>description</varname> field specifically:
76−
70+ <command>nix-env</command> knows about the <varname>description</varname>
71+ field specifically:
7772<screen>
7873$ nix-env -qa hello --description
7974hello-2.3 A program that produces a familiar, friendly greeting
8075</screen>
81−
82−</para>
83−
84−
85−<section xml:id="sec-standard-meta-attributes"><title>Standard
86−meta-attributes</title>
87−
88−<para>It is expected that each meta-attribute is one of the following:</para>
89−
90−<variablelist>
91−
92− <varlistentry>
93− <term><varname>description</varname></term>
94− <listitem><para>A short (one-line) description of the package.
95− This is shown by <command>nix-env -q --description</command> and
96− also on the Nixpkgs release pages.</para>
97−
98− <para>Don’t include a period at the end. Don’t include newline
99− characters. Capitalise the first character. For brevity, don’t
100− repeat the name of package — just describe what it does.</para>
101−
102− <para>Wrong: <literal>"libpng is a library that allows you to decode PNG images."</literal></para>
103−
104− <para>Right: <literal>"A library for decoding PNG images"</literal></para>
105−
76+ </para>
77+ <section xml:id="sec-standard-meta-attributes">
78+ <title>Standard meta-attributes</title>
79+
80+ <para>
81+ It is expected that each meta-attribute is one of the following:
82+ </para>
83+
84+ <variablelist>
85+ <varlistentry>
86+ <term><varname>description</varname>
87+ </term>
88+ <listitem>
89+ <para>
90+ A short (one-line) description of the package. This is shown by
91+ <command>nix-env -q --description</command> and also on the Nixpkgs
92+ release pages.
93+ </para>
94+ <para>
95+ Don’t include a period at the end. Don’t include newline characters.
96+ Capitalise the first character. For brevity, don’t repeat the name of
97+ package — just describe what it does.
98+ </para>
99+ <para>
100+ Wrong: <literal>"libpng is a library that allows you to decode PNG
101+ images."</literal>
102+ </para>
103+ <para>
104+ Right: <literal>"A library for decoding PNG images"</literal>
105+ </para>
106106 </listitem>
107− </varlistentry>
108−
109− <varlistentry>
110− <term><varname>longDescription</varname></term>
111− <listitem><para>An arbitrarily long description of the
112− package.</para></listitem>
113− </varlistentry>
114−
115− <varlistentry>
116− <term><varname>branch</varname></term>
117− <listitem><para>Release branch. Used to specify that a package is not
118− going to receive updates that are not in this branch; for example, Linux
119− kernel 3.0 is supposed to be updated to 3.0.X, not 3.1.</para></listitem>
120− </varlistentry>
121−
122− <varlistentry>
123− <term><varname>homepage</varname></term>
124− <listitem><para>The package’s homepage. Example:
125− <literal>http://www.gnu.org/software/hello/manual/</literal></para></listitem>
126− </varlistentry>
127−
128− <varlistentry>
129− <term><varname>downloadPage</varname></term>
130− <listitem><para>The page where a link to the current version can be found. Example:
131− <literal>http://ftp.gnu.org/gnu/hello/</literal></para></listitem>
132− </varlistentry>
133−
134− <varlistentry>
135− <term><varname>license</varname></term>
107+ </varlistentry>
108+ <varlistentry>
109+ <term><varname>longDescription</varname>
110+ </term>
136111 <listitem>
137− <para>
138− The license, or licenses, for the package. One from the attribute set
139− defined in <link
112+ <para>
113+ An arbitrarily long description of the package.
114+ </para>
115+ </listitem>
116+ </varlistentry>
117+ <varlistentry>
118+ <term><varname>branch</varname>
119+ </term>
120+ <listitem>
121+ <para>
122+ Release branch. Used to specify that a package is not going to receive
123+ updates that are not in this branch; for example, Linux kernel 3.0 is
124+ supposed to be updated to 3.0.X, not 3.1.
125+ </para>
126+ </listitem>
127+ </varlistentry>
128+ <varlistentry>
129+ <term><varname>homepage</varname>
130+ </term>
131+ <listitem>
132+ <para>
133+ The package’s homepage. Example:
134+ <literal>http://www.gnu.org/software/hello/manual/</literal>
135+ </para>
136+ </listitem>
137+ </varlistentry>
138+ <varlistentry>
139+ <term><varname>downloadPage</varname>
140+ </term>
141+ <listitem>
142+ <para>
143+ The page where a link to the current version can be found. Example:
144+ <literal>http://ftp.gnu.org/gnu/hello/</literal>
145+ </para>
146+ </listitem>
147+ </varlistentry>
148+ <varlistentry>
149+ <term><varname>license</varname>
150+ </term>
151+ <listitem>
152+ <para>
153+ The license, or licenses, for the package. One from the attribute set
154+ defined in
155+ <link
140156 xlink:href="https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix">
141− <filename>nixpkgs/lib/licenses.nix</filename></link>. At this moment
142− using both a list of licenses and a single license is valid. If the
143− license field is in the form of a list representation, then it means
144− that parts of the package are licensed differently. Each license
145− should preferably be referenced by their attribute. The non-list
146− attribute value can also be a space delimited string representation of
147− the contained attribute shortNames or spdxIds. The following are all valid
148− examples:
149− <itemizedlist>
150− <listitem><para>Single license referenced by attribute (preferred)
151− <literal>stdenv.lib.licenses.gpl3</literal>.
152− </para></listitem>
153− <listitem><para>Single license referenced by its attribute shortName (frowned upon)
154− <literal>"gpl3"</literal>.
155− </para></listitem>
156− <listitem><para>Single license referenced by its attribute spdxId (frowned upon)
157− <literal>"GPL-3.0"</literal>.
158− </para></listitem>
159− <listitem><para>Multiple licenses referenced by attribute (preferred)
160− <literal>with stdenv.lib.licenses; [ asl20 free ofl ]</literal>.
161− </para></listitem>
162− <listitem><para>Multiple licenses referenced as a space delimited string of attribute shortNames (frowned upon)
163− <literal>"asl20 free ofl"</literal>.
164− </para></listitem>
165− </itemizedlist>
166− For details, see <xref linkend='sec-meta-license'/>.
167− </para>
157+ <filename>nixpkgs/lib/licenses.nix</filename></link>. At this moment
158+ using both a list of licenses and a single license is valid. If the
159+ license field is in the form of a list representation, then it means that
160+ parts of the package are licensed differently. Each license should
161+ preferably be referenced by their attribute. The non-list attribute value
162+ can also be a space delimited string representation of the contained
163+ attribute shortNames or spdxIds. The following are all valid examples:
164+ <itemizedlist>
165+ <listitem>
166+ <para>
167+ Single license referenced by attribute (preferred)
168+ <literal>stdenv.lib.licenses.gpl3</literal>.
169+ </para>
170+ </listitem>
171+ <listitem>
172+ <para>
173+ Single license referenced by its attribute shortName (frowned upon)
174+ <literal>"gpl3"</literal>.
175+ </para>
176+ </listitem>
177+ <listitem>
178+ <para>
179+ Single license referenced by its attribute spdxId (frowned upon)
180+ <literal>"GPL-3.0"</literal>.
181+ </para>
182+ </listitem>
183+ <listitem>
184+ <para>
185+ Multiple licenses referenced by attribute (preferred) <literal>with
186+ stdenv.lib.licenses; [ asl20 free ofl ]</literal>.
187+ </para>
188+ </listitem>
189+ <listitem>
190+ <para>
191+ Multiple licenses referenced as a space delimited string of attribute
192+ shortNames (frowned upon) <literal>"asl20 free ofl"</literal>.
193+ </para>
194+ </listitem>
195+ </itemizedlist>
196+ For details, see <xref linkend='sec-meta-license'/>.
197+ </para>
168198 </listitem>
169− </varlistentry>
170−
171− <varlistentry>
172− <term><varname>maintainers</varname></term>
173− <listitem><para>A list of names and e-mail addresses of the
174− maintainers of this Nix expression. If
175− you would like to be a maintainer of a package, you may want to add
176− yourself to <link
177− xlink:href="https://github.com/NixOS/nixpkgs/blob/master/lib/maintainers.nix"><filename>nixpkgs/lib/maintainers.nix</filename></link>
178− and write something like <literal>[ stdenv.lib.maintainers.alice
179− stdenv.lib.maintainers.bob ]</literal>.</para></listitem>
180− </varlistentry>
181−
182− <varlistentry>
183− <term><varname>priority</varname></term>
184− <listitem><para>The <emphasis>priority</emphasis> of the package,
185− used by <command>nix-env</command> to resolve file name conflicts
186− between packages. See the Nix manual page for
187− <command>nix-env</command> for details. Example:
188− <literal>"10"</literal> (a low-priority
189− package).</para></listitem>
190− </varlistentry>
191−
192− <varlistentry>
193− <term><varname>platforms</varname></term>
194− <listitem><para>The list of Nix platform types on which the
195− package is supported. Hydra builds packages according to the
196− platform specified. If no platform is specified, the package does
197− not have prebuilt binaries. An example is:
198−
199+ </varlistentry>
200+ <varlistentry>
201+ <term><varname>maintainers</varname>
202+ </term>
203+ <listitem>
204+ <para>
205+ A list of names and e-mail addresses of the maintainers of this Nix
206+ expression. If you would like to be a maintainer of a package, you may
207+ want to add yourself to
208+ <link
209+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/maintainers/maintainer-list.nix"><filename>nixpkgs/maintainers/maintainer-list.nix</filename></link>
210+ and write something like <literal>[ stdenv.lib.maintainers.alice
211+ stdenv.lib.maintainers.bob ]</literal>.
212+ </para>
213+ </listitem>
214+ </varlistentry>
215+ <varlistentry>
216+ <term><varname>priority</varname>
217+ </term>
218+ <listitem>
219+ <para>
220+ The <emphasis>priority</emphasis> of the package, used by
221+ <command>nix-env</command> to resolve file name conflicts between
222+ packages. See the Nix manual page for <command>nix-env</command> for
223+ details. Example: <literal>"10"</literal> (a low-priority package).
224+ </para>
225+ </listitem>
226+ </varlistentry>
227+ <varlistentry>
228+ <term><varname>platforms</varname>
229+ </term>
230+ <listitem>
231+ <para>
232+ The list of Nix platform types on which the package is supported. Hydra
233+ builds packages according to the platform specified. If no platform is
234+ specified, the package does not have prebuilt binaries. An example is:
199235<programlisting>
200236meta.platforms = stdenv.lib.platforms.linux;
201237</programlisting>
202−
203− Attribute Set <varname>stdenv.lib.platforms</varname> defines
204− <link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/lib/systems/doubles.nix">
205− various common lists</link> of platforms types.</para></listitem>
206− </varlistentry>
207−
208− <varlistentry>
209− <term><varname>hydraPlatforms</varname></term>
210− <listitem><para>The list of Nix platform types for which the Hydra
211− instance at <literal>hydra.nixos.org</literal> will build the
212− package. (Hydra is the Nix-based continuous build system.) It
213− defaults to the value of <varname>meta.platforms</varname>. Thus,
214− the only reason to set <varname>meta.hydraPlatforms</varname> is
215− if you want <literal>hydra.nixos.org</literal> to build the
216− package on a subset of <varname>meta.platforms</varname>, or not
217− at all, e.g.
218−
238+ Attribute Set <varname>stdenv.lib.platforms</varname> defines
239+ <link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/lib/systems/doubles.nix">
240+ various common lists</link> of platforms types.
241+ </para>
242+ </listitem>
243+ </varlistentry>
244+ <varlistentry>
245+ <term><varname>hydraPlatforms</varname>
246+ </term>
247+ <listitem>
248+ <para>
249+ The list of Nix platform types for which the Hydra instance at
250+ <literal>hydra.nixos.org</literal> will build the package. (Hydra is the
251+ Nix-based continuous build system.) It defaults to the value of
252+ <varname>meta.platforms</varname>. Thus, the only reason to set
253+ <varname>meta.hydraPlatforms</varname> is if you want
254+ <literal>hydra.nixos.org</literal> to build the package on a subset of
255+ <varname>meta.platforms</varname>, or not at all, e.g.
219256<programlisting>
220257meta.platforms = stdenv.lib.platforms.linux;
221258meta.hydraPlatforms = [];
222259</programlisting>
223−
224− </para></listitem>
225− </varlistentry>
226−
227− <varlistentry>
228− <term><varname>broken</varname></term>
229− <listitem><para>If set to <literal>true</literal>, the package is
230− marked as “broken”, meaning that it won’t show up in
231− <literal>nix-env -qa</literal>, and cannot be built or installed.
232− Such packages should be removed from Nixpkgs eventually unless
233− they are fixed.</para></listitem>
234− </varlistentry>
235−
236− <varlistentry>
237− <term><varname>updateWalker</varname></term>
238− <listitem><para>If set to <literal>true</literal>, the package is
239− tested to be updated correctly by the <literal>update-walker.sh</literal>
240− script without additional settings. Such packages have
241− <varname>meta.version</varname> set and their homepage (or
242− the page specified by <varname>meta.downloadPage</varname>) contains
243− a direct link to the package tarball.</para></listitem>
244− </varlistentry>
245−
246−</variablelist>
247−
248−
249−</section>
250−
251−
252−<section xml:id="sec-meta-license"><title>Licenses</title>
253−
254−<para>The <varname>meta.license</varname> attribute should preferrably contain
255−a value from <varname>stdenv.lib.licenses</varname> defined in
256−<link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix">
257−<filename>nixpkgs/lib/licenses.nix</filename></link>,
258−or in-place license description of the same format if the license is
259−unlikely to be useful in another expression.</para>
260−
261−<para>Although it's typically better to indicate the specific license,
262−a few generic options are available:
263−
264−<variablelist>
265−
266− <varlistentry>
267− <term><varname>stdenv.lib.licenses.free</varname>,
268− <varname>"free"</varname></term>
269−
270− <listitem><para>Catch-all for free software licenses not listed
271− above.</para></listitem>
272− </varlistentry>
273−
274− <varlistentry>
275− <term><varname>stdenv.lib.licenses.unfreeRedistributable</varname>,
276− <varname>"unfree-redistributable"</varname></term>
277−
278− <listitem><para>Unfree package that can be redistributed in binary
279− form. That is, it’s legal to redistribute the
280− <emphasis>output</emphasis> of the derivation. This means that
281− the package can be included in the Nixpkgs
282− channel.</para>
283−
284− <para>Sometimes proprietary software can only be redistributed
285− unmodified. Make sure the builder doesn’t actually modify the
286− original binaries; otherwise we’re breaking the license. For
287− instance, the NVIDIA X11 drivers can be redistributed unmodified,
288− but our builder applies <command>patchelf</command> to make them
289− work. Thus, its license is <varname>"unfree"</varname> and it
290− cannot be included in the Nixpkgs channel.</para></listitem>
291− </varlistentry>
292−
293− <varlistentry>
294− <term><varname>stdenv.lib.licenses.unfree</varname>,
295− <varname>"unfree"</varname></term>
296−
297− <listitem><para>Unfree package that cannot be redistributed. You
298− can build it yourself, but you cannot redistribute the output of
299− the derivation. Thus it cannot be included in the Nixpkgs
300− channel.</para></listitem>
301− </varlistentry>
302−
303− <varlistentry>
304− <term><varname>stdenv.lib.licenses.unfreeRedistributableFirmware</varname>,
305− <varname>"unfree-redistributable-firmware"</varname></term>
306−
307− <listitem><para>This package supplies unfree, redistributable
308− firmware. This is a separate value from
309− <varname>unfree-redistributable</varname> because not everybody
310− cares whether firmware is free.</para></listitem>
311− </varlistentry>
312−
313−</variablelist>
314−
315−</para>
316−
317−
318−</section>
319−
320−
260+ </para>
261+ </listitem>
262+ </varlistentry>
263+ <varlistentry>
264+ <term><varname>broken</varname>
265+ </term>
266+ <listitem>
267+ <para>
268+ If set to <literal>true</literal>, the package is marked as “broken”,
269+ meaning that it won’t show up in <literal>nix-env -qa</literal>, and
270+ cannot be built or installed. Such packages should be removed from
271+ Nixpkgs eventually unless they are fixed.
272+ </para>
273+ </listitem>
274+ </varlistentry>
275+ <varlistentry>
276+ <term><varname>updateWalker</varname>
277+ </term>
278+ <listitem>
279+ <para>
280+ If set to <literal>true</literal>, the package is tested to be updated
281+ correctly by the <literal>update-walker.sh</literal> script without
282+ additional settings. Such packages have <varname>meta.version</varname>
283+ set and their homepage (or the page specified by
284+ <varname>meta.downloadPage</varname>) contains a direct link to the
285+ package tarball.
286+ </para>
287+ </listitem>
288+ </varlistentry>
289+ </variablelist>
290+ </section>
291+ <section xml:id="sec-meta-license">
292+ <title>Licenses</title>
293+
294+ <para>
295+ The <varname>meta.license</varname> attribute should preferrably contain a
296+ value from <varname>stdenv.lib.licenses</varname> defined in
297+ <link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix">
298+ <filename>nixpkgs/lib/licenses.nix</filename></link>, or in-place license
299+ description of the same format if the license is unlikely to be useful in
300+ another expression.
301+ </para>
302+
303+ <para>
304+ Although it's typically better to indicate the specific license, a few
305+ generic options are available:
306+ <variablelist>
307+ <varlistentry>
308+ <term><varname>stdenv.lib.licenses.free</varname>,
309+ <varname>"free"</varname>
310+ </term>
311+ <listitem>
312+ <para>
313+ Catch-all for free software licenses not listed above.
314+ </para>
315+ </listitem>
316+ </varlistentry>
317+ <varlistentry>
318+ <term><varname>stdenv.lib.licenses.unfreeRedistributable</varname>,
319+ <varname>"unfree-redistributable"</varname>
320+ </term>
321+ <listitem>
322+ <para>
323+ Unfree package that can be redistributed in binary form. That is, it’s
324+ legal to redistribute the <emphasis>output</emphasis> of the derivation.
325+ This means that the package can be included in the Nixpkgs channel.
326+ </para>
327+ <para>
328+ Sometimes proprietary software can only be redistributed unmodified.
329+ Make sure the builder doesn’t actually modify the original binaries;
330+ otherwise we’re breaking the license. For instance, the NVIDIA X11
331+ drivers can be redistributed unmodified, but our builder applies
332+ <command>patchelf</command> to make them work. Thus, its license is
333+ <varname>"unfree"</varname> and it cannot be included in the Nixpkgs
334+ channel.
335+ </para>
336+ </listitem>
337+ </varlistentry>
338+ <varlistentry>
339+ <term><varname>stdenv.lib.licenses.unfree</varname>,
340+ <varname>"unfree"</varname>
341+ </term>
342+ <listitem>
343+ <para>
344+ Unfree package that cannot be redistributed. You can build it yourself,
345+ but you cannot redistribute the output of the derivation. Thus it cannot
346+ be included in the Nixpkgs channel.
347+ </para>
348+ </listitem>
349+ </varlistentry>
350+ <varlistentry>
351+ <term><varname>stdenv.lib.licenses.unfreeRedistributableFirmware</varname>,
352+ <varname>"unfree-redistributable-firmware"</varname>
353+ </term>
354+ <listitem>
355+ <para>
356+ This package supplies unfree, redistributable firmware. This is a
357+ separate value from <varname>unfree-redistributable</varname> because
358+ not everybody cares whether firmware is free.
359+ </para>
360+ </listitem>
361+ </varlistentry>
362+ </variablelist>
363+ </para>
364+ </section>
321365</chapter>
doc/multiple-output.xml+300−80
@@ -5,99 +5,319 @@
55<chapter xmlns="http://docbook.org/ns/docbook"
66 xmlns:xlink="http://www.w3.org/1999/xlink"
77 xml:id="chap-multiple-output">
8+ <title>Multiple-output packages</title>
9+ <section>
10+ <title>Introduction</title>
811
9−<title>Multiple-output packages</title>
12+ <para>
13+ The Nix language allows a derivation to produce multiple outputs, which is
14+ similar to what is utilized by other Linux distribution packaging systems.
15+ The outputs reside in separate nix store paths, so they can be mostly
16+ handled independently of each other, including passing to build inputs,
17+ garbage collection or binary substitution. The exception is that building
18+ from source always produces all the outputs.
19+ </para>
1020
11−<section><title>Introduction</title>
12− <para>The Nix language allows a derivation to produce multiple outputs, which is similar to what is utilized by other Linux distribution packaging systems. The outputs reside in separate nix store paths, so they can be mostly handled independently of each other, including passing to build inputs, garbage collection or binary substitution. The exception is that building from source always produces all the outputs.</para>
13− <para>The main motivation is to save disk space by reducing runtime closure sizes; consequently also sizes of substituted binaries get reduced. Splitting can be used to have more granular runtime dependencies, for example the typical reduction is to split away development-only files, as those are typically not needed during runtime. As a result, closure sizes of many packages can get reduced to a half or even much less.</para>
14− <note><para>The reduction effects could be instead achieved by building the parts in completely separate derivations. That would often additionally reduce build-time closures, but it tends to be much harder to write such derivations, as build systems typically assume all parts are being built at once. This compromise approach of single source package producing multiple binary packages is also utilized often by rpm and deb.</para></note>
15−</section>
21+ <para>
22+ The main motivation is to save disk space by reducing runtime closure sizes;
23+ consequently also sizes of substituted binaries get reduced. Splitting can
24+ be used to have more granular runtime dependencies, for example the typical
25+ reduction is to split away development-only files, as those are typically
26+ not needed during runtime. As a result, closure sizes of many packages can
27+ get reduced to a half or even much less.
28+ </para>
29+
30+ <note>
31+ <para>
32+ The reduction effects could be instead achieved by building the parts in
33+ completely separate derivations. That would often additionally reduce
34+ build-time closures, but it tends to be much harder to write such
35+ derivations, as build systems typically assume all parts are being built at
36+ once. This compromise approach of single source package producing multiple
37+ binary packages is also utilized often by rpm and deb.
38+ </para>
39+ </note>
40+ </section>
41+ <section>
42+ <title>Installing a split package</title>
43+
44+ <para>
45+ When installing a package via <varname>systemPackages</varname> or
46+ <command>nix-env</command> you have several options:
47+ </para>
1648
17−<section><title>Installing a split package</title>
18− <para>When installing a package via <varname>systemPackages</varname> or <command>nix-env</command> you have several options:</para>
1949 <itemizedlist>
20− <listitem><para>You can install particular outputs explicitly, as each is available in the Nix language as an attribute of the package. The <varname>outputs</varname> attribute contains a list of output names.</para></listitem>
21− <listitem><para>You can let it use the default outputs. These are handled by <varname>meta.outputsToInstall</varname> attribute that contains a list of output names.</para>
22− <para>TODO: more about tweaking the attribute, etc.</para></listitem>
23− <listitem><para>NixOS provides configuration option <varname>environment.extraOutputsToInstall</varname> that allows adding extra outputs of <varname>environment.systemPackages</varname> atop the default ones. It's mainly meant for documentation and debug symbols, and it's also modified by specific options.</para>
24− <note><para>At this moment there is no similar configurability for packages installed by <command>nix-env</command>. You can still use approach from <xref linkend="sec-modify-via-packageOverrides" /> to override <varname>meta.outputsToInstall</varname> attributes, but that's a rather inconvenient way.</para></note>
25− </listitem>
50+ <listitem>
51+ <para>
52+ You can install particular outputs explicitly, as each is available in the
53+ Nix language as an attribute of the package. The
54+ <varname>outputs</varname> attribute contains a list of output names.
55+ </para>
56+ </listitem>
57+ <listitem>
58+ <para>
59+ You can let it use the default outputs. These are handled by
60+ <varname>meta.outputsToInstall</varname> attribute that contains a list of
61+ output names.
62+ </para>
63+ <para>
64+ TODO: more about tweaking the attribute, etc.
65+ </para>
66+ </listitem>
67+ <listitem>
68+ <para>
69+ NixOS provides configuration option
70+ <varname>environment.extraOutputsToInstall</varname> that allows adding
71+ extra outputs of <varname>environment.systemPackages</varname> atop the
72+ default ones. It's mainly meant for documentation and debug symbols, and
73+ it's also modified by specific options.
74+ </para>
75+ <note>
76+ <para>
77+ At this moment there is no similar configurability for packages installed
78+ by <command>nix-env</command>. You can still use approach from
79+ <xref linkend="sec-modify-via-packageOverrides" /> to override
80+ <varname>meta.outputsToInstall</varname> attributes, but that's a rather
81+ inconvenient way.
82+ </para>
83+ </note>
84+ </listitem>
2685 </itemizedlist>
27−</section>
86+ </section>
87+ <section>
88+ <title>Using a split package</title>
2889
29−<section><title>Using a split package</title>
30− <para>In the Nix language the individual outputs can be reached explicitly as attributes, e.g. <varname>coreutils.info</varname>, but the typical case is just using packages as build inputs.</para>
31− <para>When a multiple-output derivation gets into a build input of another derivation, the <varname>dev</varname> output is added if it exists, otherwise the first output is added. In addition to that, <varname>propagatedBuildOutputs</varname> of that package which by default contain <varname>$outputBin</varname> and <varname>$outputLib</varname> are also added. (See <xref linkend="multiple-output-file-type-groups" />.)</para>
32−</section>
90+ <para>
91+ In the Nix language the individual outputs can be reached explicitly as
92+ attributes, e.g. <varname>coreutils.info</varname>, but the typical case is
93+ just using packages as build inputs.
94+ </para>
3395
96+ <para>
97+ When a multiple-output derivation gets into a build input of another
98+ derivation, the <varname>dev</varname> output is added if it exists,
99+ otherwise the first output is added. In addition to that,
100+ <varname>propagatedBuildOutputs</varname> of that package which by default
101+ contain <varname>$outputBin</varname> and <varname>$outputLib</varname> are
102+ also added. (See <xref linkend="multiple-output-file-type-groups" />.)
103+ </para>
104+ </section>
105+ <section>
106+ <title>Writing a split derivation</title>
34107
35−<section><title>Writing a split derivation</title>
36− <para>Here you find how to write a derivation that produces multiple outputs.</para>
37− <para>In nixpkgs there is a framework supporting multiple-output derivations. It tries to cover most cases by default behavior. You can find the source separated in &lt;<filename>nixpkgs/pkgs/build-support/setup-hooks/multiple-outputs.sh</filename>&gt;; it's relatively well-readable. The whole machinery is triggered by defining the <varname>outputs</varname> attribute to contain the list of desired output names (strings).</para>
38− <programlisting>outputs = [ "bin" "dev" "out" "doc" ];</programlisting>
39− <para>Often such a single line is enough. For each output an equally named environment variable is passed to the builder and contains the path in nix store for that output. By convention, the first output should contain the executable programs provided by the package as that output is used by Nix in string conversions, allowing references to binaries like <literal>${pkgs.perl}/bin/perl</literal> to always work. Typically you also want to have the main <varname>out</varname> output, as it catches any files that didn't get elsewhere.</para>
108+ <para>
109+ Here you find how to write a derivation that produces multiple outputs.
110+ </para>
40111
41− <note><para>There is a special handling of the <varname>debug</varname> output, described at <xref linkend="stdenv-separateDebugInfo" />.</para></note>
112+ <para>
113+ In nixpkgs there is a framework supporting multiple-output derivations. It
114+ tries to cover most cases by default behavior. You can find the source
115+ separated in
116+ &lt;<filename>nixpkgs/pkgs/build-support/setup-hooks/multiple-outputs.sh</filename>&gt;;
117+ it's relatively well-readable. The whole machinery is triggered by defining
118+ the <varname>outputs</varname> attribute to contain the list of desired
119+ output names (strings).
120+ </para>
42121
43− <section xml:id="multiple-output-file-type-groups">
44− <title>File type groups</title>
45− <para>The support code currently recognizes some particular kinds of outputs and either instructs the build system of the package to put files into their desired outputs or it moves the files during the fixup phase. Each group of file types has an <varname>outputFoo</varname> variable specifying the output name where they should go. If that variable isn't defined by the derivation writer, it is guessed &ndash; a default output name is defined, falling back to other possibilities if the output isn't defined.</para>
46− <variablelist>
47−
48− <varlistentry><term><varname>
49− $outputDev</varname></term><listitem><para>
50− is for development-only files. These include C(++) headers, pkg-config, cmake and aclocal files. They go to <varname>dev</varname> or <varname>out</varname> by default.
51− </para></listitem>
52− </varlistentry>
53−
54− <varlistentry><term><varname>
55− $outputBin</varname></term><listitem><para>
56− is meant for user-facing binaries, typically residing in bin/. They go to <varname>bin</varname> or <varname>out</varname> by default.
57− </para></listitem></varlistentry>
58−
59− <varlistentry><term><varname>
60− $outputLib</varname></term><listitem><para>
61− is meant for libraries, typically residing in <filename>lib/</filename> and <filename>libexec/</filename>. They go to <varname>lib</varname> or <varname>out</varname> by default.
62− </para></listitem></varlistentry>
63−
64− <varlistentry><term><varname>
65− $outputDoc</varname></term><listitem><para>
66− is for user documentation, typically residing in <filename>share/doc/</filename>. It goes to <varname>doc</varname> or <varname>out</varname> by default.
67− </para></listitem></varlistentry>
68−
69− <varlistentry><term><varname>
70− $outputDevdoc</varname></term><listitem><para>
71− is for <emphasis>developer</emphasis> documentation. Currently we count gtk-doc and devhelp books in there. It goes to <varname>devdoc</varname> or is removed (!) by default. This is because e.g. gtk-doc tends to be rather large and completely unused by nixpkgs users.
72− </para></listitem></varlistentry>
73−
74− <varlistentry><term><varname>
75− $outputMan</varname></term><listitem><para>
76− is for man pages (except for section 3). They go to <varname>man</varname> or <varname>$outputBin</varname> by default.
77− </para></listitem></varlistentry>
78−
79− <varlistentry><term><varname>
80− $outputDevman</varname></term><listitem><para>
81− is for section 3 man pages. They go to <varname>devman</varname> or <varname>$outputMan</varname> by default.
82− </para></listitem></varlistentry>
83−
84− <varlistentry><term><varname>
85− $outputInfo</varname></term><listitem><para>
86− is for info pages. They go to <varname>info</varname> or <varname>$outputBin</varname> by default.
87− </para></listitem></varlistentry>
88−
89− </variablelist>
122+<programlisting>outputs = [ "bin" "dev" "out" "doc" ];</programlisting>
123+
124+ <para>
125+ Often such a single line is enough. For each output an equally named
126+ environment variable is passed to the builder and contains the path in nix
127+ store for that output. Typically you also want to have the main
128+ <varname>out</varname> output, as it catches any files that didn't get
129+ elsewhere.
130+ </para>
131+
132+ <note>
133+ <para>
134+ There is a special handling of the <varname>debug</varname> output,
135+ described at <xref linkend="stdenv-separateDebugInfo" />.
136+ </para>
137+ </note>
138+
139+ <section xml:id="multiple-output-file-binaries-first-convention">
140+ <title><quote>Binaries first</quote></title>
141+
142+ <para>
143+ A commonly adopted convention in <literal>nixpkgs</literal> is that
144+ executables provided by the package are contained within its first output.
145+ This convention allows the dependent packages to reference the executables
146+ provided by packages in a uniform manner. For instance, provided with the
147+ knowledge that the <literal>perl</literal> package contains a
148+ <literal>perl</literal> executable it can be referenced as
149+ <literal>${pkgs.perl}/bin/perl</literal> within a Nix derivation that needs
150+ to execute a Perl script.
151+ </para>
152+
153+ <para>
154+ The <literal>glibc</literal> package is a deliberate single exception to
155+ the <quote>binaries first</quote> convention. The <literal>glibc</literal>
156+ has <literal>libs</literal> as its first output allowing the libraries
157+ provided by <literal>glibc</literal> to be referenced directly (e.g.
158+ <literal>${stdenv.glibc}/lib/ld-linux-x86-64.so.2</literal>). The
159+ executables provided by <literal>glibc</literal> can be accessed via its
160+ <literal>bin</literal> attribute (e.g.
161+ <literal>${stdenv.glibc.bin}/bin/ldd</literal>).
162+ </para>
163+
164+ <para>
165+ The reason for why <literal>glibc</literal> deviates from the convention is
166+ because referencing a library provided by <literal>glibc</literal> is a
167+ very common operation among Nix packages. For instance, third-party
168+ executables packaged by Nix are typically patched and relinked with the
169+ relevant version of <literal>glibc</literal> libraries from Nix packages
170+ (please see the documentation on
171+ <link xlink:href="https://nixos.org/patchelf.html">patchelf</link> for more
172+ details).
173+ </para>
90174 </section>
91175
92− <section><title>Common caveats</title>
93− <itemizedlist>
94− <listitem><para>Some configure scripts don't like some of the parameters passed by default by the framework, e.g. <literal>--docdir=/foo/bar</literal>. You can disable this by setting <literal>setOutputFlags = false;</literal>.</para></listitem>
95− <listitem><para>The outputs of a single derivation can retain references to each other, but note that circular references are not allowed. (And each strongly-connected component would act as a single output anyway.)</para></listitem>
96− <listitem><para>Most of split packages contain their core functionality in libraries. These libraries tend to refer to various kind of data that typically gets into <varname>out</varname>, e.g. locale strings, so there is often no advantage in separating the libraries into <varname>lib</varname>, as keeping them in <varname>out</varname> is easier.</para></listitem>
97− <listitem><para>Some packages have hidden assumptions on install paths, which complicates splitting.</para></listitem>
98− </itemizedlist>
176+ <section xml:id="multiple-output-file-type-groups">
177+ <title>File type groups</title>
178+
179+ <para>
180+ The support code currently recognizes some particular kinds of outputs and
181+ either instructs the build system of the package to put files into their
182+ desired outputs or it moves the files during the fixup phase. Each group of
183+ file types has an <varname>outputFoo</varname> variable specifying the
184+ output name where they should go. If that variable isn't defined by the
185+ derivation writer, it is guessed &ndash; a default output name is defined,
186+ falling back to other possibilities if the output isn't defined.
187+ </para>
188+
189+ <variablelist>
190+ <varlistentry>
191+ <term><varname>
192+ $outputDev</varname>
193+ </term>
194+ <listitem>
195+ <para>
196+ is for development-only files. These include C(++) headers, pkg-config,
197+ cmake and aclocal files. They go to <varname>dev</varname> or
198+ <varname>out</varname> by default.
199+ </para>
200+ </listitem>
201+ </varlistentry>
202+ <varlistentry>
203+ <term><varname>
204+ $outputBin</varname>
205+ </term>
206+ <listitem>
207+ <para>
208+ is meant for user-facing binaries, typically residing in bin/. They go
209+ to <varname>bin</varname> or <varname>out</varname> by default.
210+ </para>
211+ </listitem>
212+ </varlistentry>
213+ <varlistentry>
214+ <term><varname>
215+ $outputLib</varname>
216+ </term>
217+ <listitem>
218+ <para>
219+ is meant for libraries, typically residing in <filename>lib/</filename>
220+ and <filename>libexec/</filename>. They go to <varname>lib</varname> or
221+ <varname>out</varname> by default.
222+ </para>
223+ </listitem>
224+ </varlistentry>
225+ <varlistentry>
226+ <term><varname>
227+ $outputDoc</varname>
228+ </term>
229+ <listitem>
230+ <para>
231+ is for user documentation, typically residing in
232+ <filename>share/doc/</filename>. It goes to <varname>doc</varname> or
233+ <varname>out</varname> by default.
234+ </para>
235+ </listitem>
236+ </varlistentry>
237+ <varlistentry>
238+ <term><varname>
239+ $outputDevdoc</varname>
240+ </term>
241+ <listitem>
242+ <para>
243+ is for <emphasis>developer</emphasis> documentation. Currently we count
244+ gtk-doc and devhelp books in there. It goes to <varname>devdoc</varname>
245+ or is removed (!) by default. This is because e.g. gtk-doc tends to be
246+ rather large and completely unused by nixpkgs users.
247+ </para>
248+ </listitem>
249+ </varlistentry>
250+ <varlistentry>
251+ <term><varname>
252+ $outputMan</varname>
253+ </term>
254+ <listitem>
255+ <para>
256+ is for man pages (except for section 3). They go to
257+ <varname>man</varname> or <varname>$outputBin</varname> by default.
258+ </para>
259+ </listitem>
260+ </varlistentry>
261+ <varlistentry>
262+ <term><varname>
263+ $outputDevman</varname>
264+ </term>
265+ <listitem>
266+ <para>
267+ is for section 3 man pages. They go to <varname>devman</varname> or
268+ <varname>$outputMan</varname> by default.
269+ </para>
270+ </listitem>
271+ </varlistentry>
272+ <varlistentry>
273+ <term><varname>
274+ $outputInfo</varname>
275+ </term>
276+ <listitem>
277+ <para>
278+ is for info pages. They go to <varname>info</varname> or
279+ <varname>$outputBin</varname> by default.
280+ </para>
281+ </listitem>
282+ </varlistentry>
283+ </variablelist>
99284 </section>
100285
101−</section><!--Writing a split derivation-->
286+ <section>
287+ <title>Common caveats</title>
102288
289+ <itemizedlist>
290+ <listitem>
291+ <para>
292+ Some configure scripts don't like some of the parameters passed by
293+ default by the framework, e.g. <literal>--docdir=/foo/bar</literal>. You
294+ can disable this by setting <literal>setOutputFlags = false;</literal>.
295+ </para>
296+ </listitem>
297+ <listitem>
298+ <para>
299+ The outputs of a single derivation can retain references to each other,
300+ but note that circular references are not allowed. (And each
301+ strongly-connected component would act as a single output anyway.)
302+ </para>
303+ </listitem>
304+ <listitem>
305+ <para>
306+ Most of split packages contain their core functionality in libraries.
307+ These libraries tend to refer to various kind of data that typically gets
308+ into <varname>out</varname>, e.g. locale strings, so there is often no
309+ advantage in separating the libraries into <varname>lib</varname>, as
310+ keeping them in <varname>out</varname> is easier.
311+ </para>
312+ </listitem>
313+ <listitem>
314+ <para>
315+ Some packages have hidden assumptions on install paths, which complicates
316+ splitting.
317+ </para>
318+ </listitem>
319+ </itemizedlist>
320+ </section>
321+ </section>
322+<!--Writing a split derivation-->
103323</chapter>
doc/overlays.xml+143−113
@@ -1,95 +1,117 @@
11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="chap-overlays">
4−
5−<title>Overlays</title>
6−
7−<para>This chapter describes how to extend and change Nixpkgs packages using
8−overlays. Overlays are used to add layers in the fix-point used by Nixpkgs
9−to compose the set of all packages.</para>
10−
11−<para>Nixpkgs can be configured with a list of overlays, which are
12−applied in order. This means that the order of the overlays can be significant
13−if multiple layers override the same package.</para>
14−
4+ <title>Overlays</title>
5+ <para>
6+ This chapter describes how to extend and change Nixpkgs packages using
7+ overlays. Overlays are used to add layers in the fix-point used by Nixpkgs to
8+ compose the set of all packages.
9+ </para>
10+ <para>
11+ Nixpkgs can be configured with a list of overlays, which are applied in
12+ order. This means that the order of the overlays can be significant if
13+ multiple layers override the same package.
14+ </para>
1515<!--============================================================-->
16−
17−<section xml:id="sec-overlays-install">
18−<title>Installing overlays</title>
19−
20−<para>The list of overlays is determined as follows.</para>
21−
22−<para>If the <varname>overlays</varname> argument is not provided explicitly, we look for overlays in a path. The path
23−is determined as follows:
24−
25−<orderedlist>
26−
27− <listitem>
28− <para>First, if an <varname>overlays</varname> argument to the nixpkgs function itself is given,
29− then that is used.</para>
30−
31− <para>This can be passed explicitly when importing nipxkgs, for example
32− <literal>import &lt;nixpkgs> { overlays = [ overlay1 overlay2 ]; }</literal>.</para>
33− </listitem>
34−
35− <listitem>
36− <para>Otherwise, if the Nix path entry <literal>&lt;nixpkgs-overlays></literal> exists, we look for overlays
37− at that path, as described below.</para>
38−
39− <para>See the section on <literal>NIX_PATH</literal> in the Nix manual for more details on how to
40− set a value for <literal>&lt;nixpkgs-overlays>.</literal></para>
41− </listitem>
42−
43− <listitem>
44− <para>If one of <filename>~/.config/nixpkgs/overlays.nix</filename> and
45− <filename>~/.config/nixpkgs/overlays/</filename> exists, then we look for overlays at that path, as
46− described below. It is an error if both exist.</para>
47− </listitem>
48−
49−</orderedlist>
50−</para>
51−
52−<para>If we are looking for overlays at a path, then there are two cases:
53−<itemizedlist>
54− <listitem>
55− <para>If the path is a file, then the file is imported as a Nix expression and used as the list of
56− overlays.</para>
57− </listitem>
58−
59− <listitem>
60− <para>If the path is a directory, then we take the content of the directory, order it
61− lexicographically, and attempt to interpret each as an overlay by:
62− <itemizedlist>
63− <listitem>
64− <para>Importing the file, if it is a <literal>.nix</literal> file.</para>
65− </listitem>
66− <listitem>
67− <para>Importing a top-level <filename>default.nix</filename> file, if it is a directory.</para>
68− </listitem>
69− </itemizedlist>
70− </para>
71− </listitem>
72−</itemizedlist>
73−</para>
74−
75−<para>On a NixOS system the value of the <literal>nixpkgs.overlays</literal> option, if present,
76−is passed to the system Nixpkgs directly as an argument. Note that this does not affect the overlays for
77−non-NixOS operations (e.g. <literal>nix-env</literal>), which are looked up independently.</para>
78−
79−<para>The <filename>overlays.nix</filename> option therefore provides a convenient way to use the same
80−overlays for a NixOS system configuration and user configuration: the same file can be used
81−as <filename>overlays.nix</filename> and imported as the value of <literal>nixpkgs.overlays</literal>.</para>
82−
83−</section>
84−
16+ <section xml:id="sec-overlays-install">
17+ <title>Installing overlays</title>
18+
19+ <para>
20+ The list of overlays is determined as follows.
21+ </para>
22+
23+ <para>
24+ If the <varname>overlays</varname> argument is not provided explicitly, we
25+ look for overlays in a path. The path is determined as follows:
26+ <orderedlist>
27+ <listitem>
28+ <para>
29+ First, if an <varname>overlays</varname> argument to the nixpkgs function
30+ itself is given, then that is used.
31+ </para>
32+ <para>
33+ This can be passed explicitly when importing nipxkgs, for example
34+ <literal>import &lt;nixpkgs> { overlays = [ overlay1 overlay2 ];
35+ }</literal>.
36+ </para>
37+ </listitem>
38+ <listitem>
39+ <para>
40+ Otherwise, if the Nix path entry <literal>&lt;nixpkgs-overlays></literal>
41+ exists, we look for overlays at that path, as described below.
42+ </para>
43+ <para>
44+ See the section on <literal>NIX_PATH</literal> in the Nix manual for more
45+ details on how to set a value for
46+ <literal>&lt;nixpkgs-overlays>.</literal>
47+ </para>
48+ </listitem>
49+ <listitem>
50+ <para>
51+ If one of <filename>~/.config/nixpkgs/overlays.nix</filename> and
52+ <filename>~/.config/nixpkgs/overlays/</filename> exists, then we look for
53+ overlays at that path, as described below. It is an error if both exist.
54+ </para>
55+ </listitem>
56+ </orderedlist>
57+ </para>
58+
59+ <para>
60+ If we are looking for overlays at a path, then there are two cases:
61+ <itemizedlist>
62+ <listitem>
63+ <para>
64+ If the path is a file, then the file is imported as a Nix expression and
65+ used as the list of overlays.
66+ </para>
67+ </listitem>
68+ <listitem>
69+ <para>
70+ If the path is a directory, then we take the content of the directory,
71+ order it lexicographically, and attempt to interpret each as an overlay
72+ by:
73+ <itemizedlist>
74+ <listitem>
75+ <para>
76+ Importing the file, if it is a <literal>.nix</literal> file.
77+ </para>
78+ </listitem>
79+ <listitem>
80+ <para>
81+ Importing a top-level <filename>default.nix</filename> file, if it is
82+ a directory.
83+ </para>
84+ </listitem>
85+ </itemizedlist>
86+ </para>
87+ </listitem>
88+ </itemizedlist>
89+ </para>
90+
91+ <para>
92+ On a NixOS system the value of the <literal>nixpkgs.overlays</literal>
93+ option, if present, is passed to the system Nixpkgs directly as an argument.
94+ Note that this does not affect the overlays for non-NixOS operations (e.g.
95+ <literal>nix-env</literal>), which are looked up independently.
96+ </para>
97+
98+ <para>
99+ The <filename>overlays.nix</filename> option therefore provides a convenient
100+ way to use the same overlays for a NixOS system configuration and user
101+ configuration: the same file can be used as
102+ <filename>overlays.nix</filename> and imported as the value of
103+ <literal>nixpkgs.overlays</literal>.
104+ </para>
105+ </section>
85106<!--============================================================-->
107+ <section xml:id="sec-overlays-definition">
108+ <title>Defining overlays</title>
86109
87−<section xml:id="sec-overlays-definition">
88−<title>Defining overlays</title>
89−
90−<para>Overlays are Nix functions which accept two arguments,
91−conventionally called <varname>self</varname> and <varname>super</varname>,
92−and return a set of packages. For example, the following is a valid overlay.</para>
110+ <para>
111+ Overlays are Nix functions which accept two arguments, conventionally called
112+ <varname>self</varname> and <varname>super</varname>, and return a set of
113+ packages. For example, the following is a valid overlay.
114+ </para>
93115
94116<programlisting>
95117self: super:
@@ -104,31 +126,39 @@ self: super:
104126}
105127</programlisting>
106128
107−<para>The first argument (<varname>self</varname>) corresponds to the final package
108−set. You should use this set for the dependencies of all packages specified in your
109−overlay. For example, all the dependencies of <varname>rr</varname> in the example above come
110−from <varname>self</varname>, as well as the overridden dependencies used in the
111−<varname>boost</varname> override.</para>
112−
113−<para>The second argument (<varname>super</varname>)
114−corresponds to the result of the evaluation of the previous stages of
115−Nixpkgs. It does not contain any of the packages added by the current
116−overlay, nor any of the following overlays. This set should be used either
117−to refer to packages you wish to override, or to access functions defined
118−in Nixpkgs. For example, the original recipe of <varname>boost</varname>
119−in the above example, comes from <varname>super</varname>, as well as the
120−<varname>callPackage</varname> function.</para>
121−
122−<para>The value returned by this function should be a set similar to
123−<filename>pkgs/top-level/all-packages.nix</filename>, containing
124−overridden and/or new packages.</para>
125−
126−<para>Overlays are similar to other methods for customizing Nixpkgs, in particular
127−the <literal>packageOverrides</literal> attribute described in <xref linkend="sec-modify-via-packageOverrides"/>.
128−Indeed, <literal>packageOverrides</literal> acts as an overlay with only the
129−<varname>super</varname> argument. It is therefore appropriate for basic use,
130−but overlays are more powerful and easier to distribute.</para>
131−
132−</section>
133−
129+ <para>
130+ The first argument (<varname>self</varname>) corresponds to the final
131+ package set. You should use this set for the dependencies of all packages
132+ specified in your overlay. For example, all the dependencies of
133+ <varname>rr</varname> in the example above come from
134+ <varname>self</varname>, as well as the overridden dependencies used in the
135+ <varname>boost</varname> override.
136+ </para>
137+
138+ <para>
139+ The second argument (<varname>super</varname>) corresponds to the result of
140+ the evaluation of the previous stages of Nixpkgs. It does not contain any of
141+ the packages added by the current overlay, nor any of the following
142+ overlays. This set should be used either to refer to packages you wish to
143+ override, or to access functions defined in Nixpkgs. For example, the
144+ original recipe of <varname>boost</varname> in the above example, comes from
145+ <varname>super</varname>, as well as the <varname>callPackage</varname>
146+ function.
147+ </para>
148+
149+ <para>
150+ The value returned by this function should be a set similar to
151+ <filename>pkgs/top-level/all-packages.nix</filename>, containing overridden
152+ and/or new packages.
153+ </para>
154+
155+ <para>
156+ Overlays are similar to other methods for customizing Nixpkgs, in particular
157+ the <literal>packageOverrides</literal> attribute described in
158+ <xref linkend="sec-modify-via-packageOverrides"/>. Indeed,
159+ <literal>packageOverrides</literal> acts as an overlay with only the
160+ <varname>super</varname> argument. It is therefore appropriate for basic
161+ use, but overlays are more powerful and easier to distribute.
162+ </para>
163+ </section>
134164</chapter>
doc/overrides.cssnew file+9
@@ -0,0 +1,9 @@
1+.docbook .xref img[src^=images\/callouts\/],
2+.screen img,
3+.programlisting img {
4+ width: 1em;
5+}
6+
7+.calloutlist img {
8+ width: 1.5em;
9+}
doc/package-notes.xml+454−477
@@ -1,206 +1,185 @@
11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="chap-package-notes">
4−
5−<title>Package Notes</title>
6−
7−<para>This chapter contains information about how to use and maintain
8−the Nix expressions for a number of specific packages, such as the
9−Linux kernel or X.org.</para>
10−
11−
4+ <title>Package Notes</title>
5+ <para>
6+ This chapter contains information about how to use and maintain the Nix
7+ expressions for a number of specific packages, such as the Linux kernel or
8+ X.org.
9+ </para>
1210<!--============================================================-->
11+ <section xml:id="sec-linux-kernel">
12+ <title>Linux kernel</title>
1313
14−<section xml:id="sec-linux-kernel">
15−
16−<title>Linux kernel</title>
17−
18−<para>The Nix expressions to build the Linux kernel are in <link
19−xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/kernel"><filename>pkgs/os-specific/linux/kernel</filename></link>.</para>
20−
21−<para>The function that builds the kernel has an argument
22−<varname>kernelPatches</varname> which should be a list of
23−<literal>{name, patch, extraConfig}</literal> attribute sets, where
24−<varname>name</varname> is the name of the patch (which is included in
25−the kernel’s <varname>meta.description</varname> attribute),
26−<varname>patch</varname> is the patch itself (possibly compressed),
27−and <varname>extraConfig</varname> (optional) is a string specifying
28−extra options to be concatenated to the kernel configuration file
29−(<filename>.config</filename>).</para>
14+ <para>
15+ The Nix expressions to build the Linux kernel are in
16+ <link
17+xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/kernel"><filename>pkgs/os-specific/linux/kernel</filename></link>.
18+ </para>
3019
31−<para>The kernel derivation exports an attribute
32−<varname>features</varname> specifying whether optional functionality
33−is or isn’t enabled. This is used in NixOS to implement
34−kernel-specific behaviour. For instance, if the kernel has the
35−<varname>iwlwifi</varname> feature (i.e. has built-in support for
36−Intel wireless chipsets), then NixOS doesn’t have to build the
37−external <varname>iwlwifi</varname> package:
20+ <para>
21+ The function that builds the kernel has an argument
22+ <varname>kernelPatches</varname> which should be a list of <literal>{name,
23+ patch, extraConfig}</literal> attribute sets, where <varname>name</varname>
24+ is the name of the patch (which is included in the kernel’s
25+ <varname>meta.description</varname> attribute), <varname>patch</varname> is
26+ the patch itself (possibly compressed), and <varname>extraConfig</varname>
27+ (optional) is a string specifying extra options to be concatenated to the
28+ kernel configuration file (<filename>.config</filename>).
29+ </para>
3830
31+ <para>
32+ The kernel derivation exports an attribute <varname>features</varname>
33+ specifying whether optional functionality is or isn’t enabled. This is
34+ used in NixOS to implement kernel-specific behaviour. For instance, if the
35+ kernel has the <varname>iwlwifi</varname> feature (i.e. has built-in support
36+ for Intel wireless chipsets), then NixOS doesn’t have to build the
37+ external <varname>iwlwifi</varname> package:
3938<programlisting>
4039modulesTree = [kernel]
4140 ++ pkgs.lib.optional (!kernel.features ? iwlwifi) kernelPackages.iwlwifi
4241 ++ ...;
4342</programlisting>
43+ </para>
4444
45−</para>
46−
47−<para>How to add a new (major) version of the Linux kernel to Nixpkgs:
48−
49−<orderedlist>
50−
51− <listitem>
52− <para>Copy the old Nix expression
53− (e.g. <filename>linux-2.6.21.nix</filename>) to the new one
54− (e.g. <filename>linux-2.6.22.nix</filename>) and update it.</para>
55− </listitem>
56−
57− <listitem>
58− <para>Add the new kernel to <filename>all-packages.nix</filename>
59− (e.g., create an attribute
60− <varname>kernel_2_6_22</varname>).</para>
61− </listitem>
62−
63− <listitem>
64− <para>Now we’re going to update the kernel configuration. First
65− unpack the kernel. Then for each supported platform
66− (<literal>i686</literal>, <literal>x86_64</literal>,
67− <literal>uml</literal>) do the following:
68−
45+ <para>
46+ How to add a new (major) version of the Linux kernel to Nixpkgs:
47+ <orderedlist>
48+ <listitem>
49+ <para>
50+ Copy the old Nix expression (e.g. <filename>linux-2.6.21.nix</filename>)
51+ to the new one (e.g. <filename>linux-2.6.22.nix</filename>) and update
52+ it.
53+ </para>
54+ </listitem>
55+ <listitem>
56+ <para>
57+ Add the new kernel to <filename>all-packages.nix</filename> (e.g., create
58+ an attribute <varname>kernel_2_6_22</varname>).
59+ </para>
60+ </listitem>
61+ <listitem>
62+ <para>
63+ Now we’re going to update the kernel configuration. First unpack the
64+ kernel. Then for each supported platform (<literal>i686</literal>,
65+ <literal>x86_64</literal>, <literal>uml</literal>) do the following:
6966 <orderedlist>
70−
71− <listitem>
72− <para>Make an copy from the old
73− config (e.g. <filename>config-2.6.21-i686-smp</filename>) to
74− the new one
75− (e.g. <filename>config-2.6.22-i686-smp</filename>).</para>
76− </listitem>
77−
78− <listitem>
79− <para>Copy the config file for this platform
80− (e.g. <filename>config-2.6.22-i686-smp</filename>) to
81− <filename>.config</filename> in the kernel source tree.
82− </para>
83− </listitem>
84−
85− <listitem>
86− <para>Run <literal>make oldconfig
87− ARCH=<replaceable>{i386,x86_64,um}</replaceable></literal>
88− and answer all questions. (For the uml configuration, also
89− add <literal>SHELL=bash</literal>.) Make sure to keep the
90− configuration consistent between platforms (i.e. don’t
91− enable some feature on <literal>i686</literal> and disable
92− it on <literal>x86_64</literal>).
93− </para>
94− </listitem>
95−
96− <listitem>
97− <para>If needed you can also run <literal>make
98− menuconfig</literal>:
99−
100− <screen>
67+ <listitem>
68+ <para>
69+ Make an copy from the old config (e.g.
70+ <filename>config-2.6.21-i686-smp</filename>) to the new one (e.g.
71+ <filename>config-2.6.22-i686-smp</filename>).
72+ </para>
73+ </listitem>
74+ <listitem>
75+ <para>
76+ Copy the config file for this platform (e.g.
77+ <filename>config-2.6.22-i686-smp</filename>) to
78+ <filename>.config</filename> in the kernel source tree.
79+ </para>
80+ </listitem>
81+ <listitem>
82+ <para>
83+ Run <literal>make oldconfig
84+ ARCH=<replaceable>{i386,x86_64,um}</replaceable></literal> and answer
85+ all questions. (For the uml configuration, also add
86+ <literal>SHELL=bash</literal>.) Make sure to keep the configuration
87+ consistent between platforms (i.e. don’t enable some feature on
88+ <literal>i686</literal> and disable it on <literal>x86_64</literal>).
89+ </para>
90+ </listitem>
91+ <listitem>
92+ <para>
93+ If needed you can also run <literal>make menuconfig</literal>:
94+<screen>
10195$ nix-env -i ncurses
10296$ export NIX_CFLAGS_LINK=-lncurses
10397$ make menuconfig ARCH=<replaceable>arch</replaceable></screen>
104−
105− </para>
106− </listitem>
107−
108− <listitem>
109− <para>Copy <filename>.config</filename> over the new config
110− file (e.g. <filename>config-2.6.22-i686-smp</filename>).</para>
111− </listitem>
112−
98+ </para>
99+ </listitem>
100+ <listitem>
101+ <para>
102+ Copy <filename>.config</filename> over the new config file (e.g.
103+ <filename>config-2.6.22-i686-smp</filename>).
104+ </para>
105+ </listitem>
113106 </orderedlist>
114−
115− </para>
116−
117− </listitem>
118−
119− <listitem>
120− <para>Test building the kernel: <literal>nix-build -A
121− kernel_2_6_22</literal>. If it compiles, ship it! For extra
122− credit, try booting NixOS with it.</para>
123− </listitem>
124−
125− <listitem>
126− <para>It may be that the new kernel requires updating the external
127− kernel modules and kernel-dependent packages listed in the
128− <varname>linuxPackagesFor</varname> function in
129− <filename>all-packages.nix</filename> (such as the NVIDIA drivers,
130− AUFS, etc.). If the updated packages aren’t backwards compatible
131− with older kernels, you may need to keep the older versions
132− around.</para>
133− </listitem>
134−
135−</orderedlist>
136−
137−</para>
138−
139−</section>
140−
141−
107+ </para>
108+ </listitem>
109+ <listitem>
110+ <para>
111+ Test building the kernel: <literal>nix-build -A kernel_2_6_22</literal>.
112+ If it compiles, ship it! For extra credit, try booting NixOS with it.
113+ </para>
114+ </listitem>
115+ <listitem>
116+ <para>
117+ It may be that the new kernel requires updating the external kernel
118+ modules and kernel-dependent packages listed in the
119+ <varname>linuxPackagesFor</varname> function in
120+ <filename>all-packages.nix</filename> (such as the NVIDIA drivers, AUFS,
121+ etc.). If the updated packages aren’t backwards compatible with older
122+ kernels, you may need to keep the older versions around.
123+ </para>
124+ </listitem>
125+ </orderedlist>
126+ </para>
127+ </section>
142128<!--============================================================-->
129+ <section xml:id="sec-xorg">
130+ <title>X.org</title>
143131
144−<section xml:id="sec-xorg">
145−
146−<title>X.org</title>
147−
148−<para>The Nix expressions for the X.org packages reside in
149−<filename>pkgs/servers/x11/xorg/default.nix</filename>. This file is
150−automatically generated from lists of tarballs in an X.org release.
151−As such it should not be modified directly; rather, you should modify
152−the lists, the generator script or the file
153−<filename>pkgs/servers/x11/xorg/overrides.nix</filename>, in which you
154−can override or add to the derivations produced by the
155−generator.</para>
156−
157−<para>The generator is invoked as follows:
132+ <para>
133+ The Nix expressions for the X.org packages reside in
134+ <filename>pkgs/servers/x11/xorg/default.nix</filename>. This file is
135+ automatically generated from lists of tarballs in an X.org release. As such
136+ it should not be modified directly; rather, you should modify the lists, the
137+ generator script or the file
138+ <filename>pkgs/servers/x11/xorg/overrides.nix</filename>, in which you can
139+ override or add to the derivations produced by the generator.
140+ </para>
158141
142+ <para>
143+ The generator is invoked as follows:
159144<screen>
160145$ cd pkgs/servers/x11/xorg
161146$ cat tarballs-7.5.list extra.list old.list \
162147 | perl ./generate-expr-from-tarballs.pl
163148</screen>
149+ For each of the tarballs in the <filename>.list</filename> files, the script
150+ downloads it, unpacks it, and searches its <filename>configure.ac</filename>
151+ and <filename>*.pc.in</filename> files for dependencies. This information is
152+ used to generate <filename>default.nix</filename>. The generator caches
153+ downloaded tarballs between runs. Pay close attention to the <literal>NOT
154+ FOUND: <replaceable>name</replaceable></literal> messages at the end of the
155+ run, since they may indicate missing dependencies. (Some might be optional
156+ dependencies, however.)
157+ </para>
164158
165−For each of the tarballs in the <filename>.list</filename> files, the
166−script downloads it, unpacks it, and searches its
167−<filename>configure.ac</filename> and <filename>*.pc.in</filename>
168−files for dependencies. This information is used to generate
169−<filename>default.nix</filename>. The generator caches downloaded
170−tarballs between runs. Pay close attention to the <literal>NOT FOUND:
171−<replaceable>name</replaceable></literal> messages at the end of the
172−run, since they may indicate missing dependencies. (Some might be
173−optional dependencies, however.)</para>
174−
175−<para>A file like <filename>tarballs-7.5.list</filename> contains all
176−tarballs in a X.org release. It can be generated like this:
177−
159+ <para>
160+ A file like <filename>tarballs-7.5.list</filename> contains all tarballs in
161+ a X.org release. It can be generated like this:
178162<screen>
179163$ export i="mirror://xorg/X11R7.4/src/everything/"
180164$ cat $(PRINT_PATH=1 nix-prefetch-url $i | tail -n 1) \
181165 | perl -e 'while (&lt;>) { if (/(href|HREF)="([^"]*.bz2)"/) { print "$ENV{'i'}$2\n"; }; }' \
182166 | sort > tarballs-7.4.list
183167</screen>
168+ <filename>extra.list</filename> contains libraries that aren’t part of
169+ X.org proper, but are closely related to it, such as
170+ <literal>libxcb</literal>. <filename>old.list</filename> contains some
171+ packages that were removed from X.org, but are still needed by some people
172+ or by other packages (such as <varname>imake</varname>).
173+ </para>
184174
185−<filename>extra.list</filename> contains libraries that aren’t part of
186−X.org proper, but are closely related to it, such as
187−<literal>libxcb</literal>. <filename>old.list</filename> contains
188−some packages that were removed from X.org, but are still needed by
189−some people or by other packages (such as
190−<varname>imake</varname>).</para>
191−
192−<para>If the expression for a package requires derivation attributes
193−that the generator cannot figure out automatically (say,
194−<varname>patches</varname> or a <varname>postInstall</varname> hook),
195−you should modify
196−<filename>pkgs/servers/x11/xorg/overrides.nix</filename>.</para>
197−
198−</section>
199−
200−
201−
175+ <para>
176+ If the expression for a package requires derivation attributes that the
177+ generator cannot figure out automatically (say, <varname>patches</varname>
178+ or a <varname>postInstall</varname> hook), you should modify
179+ <filename>pkgs/servers/x11/xorg/overrides.nix</filename>.
180+ </para>
181+ </section>
202182<!--============================================================-->
203−
204183<!--
205184<section>
206185 <title>Gnome</title>
@@ -208,65 +187,53 @@ you should modify
208187 <para>* How to update</para>
209188</section>
210189-->
211−
212−
213190<!--============================================================-->
214−
215191<!--
216192<section>
217193 <title>GCC</title>
218194 <para>…</para>
219195</section>
220196-->
221−
222197<!--============================================================-->
223−
224−<section xml:id="sec-eclipse">
225−
198+ <section xml:id="sec-eclipse">
226199 <title>Eclipse</title>
227200
228201 <para>
229− The Nix expressions related to the Eclipse platform and IDE are in
230− <link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/eclipse"><filename>pkgs/applications/editors/eclipse</filename></link>.
202+ The Nix expressions related to the Eclipse platform and IDE are in
203+ <link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/eclipse"><filename>pkgs/applications/editors/eclipse</filename></link>.
231204 </para>
232205
233206 <para>
234− Nixpkgs provides a number of packages that will install Eclipse in
235− its various forms, these range from the bare-bones Eclipse
236− Platform to the more fully featured Eclipse SDK or Scala-IDE
237− packages and multiple version are often available. It is possible
238− to list available Eclipse packages by issuing the command:
239−
207+ Nixpkgs provides a number of packages that will install Eclipse in its
208+ various forms, these range from the bare-bones Eclipse Platform to the more
209+ fully featured Eclipse SDK or Scala-IDE packages and multiple version are
210+ often available. It is possible to list available Eclipse packages by
211+ issuing the command:
240212<screen>
241213$ nix-env -f '&lt;nixpkgs&gt;' -qaP -A eclipses --description
242214</screen>
243−
244− Once an Eclipse variant is installed it can be run using the
245− <command>eclipse</command> command, as expected. From within
246− Eclipse it is then possible to install plugins in the usual manner
247− by either manually specifying an Eclipse update site or by
248− installing the Marketplace Client plugin and using it to discover
249− and install other plugins. This installation method provides an
250− Eclipse installation that closely resemble a manually installed
251− Eclipse.
215+ Once an Eclipse variant is installed it can be run using the
216+ <command>eclipse</command> command, as expected. From within Eclipse it is
217+ then possible to install plugins in the usual manner by either manually
218+ specifying an Eclipse update site or by installing the Marketplace Client
219+ plugin and using it to discover and install other plugins. This installation
220+ method provides an Eclipse installation that closely resemble a manually
221+ installed Eclipse.
252222 </para>
253223
254224 <para>
255− If you prefer to install plugins in a more declarative manner then
256− Nixpkgs also offer a number of Eclipse plugins that can be
257− installed in an <emphasis>Eclipse environment</emphasis>. This
258− type of environment is created using the function
259− <varname>eclipseWithPlugins</varname> found inside the
260− <varname>nixpkgs.eclipses</varname> attribute set. This function
261− takes as argument <literal>{ eclipse, plugins ? [], jvmArgs ? []
262− }</literal> where <varname>eclipse</varname> is a one of the
263− Eclipse packages described above, <varname>plugins</varname> is a
264− list of plugin derivations, and <varname>jvmArgs</varname> is a
265− list of arguments given to the JVM running the Eclipse. For
266− example, say you wish to install the latest Eclipse Platform with
267− the popular Eclipse Color Theme plugin and also allow Eclipse to
268− use more RAM. You could then add
269−
225+ If you prefer to install plugins in a more declarative manner then Nixpkgs
226+ also offer a number of Eclipse plugins that can be installed in an
227+ <emphasis>Eclipse environment</emphasis>. This type of environment is
228+ created using the function <varname>eclipseWithPlugins</varname> found
229+ inside the <varname>nixpkgs.eclipses</varname> attribute set. This function
230+ takes as argument <literal>{ eclipse, plugins ? [], jvmArgs ? [] }</literal>
231+ where <varname>eclipse</varname> is a one of the Eclipse packages described
232+ above, <varname>plugins</varname> is a list of plugin derivations, and
233+ <varname>jvmArgs</varname> is a list of arguments given to the JVM running
234+ the Eclipse. For example, say you wish to install the latest Eclipse
235+ Platform with the popular Eclipse Color Theme plugin and also allow Eclipse
236+ to use more RAM. You could then add
270237<screen>
271238packageOverrides = pkgs: {
272239 myEclipse = with pkgs.eclipses; eclipseWithPlugins {
@@ -276,42 +243,38 @@ packageOverrides = pkgs: {
276243 };
277244}
278245</screen>
279−
280− to your Nixpkgs configuration
281− (<filename>~/.config/nixpkgs/config.nix</filename>) and install it by
282− running <command>nix-env -f '&lt;nixpkgs&gt;' -iA
283− myEclipse</command> and afterward run Eclipse as usual. It is
284− possible to find out which plugins are available for installation
285− using <varname>eclipseWithPlugins</varname> by running
286−
246+ to your Nixpkgs configuration
247+ (<filename>~/.config/nixpkgs/config.nix</filename>) and install it by
248+ running <command>nix-env -f '&lt;nixpkgs&gt;' -iA myEclipse</command> and
249+ afterward run Eclipse as usual. It is possible to find out which plugins are
250+ available for installation using <varname>eclipseWithPlugins</varname> by
251+ running
287252<screen>
288253$ nix-env -f '&lt;nixpkgs&gt;' -qaP -A eclipses.plugins --description
289254</screen>
290255 </para>
291256
292257 <para>
293− If there is a need to install plugins that are not available in
294− Nixpkgs then it may be possible to define these plugins outside
295− Nixpkgs using the <varname>buildEclipseUpdateSite</varname> and
296− <varname>buildEclipsePlugin</varname> functions found in the
297− <varname>nixpkgs.eclipses.plugins</varname> attribute set. Use the
298− <varname>buildEclipseUpdateSite</varname> function to install a
299− plugin distributed as an Eclipse update site. This function takes
300− <literal>{ name, src }</literal> as argument where
301− <literal>src</literal> indicates the Eclipse update site archive.
302− All Eclipse features and plugins within the downloaded update site
303− will be installed. When an update site archive is not available
304− then the <varname>buildEclipsePlugin</varname> function can be
305− used to install a plugin that consists of a pair of feature and
306− plugin JARs. This function takes an argument <literal>{ name,
307− srcFeature, srcPlugin }</literal> where
308− <literal>srcFeature</literal> and <literal>srcPlugin</literal> are
309− the feature and plugin JARs, respectively.
258+ If there is a need to install plugins that are not available in Nixpkgs then
259+ it may be possible to define these plugins outside Nixpkgs using the
260+ <varname>buildEclipseUpdateSite</varname> and
261+ <varname>buildEclipsePlugin</varname> functions found in the
262+ <varname>nixpkgs.eclipses.plugins</varname> attribute set. Use the
263+ <varname>buildEclipseUpdateSite</varname> function to install a plugin
264+ distributed as an Eclipse update site. This function takes <literal>{ name,
265+ src }</literal> as argument where <literal>src</literal> indicates the
266+ Eclipse update site archive. All Eclipse features and plugins within the
267+ downloaded update site will be installed. When an update site archive is not
268+ available then the <varname>buildEclipsePlugin</varname> function can be
269+ used to install a plugin that consists of a pair of feature and plugin JARs.
270+ This function takes an argument <literal>{ name, srcFeature, srcPlugin
271+ }</literal> where <literal>srcFeature</literal> and
272+ <literal>srcPlugin</literal> are the feature and plugin JARs, respectively.
310273 </para>
311274
312275 <para>
313− Expanding the previous example with two plugins using the above
314− functions we have
276+ Expanding the previous example with two plugins using the above functions we
277+ have
315278<screen>
316279packageOverrides = pkgs: {
317280 myEclipse = with pkgs.eclipses; eclipseWithPlugins {
@@ -343,210 +306,214 @@ packageOverrides = pkgs: {
343306}
344307</screen>
345308 </para>
309+ </section>
310+ <section xml:id="sec-elm">
311+ <title>Elm</title>
346312
347−</section>
348−
349−<section xml:id="sec-elm">
350−
351−<title>Elm</title>
352−
353−<para>
354−The Nix expressions for Elm reside in
355−<filename>pkgs/development/compilers/elm</filename>. They are generated
356−automatically by <command>update-elm.rb</command> script. One should
357−specify versions of Elm packages inside the script, clear the
358−<filename>packages</filename> directory and run the script from inside it.
359−<literal>elm-reactor</literal> is special because it also has Elm package
360−dependencies. The process is not automated very much for now -- you should
361−get the <literal>elm-reactor</literal> source tree (e.g. with
362−<command>nix-shell</command>) and run <command>elm2nix.rb</command> inside
363−it. Place the resulting <filename>package.nix</filename> file into
364−<filename>packages/elm-reactor-elm.nix</filename>.
365−</para>
366−
367−</section>
368−
369−<section xml:id="sec-shell-helpers">
370−
371−<title>Interactive shell helpers</title>
372−
373−<para>
374− Some packages provide the shell integration to be more useful. But
375− unlike other systems, nix doesn't have a standard share directory
376− location. This is why a bunch <command>PACKAGE-share</command>
377− scripts are shipped that print the location of the corresponding
378− shared folder.
379−
380− Current list of such packages is as following:
313+ <para>
314+ The Nix expressions for Elm reside in
315+ <filename>pkgs/development/compilers/elm</filename>. They are generated
316+ automatically by <command>update-elm.rb</command> script. One should specify
317+ versions of Elm packages inside the script, clear the
318+ <filename>packages</filename> directory and run the script from inside it.
319+ <literal>elm-reactor</literal> is special because it also has Elm package
320+ dependencies. The process is not automated very much for now -- you should
321+ get the <literal>elm-reactor</literal> source tree (e.g. with
322+ <command>nix-shell</command>) and run <command>elm2nix.rb</command> inside
323+ it. Place the resulting <filename>package.nix</filename> file into
324+ <filename>packages/elm-reactor-elm.nix</filename>.
325+ </para>
326+ </section>
327+ <section xml:id="sec-shell-helpers">
328+ <title>Interactive shell helpers</title>
381329
382− <itemizedlist>
330+ <para>
331+ Some packages provide the shell integration to be more useful. But unlike
332+ other systems, nix doesn't have a standard share directory location. This is
333+ why a bunch <command>PACKAGE-share</command> scripts are shipped that print
334+ the location of the corresponding shared folder. Current list of such
335+ packages is as following:
336+ <itemizedlist>
383337 <listitem>
384− <para>
385− <literal>autojump</literal>: <command>autojump-share</command>
386− </para>
338+ <para>
339+ <literal>autojump</literal>: <command>autojump-share</command>
340+ </para>
387341 </listitem>
388342 <listitem>
389− <para>
390− <literal>fzf</literal>: <command>fzf-share</command>
391− </para>
343+ <para>
344+ <literal>fzf</literal>: <command>fzf-share</command>
345+ </para>
392346 </listitem>
393− </itemizedlist>
394−
395− E.g. <literal>autojump</literal> can then used in the .bashrc like this:
347+ </itemizedlist>
348+ E.g. <literal>autojump</literal> can then used in the .bashrc like this:
396349<screen>
397350 source "$(autojump-share)/autojump.bash"
398351</screen>
399−</para>
400−
401−</section>
402−
403−<section xml:id="sec-steam">
404−
405−<title>Steam</title>
406−
407−<section xml:id="sec-steam-nix">
408−
409−<title>Steam in Nix</title>
410−
411−<para>
412− Steam is distributed as a <filename>.deb</filename> file, for now only
413− as an i686 package (the amd64 package only has documentation).
414− When unpacked, it has a script called <filename>steam</filename> that
415− in ubuntu (their target distro) would go to <filename>/usr/bin
416− </filename>. When run for the first time, this script copies some
417− files to the user's home, which include another script that is the
418− ultimate responsible for launching the steam binary, which is also
419− in $HOME.
420−</para>
421−<para>
422− Nix problems and constraints:
423−<itemizedlist>
424− <listitem><para>We don't have <filename>/bin/bash</filename> and many
425− scripts point there. Similarly for <filename>/usr/bin/python</filename>
426− .</para></listitem>
427− <listitem><para>We don't have the dynamic loader in <filename>/lib
428− </filename>.</para></listitem>
429− <listitem><para>The <filename>steam.sh</filename> script in $HOME can
430− not be patched, as it is checked and rewritten by steam.</para></listitem>
431− <listitem><para>The steam binary cannot be patched, it's also checked.</para></listitem>
432−</itemizedlist>
433−</para>
434−<para>
435− The current approach to deploy Steam in NixOS is composing a FHS-compatible
436− chroot environment, as documented
437− <link xlink:href="http://sandervanderburg.blogspot.nl/2013/09/composing-fhs-compatible-chroot.html">here</link>.
438− This allows us to have binaries in the expected paths without disrupting the system,
439− and to avoid patching them to work in a non FHS environment.
440−</para>
441−
442−</section>
443−
444−<section xml:id="sec-steam-play">
445−
446−<title>How to play</title>
447−
448−<para>
449− For 64-bit systems it's important to have
450− <programlisting>hardware.opengl.driSupport32Bit = true;</programlisting>
451− in your <filename>/etc/nixos/configuration.nix</filename>. You'll also need
452− <programlisting>hardware.pulseaudio.support32Bit = true;</programlisting>
453− if you are using PulseAudio - this will enable 32bit ALSA apps integration.
454− To use the Steam controller, you need to add
455− <programlisting>services.udev.extraRules = ''
352+ </para>
353+ </section>
354+ <section xml:id="sec-steam">
355+ <title>Steam</title>
356+
357+ <section xml:id="sec-steam-nix">
358+ <title>Steam in Nix</title>
359+
360+ <para>
361+ Steam is distributed as a <filename>.deb</filename> file, for now only as
362+ an i686 package (the amd64 package only has documentation). When unpacked,
363+ it has a script called <filename>steam</filename> that in ubuntu (their
364+ target distro) would go to <filename>/usr/bin </filename>. When run for the
365+ first time, this script copies some files to the user's home, which include
366+ another script that is the ultimate responsible for launching the steam
367+ binary, which is also in $HOME.
368+ </para>
369+
370+ <para>
371+ Nix problems and constraints:
372+ <itemizedlist>
373+ <listitem>
374+ <para>
375+ We don't have <filename>/bin/bash</filename> and many scripts point
376+ there. Similarly for <filename>/usr/bin/python</filename> .
377+ </para>
378+ </listitem>
379+ <listitem>
380+ <para>
381+ We don't have the dynamic loader in <filename>/lib </filename>.
382+ </para>
383+ </listitem>
384+ <listitem>
385+ <para>
386+ The <filename>steam.sh</filename> script in $HOME can not be patched, as
387+ it is checked and rewritten by steam.
388+ </para>
389+ </listitem>
390+ <listitem>
391+ <para>
392+ The steam binary cannot be patched, it's also checked.
393+ </para>
394+ </listitem>
395+ </itemizedlist>
396+ </para>
397+
398+ <para>
399+ The current approach to deploy Steam in NixOS is composing a FHS-compatible
400+ chroot environment, as documented
401+ <link xlink:href="http://sandervanderburg.blogspot.nl/2013/09/composing-fhs-compatible-chroot.html">here</link>.
402+ This allows us to have binaries in the expected paths without disrupting
403+ the system, and to avoid patching them to work in a non FHS environment.
404+ </para>
405+ </section>
406+
407+ <section xml:id="sec-steam-play">
408+ <title>How to play</title>
409+
410+ <para>
411+ For 64-bit systems it's important to have
412+<programlisting>hardware.opengl.driSupport32Bit = true;</programlisting>
413+ in your <filename>/etc/nixos/configuration.nix</filename>. You'll also need
414+<programlisting>hardware.pulseaudio.support32Bit = true;</programlisting>
415+ if you are using PulseAudio - this will enable 32bit ALSA apps integration.
416+ To use the Steam controller, you need to add
417+<programlisting>services.udev.extraRules = ''
456418 SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", MODE="0666"
457419 KERNEL=="uinput", MODE="0660", GROUP="users", OPTIONS+="static_node=uinput"
458420 '';</programlisting>
459− to your configuration.
460−</para>
461−
462−</section>
463−
464−<section xml:id="sec-steam-troub">
465−
466−<title>Troubleshooting</title>
467−
468−<para>
469−<variablelist>
470−
471− <varlistentry>
472− <term>Steam fails to start. What do I do?</term>
473− <listitem><para>Try to run
474− <programlisting>strace steam</programlisting>
475− to see what is causing steam to fail.</para></listitem>
476− </varlistentry>
477−
478− <varlistentry>
479− <term>Using the FOSS Radeon or nouveau (nvidia) drivers</term>
480− <listitem><itemizedlist>
481− <listitem><para>The <literal>newStdcpp</literal> parameter
482− was removed since NixOS 17.09 and should not be needed anymore.
483− </para></listitem>
484−
485− <listitem><para>
486− Steam ships statically linked with a version of libcrypto that
487− conflics with the one dynamically loaded by radeonsi_dri.so.
488− If you get the error
489− <programlisting>steam.sh: line 713: 7842 Segmentation fault (core dumped)</programlisting>
490− have a look at <link xlink:href="https://github.com/NixOS/nixpkgs/pull/20269">this pull request</link>.
491− </para></listitem>
492−
493− </itemizedlist></listitem></varlistentry>
494−
495− <varlistentry>
496− <term>Java</term>
497− <listitem><orderedlist>
498− <listitem><para>
499− There is no java in steam chrootenv by default. If you get a message like
500− <programlisting>/home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found</programlisting>
501− You need to add
502− <programlisting> steam.override { withJava = true; };</programlisting>
503− to your configuration.
504− </para></listitem>
505− </orderedlist></listitem></varlistentry>
506−
507−</variablelist>
508−</para>
509−
510−</section>
511−
512−<section xml:id="sec-steam-run">
513−
514−<title>steam-run</title>
515−<para>
516−The FHS-compatible chroot used for steam can also be used to run
517−other linux games that expect a FHS environment.
518−To do it, add
421+ to your configuration.
422+ </para>
423+ </section>
424+
425+ <section xml:id="sec-steam-troub">
426+ <title>Troubleshooting</title>
427+
428+ <para>
429+ <variablelist>
430+ <varlistentry>
431+ <term>Steam fails to start. What do I do?</term>
432+ <listitem>
433+ <para>
434+ Try to run
435+<programlisting>strace steam</programlisting>
436+ to see what is causing steam to fail.
437+ </para>
438+ </listitem>
439+ </varlistentry>
440+ <varlistentry>
441+ <term>Using the FOSS Radeon or nouveau (nvidia) drivers</term>
442+ <listitem>
443+ <itemizedlist>
444+ <listitem>
445+ <para>
446+ The <literal>newStdcpp</literal> parameter was removed since NixOS
447+ 17.09 and should not be needed anymore.
448+ </para>
449+ </listitem>
450+ <listitem>
451+ <para>
452+ Steam ships statically linked with a version of libcrypto that
453+ conflics with the one dynamically loaded by radeonsi_dri.so. If you
454+ get the error
455+<programlisting>steam.sh: line 713: 7842 Segmentation fault (core dumped)</programlisting>
456+ have a look at
457+ <link xlink:href="https://github.com/NixOS/nixpkgs/pull/20269">this
458+ pull request</link>.
459+ </para>
460+ </listitem>
461+ </itemizedlist>
462+ </listitem>
463+ </varlistentry>
464+ <varlistentry>
465+ <term>Java</term>
466+ <listitem>
467+ <orderedlist>
468+ <listitem>
469+ <para>
470+ There is no java in steam chrootenv by default. If you get a message
471+ like
472+<programlisting>/home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found</programlisting>
473+ You need to add
474+<programlisting> steam.override { withJava = true; };</programlisting>
475+ to your configuration.
476+ </para>
477+ </listitem>
478+ </orderedlist>
479+ </listitem>
480+ </varlistentry>
481+ </variablelist>
482+ </para>
483+ </section>
484+
485+ <section xml:id="sec-steam-run">
486+ <title>steam-run</title>
487+
488+ <para>
489+ The FHS-compatible chroot used for steam can also be used to run other
490+ linux games that expect a FHS environment. To do it, add
519491<programlisting>pkgs.(steam.override {
520492 nativeOnly = true;
521493 newStdcpp = true;
522494 }).run</programlisting>
523−to your configuration, rebuild, and run the game with
495+ to your configuration, rebuild, and run the game with
524496<programlisting>steam-run ./foo</programlisting>
525−</para>
526−
527−</section>
528−
529−</section>
530−
531−<section xml:id="sec-emacs">
532−
533−<title>Emacs</title>
534−
535−<section xml:id="sec-emacs-config">
536−
537−<title>Configuring Emacs</title>
538−
539−<para>
540− The Emacs package comes with some extra helpers to make it easier to
541− configure. <varname>emacsWithPackages</varname> allows you to manage
542− packages from ELPA. This means that you will not have to install
543− that packages from within Emacs. For instance, if you wanted to use
544− <literal>company</literal>, <literal>counsel</literal>,
545− <literal>flycheck</literal>, <literal>ivy</literal>,
546− <literal>magit</literal>, <literal>projectile</literal>, and
547− <literal>use-package</literal> you could use this as a
548− <filename>~/.config/nixpkgs/config.nix</filename> override:
549−</para>
497+ </para>
498+ </section>
499+ </section>
500+ <section xml:id="sec-emacs">
501+ <title>Emacs</title>
502+
503+ <section xml:id="sec-emacs-config">
504+ <title>Configuring Emacs</title>
505+
506+ <para>
507+ The Emacs package comes with some extra helpers to make it easier to
508+ configure. <varname>emacsWithPackages</varname> allows you to manage
509+ packages from ELPA. This means that you will not have to install that
510+ packages from within Emacs. For instance, if you wanted to use
511+ <literal>company</literal>, <literal>counsel</literal>,
512+ <literal>flycheck</literal>, <literal>ivy</literal>,
513+ <literal>magit</literal>, <literal>projectile</literal>, and
514+ <literal>use-package</literal> you could use this as a
515+ <filename>~/.config/nixpkgs/config.nix</filename> override:
516+ </para>
550517
551518<screen>
552519{
@@ -564,17 +531,17 @@ to your configuration, rebuild, and run the game with
564531}
565532</screen>
566533
567−<para>
568− You can install it like any other packages via <command>nix-env -iA
569− myEmacs</command>. However, this will only install those packages.
570− It will not <literal>configure</literal> them for us. To do this, we
571− need to provide a configuration file. Luckily, it is possible to do
572− this from within Nix! By modifying the above example, we can make
573− Emacs load a custom config file. The key is to create a package that
574− provide a <filename>default.el</filename> file in
575− <filename>/share/emacs/site-start/</filename>. Emacs knows to load
576− this file automatically when it starts.
577−</para>
534+ <para>
535+ You can install it like any other packages via <command>nix-env -iA
536+ myEmacs</command>. However, this will only install those packages. It will
537+ not <literal>configure</literal> them for us. To do this, we need to
538+ provide a configuration file. Luckily, it is possible to do this from
539+ within Nix! By modifying the above example, we can make Emacs load a custom
540+ config file. The key is to create a package that provide a
541+ <filename>default.el</filename> file in
542+ <filename>/share/emacs/site-start/</filename>. Emacs knows to load this
543+ file automatically when it starts.
544+ </para>
578545
579546<screen>
580547{
@@ -654,25 +621,24 @@ cp ${myEmacsConfig} $out/share/emacs/site-lisp/default.el
654621}
655622</screen>
656623
657−<para>
658− This provides a fairly full Emacs start file. It will load in
659− addition to the user's presonal config. You can always disable it by
660− passing <command>-q</command> to the Emacs command.
661−</para>
662−
663−<para>
664− Sometimes <varname>emacsWithPackages</varname> is not enough, as
665− this package set has some priorities imposed on packages (with
666− the lowest priority assigned to Melpa Unstable, and the highest for
667− packages manually defined in
668− <filename>pkgs/top-level/emacs-packages.nix</filename>). But you
669− can't control this priorities when some package is installed as a
670− dependency. You can override it on per-package-basis, providing all
671− the required dependencies manually - but it's tedious and there is
672− always a possibility that an unwanted dependency will sneak in
673− through some other package. To completely override such a package
674− you can use <varname>overrideScope</varname>.
675−</para>
624+ <para>
625+ This provides a fairly full Emacs start file. It will load in addition to
626+ the user's presonal config. You can always disable it by passing
627+ <command>-q</command> to the Emacs command.
628+ </para>
629+
630+ <para>
631+ Sometimes <varname>emacsWithPackages</varname> is not enough, as this
632+ package set has some priorities imposed on packages (with the lowest
633+ priority assigned to Melpa Unstable, and the highest for packages manually
634+ defined in <filename>pkgs/top-level/emacs-packages.nix</filename>). But you
635+ can't control this priorities when some package is installed as a
636+ dependency. You can override it on per-package-basis, providing all the
637+ required dependencies manually - but it's tedious and there is always a
638+ possibility that an unwanted dependency will sneak in through some other
639+ package. To completely override such a package you can use
640+ <varname>overrideScope</varname>.
641+ </para>
676642
677643<screen>
678644overrides = super: self: rec {
@@ -685,41 +651,52 @@ overrides = super: self: rec {
685651 dante
686652])
687653</screen>
654+ </section>
655+ </section>
656+ <section xml:id="sec-weechat">
657+ <title>Weechat</title>
688658
689−</section>
690−
691−</section>
692−
693−<section xml:id="sec-weechat">
694−<title>Weechat</title>
695−<para>
696−Weechat can be configured to include your choice of plugins, reducing its
697−closure size from the default configuration which includes all available
698−plugins. To make use of this functionality, install an expression that
699−overrides its configuration such as
659+ <para>
660+ Weechat can be configured to include your choice of plugins, reducing its
661+ closure size from the default configuration which includes all available
662+ plugins. To make use of this functionality, install an expression that
663+ overrides its configuration such as
700664<programlisting>weechat.override {configure = {availablePlugins, ...}: {
701665 plugins = with availablePlugins; [ python perl ];
702666 }
703667}</programlisting>
704−</para>
705−<para>
706−The plugins currently available are <literal>python</literal>,
707−<literal>perl</literal>, <literal>ruby</literal>, <literal>guile</literal>,
708−<literal>tcl</literal> and <literal>lua</literal>.
709−</para>
710−<para>
711−The python plugin allows the addition of extra libraries. For instance,
712−the <literal>inotify.py</literal> script in weechat-scripts requires
713−D-Bus or libnotify, and the <literal>fish.py</literal> script requires
714−pycrypto. To use these scripts, use the <literal>python</literal>
715−plugin's <literal>withPackages</literal> attribute:
716−<programlisting>weechat.override {configure = {availablePlugins, ...}: {
668+ </para>
669+
670+ <para>
671+ The plugins currently available are <literal>python</literal>,
672+ <literal>perl</literal>, <literal>ruby</literal>, <literal>guile</literal>,
673+ <literal>tcl</literal> and <literal>lua</literal>.
674+ </para>
675+
676+ <para>
677+ The python plugin allows the addition of extra libraries. For instance, the
678+ <literal>inotify.py</literal> script in weechat-scripts requires D-Bus or
679+ libnotify, and the <literal>fish.py</literal> script requires pycrypto. To
680+ use these scripts, use the <literal>python</literal> plugin's
681+ <literal>withPackages</literal> attribute:
682+<programlisting>weechat.override { configure = {availablePlugins, ...}: {
717683 plugins = with availablePlugins; [
718684 (python.withPackages (ps: with ps; [ pycrypto python-dbus ]))
719685 ];
720686 }
721687}
722688</programlisting>
723−</para>
724−</section>
689+ </para>
690+
691+ <para>
692+ In order to also keep all default plugins installed, it is possible to use
693+ the following method:
694+<programlisting>weechat.override { configure = { availablePlugins, ... }: {
695+ plugins = builtins.attrValues (availablePlugins // {
696+ python = availablePlugins.python.withPackages (ps: with ps; [ pycrypto python-dbus ]);
697+ });
698+}; }
699+</programlisting>
700+ </para>
701+ </section>
725702</chapter>
doc/platform-notes.xml+38−46
@@ -1,27 +1,25 @@
11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="chap-platform-nodes">
4+ <title>Platform Notes</title>
5+ <section xml:id="sec-darwin">
6+ <title>Darwin (macOS)</title>
47
5−<title>Platform Notes</title>
8+ <para>
9+ Some common issues when packaging software for darwin:
10+ </para>
611
7−<section xml:id="sec-darwin">
8−
9−<title>Darwin (macOS)</title>
10−<para>Some common issues when packaging software for darwin:</para>
11−
12−<itemizedlist>
13−
14− <listitem>
12+ <itemizedlist>
13+ <listitem>
1514 <para>
16− The darwin <literal>stdenv</literal> uses clang instead of gcc.
17− When referring to the compiler <varname>$CC</varname> or <command>cc</command>
18− will work in both cases. Some builds hardcode gcc/g++ in their
19− build scripts, that can usually be fixed with using something
20− like <literal>makeFlags = [ "CC=cc" ];</literal> or by patching
21− the build scripts.
15+ The darwin <literal>stdenv</literal> uses clang instead of gcc. When
16+ referring to the compiler <varname>$CC</varname> or <command>cc</command>
17+ will work in both cases. Some builds hardcode gcc/g++ in their build
18+ scripts, that can usually be fixed with using something like
19+ <literal>makeFlags = [ "CC=cc" ];</literal> or by patching the build
20+ scripts.
2221 </para>
23−
24− <programlisting>
22+<programlisting>
2523 stdenv.mkDerivation {
2624 name = "libfoo-1.2.3";
2725 # ...
@@ -30,36 +28,33 @@
3028 '';
3129 }
3230 </programlisting>
33− </listitem>
34−
35− <listitem>
31+ </listitem>
32+ <listitem>
3633 <para>
37− On darwin libraries are linked using absolute paths, libraries
38− are resolved by their <literal>install_name</literal> at link
39− time. Sometimes packages won't set this correctly causing the
40− library lookups to fail at runtime. This can be fixed by adding
41− extra linker flags or by running <command>install_name_tool -id</command>
42− during the <function>fixupPhase</function>.
34+ On darwin libraries are linked using absolute paths, libraries are
35+ resolved by their <literal>install_name</literal> at link time. Sometimes
36+ packages won't set this correctly causing the library lookups to fail at
37+ runtime. This can be fixed by adding extra linker flags or by running
38+ <command>install_name_tool -id</command> during the
39+ <function>fixupPhase</function>.
4340 </para>
44−
45− <programlisting>
41+<programlisting>
4642 stdenv.mkDerivation {
4743 name = "libfoo-1.2.3";
4844 # ...
4945 makeFlags = stdenv.lib.optional stdenv.isDarwin "LDFLAGS=-Wl,-install_name,$(out)/lib/libfoo.dylib";
5046 }
5147 </programlisting>
52− </listitem>
53−
54− <listitem>
48+ </listitem>
49+ <listitem>
5550 <para>
56− Some packages assume xcode is available and use <command>xcrun</command>
57− to resolve build tools like <command>clang</command>, etc.
58− This causes errors like <code>xcode-select: error: no developer tools were found at '/Applications/Xcode.app'</code>
59− while the build doesn't actually depend on xcode.
51+ Some packages assume xcode is available and use <command>xcrun</command>
52+ to resolve build tools like <command>clang</command>, etc. This causes
53+ errors like <code>xcode-select: error: no developer tools were found at
54+ '/Applications/Xcode.app'</code> while the build doesn't actually depend
55+ on xcode.
6056 </para>
61−
62− <programlisting>
57+<programlisting>
6358 stdenv.mkDerivation {
6459 name = "libfoo-1.2.3";
6560 # ...
@@ -69,15 +64,12 @@
6964 '';
7065 }
7166 </programlisting>
72−
7367 <para>
74− The package <literal>xcbuild</literal> can be used to build projects
75− that really depend on Xcode, however projects that build some kind of
76− graphical interface won't work without using Xcode in an impure way.
68+ The package <literal>xcbuild</literal> can be used to build projects that
69+ really depend on Xcode, however projects that build some kind of graphical
70+ interface won't work without using Xcode in an impure way.
7771 </para>
78− </listitem>
79−
80−</itemizedlist>
81−</section>
82−
72+ </listitem>
73+ </itemizedlist>
74+ </section>
8375</chapter>
doc/quick-start.xml+184−188
@@ -1,223 +1,219 @@
11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="chap-quick-start">
4−
5−<title>Quick Start to Adding a Package</title>
6−
7−<para>To add a package to Nixpkgs:
8−
9−<orderedlist>
10−
11− <listitem>
12− <para>Checkout the Nixpkgs source tree:
13−
4+ <title>Quick Start to Adding a Package</title>
5+ <para>
6+ To add a package to Nixpkgs:
7+ <orderedlist>
8+ <listitem>
9+ <para>
10+ Checkout the Nixpkgs source tree:
1411<screen>
1512$ git clone git://github.com/NixOS/nixpkgs.git
1613$ cd nixpkgs</screen>
17−
1814 </para>
19− </listitem>
20−
21− <listitem>
22− <para>Find a good place in the Nixpkgs tree to add the Nix
23− expression for your package. For instance, a library package
24− typically goes into
25− <filename>pkgs/development/libraries/<replaceable>pkgname</replaceable></filename>,
26− while a web browser goes into
27− <filename>pkgs/applications/networking/browsers/<replaceable>pkgname</replaceable></filename>.
28− See <xref linkend="sec-organisation" /> for some hints on the tree
29− organisation. Create a directory for your package, e.g.
30−
15+ </listitem>
16+ <listitem>
17+ <para>
18+ Find a good place in the Nixpkgs tree to add the Nix expression for your
19+ package. For instance, a library package typically goes into
20+ <filename>pkgs/development/libraries/<replaceable>pkgname</replaceable></filename>,
21+ while a web browser goes into
22+ <filename>pkgs/applications/networking/browsers/<replaceable>pkgname</replaceable></filename>.
23+ See <xref linkend="sec-organisation" /> for some hints on the tree
24+ organisation. Create a directory for your package, e.g.
3125<screen>
3226$ mkdir pkgs/development/libraries/libfoo</screen>
33−
3427 </para>
35− </listitem>
36−
37− <listitem>
38− <para>In the package directory, create a Nix expression — a piece
39− of code that describes how to build the package. In this case, it
40− should be a <emphasis>function</emphasis> that is called with the
41− package dependencies as arguments, and returns a build of the
42− package in the Nix store. The expression should usually be called
43− <filename>default.nix</filename>.
44−
28+ </listitem>
29+ <listitem>
30+ <para>
31+ In the package directory, create a Nix expression — a piece of code that
32+ describes how to build the package. In this case, it should be a
33+ <emphasis>function</emphasis> that is called with the package dependencies
34+ as arguments, and returns a build of the package in the Nix store. The
35+ expression should usually be called <filename>default.nix</filename>.
4536<screen>
4637$ emacs pkgs/development/libraries/libfoo/default.nix
4738$ git add pkgs/development/libraries/libfoo/default.nix</screen>
48−
4939 </para>
50−
51− <para>You can have a look at the existing Nix expressions under
52− <filename>pkgs/</filename> to see how it’s done. Here are some
53− good ones:
54−
55− <itemizedlist>
56−
57− <listitem>
58− <para>GNU Hello: <link
40+ <para>
41+ You can have a look at the existing Nix expressions under
42+ <filename>pkgs/</filename> to see how it’s done. Here are some good
43+ ones:
44+ <itemizedlist>
45+ <listitem>
46+ <para>
47+ GNU Hello:
48+ <link
5949 xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/hello/default.nix"><filename>pkgs/applications/misc/hello/default.nix</filename></link>.
60− Trivial package, which specifies some <varname>meta</varname>
61− attributes which is good practice.</para>
62− </listitem>
63−
64− <listitem>
65− <para>GNU cpio: <link
50+ Trivial package, which specifies some <varname>meta</varname>
51+ attributes which is good practice.
52+ </para>
53+ </listitem>
54+ <listitem>
55+ <para>
56+ GNU cpio:
57+ <link
6658 xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/archivers/cpio/default.nix"><filename>pkgs/tools/archivers/cpio/default.nix</filename></link>.
67− Also a simple package. The generic builder in
68− <varname>stdenv</varname> does everything for you. It has
69− no dependencies beyond <varname>stdenv</varname>.</para>
70− </listitem>
71−
72− <listitem>
73− <para>GNU Multiple Precision arithmetic library (GMP): <link
59+ Also a simple package. The generic builder in <varname>stdenv</varname>
60+ does everything for you. It has no dependencies beyond
61+ <varname>stdenv</varname>.
62+ </para>
63+ </listitem>
64+ <listitem>
65+ <para>
66+ GNU Multiple Precision arithmetic library (GMP):
67+ <link
7468 xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/gmp/5.1.x.nix"><filename>pkgs/development/libraries/gmp/5.1.x.nix</filename></link>.
75− Also done by the generic builder, but has a dependency on
76− <varname>m4</varname>.</para>
77− </listitem>
78−
79− <listitem>
80− <para>Pan, a GTK-based newsreader: <link
69+ Also done by the generic builder, but has a dependency on
70+ <varname>m4</varname>.
71+ </para>
72+ </listitem>
73+ <listitem>
74+ <para>
75+ Pan, a GTK-based newsreader:
76+ <link
8177 xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/newsreaders/pan/default.nix"><filename>pkgs/applications/networking/newsreaders/pan/default.nix</filename></link>.
82− Has an optional dependency on <varname>gtkspell</varname>,
83− which is only built if <varname>spellCheck</varname> is
84− <literal>true</literal>.</para>
85− </listitem>
86−
87− <listitem>
88− <para>Apache HTTPD: <link
78+ Has an optional dependency on <varname>gtkspell</varname>, which is
79+ only built if <varname>spellCheck</varname> is <literal>true</literal>.
80+ </para>
81+ </listitem>
82+ <listitem>
83+ <para>
84+ Apache HTTPD:
85+ <link
8986 xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/http/apache-httpd/2.4.nix"><filename>pkgs/servers/http/apache-httpd/2.4.nix</filename></link>.
90− A bunch of optional features, variable substitutions in the
91− configure flags, a post-install hook, and miscellaneous
92− hackery.</para>
93− </listitem>
94−
95− <listitem>
96− <para>Thunderbird: <link
87+ A bunch of optional features, variable substitutions in the configure
88+ flags, a post-install hook, and miscellaneous hackery.
89+ </para>
90+ </listitem>
91+ <listitem>
92+ <para>
93+ Thunderbird:
94+ <link
9795 xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/mailreaders/thunderbird/default.nix"><filename>pkgs/applications/networking/mailreaders/thunderbird/default.nix</filename></link>.
98− Lots of dependencies.</para>
99− </listitem>
100−
101− <listitem>
102− <para>JDiskReport, a Java utility: <link
96+ Lots of dependencies.
97+ </para>
98+ </listitem>
99+ <listitem>
100+ <para>
101+ JDiskReport, a Java utility:
102+ <link
103103 xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/jdiskreport/default.nix"><filename>pkgs/tools/misc/jdiskreport/default.nix</filename></link>
104− (and the <link
104+ (and the
105+ <link
105106 xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/jdiskreport/builder.sh">builder</link>).
106− Nixpkgs doesn’t have a decent <varname>stdenv</varname> for
107− Java yet so this is pretty ad-hoc.</para>
108− </listitem>
109−
110− <listitem>
111− <para>XML::Simple, a Perl module: <link
107+ Nixpkgs doesn’t have a decent <varname>stdenv</varname> for Java yet
108+ so this is pretty ad-hoc.
109+ </para>
110+ </listitem>
111+ <listitem>
112+ <para>
113+ XML::Simple, a Perl module:
114+ <link
112115 xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/perl-packages.nix"><filename>pkgs/top-level/perl-packages.nix</filename></link>
113− (search for the <varname>XMLSimple</varname> attribute).
114− Most Perl modules are so simple to build that they are
115− defined directly in <filename>perl-packages.nix</filename>;
116− no need to make a separate file for them.</para>
117− </listitem>
118−
119− <listitem>
120− <para>Adobe Reader: <link
116+ (search for the <varname>XMLSimple</varname> attribute). Most Perl
117+ modules are so simple to build that they are defined directly in
118+ <filename>perl-packages.nix</filename>; no need to make a separate file
119+ for them.
120+ </para>
121+ </listitem>
122+ <listitem>
123+ <para>
124+ Adobe Reader:
125+ <link
121126 xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/adobe-reader/default.nix"><filename>pkgs/applications/misc/adobe-reader/default.nix</filename></link>.
122− Shows how binary-only packages can be supported. In
123− particular the <link
127+ Shows how binary-only packages can be supported. In particular the
128+ <link
124129 xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/adobe-reader/builder.sh">builder</link>
125− uses <command>patchelf</command> to set the RUNPATH and ELF
126− interpreter of the executables so that the right libraries
127− are found at runtime.</para>
128− </listitem>
129−
130− </itemizedlist>
131−
130+ uses <command>patchelf</command> to set the RUNPATH and ELF interpreter
131+ of the executables so that the right libraries are found at runtime.
132+ </para>
133+ </listitem>
134+ </itemizedlist>
132135 </para>
133−
134− <para>Some notes:
135−
136− <itemizedlist>
137−
138− <listitem>
139− <para>All <varname linkend="chap-meta">meta</varname>
140− attributes are optional, but it’s still a good idea to
141− provide at least the <varname>description</varname>,
142− <varname>homepage</varname> and <varname
143− linkend="sec-meta-license">license</varname>.</para>
144− </listitem>
145−
146− <listitem>
147− <para>You can use <command>nix-prefetch-url</command> (or similar nix-prefetch-git, etc)
148− <replaceable>url</replaceable> to get the SHA-256 hash of
149− source distributions. There are similar commands as <command>nix-prefetch-git</command> and
150− <command>nix-prefetch-hg</command> available in <literal>nix-prefetch-scripts</literal> package.</para>
151− </listitem>
152−
153− <listitem>
154− <para>A list of schemes for <literal>mirror://</literal>
155− URLs can be found in <link
156− xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchurl/mirrors.nix"><filename>pkgs/build-support/fetchurl/mirrors.nix</filename></link>.</para>
157− </listitem>
158−
159− </itemizedlist>
160−
136+ <para>
137+ Some notes:
138+ <itemizedlist>
139+ <listitem>
140+ <para>
141+ All <varname linkend="chap-meta">meta</varname> attributes are
142+ optional, but it’s still a good idea to provide at least the
143+ <varname>description</varname>, <varname>homepage</varname> and
144+ <varname
145+ linkend="sec-meta-license">license</varname>.
146+ </para>
147+ </listitem>
148+ <listitem>
149+ <para>
150+ You can use <command>nix-prefetch-url</command> (or similar
151+ nix-prefetch-git, etc) <replaceable>url</replaceable> to get the
152+ SHA-256 hash of source distributions. There are similar commands as
153+ <command>nix-prefetch-git</command> and
154+ <command>nix-prefetch-hg</command> available in
155+ <literal>nix-prefetch-scripts</literal> package.
156+ </para>
157+ </listitem>
158+ <listitem>
159+ <para>
160+ A list of schemes for <literal>mirror://</literal> URLs can be found in
161+ <link
162+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchurl/mirrors.nix"><filename>pkgs/build-support/fetchurl/mirrors.nix</filename></link>.
163+ </para>
164+ </listitem>
165+ </itemizedlist>
161166 </para>
162−
163− <para>The exact syntax and semantics of the Nix expression
164− language, including the built-in function, are described in the
165− Nix manual in the <link
167+ <para>
168+ The exact syntax and semantics of the Nix expression language, including
169+ the built-in function, are described in the Nix manual in the
170+ <link
166171 xlink:href="http://hydra.nixos.org/job/nix/trunk/tarball/latest/download-by-type/doc/manual/#chap-writing-nix-expressions">chapter
167− on writing Nix expressions</link>.</para>
168−
169− </listitem>
170−
171− <listitem>
172− <para>Add a call to the function defined in the previous step to
173− <link
172+ on writing Nix expressions</link>.
173+ </para>
174+ </listitem>
175+ <listitem>
176+ <para>
177+ Add a call to the function defined in the previous step to
178+ <link
174179 xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix"><filename>pkgs/top-level/all-packages.nix</filename></link>
175− with some descriptive name for the variable,
176− e.g. <varname>libfoo</varname>.
177−
178− <screen>
180+ with some descriptive name for the variable, e.g.
181+ <varname>libfoo</varname>.
182+<screen>
179183$ emacs pkgs/top-level/all-packages.nix</screen>
180−
181184 </para>
182−
183− <para>The attributes in that file are sorted by category (like
184− “Development / Libraries”) that more-or-less correspond to the
185− directory structure of Nixpkgs, and then by attribute name.</para>
186− </listitem>
187−
188− <listitem>
189− <para>To test whether the package builds, run the following command
190− from the root of the nixpkgs source tree:
191−
192− <screen>
185+ <para>
186+ The attributes in that file are sorted by category (like “Development /
187+ Libraries”) that more-or-less correspond to the directory structure of
188+ Nixpkgs, and then by attribute name.
189+ </para>
190+ </listitem>
191+ <listitem>
192+ <para>
193+ To test whether the package builds, run the following command from the
194+ root of the nixpkgs source tree:
195+<screen>
193196$ nix-build -A libfoo</screen>
194−
195− where <varname>libfoo</varname> should be the variable name
196− defined in the previous step. You may want to add the flag
197− <option>-K</option> to keep the temporary build directory in case
198− something fails. If the build succeeds, a symlink
199− <filename>./result</filename> to the package in the Nix store is
200− created.</para>
201− </listitem>
202−
203− <listitem>
204− <para>If you want to install the package into your profile
205− (optional), do
206−
207− <screen>
197+ where <varname>libfoo</varname> should be the variable name defined in the
198+ previous step. You may want to add the flag <option>-K</option> to keep
199+ the temporary build directory in case something fails. If the build
200+ succeeds, a symlink <filename>./result</filename> to the package in the
201+ Nix store is created.
202+ </para>
203+ </listitem>
204+ <listitem>
205+ <para>
206+ If you want to install the package into your profile (optional), do
207+<screen>
208208$ nix-env -f . -iA libfoo</screen>
209−
210209 </para>
211− </listitem>
212−
213− <listitem>
214− <para>Optionally commit the new package and open a pull request, or send a patch to
215− <literal>https://groups.google.com/forum/#!forum/nix-devel</literal>.</para>
216− </listitem>
217−
218−
219−</orderedlist>
220−
221−</para>
222−
210+ </listitem>
211+ <listitem>
212+ <para>
213+ Optionally commit the new package and open a pull request, or send a patch
214+ to <literal>https://groups.google.com/forum/#!forum/nix-devel</literal>.
215+ </para>
216+ </listitem>
217+ </orderedlist>
218+ </para>
223219</chapter>
doc/release-notes.xml+710−643
@@ -1,164 +1,177 @@
11<?xml version="1.0" encoding="UTF-8"?>
22<article xmlns="http://docbook.org/ns/docbook"
33 xmlns:xlink="http://www.w3.org/1999/xlink">
4+ <title>Nixpkgs Release Notes</title>
5+ <section>
6+ <title>Release 0.14 (June 4, 2012)</title>
7+
8+ <para>
9+ In preparation for the switch from Subversion to Git, this release is mainly
10+ the prevent the Nixpkgs version number from going backwards. (This would
11+ happen because prerelease version numbers produced for the Git repository
12+ are lower than those for the Subversion repository.)
13+ </para>
414
5−<title>Nixpkgs Release Notes</title>
6−
7−
8−<section><title>Release 0.14 (June 4, 2012)</title>
9−
10−<para>In preparation for the switch from Subversion to Git, this
11−release is mainly the prevent the Nixpkgs version number from going
12−backwards. (This would happen because prerelease version numbers
13−produced for the Git repository are lower than those for the
14−Subversion repository.)</para>
15−
16−<para>Since the last release, there have been thousands of changes and
17−new packages by numerous contributors. For details, see the commit
18−logs.</para>
19−
20−</section>
21−
22−
23−<section><title>Release 0.13 (February 5, 2010)</title>
24−
25−<para>As always, there are many changes. Some of the most important
26−updates are:
27−
28−<itemizedlist>
29−
30− <listitem><para>Glibc 2.9.</para></listitem>
31−
32− <listitem><para>GCC 4.3.3.</para></listitem>
33−
34− <listitem><para>Linux 2.6.32.</para></listitem>
35−
36− <listitem><para>X.org 7.5.</para></listitem>
37−
38− <listitem><para>KDE 4.3.4.</para></listitem>
39−
40−</itemizedlist>
41−
42−</para>
43−
44−
45−</section>
46−
47−
48−<section><title>Release 0.12 (April 24, 2009)</title>
49−
50−<para>There are way too many additions to Nixpkgs since the last
51−release to list here: for example, the number of packages on Linux has
52−increased from 1002 to 2159. However, some specific improvements are
53−worth listing:
54−
55−<itemizedlist>
56−
57− <listitem><para>Nixpkgs now has a manual. In particular, it
58− describes the standard build environment in
59− detail.</para></listitem>
60−
61− <listitem><para>Major new packages:
62−
63− <itemizedlist>
64−
65− <listitem><para>KDE 4.</para></listitem>
66−
67− <listitem><para>TeXLive.</para></listitem>
68−
69− <listitem><para>VirtualBox.</para></listitem>
70−
71− </itemizedlist>
72−
73− … and many others.
74−
75− </para></listitem>
76−
77− <listitem><para>Important updates:
78−
79− <itemizedlist>
80−
81− <listitem><para>Glibc 2.7.</para></listitem>
82−
83− <listitem><para>GCC 4.2.4.</para></listitem>
84−
85− <listitem><para>Linux 2.6.25 — 2.6.28.</para></listitem>
86−
87− <listitem><para>Firefox 3.</para></listitem>
88−
89− <listitem><para>X.org 7.3.</para></listitem>
90−
91− </itemizedlist>
92−
93− </para></listitem>
94−
95− <listitem><para>Support for building derivations in a virtual
96− machine, including RPM and Debian builds in automatically generated
97− VM images. See
98− <filename>pkgs/build-support/vm/default.nix</filename> for
99− details.</para></listitem>
100−
101− <listitem><para>Improved support for building Haskell
102− packages.</para></listitem>
103−
104−</itemizedlist>
105−
106−</para>
107−
108−<para>The following people contributed to this release:
109−
110−Andres Löh,
111−Arie Middelkoop,
112−Armijn Hemel,
113−Eelco Dolstra,
114−Lluís Batlle,
115−Ludovic Courtès,
116−Marc Weber,
117−Mart Kolthof,
118−Martin Bravenboer,
119−Michael Raskin,
120−Nicolas Pierron,
121−Peter Simons,
122−Pjotr Prins,
123−Rob Vermaas,
124−Sander van der Burg,
125−Tobias Hammerschmidt,
126−Valentin David,
127−Wouter den Breejen and
128−Yury G. Kudryashov.
129−
130−In addition, several people contributed patches on the
131−<literal>nix-dev</literal> mailing list.</para>
132−
133−</section>
134−
135−
136−<section><title>Release 0.11 (September 11, 2007)</title>
137−
138−<para>This release has the following improvements:
139−
140−<itemizedlist>
141−
142−
143− <listitem><para>The standard build environment
144− (<literal>stdenv</literal>) is now pure on the
145− <literal>x86_64-linux</literal> and <literal>powerpc-linux</literal>
146− platforms, just as on <literal>i686-linux</literal>. (Purity means
147− that building and using the standard environment has no dependencies
148− outside of the Nix store. For instance, it doesn’t require an
149− external C compiler such as <filename>/usr/bin/gcc</filename>.)
150− Also, the statically linked binaries used in the bootstrap process
151− are now automatically reproducible, making it easy to update the
152− bootstrap tools and to add support for other Linux platforms. See
153− <filename>pkgs/stdenv/linux/make-bootstrap-tools.nix</filename> for
154− details.</para></listitem>
155−
156−
157− <listitem><para>Hook variables in the generic builder are now
158− executed using the <function>eval</function> shell command. This
159− has a major advantage: you can write hooks directly in Nix
160− expressions. For instance, rather than writing a builder like this:
15+ <para>
16+ Since the last release, there have been thousands of changes and new
17+ packages by numerous contributors. For details, see the commit logs.
18+ </para>
19+ </section>
20+ <section>
21+ <title>Release 0.13 (February 5, 2010)</title>
22+
23+ <para>
24+ As always, there are many changes. Some of the most important updates are:
25+ <itemizedlist>
26+ <listitem>
27+ <para>
28+ Glibc 2.9.
29+ </para>
30+ </listitem>
31+ <listitem>
32+ <para>
33+ GCC 4.3.3.
34+ </para>
35+ </listitem>
36+ <listitem>
37+ <para>
38+ Linux 2.6.32.
39+ </para>
40+ </listitem>
41+ <listitem>
42+ <para>
43+ X.org 7.5.
44+ </para>
45+ </listitem>
46+ <listitem>
47+ <para>
48+ KDE 4.3.4.
49+ </para>
50+ </listitem>
51+ </itemizedlist>
52+ </para>
53+ </section>
54+ <section>
55+ <title>Release 0.12 (April 24, 2009)</title>
56+
57+ <para>
58+ There are way too many additions to Nixpkgs since the last release to list
59+ here: for example, the number of packages on Linux has increased from 1002
60+ to 2159. However, some specific improvements are worth listing:
61+ <itemizedlist>
62+ <listitem>
63+ <para>
64+ Nixpkgs now has a manual. In particular, it describes the standard build
65+ environment in detail.
66+ </para>
67+ </listitem>
68+ <listitem>
69+ <para>
70+ Major new packages:
71+ <itemizedlist>
72+ <listitem>
73+ <para>
74+ KDE 4.
75+ </para>
76+ </listitem>
77+ <listitem>
78+ <para>
79+ TeXLive.
80+ </para>
81+ </listitem>
82+ <listitem>
83+ <para>
84+ VirtualBox.
85+ </para>
86+ </listitem>
87+ </itemizedlist>
88+ … and many others.
89+ </para>
90+ </listitem>
91+ <listitem>
92+ <para>
93+ Important updates:
94+ <itemizedlist>
95+ <listitem>
96+ <para>
97+ Glibc 2.7.
98+ </para>
99+ </listitem>
100+ <listitem>
101+ <para>
102+ GCC 4.2.4.
103+ </para>
104+ </listitem>
105+ <listitem>
106+ <para>
107+ Linux 2.6.25 — 2.6.28.
108+ </para>
109+ </listitem>
110+ <listitem>
111+ <para>
112+ Firefox 3.
113+ </para>
114+ </listitem>
115+ <listitem>
116+ <para>
117+ X.org 7.3.
118+ </para>
119+ </listitem>
120+ </itemizedlist>
121+ </para>
122+ </listitem>
123+ <listitem>
124+ <para>
125+ Support for building derivations in a virtual machine, including RPM and
126+ Debian builds in automatically generated VM images. See
127+ <filename>pkgs/build-support/vm/default.nix</filename> for details.
128+ </para>
129+ </listitem>
130+ <listitem>
131+ <para>
132+ Improved support for building Haskell packages.
133+ </para>
134+ </listitem>
135+ </itemizedlist>
136+ </para>
161137
138+ <para>
139+ The following people contributed to this release: Andres Löh, Arie
140+ Middelkoop, Armijn Hemel, Eelco Dolstra, Lluís Batlle, Ludovic Courtès,
141+ Marc Weber, Mart Kolthof, Martin Bravenboer, Michael Raskin, Nicolas
142+ Pierron, Peter Simons, Pjotr Prins, Rob Vermaas, Sander van der Burg, Tobias
143+ Hammerschmidt, Valentin David, Wouter den Breejen and Yury G. Kudryashov. In
144+ addition, several people contributed patches on the
145+ <literal>nix-dev</literal> mailing list.
146+ </para>
147+ </section>
148+ <section>
149+ <title>Release 0.11 (September 11, 2007)</title>
150+
151+ <para>
152+ This release has the following improvements:
153+ <itemizedlist>
154+ <listitem>
155+ <para>
156+ The standard build environment (<literal>stdenv</literal>) is now pure on
157+ the <literal>x86_64-linux</literal> and <literal>powerpc-linux</literal>
158+ platforms, just as on <literal>i686-linux</literal>. (Purity means that
159+ building and using the standard environment has no dependencies outside
160+ of the Nix store. For instance, it doesn’t require an external C
161+ compiler such as <filename>/usr/bin/gcc</filename>.) Also, the statically
162+ linked binaries used in the bootstrap process are now automatically
163+ reproducible, making it easy to update the bootstrap tools and to add
164+ support for other Linux platforms. See
165+ <filename>pkgs/stdenv/linux/make-bootstrap-tools.nix</filename> for
166+ details.
167+ </para>
168+ </listitem>
169+ <listitem>
170+ <para>
171+ Hook variables in the generic builder are now executed using the
172+ <function>eval</function> shell command. This has a major advantage: you
173+ can write hooks directly in Nix expressions. For instance, rather than
174+ writing a builder like this:
162175<programlisting>
163176source $stdenv/setup
164177
@@ -169,290 +182,311 @@ postInstall() {
169182}
170183
171184genericBuild</programlisting>
172−
173− (the <literal>gzip</literal> builder), you can just add this
174− attribute to the derivation:
175−
185+ (the <literal>gzip</literal> builder), you can just add this attribute to
186+ the derivation:
176187<programlisting>
177188postInstall = "ln -sf gzip $out/bin/gunzip; ln -sf gzip $out/bin/zcat";</programlisting>
178−
179− and so a separate build script becomes unnecessary. This should
180− allow us to get rid of most builders in Nixpkgs.</para></listitem>
181−
182−
183− <listitem><para>It is now possible to have the generic builder pass
184− arguments to <command>configure</command> and
185− <command>make</command> that contain whitespace. Previously, for
186− example, you could say in a builder,
187−
189+ and so a separate build script becomes unnecessary. This should allow us
190+ to get rid of most builders in Nixpkgs.
191+ </para>
192+ </listitem>
193+ <listitem>
194+ <para>
195+ It is now possible to have the generic builder pass arguments to
196+ <command>configure</command> and <command>make</command> that contain
197+ whitespace. Previously, for example, you could say in a builder,
188198<programlisting>
189199configureFlags="CFLAGS=-O0"</programlisting>
190−
191− but not
192−
200+ but not
193201<programlisting>
194202configureFlags="CFLAGS=-O0 -g"</programlisting>
195−
196− since the <literal>-g</literal> would be interpreted as a separate
197− argument to <command>configure</command>. Now you can say
198−
203+ since the <literal>-g</literal> would be interpreted as a separate
204+ argument to <command>configure</command>. Now you can say
199205<programlisting>
200206configureFlagsArray=("CFLAGS=-O0 -g")</programlisting>
201−
202− or similarly
203−
207+ or similarly
204208<programlisting>
205209configureFlagsArray=("CFLAGS=-O0 -g" "LDFLAGS=-L/foo -L/bar")</programlisting>
206−
207− which does the right thing. Idem for <literal>makeFlags</literal>,
208− <literal>installFlags</literal>, <literal>checkFlags</literal> and
209− <literal>distFlags</literal>.</para>
210−
211− <para>Unfortunately you can't pass arrays to Bash through the
212− environment, so you can't put the array above in a Nix expression,
213− e.g.,
214−
210+ which does the right thing. Idem for <literal>makeFlags</literal>,
211+ <literal>installFlags</literal>, <literal>checkFlags</literal> and
212+ <literal>distFlags</literal>.
213+ </para>
214+ <para>
215+ Unfortunately you can't pass arrays to Bash through the environment, so
216+ you can't put the array above in a Nix expression, e.g.,
215217<programlisting>
216218configureFlagsArray = ["CFLAGS=-O0 -g"];</programlisting>
217−
218− since it would just be flattened to a since string. However, you
219− <emphasis>can</emphasis> use the inline hooks described above:
220−
219+ since it would just be flattened to a since string. However, you
220+ <emphasis>can</emphasis> use the inline hooks described above:
221221<programlisting>
222222preConfigure = "configureFlagsArray=(\"CFLAGS=-O0 -g\")";</programlisting>
223−
224− </para></listitem>
225−
226−
227− <listitem><para>The function <function>fetchurl</function> now has
228− support for two different kinds of mirroring of files. First, it
229− has support for <emphasis>content-addressable mirrors</emphasis>.
230− For example, given the <function>fetchurl</function> call
231−
223+ </para>
224+ </listitem>
225+ <listitem>
226+ <para>
227+ The function <function>fetchurl</function> now has support for two
228+ different kinds of mirroring of files. First, it has support for
229+ <emphasis>content-addressable mirrors</emphasis>. For example, given the
230+ <function>fetchurl</function> call
232231<programlisting>
233232fetchurl {
234233 url = http://releases.mozilla.org/<replaceable>...</replaceable>/firefox-2.0.0.6-source.tar.bz2;
235234 sha1 = "eb72f55e4a8bf08e8c6ef227c0ade3d068ba1082";
236235}</programlisting>
237−
238− <function>fetchurl</function> will first try to download this file
239− from <link
236+ <function>fetchurl</function> will first try to download this file from
237+ <link
240238 xlink:href="http://tarballs.nixos.org/sha1/eb72f55e4a8bf08e8c6ef227c0ade3d068ba1082"/>.
241− If that file doesn’t exist, it will try the original URL. In
242− general, the “content-addressed” location is
243− <replaceable>mirror</replaceable><literal>/</literal><replaceable>hash-type</replaceable><literal>/</literal><replaceable>hash</replaceable>.
244− There is currently only one content-addressable mirror (<link
239+ If that file doesn’t exist, it will try the original URL. In general,
240+ the “content-addressed” location is
241+ <replaceable>mirror</replaceable><literal>/</literal><replaceable>hash-type</replaceable><literal>/</literal><replaceable>hash</replaceable>.
242+ There is currently only one content-addressable mirror
243+ (<link
245244 xlink:href="http://tarballs.nixos.org"/>), but more can be
246− specified in the <varname>hashedMirrors</varname> attribute in
247− <filename>pkgs/build-support/fetchurl/mirrors.nix</filename>, or by
248− setting the <envar>NIX_HASHED_MIRRORS</envar> environment variable
249− to a whitespace-separated list of URLs.</para>
250−
251− <para>Second, <function>fetchurl</function> has support for
252− widely-mirrored distribution sites such as SourceForge or the Linux
253− kernel archives. Given a URL of the form
254− <literal>mirror://<replaceable>site</replaceable>/<replaceable>path</replaceable></literal>,
255− it will try to download <replaceable>path</replaceable> from a
256− configurable list of mirrors for <replaceable>site</replaceable>.
257− (This idea was borrowed from Gentoo Linux.) Example:
245+ specified in the <varname>hashedMirrors</varname> attribute in
246+ <filename>pkgs/build-support/fetchurl/mirrors.nix</filename>, or by
247+ setting the <envar>NIX_HASHED_MIRRORS</envar> environment variable to a
248+ whitespace-separated list of URLs.
249+ </para>
250+ <para>
251+ Second, <function>fetchurl</function> has support for widely-mirrored
252+ distribution sites such as SourceForge or the Linux kernel archives.
253+ Given a URL of the form
254+ <literal>mirror://<replaceable>site</replaceable>/<replaceable>path</replaceable></literal>,
255+ it will try to download <replaceable>path</replaceable> from a
256+ configurable list of mirrors for <replaceable>site</replaceable>. (This
257+ idea was borrowed from Gentoo Linux.) Example:
258258<programlisting>
259259fetchurl {
260260 url = mirror://gnu/gcc/gcc-4.2.0/gcc-core-4.2.0.tar.bz2;
261261 sha256 = "0ykhzxhr8857dr97z0j9wyybfz1kjr71xk457cfapfw5fjas4ny1";
262262}</programlisting>
263− Currently <replaceable>site</replaceable> can be
264− <literal>sourceforge</literal>, <literal>gnu</literal> and
265− <literal>kernel</literal>. The list of mirrors is defined in
266− <filename>pkgs/build-support/fetchurl/mirrors.nix</filename>. You
267− can override the list of mirrors for a particular site by setting
268− the environment variable
269− <envar>NIX_MIRRORS_<replaceable>site</replaceable></envar>, e.g.
263+ Currently <replaceable>site</replaceable> can be
264+ <literal>sourceforge</literal>, <literal>gnu</literal> and
265+ <literal>kernel</literal>. The list of mirrors is defined in
266+ <filename>pkgs/build-support/fetchurl/mirrors.nix</filename>. You can
267+ override the list of mirrors for a particular site by setting the
268+ environment variable
269+ <envar>NIX_MIRRORS_<replaceable>site</replaceable></envar>, e.g.
270270<programlisting>
271271export NIX_MIRRORS_sourceforge=http://osdn.dl.sourceforge.net/sourceforge/</programlisting>
272+ </para>
273+ </listitem>
274+ <listitem>
275+ <para>
276+ Important updates:
277+ <itemizedlist>
278+ <listitem>
279+ <para>
280+ Glibc 2.5.
281+ </para>
282+ </listitem>
283+ <listitem>
284+ <para>
285+ GCC 4.1.2.
286+ </para>
287+ </listitem>
288+ <listitem>
289+ <para>
290+ Gnome 2.16.3.
291+ </para>
292+ </listitem>
293+ <listitem>
294+ <para>
295+ X11R7.2.
296+ </para>
297+ </listitem>
298+ <listitem>
299+ <para>
300+ Linux 2.6.21.7 and 2.6.22.6.
301+ </para>
302+ </listitem>
303+ <listitem>
304+ <para>
305+ Emacs 22.1.
306+ </para>
307+ </listitem>
308+ </itemizedlist>
309+ </para>
310+ </listitem>
311+ <listitem>
312+ <para>
313+ Major new packages:
314+ <itemizedlist>
315+ <listitem>
316+ <para>
317+ KDE 3.5.6 Base.
318+ </para>
319+ </listitem>
320+ <listitem>
321+ <para>
322+ Wine 0.9.43.
323+ </para>
324+ </listitem>
325+ <listitem>
326+ <para>
327+ OpenOffice 2.2.1.
328+ </para>
329+ </listitem>
330+ <listitem>
331+ <para>
332+ Many Linux system packages to support NixOS.
333+ </para>
334+ </listitem>
335+ </itemizedlist>
336+ </para>
337+ </listitem>
338+ </itemizedlist>
272339 </para>
273340
274− </listitem>
275−
276−
277− <listitem><para>Important updates:
278−
279− <itemizedlist>
280−
281− <listitem><para>Glibc 2.5.</para></listitem>
282−
283− <listitem><para>GCC 4.1.2.</para></listitem>
284−
285− <listitem><para>Gnome 2.16.3.</para></listitem>
286−
287− <listitem><para>X11R7.2.</para></listitem>
288−
289− <listitem><para>Linux 2.6.21.7 and 2.6.22.6.</para></listitem>
290−
291− <listitem><para>Emacs 22.1.</para></listitem>
292−
293− </itemizedlist>
294−
295− </para></listitem>
296−
297−
298− <listitem><para>Major new packages:
299−
300− <itemizedlist>
301−
302− <listitem><para>KDE 3.5.6 Base.</para></listitem>
303−
304− <listitem><para>Wine 0.9.43.</para></listitem>
305−
306− <listitem><para>OpenOffice 2.2.1.</para></listitem>
307−
308− <listitem><para>Many Linux system packages to support
309− NixOS.</para></listitem>
310−
311− </itemizedlist>
312−
313− </para></listitem>
314−
315−</itemizedlist>
316−
317−</para>
318−
319−<para>The following people contributed to this release:
320−
321− Andres Löh,
322− Arie Middelkoop,
323− Armijn Hemel,
324− Eelco Dolstra,
325− Marc Weber,
326− Mart Kolthof,
327− Martin Bravenboer,
328− Michael Raskin,
329− Wouter den Breejen and
330− Yury G. Kudryashov.
331−
332−</para>
333−
334−</section>
335−
336−
337−<section><title>Release 0.10 (October 12, 2006)</title>
338−
339−<note><para>This release of Nixpkgs requires <link
340−xlink:href='http://nixos.org/releases/nix/nix-0.10/'>Nix
341−0.10</link> or higher.</para></note>
342−
343−<para>This release has the following improvements:</para>
344−
345−<itemizedlist>
346−
347− <listitem><para><filename>pkgs/system/all-packages-generic.nix</filename>
348− is gone, we now just have
349− <filename>pkgs/top-level/all-packages.nix</filename> that contains
350− all available packages. This should cause much less confusion with
351− users. <filename>all-packages.nix</filename> is a function that by
352− default returns packages for the current platform, but you can
353− override this by specifying a different <varname>system</varname>
354− argument.</para></listitem>
355−
356− <listitem><para>Certain packages in Nixpkgs are now
357− user-configurable through a configuration file, i.e., without having
358− to edit the Nix expressions in Nixpkgs. For instance, the Firefox
359− provided in the Nixpkgs channel is built without the RealPlayer
360− plugin (for legal reasons). Previously, you could easily enable
361− RealPlayer support by editing the call to the Firefox function in
362− <filename>all-packages.nix</filename>, but such changes are not
363− respected when Firefox is subsequently updated through the Nixpkgs
364− channel.</para>
365−
366− <para>The Nixpkgs configuration file (found in
367− <filename>~/.nixpkgs/config.nix</filename> or through the
368− <envar>NIXPKGS_CONFIG</envar> environment variable) is an attribute
369− set that contains configuration options that
370− <filename>all-packages.nix</filename> reads and uses for certain
371− packages. For instance, the following configuration file:
341+ <para>
342+ The following people contributed to this release: Andres Löh, Arie
343+ Middelkoop, Armijn Hemel, Eelco Dolstra, Marc Weber, Mart Kolthof, Martin
344+ Bravenboer, Michael Raskin, Wouter den Breejen and Yury G. Kudryashov.
345+ </para>
346+ </section>
347+ <section>
348+ <title>Release 0.10 (October 12, 2006)</title>
349+
350+ <note>
351+ <para>
352+ This release of Nixpkgs requires
353+ <link
354+xlink:href='http://nixos.org/releases/nix/nix-0.10/'>Nix 0.10</link>
355+ or higher.
356+ </para>
357+ </note>
358+
359+ <para>
360+ This release has the following improvements:
361+ </para>
372362
363+ <itemizedlist>
364+ <listitem>
365+ <para>
366+ <filename>pkgs/system/all-packages-generic.nix</filename> is gone, we now
367+ just have <filename>pkgs/top-level/all-packages.nix</filename> that
368+ contains all available packages. This should cause much less confusion
369+ with users. <filename>all-packages.nix</filename> is a function that by
370+ default returns packages for the current platform, but you can override
371+ this by specifying a different <varname>system</varname> argument.
372+ </para>
373+ </listitem>
374+ <listitem>
375+ <para>
376+ Certain packages in Nixpkgs are now user-configurable through a
377+ configuration file, i.e., without having to edit the Nix expressions in
378+ Nixpkgs. For instance, the Firefox provided in the Nixpkgs channel is
379+ built without the RealPlayer plugin (for legal reasons). Previously, you
380+ could easily enable RealPlayer support by editing the call to the Firefox
381+ function in <filename>all-packages.nix</filename>, but such changes are
382+ not respected when Firefox is subsequently updated through the Nixpkgs
383+ channel.
384+ </para>
385+ <para>
386+ The Nixpkgs configuration file (found in
387+ <filename>~/.nixpkgs/config.nix</filename> or through the
388+ <envar>NIXPKGS_CONFIG</envar> environment variable) is an attribute set
389+ that contains configuration options that
390+ <filename>all-packages.nix</filename> reads and uses for certain packages.
391+ For instance, the following configuration file:
373392<programlisting>
374393{
375394 firefox = {
376395 enableRealPlayer = true;
377396 };
378397}</programlisting>
379−
380− persistently enables RealPlayer support in the Firefox
381− build.</para>
382−
383− <para>(Actually, <literal>firefox.enableRealPlayer</literal> is the
384− <emphasis>only</emphasis> configuration option currently available,
385− but more are sure to be added.)</para></listitem>
386−
387− <listitem><para>Support for new platforms:
388−
389− <itemizedlist>
390−
391− <listitem><para><literal>i686-cygwin</literal>, i.e., Windows
392− (using <link xlink:href="http://www.cygwin.com/">Cygwin</link>).
393− The standard environment on <literal>i686-cygwin</literal> by
394− default builds binaries for the Cygwin environment (i.e., it
395− uses Cygwin tools and produces executables that use the Cygwin
396− library). However, there is also a standard environment that
397− produces binaries that use <link
398− xlink:href="http://www.mingw.org/">MinGW</link>. You can use it
399− by calling <filename>all-package.nix</filename> with the
400− <varname>stdenvType</varname> argument set to
401− <literal>"i686-mingw"</literal>.</para></listitem>
402−
403− <listitem><para><literal>i686-darwin</literal>, i.e., Mac OS X
404− on Intel CPUs.</para></listitem>
405−
406− <listitem><para><literal>powerpc-linux</literal>.</para></listitem>
407−
408− <listitem><para><literal>x86_64-linux</literal>, i.e., Linux on
409− 64-bit AMD/Intel CPUs. Unlike <literal>i686-linux</literal>,
410− this platform doesn’t have a pure <literal>stdenv</literal>
411− yet.</para></listitem>
412−
413− </itemizedlist>
414−
398+ persistently enables RealPlayer support in the Firefox build.
415399 </para>
416−
417− </listitem>
418−
419− <listitem><para>The default compiler is now GCC 4.1.1.</para></listitem>
420−
421− <listitem><para>X11 updated to X.org’s X11R7.1.</para></listitem>
422−
423− <listitem><para>Notable new packages:
424−
425− <itemizedlist>
426−
427− <listitem><para>Opera.</para></listitem>
428−
429− <listitem><para>Microsoft Visual C++ 2005 Express Edition and
430− the Windows SDK.</para></listitem>
431−
432− </itemizedlist>
433−
434− In total there are now around 809 packages in Nixpkgs.</para>
435−
436− </listitem>
437−
438−
439− <listitem><para>It is now <emphasis>much</emphasis> easier to
440− override the default C compiler and other tools in
441− <literal>stdenv</literal> for specific packages.
442− <filename>all-packages.nix</filename> provides two utility
443− functions for this purpose: <function>overrideGCC</function> and
444− <function>overrideInStdenv</function>. Both take a
445− <literal>stdenv</literal> and return an augmented
446− <literal>stdenv</literal>; the formed changes the C compiler, and
447− the latter adds additional packages to the front of
448− <literal>stdenv</literal>’s initial <envar>PATH</envar>, allowing
449− tools to be overridden.</para>
450−
451− <para>For instance, the package <varname>strategoxt</varname>
452− doesn’t build with the GNU Make in <literal>stdenv</literal>
453− (version 3.81), so we call it with an augmented
454− <literal>stdenv</literal> that uses GNU Make 3.80:
455−
400+ <para>
401+ (Actually, <literal>firefox.enableRealPlayer</literal> is the
402+ <emphasis>only</emphasis> configuration option currently available, but
403+ more are sure to be added.)
404+ </para>
405+ </listitem>
406+ <listitem>
407+ <para>
408+ Support for new platforms:
409+ <itemizedlist>
410+ <listitem>
411+ <para>
412+ <literal>i686-cygwin</literal>, i.e., Windows (using
413+ <link xlink:href="http://www.cygwin.com/">Cygwin</link>). The standard
414+ environment on <literal>i686-cygwin</literal> by default builds
415+ binaries for the Cygwin environment (i.e., it uses Cygwin tools and
416+ produces executables that use the Cygwin library). However, there is
417+ also a standard environment that produces binaries that use
418+ <link
419+ xlink:href="http://www.mingw.org/">MinGW</link>. You can
420+ use it by calling <filename>all-package.nix</filename> with the
421+ <varname>stdenvType</varname> argument set to
422+ <literal>"i686-mingw"</literal>.
423+ </para>
424+ </listitem>
425+ <listitem>
426+ <para>
427+ <literal>i686-darwin</literal>, i.e., Mac OS X on Intel CPUs.
428+ </para>
429+ </listitem>
430+ <listitem>
431+ <para>
432+ <literal>powerpc-linux</literal>.
433+ </para>
434+ </listitem>
435+ <listitem>
436+ <para>
437+ <literal>x86_64-linux</literal>, i.e., Linux on 64-bit AMD/Intel CPUs.
438+ Unlike <literal>i686-linux</literal>, this platform doesn’t have a
439+ pure <literal>stdenv</literal> yet.
440+ </para>
441+ </listitem>
442+ </itemizedlist>
443+ </para>
444+ </listitem>
445+ <listitem>
446+ <para>
447+ The default compiler is now GCC 4.1.1.
448+ </para>
449+ </listitem>
450+ <listitem>
451+ <para>
452+ X11 updated to X.org’s X11R7.1.
453+ </para>
454+ </listitem>
455+ <listitem>
456+ <para>
457+ Notable new packages:
458+ <itemizedlist>
459+ <listitem>
460+ <para>
461+ Opera.
462+ </para>
463+ </listitem>
464+ <listitem>
465+ <para>
466+ Microsoft Visual C++ 2005 Express Edition and the Windows SDK.
467+ </para>
468+ </listitem>
469+ </itemizedlist>
470+ In total there are now around 809 packages in Nixpkgs.
471+ </para>
472+ </listitem>
473+ <listitem>
474+ <para>
475+ It is now <emphasis>much</emphasis> easier to override the default C
476+ compiler and other tools in <literal>stdenv</literal> for specific
477+ packages. <filename>all-packages.nix</filename> provides two utility
478+ functions for this purpose: <function>overrideGCC</function> and
479+ <function>overrideInStdenv</function>. Both take a
480+ <literal>stdenv</literal> and return an augmented
481+ <literal>stdenv</literal>; the formed changes the C compiler, and the
482+ latter adds additional packages to the front of
483+ <literal>stdenv</literal>’s initial <envar>PATH</envar>, allowing tools
484+ to be overridden.
485+ </para>
486+ <para>
487+ For instance, the package <varname>strategoxt</varname> doesn’t build
488+ with the GNU Make in <literal>stdenv</literal> (version 3.81), so we call
489+ it with an augmented <literal>stdenv</literal> that uses GNU Make 3.80:
456490<programlisting>
457491strategoxt = (import ../development/compilers/strategoxt) {
458492 inherit fetchurl pkgconfig sdf aterm;
@@ -460,44 +494,37 @@ strategoxt = (import ../development/compilers/strategoxt) {
460494};
461495
462496gnumake380 = <replaceable>...</replaceable>;</programlisting>
463−
464− Likewise, there are many packages that don’t compile with the
465− default GCC (4.1.1), but that’s easily fixed:
466−
497+ Likewise, there are many packages that don’t compile with the default
498+ GCC (4.1.1), but that’s easily fixed:
467499<programlisting>
468500exult = import ../games/exult {
469501 inherit fetchurl SDL SDL_mixer zlib libpng unzip;
470502 stdenv = overrideGCC stdenv gcc34;
471503};</programlisting>
472−
473− </para></listitem>
474−
475−
476− <listitem><para>It has also become much easier to experiment with
477− changes to the <literal>stdenv</literal> setup script (which notably
478− contains the generic builder). Since edits to
479− <filename>pkgs/stdenv/generic/setup.sh</filename> trigger a rebuild
480− of <emphasis>everything</emphasis>, this was formerly quite painful.
481− But now <literal>stdenv</literal> contains a function to
482− “regenerate” <literal>stdenv</literal> with a different setup
483− script, allowing the use of a different setup script for specific
484− packages:
485−
504+ </para>
505+ </listitem>
506+ <listitem>
507+ <para>
508+ It has also become much easier to experiment with changes to the
509+ <literal>stdenv</literal> setup script (which notably contains the generic
510+ builder). Since edits to <filename>pkgs/stdenv/generic/setup.sh</filename>
511+ trigger a rebuild of <emphasis>everything</emphasis>, this was formerly
512+ quite painful. But now <literal>stdenv</literal> contains a function to
513+ “regenerate” <literal>stdenv</literal> with a different setup script,
514+ allowing the use of a different setup script for specific packages:
486515<programlisting>
487516pkg = import <replaceable>...</replaceable> {
488517 stdenv = stdenv.regenerate ./my-setup.sh;
489518 <replaceable>...</replaceable>
490519}</programlisting>
491−
492− </para></listitem>
493−
494−
495− <listitem><para>Packages can now have a human-readable
496− <emphasis>description</emphasis> field. Package descriptions are
497− shown by <literal>nix-env -qa --description</literal>. In addition,
498− they’re shown on the Nixpkgs release page. A description can be
499− added to a package as follows:
500−
520+ </para>
521+ </listitem>
522+ <listitem>
523+ <para>
524+ Packages can now have a human-readable <emphasis>description</emphasis>
525+ field. Package descriptions are shown by <literal>nix-env -qa
526+ --description</literal>. In addition, they’re shown on the Nixpkgs
527+ release page. A description can be added to a package as follows:
501528<programlisting>
502529stdenv.mkDerivation {
503530 name = "exult-1.2";
@@ -506,228 +533,268 @@ stdenv.mkDerivation {
506533 description = "A reimplementation of the Ultima VII game engine";
507534 };
508535}</programlisting>
509−
510− The <varname>meta</varname> attribute is not passed to the builder,
511− so changes to the description do not trigger a rebuild. Additional
512− <varname>meta</varname> attributes may be defined in the future
513− (such as the URL of the package’s homepage, the license,
514− etc.).</para></listitem>
515−
516−</itemizedlist>
517−
518−
519−<para>The following people contributed to this release:
520−
521− Andres Löh,
522− Armijn Hemel,
523− Christof Douma,
524− Eelco Dolstra,
525− Eelco Visser,
526− Mart Kolthof,
527− Martin Bravenboer,
528− Merijn de Jonge,
529− Rob Vermaas and
530− Roy van den Broek.
531−
532−</para>
533−
534−</section>
535−
536−
537−<section><title>Release 0.9 (January 31, 2006)</title>
538−
539−<para>There have been zillions of changes since the last release of
540−Nixpkgs. Many packages have been added or updated. The following are
541−some of the more notable changes:</para>
542−
543−<itemizedlist>
544−
545− <listitem><para>Distribution files have been moved to <link
546− xlink:href="http://nixos.org/" />.</para></listitem>
547−
548− <listitem><para>The C library on Linux, Glibc, has been updated to
549− version 2.3.6.</para></listitem>
550−
551− <listitem><para>The default compiler is now GCC 3.4.5. GCC 4.0.2 is
552− also available.</para></listitem>
553−
554− <listitem><para>The old, unofficial Xlibs has been replaced by the
555− official modularised X11 distribution from X.org, i.e., X11R7.0.
556− X11R7.0 consists of 287 (!) packages, all of which are in Nixpkgs
557− though not all have been tested. It is now possible to build a
558− working X server (previously we only had X client libraries). We
559− use a fully Nixified X server on NixOS.</para></listitem>
560−
561− <listitem><para>The Sun JDK 5 has been purified, i.e., it doesn’t
562− require any non-Nix components such as
563− <filename>/lib/ld-linux.so.2</filename>. This means that Java
564− applications such as Eclipse and Azureus can run on
565− NixOS.</para></listitem>
566−
567− <listitem><para>Hardware-accelerated OpenGL support, used by games
568− like Quake 3 (which is now built from source).</para></listitem>
569−
570− <listitem><para>Improved support for FreeBSD on
571− x86.</para></listitem>
572−
573− <listitem><para>Improved Haskell support; e.g., the GHC build is now
574− pure.</para></listitem>
575−
576− <listitem><para>Some support for cross-compilation: cross-compiling
577− builds of GCC and Binutils, and cross-compiled builds of the C
578− library uClibc.</para></listitem>
579−
580− <listitem><para>Notable new packages:
581−
582− <itemizedlist>
583−
584− <listitem><para>teTeX, including support for building LaTeX
585− documents using Nix (with automatic dependency
586− determination).</para></listitem>
587−
588− <listitem><para>Ruby.</para></listitem>
589−
590− <listitem><para>System-level packages to support NixOS,
591− e.g. Grub, GNU <literal>parted</literal> and so
592− on.</para></listitem>
593−
594− <listitem><para><literal>ecj</literal>, the Eclipse Compiler for
595− Java, so we finally have a freely distributable compiler that
596− supports Java 5.0.</para></listitem>
597−
598− <listitem><para><literal>php</literal>.</para></listitem>
599−
600− <listitem><para>The GIMP.</para></listitem>
601−
602− <listitem><para>Inkscape.</para></listitem>
603−
604− <listitem><para>GAIM.</para></listitem>
605−
606− <listitem><para><literal>kdelibs</literal>. This allows us to
607− add KDE-based packages (such as
608− <literal>kcachegrind</literal>).</para></listitem>
609−
610− </itemizedlist>
611−
612− </para></listitem>
613−
614−</itemizedlist>
615−
616−<para>The following people contributed to this release:
617−
618− Andres Löh,
619− Armijn Hemel,
620− Bogdan Dumitriu,
621− Christof Douma,
622− Eelco Dolstra,
623− Eelco Visser,
624− Mart Kolthof,
625− Martin Bravenboer,
626− Rob Vermaas and
627− Roy van den Broek.
628−
629−</para>
630−
631−</section>
632−
633−
634−<section><title>Release 0.8 (April 11, 2005)</title>
635−
636−<para>This release is mostly to remain synchronised with the changed
637−hashing scheme in Nix 0.8.</para>
638−
639−<para>Notable updates:
640−
641−<itemizedlist>
642−
643− <listitem><para>Adobe Reader 7.0</para></listitem>
644−
645− <listitem><para>Various security updates (zlib 1.2.2, etc.)</para></listitem>
646−
647−</itemizedlist>
648−
649−</para>
650−
651−</section>
652−
653−
654−<section><title>Release 0.7 (March 14, 2005)</title>
655−
656−<itemizedlist>
657−
658−<listitem>
659−
660− <para>The bootstrap process for the standard build
661− environment on Linux (stdenv-linux) has been improved. It is no
662− longer dependent in its initial bootstrap stages on the system
663− Glibc, GCC, and other tools. Rather, Nixpkgs contains a statically
664− linked bash and curl, and uses that to download other statically
665− linked tools. These are then used to build a Glibc and dynamically
666− linked versions of all other tools.</para>
667−
668− <para>This change also makes the bootstrap process faster. For
669− instance, GCC is built only once instead of three times.</para>
670−
671− <para>(Contributed by Armijn Hemel.)</para>
672−
673−</listitem>
674−
675−<listitem>
676−
677− <para>Tarballs used by Nixpkgs are now obtained from the same server
678− that hosts Nixpkgs (<link
679− xlink:href="http://catamaran.labs.cs.uu.nl/" />). This reduces the
680− risk of packages being unbuildable due to moved or deleted files on
681− various servers.</para>
682−
683−</listitem>
684−
685−<listitem>
686−
687− <para>There now is a generic mechanism for building Perl modules.
688− See the various Perl modules defined in
689− pkgs/system/all-packages-generic.nix.</para>
690−
691−</listitem>
692−
693−<listitem>
694−
695− <para>Notable new packages:
696−
697− <itemizedlist>
698−
699− <listitem><para>Qt 3</para></listitem>
700− <listitem><para>MySQL</para></listitem>
701− <listitem><para>MythTV</para></listitem>
702− <listitem><para>Mono</para></listitem>
703− <listitem><para>MonoDevelop (alpha)</para></listitem>
704− <listitem><para>Xine</para></listitem>
705−
536+ The <varname>meta</varname> attribute is not passed to the builder, so
537+ changes to the description do not trigger a rebuild. Additional
538+ <varname>meta</varname> attributes may be defined in the future (such as
539+ the URL of the package’s homepage, the license, etc.).
540+ </para>
541+ </listitem>
706542 </itemizedlist>
707543
544+ <para>
545+ The following people contributed to this release: Andres Löh, Armijn Hemel,
546+ Christof Douma, Eelco Dolstra, Eelco Visser, Mart Kolthof, Martin
547+ Bravenboer, Merijn de Jonge, Rob Vermaas and Roy van den Broek.
548+ </para>
549+ </section>
550+ <section>
551+ <title>Release 0.9 (January 31, 2006)</title>
552+
553+ <para>
554+ There have been zillions of changes since the last release of Nixpkgs. Many
555+ packages have been added or updated. The following are some of the more
556+ notable changes:
708557 </para>
709−
710−</listitem>
711−
712−<listitem>
713−
714− <para>Notable updates:
715558
716559 <itemizedlist>
717−
718− <listitem><para>GCC 3.4.3</para></listitem>
719− <listitem><para>Glibc 2.3.4</para></listitem>
720− <listitem><para>GTK 2.6</para></listitem>
721−
560+ <listitem>
561+ <para>
562+ Distribution files have been moved to
563+ <link
564+ xlink:href="http://nixos.org/" />.
565+ </para>
566+ </listitem>
567+ <listitem>
568+ <para>
569+ The C library on Linux, Glibc, has been updated to version 2.3.6.
570+ </para>
571+ </listitem>
572+ <listitem>
573+ <para>
574+ The default compiler is now GCC 3.4.5. GCC 4.0.2 is also available.
575+ </para>
576+ </listitem>
577+ <listitem>
578+ <para>
579+ The old, unofficial Xlibs has been replaced by the official modularised
580+ X11 distribution from X.org, i.e., X11R7.0. X11R7.0 consists of 287 (!)
581+ packages, all of which are in Nixpkgs though not all have been tested. It
582+ is now possible to build a working X server (previously we only had X
583+ client libraries). We use a fully Nixified X server on NixOS.
584+ </para>
585+ </listitem>
586+ <listitem>
587+ <para>
588+ The Sun JDK 5 has been purified, i.e., it doesn’t require any non-Nix
589+ components such as <filename>/lib/ld-linux.so.2</filename>. This means
590+ that Java applications such as Eclipse and Azureus can run on NixOS.
591+ </para>
592+ </listitem>
593+ <listitem>
594+ <para>
595+ Hardware-accelerated OpenGL support, used by games like Quake 3 (which is
596+ now built from source).
597+ </para>
598+ </listitem>
599+ <listitem>
600+ <para>
601+ Improved support for FreeBSD on x86.
602+ </para>
603+ </listitem>
604+ <listitem>
605+ <para>
606+ Improved Haskell support; e.g., the GHC build is now pure.
607+ </para>
608+ </listitem>
609+ <listitem>
610+ <para>
611+ Some support for cross-compilation: cross-compiling builds of GCC and
612+ Binutils, and cross-compiled builds of the C library uClibc.
613+ </para>
614+ </listitem>
615+ <listitem>
616+ <para>
617+ Notable new packages:
618+ <itemizedlist>
619+ <listitem>
620+ <para>
621+ teTeX, including support for building LaTeX documents using Nix (with
622+ automatic dependency determination).
623+ </para>
624+ </listitem>
625+ <listitem>
626+ <para>
627+ Ruby.
628+ </para>
629+ </listitem>
630+ <listitem>
631+ <para>
632+ System-level packages to support NixOS, e.g. Grub, GNU
633+ <literal>parted</literal> and so on.
634+ </para>
635+ </listitem>
636+ <listitem>
637+ <para>
638+ <literal>ecj</literal>, the Eclipse Compiler for Java, so we finally
639+ have a freely distributable compiler that supports Java 5.0.
640+ </para>
641+ </listitem>
642+ <listitem>
643+ <para>
644+ <literal>php</literal>.
645+ </para>
646+ </listitem>
647+ <listitem>
648+ <para>
649+ The GIMP.
650+ </para>
651+ </listitem>
652+ <listitem>
653+ <para>
654+ Inkscape.
655+ </para>
656+ </listitem>
657+ <listitem>
658+ <para>
659+ GAIM.
660+ </para>
661+ </listitem>
662+ <listitem>
663+ <para>
664+ <literal>kdelibs</literal>. This allows us to add KDE-based packages
665+ (such as <literal>kcachegrind</literal>).
666+ </para>
667+ </listitem>
668+ </itemizedlist>
669+ </para>
670+ </listitem>
722671 </itemizedlist>
723672
673+ <para>
674+ The following people contributed to this release: Andres Löh, Armijn Hemel,
675+ Bogdan Dumitriu, Christof Douma, Eelco Dolstra, Eelco Visser, Mart Kolthof,
676+ Martin Bravenboer, Rob Vermaas and Roy van den Broek.
724677 </para>
678+ </section>
679+ <section>
680+ <title>Release 0.8 (April 11, 2005)</title>
725681
726−</listitem>
727−
728−</itemizedlist>
682+ <para>
683+ This release is mostly to remain synchronised with the changed hashing
684+ scheme in Nix 0.8.
685+ </para>
729686
730−</section>
687+ <para>
688+ Notable updates:
689+ <itemizedlist>
690+ <listitem>
691+ <para>
692+ Adobe Reader 7.0
693+ </para>
694+ </listitem>
695+ <listitem>
696+ <para>
697+ Various security updates (zlib 1.2.2, etc.)
698+ </para>
699+ </listitem>
700+ </itemizedlist>
701+ </para>
702+ </section>
703+ <section>
704+ <title>Release 0.7 (March 14, 2005)</title>
731705
732−
706+ <itemizedlist>
707+ <listitem>
708+ <para>
709+ The bootstrap process for the standard build environment on Linux
710+ (stdenv-linux) has been improved. It is no longer dependent in its initial
711+ bootstrap stages on the system Glibc, GCC, and other tools. Rather,
712+ Nixpkgs contains a statically linked bash and curl, and uses that to
713+ download other statically linked tools. These are then used to build a
714+ Glibc and dynamically linked versions of all other tools.
715+ </para>
716+ <para>
717+ This change also makes the bootstrap process faster. For instance, GCC is
718+ built only once instead of three times.
719+ </para>
720+ <para>
721+ (Contributed by Armijn Hemel.)
722+ </para>
723+ </listitem>
724+ <listitem>
725+ <para>
726+ Tarballs used by Nixpkgs are now obtained from the same server that hosts
727+ Nixpkgs (<link
728+ xlink:href="http://catamaran.labs.cs.uu.nl/" />). This
729+ reduces the risk of packages being unbuildable due to moved or deleted
730+ files on various servers.
731+ </para>
732+ </listitem>
733+ <listitem>
734+ <para>
735+ There now is a generic mechanism for building Perl modules. See the
736+ various Perl modules defined in pkgs/system/all-packages-generic.nix.
737+ </para>
738+ </listitem>
739+ <listitem>
740+ <para>
741+ Notable new packages:
742+ <itemizedlist>
743+ <listitem>
744+ <para>
745+ Qt 3
746+ </para>
747+ </listitem>
748+ <listitem>
749+ <para>
750+ MySQL
751+ </para>
752+ </listitem>
753+ <listitem>
754+ <para>
755+ MythTV
756+ </para>
757+ </listitem>
758+ <listitem>
759+ <para>
760+ Mono
761+ </para>
762+ </listitem>
763+ <listitem>
764+ <para>
765+ MonoDevelop (alpha)
766+ </para>
767+ </listitem>
768+ <listitem>
769+ <para>
770+ Xine
771+ </para>
772+ </listitem>
773+ </itemizedlist>
774+ </para>
775+ </listitem>
776+ <listitem>
777+ <para>
778+ Notable updates:
779+ <itemizedlist>
780+ <listitem>
781+ <para>
782+ GCC 3.4.3
783+ </para>
784+ </listitem>
785+ <listitem>
786+ <para>
787+ Glibc 2.3.4
788+ </para>
789+ </listitem>
790+ <listitem>
791+ <para>
792+ GTK 2.6
793+ </para>
794+ </listitem>
795+ </itemizedlist>
796+ </para>
797+ </listitem>
798+ </itemizedlist>
799+ </section>
733800</article>
doc/reviewing-contributions.xml+476−261
@@ -3,93 +3,148 @@
33 xmlns:xi="http://www.w3.org/2001/XInclude"
44 version="5.0"
55 xml:id="sec-reviewing-contributions">
6−
7−<title>Reviewing contributions</title>
8−
9−<warning>
10− <para>The following section is a draft and reviewing policy is still being
11− discussed.</para>
12−</warning>
13−
14−<para>The nixpkgs projects receives a fairly high number of contributions via
15− GitHub pull-requests. Reviewing and approving these is an important task and a
16− way to contribute to the project.</para>
17−
18−<para>The high change rate of nixpkgs make any pull request that is open for
19− long enough subject to conflicts that will require extra work from the
20− submitter or the merger. Reviewing pull requests in a timely manner and being
6+ <title>Reviewing contributions</title>
7+ <warning>
8+ <para>
9+ The following section is a draft and reviewing policy is still being
10+ discussed.
11+ </para>
12+ </warning>
13+ <para>
14+ The nixpkgs projects receives a fairly high number of contributions via
15+ GitHub pull-requests. Reviewing and approving these is an important task and
16+ a way to contribute to the project.
17+ </para>
18+ <para>
19+ The high change rate of nixpkgs make any pull request that is open for long
20+ enough subject to conflicts that will require extra work from the submitter
21+ or the merger. Reviewing pull requests in a timely manner and being
2122 responsive to the comments is the key to avoid these. GitHub provides sort
22− filters that can be used to see the <link
23+ filters that can be used to see the
24+ <link
2325 xlink:href="https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc">most
24− recently</link> and the <link
26+ recently</link> and the
27+ <link
2528 xlink:href="https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-asc">least
26− recently</link> updated pull-requests.</para>
27−
28−<para>When reviewing a pull request, please always be nice and polite.
29+ recently</link> updated pull-requests. We highly encourage looking at
30+ <link xlink:href="https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+review%3Anone+status%3Asuccess+-label%3A%222.status%3A+work-in-progress%22+no%3Aproject+no%3Aassignee+no%3Amilestone">
31+ this list of ready to merge, unreviewed pull requests</link>.
32+ </para>
33+ <para>
34+ When reviewing a pull request, please always be nice and polite.
2935 Controversial changes can lead to controversial opinions, but it is important
30− to respect every community members and their work.</para>
31−
32−<para>GitHub provides reactions, they are a simple and quick way to provide
36+ to respect every community members and their work.
37+ </para>
38+ <para>
39+ GitHub provides reactions, they are a simple and quick way to provide
3340 feedback to pull-requests or any comments. The thumb-down reaction should be
3441 used with care and if possible accompanied with some explanations so the
35− submitter has directions to improve his contribution.</para>
36−
37−<para>Pull-requests reviews should include a list of what has been reviewed in a
38− comment, so other reviewers and mergers can know the state of the
39− review.</para>
40−
41−<para>All the review template samples provided in this section are generic and
42+ submitter has directions to improve his contribution.
43+ </para>
44+ <para>
45+ Pull-requests reviews should include a list of what has been reviewed in a
46+ comment, so other reviewers and mergers can know the state of the review.
47+ </para>
48+ <para>
49+ All the review template samples provided in this section are generic and
4250 meant as examples. Their usage is optional and the reviewer is free to adapt
43− them to his liking.</para>
44−
45−<section><title>Package updates</title>
46−
47−<para>A package update is the most trivial and common type of pull-request.
48− These pull-requests mainly consist in updating the version part of the package
49− name and the source hash.</para>
50−<para>It can happen that non trivial updates include patches or more complex
51− changes.</para>
52−
53−<para>Reviewing process:</para>
54−
55−<itemizedlist>
56− <listitem><para>Add labels to the pull-request. (Requires commit
57− rights)</para>
51+ them to his liking.
52+ </para>
53+ <section>
54+ <title>Package updates</title>
55+
56+ <para>
57+ A package update is the most trivial and common type of pull-request. These
58+ pull-requests mainly consist in updating the version part of the package
59+ name and the source hash.
60+ </para>
61+
62+ <para>
63+ It can happen that non trivial updates include patches or more complex
64+ changes.
65+ </para>
66+
67+ <para>
68+ Reviewing process:
69+ </para>
70+
71+ <itemizedlist>
72+ <listitem>
73+ <para>
74+ Add labels to the pull-request. (Requires commit rights)
75+ </para>
5876 <itemizedlist>
59− <listitem><para><literal>8.has: package (update)</literal> and any topic
60− label that fit the updated package.</para></listitem>
77+ <listitem>
78+ <para>
79+ <literal>8.has: package (update)</literal> and any topic label that fit
80+ the updated package.
81+ </para>
82+ </listitem>
6183 </itemizedlist>
62− </listitem>
63− <listitem><para>Ensure that the package versioning is fitting the
64− guidelines.</para></listitem>
65− <listitem><para>Ensure that the commit text is fitting the
66− guidelines.</para></listitem>
67− <listitem><para>Ensure that the package maintainers are notified.</para>
84+ </listitem>
85+ <listitem>
86+ <para>
87+ Ensure that the package versioning is fitting the guidelines.
88+ </para>
89+ </listitem>
90+ <listitem>
91+ <para>
92+ Ensure that the commit text is fitting the guidelines.
93+ </para>
94+ </listitem>
95+ <listitem>
96+ <para>
97+ Ensure that the package maintainers are notified.
98+ </para>
6899 <itemizedlist>
69− <listitem><para>mention-bot usually notify GitHub users based on the
70− submitted changes, but it can happen that it misses some of the
71− package maintainers.</para></listitem>
100+ <listitem>
101+ <para>
102+ mention-bot usually notify GitHub users based on the submitted changes,
103+ but it can happen that it misses some of the package maintainers.
104+ </para>
105+ </listitem>
72106 </itemizedlist>
73− </listitem>
74− <listitem><para>Ensure that the meta field contains correct
75− information.</para>
107+ </listitem>
108+ <listitem>
109+ <para>
110+ Ensure that the meta field contains correct information.
111+ </para>
76112 <itemizedlist>
77− <listitem><para>License can change with version updates, so it should be
78− checked to be fitting upstream license.</para></listitem>
79− <listitem><para>If the package has no maintainer, a maintainer must be
80− set. This can be the update submitter or a community member that
81− accepts to take maintainership of the package.</para></listitem>
113+ <listitem>
114+ <para>
115+ License can change with version updates, so it should be checked to be
116+ fitting upstream license.
117+ </para>
118+ </listitem>
119+ <listitem>
120+ <para>
121+ If the package has no maintainer, a maintainer must be set. This can be
122+ the update submitter or a community member that accepts to take
123+ maintainership of the package.
124+ </para>
125+ </listitem>
82126 </itemizedlist>
83− </listitem>
84− <listitem><para>Ensure that the code contains no typos.</para></listitem>
85− <listitem><para>Building the package locally.</para>
127+ </listitem>
128+ <listitem>
129+ <para>
130+ Ensure that the code contains no typos.
131+ </para>
132+ </listitem>
133+ <listitem>
134+ <para>
135+ Building the package locally.
136+ </para>
86137 <itemizedlist>
87− <listitem><para>Pull-requests are often targeted to the master or staging
88− branch so building the pull-request locally as it is submitted can
89− trigger a large amount of source builds.</para>
90− <para>It is possible to rebase the changes on nixos-unstable or
91− nixpkgs-unstable for easier review by running the following commands
92− from a nixpkgs clone.
138+ <listitem>
139+ <para>
140+ Pull-requests are often targeted to the master or staging branch so
141+ building the pull-request locally as it is submitted can trigger a large
142+ amount of source builds.
143+ </para>
144+ <para>
145+ It is possible to rebase the changes on nixos-unstable or
146+ nixpkgs-unstable for easier review by running the following commands
147+ from a nixpkgs clone.
93148<screen>
94149$ git remote add channels https://github.com/NixOS/nixpkgs-channels.git <co
95150 xml:id='reviewing-rebase-1' />
@@ -98,43 +153,56 @@ $ git fetch origin pull/PRNUMBER/head <co xml:id='reviewing-rebase-3' />
98153$ git rebase --onto nixos-unstable BASEBRANCH FETCH_HEAD <co
99154 xml:id='reviewing-rebase-4' />
100155</screen>
101− <calloutlist>
102− <callout arearefs='reviewing-rebase-1'>
103− <para>This should be done only once to be able to fetch channel
104− branches from the nixpkgs-channels repository.</para>
105− </callout>
106− <callout arearefs='reviewing-rebase-2'>
107− <para>Fetching the nixos-unstable branch.</para>
108− </callout>
109− <callout arearefs='reviewing-rebase-3'>
110− <para>Fetching the pull-request changes, <varname>PRNUMBER</varname>
111− is the number at the end of the pull-request title and
112− <varname>BASEBRANCH</varname> the base branch of the
113− pull-request.</para>
114− </callout>
115− <callout arearefs='reviewing-rebase-3'>
116− <para>Rebasing the pull-request changes to the nixos-unstable
117− branch.</para>
118− </callout>
119− </calloutlist>
120− </para>
121− </listitem>
122− <listitem>
123− <para>The <link xlink:href="https://github.com/madjar/nox">nox</link>
124− tool can be used to review a pull-request content in a single command.
125− It doesn't rebase on a channel branch so it might trigger multiple
126− source builds. <varname>PRNUMBER</varname> should be replaced by the
127− number at the end of the pull-request title.</para>
156+ <calloutlist>
157+ <callout arearefs='reviewing-rebase-1'>
158+ <para>
159+ This should be done only once to be able to fetch channel branches
160+ from the nixpkgs-channels repository.
161+ </para>
162+ </callout>
163+ <callout arearefs='reviewing-rebase-2'>
164+ <para>
165+ Fetching the nixos-unstable branch.
166+ </para>
167+ </callout>
168+ <callout arearefs='reviewing-rebase-3'>
169+ <para>
170+ Fetching the pull-request changes, <varname>PRNUMBER</varname> is the
171+ number at the end of the pull-request title and
172+ <varname>BASEBRANCH</varname> the base branch of the pull-request.
173+ </para>
174+ </callout>
175+ <callout arearefs='reviewing-rebase-4'>
176+ <para>
177+ Rebasing the pull-request changes to the nixos-unstable branch.
178+ </para>
179+ </callout>
180+ </calloutlist>
181+ </para>
182+ </listitem>
183+ <listitem>
184+ <para>
185+ The <link xlink:href="https://github.com/madjar/nox">nox</link> tool can
186+ be used to review a pull-request content in a single command. It doesn't
187+ rebase on a channel branch so it might trigger multiple source builds.
188+ <varname>PRNUMBER</varname> should be replaced by the number at the end
189+ of the pull-request title.
190+ </para>
128191<screen>
129192$ nix-shell -p nox --run "nox-review -k pr PRNUMBER"
130193</screen>
131− </listitem>
194+ </listitem>
132195 </itemizedlist>
133− </listitem>
134− <listitem><para>Running every binary.</para></listitem>
135−</itemizedlist>
136−
137−<example><title>Sample template for a package update review</title>
196+ </listitem>
197+ <listitem>
198+ <para>
199+ Running every binary.
200+ </para>
201+ </listitem>
202+ </itemizedlist>
203+
204+ <example>
205+ <title>Sample template for a package update review</title>
138206<screen>
139207##### Reviewed points
140208
@@ -148,55 +216,105 @@ $ nix-shell -p nox --run "nox-review -k pr PRNUMBER"
148216
149217##### Comments
150218
151−</screen></example>
152−</section>
153−
154−<section><title>New packages</title>
155−
156−<para>New packages are a common type of pull-requests. These pull requests
157− consists in adding a new nix-expression for a package.</para>
158−
159−<para>Reviewing process:</para>
160−
161−<itemizedlist>
162− <listitem><para>Add labels to the pull-request. (Requires commit
163− rights)</para>
219+</screen>
220+ </example>
221+ </section>
222+ <section>
223+ <title>New packages</title>
224+
225+ <para>
226+ New packages are a common type of pull-requests. These pull requests
227+ consists in adding a new nix-expression for a package.
228+ </para>
229+
230+ <para>
231+ Reviewing process:
232+ </para>
233+
234+ <itemizedlist>
235+ <listitem>
236+ <para>
237+ Add labels to the pull-request. (Requires commit rights)
238+ </para>
164239 <itemizedlist>
165− <listitem><para><literal>8.has: package (new)</literal> and any topic
166− label that fit the new package.</para></listitem>
240+ <listitem>
241+ <para>
242+ <literal>8.has: package (new)</literal> and any topic label that fit the
243+ new package.
244+ </para>
245+ </listitem>
167246 </itemizedlist>
168− </listitem>
169− <listitem><para>Ensure that the package versioning is fitting the
170− guidelines.</para></listitem>
171− <listitem><para>Ensure that the commit name is fitting the
172− guidelines.</para></listitem>
173− <listitem><para>Ensure that the meta field contains correct
174− information.</para>
247+ </listitem>
248+ <listitem>
249+ <para>
250+ Ensure that the package versioning is fitting the guidelines.
251+ </para>
252+ </listitem>
253+ <listitem>
254+ <para>
255+ Ensure that the commit name is fitting the guidelines.
256+ </para>
257+ </listitem>
258+ <listitem>
259+ <para>
260+ Ensure that the meta field contains correct information.
261+ </para>
175262 <itemizedlist>
176− <listitem><para>License must be checked to be fitting upstream
177− license.</para></listitem>
178− <listitem><para>Platforms should be set or the package will not get binary
179− substitutes.</para></listitem>
180− <listitem><para>A maintainer must be set, this can be the package
181− submitter or a community member that accepts to take maintainership of
182− the package.</para></listitem>
263+ <listitem>
264+ <para>
265+ License must be checked to be fitting upstream license.
266+ </para>
267+ </listitem>
268+ <listitem>
269+ <para>
270+ Platforms should be set or the package will not get binary substitutes.
271+ </para>
272+ </listitem>
273+ <listitem>
274+ <para>
275+ A maintainer must be set, this can be the package submitter or a
276+ community member that accepts to take maintainership of the package.
277+ </para>
278+ </listitem>
183279 </itemizedlist>
184− </listitem>
185− <listitem><para>Ensure that the code contains no typos.</para></listitem>
186− <listitem><para>Ensure the package source.</para>
280+ </listitem>
281+ <listitem>
282+ <para>
283+ Ensure that the code contains no typos.
284+ </para>
285+ </listitem>
286+ <listitem>
287+ <para>
288+ Ensure the package source.
289+ </para>
187290 <itemizedlist>
188− <listitem><para>Mirrors urls should be used when
189− available.</para></listitem>
190− <listitem><para>The most appropriate function should be used (e.g.
191− packages from GitHub should use
192− <literal>fetchFromGitHub</literal>).</para></listitem>
291+ <listitem>
292+ <para>
293+ Mirrors urls should be used when available.
294+ </para>
295+ </listitem>
296+ <listitem>
297+ <para>
298+ The most appropriate function should be used (e.g. packages from GitHub
299+ should use <literal>fetchFromGitHub</literal>).
300+ </para>
301+ </listitem>
193302 </itemizedlist>
194− </listitem>
195− <listitem><para>Building the package locally.</para></listitem>
196− <listitem><para>Running every binary.</para></listitem>
197−</itemizedlist>
198−
199−<example><title>Sample template for a new package review</title>
303+ </listitem>
304+ <listitem>
305+ <para>
306+ Building the package locally.
307+ </para>
308+ </listitem>
309+ <listitem>
310+ <para>
311+ Running every binary.
312+ </para>
313+ </listitem>
314+ </itemizedlist>
315+
316+ <example>
317+ <title>Sample template for a new package review</title>
200318<screen>
201319##### Reviewed points
202320
@@ -218,58 +336,107 @@ $ nix-shell -p nox --run "nox-review -k pr PRNUMBER"
218336
219337##### Comments
220338
221−</screen></example>
222−</section>
223−
224−<section><title>Module updates</title>
225−
226−<para>Module updates are submissions changing modules in some ways. These often
227− contains changes to the options or introduce new options.</para>
228−
229−<para>Reviewing process</para>
230−
231−<itemizedlist>
232− <listitem><para>Add labels to the pull-request. (Requires commit
233− rights)</para>
339+</screen>
340+ </example>
341+ </section>
342+ <section>
343+ <title>Module updates</title>
344+
345+ <para>
346+ Module updates are submissions changing modules in some ways. These often
347+ contains changes to the options or introduce new options.
348+ </para>
349+
350+ <para>
351+ Reviewing process
352+ </para>
353+
354+ <itemizedlist>
355+ <listitem>
356+ <para>
357+ Add labels to the pull-request. (Requires commit rights)
358+ </para>
234359 <itemizedlist>
235− <listitem><para><literal>8.has: module (update)</literal> and any topic
236− label that fit the module.</para></listitem>
360+ <listitem>
361+ <para>
362+ <literal>8.has: module (update)</literal> and any topic label that fit
363+ the module.
364+ </para>
365+ </listitem>
237366 </itemizedlist>
238− </listitem>
239− <listitem><para>Ensure that the module maintainers are notified.</para>
367+ </listitem>
368+ <listitem>
369+ <para>
370+ Ensure that the module maintainers are notified.
371+ </para>
240372 <itemizedlist>
241− <listitem><para>Mention-bot notify GitHub users based on the submitted
242− changes, but it can happen that it miss some of the package
243− maintainers.</para></listitem>
373+ <listitem>
374+ <para>
375+ Mention-bot notify GitHub users based on the submitted changes, but it
376+ can happen that it miss some of the package maintainers.
377+ </para>
378+ </listitem>
244379 </itemizedlist>
245− </listitem>
246− <listitem><para>Ensure that the module tests, if any, are
247− succeeding.</para></listitem>
248− <listitem><para>Ensure that the introduced options are correct.</para>
380+ </listitem>
381+ <listitem>
382+ <para>
383+ Ensure that the module tests, if any, are succeeding.
384+ </para>
385+ </listitem>
386+ <listitem>
387+ <para>
388+ Ensure that the introduced options are correct.
389+ </para>
249390 <itemizedlist>
250− <listitem><para>Type should be appropriate (string related types differs
251− in their merging capabilities, <literal>optionSet</literal> and
252− <literal>string</literal> types are deprecated).</para></listitem>
253− <listitem><para>Description, default and example should be
254− provided.</para></listitem>
391+ <listitem>
392+ <para>
393+ Type should be appropriate (string related types differs in their
394+ merging capabilities, <literal>optionSet</literal> and
395+ <literal>string</literal> types are deprecated).
396+ </para>
397+ </listitem>
398+ <listitem>
399+ <para>
400+ Description, default and example should be provided.
401+ </para>
402+ </listitem>
255403 </itemizedlist>
256− </listitem>
257− <listitem><para>Ensure that option changes are backward compatible.</para>
404+ </listitem>
405+ <listitem>
406+ <para>
407+ Ensure that option changes are backward compatible.
408+ </para>
258409 <itemizedlist>
259− <listitem><para><literal>mkRenamedOptionModule</literal> and
260− <literal>mkAliasOptionModule</literal> functions provide way to make
261− option changes backward compatible.</para></listitem>
410+ <listitem>
411+ <para>
412+ <literal>mkRenamedOptionModule</literal> and
413+ <literal>mkAliasOptionModule</literal> functions provide way to make
414+ option changes backward compatible.
415+ </para>
416+ </listitem>
262417 </itemizedlist>
263− </listitem>
264− <listitem><para>Ensure that removed options are declared with
265− <literal>mkRemovedOptionModule</literal></para></listitem>
266− <listitem><para>Ensure that changes that are not backward compatible are
267− mentioned in release notes.</para></listitem>
268− <listitem><para>Ensure that documentations affected by the change is
269− updated.</para></listitem>
270−</itemizedlist>
271−
272−<example><title>Sample template for a module update review</title>
418+ </listitem>
419+ <listitem>
420+ <para>
421+ Ensure that removed options are declared with
422+ <literal>mkRemovedOptionModule</literal>
423+ </para>
424+ </listitem>
425+ <listitem>
426+ <para>
427+ Ensure that changes that are not backward compatible are mentioned in
428+ release notes.
429+ </para>
430+ </listitem>
431+ <listitem>
432+ <para>
433+ Ensure that documentations affected by the change is updated.
434+ </para>
435+ </listitem>
436+ </itemizedlist>
437+
438+ <example>
439+ <title>Sample template for a module update review</title>
273440<screen>
274441##### Reviewed points
275442
@@ -286,51 +453,89 @@ $ nix-shell -p nox --run "nox-review -k pr PRNUMBER"
286453
287454##### Comments
288455
289−</screen></example>
290−</section>
291−
292−<section><title>New modules</title>
293−
294−<para>New modules submissions introduce a new module to NixOS.</para>
295−
296−<itemizedlist>
297− <listitem><para>Add labels to the pull-request. (Requires commit
298− rights)</para>
456+</screen>
457+ </example>
458+ </section>
459+ <section>
460+ <title>New modules</title>
461+
462+ <para>
463+ New modules submissions introduce a new module to NixOS.
464+ </para>
465+
466+ <itemizedlist>
467+ <listitem>
468+ <para>
469+ Add labels to the pull-request. (Requires commit rights)
470+ </para>
299471 <itemizedlist>
300− <listitem><para><literal>8.has: module (new)</literal> and any topic label
301− that fit the module.</para></listitem>
472+ <listitem>
473+ <para>
474+ <literal>8.has: module (new)</literal> and any topic label that fit the
475+ module.
476+ </para>
477+ </listitem>
302478 </itemizedlist>
303− </listitem>
304− <listitem><para>Ensure that the module tests, if any, are
305− succeeding.</para></listitem>
306− <listitem><para>Ensure that the introduced options are correct.</para>
479+ </listitem>
480+ <listitem>
481+ <para>
482+ Ensure that the module tests, if any, are succeeding.
483+ </para>
484+ </listitem>
485+ <listitem>
486+ <para>
487+ Ensure that the introduced options are correct.
488+ </para>
307489 <itemizedlist>
308− <listitem><para>Type should be appropriate (string related types differs
309− in their merging capabilities, <literal>optionSet</literal> and
310− <literal>string</literal> types are deprecated).</para></listitem>
311− <listitem><para>Description, default and example should be
312− provided.</para></listitem>
490+ <listitem>
491+ <para>
492+ Type should be appropriate (string related types differs in their
493+ merging capabilities, <literal>optionSet</literal> and
494+ <literal>string</literal> types are deprecated).
495+ </para>
496+ </listitem>
497+ <listitem>
498+ <para>
499+ Description, default and example should be provided.
500+ </para>
501+ </listitem>
313502 </itemizedlist>
314− </listitem>
315− <listitem><para>Ensure that module <literal>meta</literal> field is
316− present</para>
503+ </listitem>
504+ <listitem>
505+ <para>
506+ Ensure that module <literal>meta</literal> field is present
507+ </para>
317508 <itemizedlist>
318− <listitem><para>Maintainers should be declared in
319− <literal>meta.maintainers</literal>.</para></listitem>
320− <listitem><para>Module documentation should be declared with
321− <literal>meta.doc</literal>.</para></listitem>
509+ <listitem>
510+ <para>
511+ Maintainers should be declared in <literal>meta.maintainers</literal>.
512+ </para>
513+ </listitem>
514+ <listitem>
515+ <para>
516+ Module documentation should be declared with
517+ <literal>meta.doc</literal>.
518+ </para>
519+ </listitem>
322520 </itemizedlist>
323− </listitem>
324− <listitem><para>Ensure that the module respect other modules
325− functionality.</para>
521+ </listitem>
522+ <listitem>
523+ <para>
524+ Ensure that the module respect other modules functionality.
525+ </para>
326526 <itemizedlist>
327− <listitem><para>For example, enabling a module should not open firewall
328− ports by default.</para></listitem>
527+ <listitem>
528+ <para>
529+ For example, enabling a module should not open firewall ports by
530+ default.
531+ </para>
532+ </listitem>
329533 </itemizedlist>
330− </listitem>
331−</itemizedlist>
534+ </listitem>
535+ </itemizedlist>
332536
333−<example><title>Sample template for a new module review</title>
537+ <example>
538+ <title>Sample template for a new module review</title>
334539<screen>
335540##### Reviewed points
336541
@@ -348,32 +553,41 @@ $ nix-shell -p nox --run "nox-review -k pr PRNUMBER"
348553
349554##### Comments
350555
351−</screen></example>
352−</section>
353−
354−<section><title>Other submissions</title>
355−
356−<para>Other type of submissions requires different reviewing steps.</para>
357−
358−<para>If you consider having enough knowledge and experience in a topic and
359− would like to be a long-term reviewer for related submissions, please contact
360− the current reviewers for that topic. They will give you information about the
361− reviewing process.
362−The main reviewers for a topic can be hard to find as there is no list, but
363−checking past pull-requests to see who reviewed or git-blaming the code to see
364−who committed to that topic can give some hints.</para>
365−
366−<para>Container system, boot system and library changes are some examples of the
367− pull requests fitting this category.</para>
368−
369−</section>
370−
371−<section><title>Merging pull-requests</title>
372−
373−<para>It is possible for community members that have enough knowledge and
374− experience on a special topic to contribute by merging pull requests.</para>
375−
376−<para>TODO: add the procedure to request merging rights.</para>
556+</screen>
557+ </example>
558+ </section>
559+ <section>
560+ <title>Other submissions</title>
561+
562+ <para>
563+ Other type of submissions requires different reviewing steps.
564+ </para>
565+
566+ <para>
567+ If you consider having enough knowledge and experience in a topic and would
568+ like to be a long-term reviewer for related submissions, please contact the
569+ current reviewers for that topic. They will give you information about the
570+ reviewing process. The main reviewers for a topic can be hard to find as
571+ there is no list, but checking past pull-requests to see who reviewed or
572+ git-blaming the code to see who committed to that topic can give some hints.
573+ </para>
574+
575+ <para>
576+ Container system, boot system and library changes are some examples of the
577+ pull requests fitting this category.
578+ </para>
579+ </section>
580+ <section>
581+ <title>Merging pull-requests</title>
582+
583+ <para>
584+ It is possible for community members that have enough knowledge and
585+ experience on a special topic to contribute by merging pull requests.
586+ </para>
587+
588+ <para>
589+ TODO: add the procedure to request merging rights.
590+ </para>
377591
378592<!--
379593The following paragraph about how to deal with unactive contributors is just a
@@ -384,10 +598,11 @@ policy.
384598 three months will have their commit rights revoked.</para>
385599-->
386600
387−<para>In a case a contributor leaves definitively the Nix community, he should
388− create an issue or notify the mailing list with references of packages and
389− modules he maintains so the maintainership can be taken over by other
390− contributors.</para>
391−
392−</section>
601+ <para>
602+ In a case a contributor leaves definitively the Nix community, he should
603+ create an issue or notify the mailing list with references of packages and
604+ modules he maintains so the maintainership can be taken over by other
605+ contributors.
606+ </para>
607+ </section>
393608</chapter>
doc/shell.nixnew file+5
@@ -0,0 +1,5 @@
1+{ pkgs ? import ../. {} }:
2+(import ./default.nix).overrideAttrs (x: {
3+ buildInputs = x.buildInputs ++ [ pkgs.xmloscopy ];
4+
5+})
doc/shell.md → doc/shell.section.mdrenamed+2
@@ -4,6 +4,8 @@ author: zimbatm
44date: 2017-10-30
55---
66
7+# mkShell
8+
79pkgs.mkShell is a special kind of derivation that is only useful when using
810it combined with nix-shell. It will in fact fail to instantiate when invoked
911with nix-build.
doc/stdenv.xml+2311−1838
@@ -1,27 +1,24 @@
11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="chap-stdenv">
4−
5−<title>The Standard Environment</title>
6−
7−
8−<para>The standard build environment in the Nix Packages collection
9−provides an environment for building Unix packages that does a lot of
10−common build tasks automatically. In fact, for Unix packages that use
11−the standard <literal>./configure; make; make install</literal> build
12−interface, you don’t need to write a build script at all; the standard
13−environment does everything automatically. If
14−<literal>stdenv</literal> doesn’t do what you need automatically, you
15−can easily customise or override the various build phases.</para>
16−
17−
18−<section xml:id="sec-using-stdenv"><title>Using
19−<literal>stdenv</literal></title>
20−
21−<para>To build a package with the standard environment, you use the
22−function <varname>stdenv.mkDerivation</varname>, instead of the
23−primitive built-in function <varname>derivation</varname>, e.g.
24−
4+ <title>The Standard Environment</title>
5+ <para>
6+ The standard build environment in the Nix Packages collection provides an
7+ environment for building Unix packages that does a lot of common build tasks
8+ automatically. In fact, for Unix packages that use the standard
9+ <literal>./configure; make; make install</literal> build interface, you
10+ don’t need to write a build script at all; the standard environment does
11+ everything automatically. If <literal>stdenv</literal> doesn’t do what you
12+ need automatically, you can easily customise or override the various build
13+ phases.
14+ </para>
15+ <section xml:id="sec-using-stdenv">
16+ <title>Using <literal>stdenv</literal></title>
17+
18+ <para>
19+ To build a package with the standard environment, you use the function
20+ <varname>stdenv.mkDerivation</varname>, instead of the primitive built-in
21+ function <varname>derivation</varname>, e.g.
2522<programlisting>
2623stdenv.mkDerivation {
2724 name = "libfoo-1.2.3";
@@ -30,39 +27,35 @@ stdenv.mkDerivation {
3027 sha256 = "0x2g1jqygyr5wiwg4ma1nd7w4ydpy82z9gkcv8vh2v8dn3y58v5m";
3128 };
3229}</programlisting>
33−
34−(<varname>stdenv</varname> needs to be in scope, so if you write this
35−in a separate Nix expression from
36−<filename>pkgs/all-packages.nix</filename>, you need to pass it as a
37−function argument.) Specifying a <varname>name</varname> and a
38−<varname>src</varname> is the absolute minimum you need to do. Many
39−packages have dependencies that are not provided in the standard
40−environment. It’s usually sufficient to specify those dependencies in
41−the <varname>buildInputs</varname> attribute:
42−
30+ (<varname>stdenv</varname> needs to be in scope, so if you write this in a
31+ separate Nix expression from <filename>pkgs/all-packages.nix</filename>, you
32+ need to pass it as a function argument.) Specifying a
33+ <varname>name</varname> and a <varname>src</varname> is the absolute minimum
34+ you need to do. Many packages have dependencies that are not provided in the
35+ standard environment. It’s usually sufficient to specify those
36+ dependencies in the <varname>buildInputs</varname> attribute:
4337<programlisting>
4438stdenv.mkDerivation {
4539 name = "libfoo-1.2.3";
4640 ...
4741 buildInputs = [libbar perl ncurses];
4842}</programlisting>
49−
50−This attribute ensures that the <filename>bin</filename>
51−subdirectories of these packages appear in the <envar>PATH</envar>
52−environment variable during the build, that their
53−<filename>include</filename> subdirectories are searched by the C
54−compiler, and so on. (See <xref linkend="ssec-setup-hooks"/> for
55−details.)</para>
56−
57−<para>Often it is necessary to override or modify some aspect of the
58−build. To make this easier, the standard environment breaks the
59−package build into a number of <emphasis>phases</emphasis>, all of
60−which can be overridden or modified individually: unpacking the
61−sources, applying patches, configuring, building, and installing.
62−(There are some others; see <xref linkend="sec-stdenv-phases"/>.)
63−For instance, a package that doesn’t supply a makefile but instead has
64−to be compiled “manually” could be handled like this:
65−
43+ This attribute ensures that the <filename>bin</filename> subdirectories of
44+ these packages appear in the <envar>PATH</envar> environment variable during
45+ the build, that their <filename>include</filename> subdirectories are
46+ searched by the C compiler, and so on. (See
47+ <xref linkend="ssec-setup-hooks"/> for details.)
48+ </para>
49+
50+ <para>
51+ Often it is necessary to override or modify some aspect of the build. To
52+ make this easier, the standard environment breaks the package build into a
53+ number of <emphasis>phases</emphasis>, all of which can be overridden or
54+ modified individually: unpacking the sources, applying patches, configuring,
55+ building, and installing. (There are some others; see
56+ <xref linkend="sec-stdenv-phases"/>.) For instance, a package that doesn’t
57+ supply a makefile but instead has to be compiled “manually” could be
58+ handled like this:
6659<programlisting>
6760stdenv.mkDerivation {
6861 name = "fnord-4.5";
@@ -75,35 +68,33 @@ stdenv.mkDerivation {
7568 cp foo $out/bin
7669 '';
7770}</programlisting>
78−
79−(Note the use of <literal>''</literal>-style string literals, which
80−are very convenient for large multi-line script fragments because they
81−don’t need escaping of <literal>"</literal> and <literal>\</literal>,
82−and because indentation is intelligently removed.)</para>
83−
84−<para>There are many other attributes to customise the build. These
85−are listed in <xref linkend="ssec-stdenv-attributes"/>.</para>
86−
87−<para>While the standard environment provides a generic builder, you
88−can still supply your own build script:
89−
71+ (Note the use of <literal>''</literal>-style string literals, which are very
72+ convenient for large multi-line script fragments because they don’t need
73+ escaping of <literal>"</literal> and <literal>\</literal>, and because
74+ indentation is intelligently removed.)
75+ </para>
76+
77+ <para>
78+ There are many other attributes to customise the build. These are listed in
79+ <xref linkend="ssec-stdenv-attributes"/>.
80+ </para>
81+
82+ <para>
83+ While the standard environment provides a generic builder, you can still
84+ supply your own build script:
9085<programlisting>
9186stdenv.mkDerivation {
9287 name = "libfoo-1.2.3";
9388 ...
9489 builder = ./builder.sh;
9590}</programlisting>
96−
97−where the builder can do anything it wants, but typically starts with
98−
91+ where the builder can do anything it wants, but typically starts with
9992<programlisting>
10093source $stdenv/setup
10194</programlisting>
102−
103−to let <literal>stdenv</literal> set up the environment (e.g., process
104−the <varname>buildInputs</varname>). If you want, you can still use
105−<literal>stdenv</literal>’s generic builder:
106−
95+ to let <literal>stdenv</literal> set up the environment (e.g., process the
96+ <varname>buildInputs</varname>). If you want, you can still use
97+ <literal>stdenv</literal>’s generic builder:
10798<programlisting>
10899source $stdenv/setup
109100
@@ -119,116 +110,186 @@ installPhase() {
119110
120111genericBuild
121112</programlisting>
122−
123−</para>
124−
125−</section>
126−
127−
128−<section xml:id="sec-tools-of-stdenv"><title>Tools provided by
129−<literal>stdenv</literal></title>
130−
131−<para>The standard environment provides the following packages:
132−
133−<itemizedlist>
134−
135− <listitem><para>The GNU C Compiler, configured with C and C++
136− support.</para></listitem>
137−
138− <listitem><para>GNU coreutils (contains a few dozen standard Unix
139− commands).</para></listitem>
140−
141− <listitem><para>GNU findutils (contains
142− <command>find</command>).</para></listitem>
143−
144− <listitem><para>GNU diffutils (contains <command>diff</command>,
145− <command>cmp</command>).</para></listitem>
146−
147− <listitem><para>GNU <command>sed</command>.</para></listitem>
148−
149− <listitem><para>GNU <command>grep</command>.</para></listitem>
150−
151− <listitem><para>GNU <command>awk</command>.</para></listitem>
152−
153− <listitem><para>GNU <command>tar</command>.</para></listitem>
154−
155− <listitem><para><command>gzip</command>, <command>bzip2</command>
156− and <command>xz</command>.</para></listitem>
157−
158− <listitem><para>GNU Make. It has been patched to provide
159− <quote>nested</quote> output that can be fed into the
160− <command>nix-log2xml</command> command and
161− <command>log2html</command> stylesheet to create a structured,
162− readable output of the build steps performed by
163− Make.</para></listitem>
164−
165− <listitem><para>Bash. This is the shell used for all builders in
166− the Nix Packages collection. Not using <command>/bin/sh</command>
167− removes a large source of portability problems.</para></listitem>
168−
169− <listitem><para>The <command>patch</command>
170− command.</para></listitem>
171−
172−</itemizedlist>
173−
174−</para>
175−
176−<para>On Linux, <literal>stdenv</literal> also includes the
177−<command>patchelf</command> utility.</para>
178−
179−</section>
180−
181−
182−<section xml:id="ssec-stdenv-dependencies"><title>Specifying dependencies</title>
183−
184−<para>
185− As described in the Nix manual, almost any <filename>*.drv</filename> store path in a derivation's attribute set will induce a dependency on that derivation.
186− <varname>mkDerivation</varname>, however, takes a few attributes intended to, between them, include all the dependencies of a package.
187− This is done both for structure and consistency, but also so that certain other setup can take place.
188− For example, certain dependencies need their bin directories added to the <envar>PATH</envar>.
189− That is built-in, but other setup is done via a pluggable mechanism that works in conjunction with these dependency attributes.
190− See <xref linkend="ssec-setup-hooks"/> for details.
191−</para>
192−<para>
193− Dependencies can be broken down along three axes: their host and target platforms relative to the new derivation's, and whether they are propagated.
194− The platform distinctions are motivated by cross compilation; see <xref linkend="chap-cross"/> for exactly what each platform means.
195− <footnote><para>
196− The build platform is ignored because it is a mere implementation detail of the package satisfying the dependency:
197− As a general programming principle, dependencies are always <emphasis>specified</emphasis> as interfaces, not concrete implementation.
198− </para></footnote>
199− But even if one is not cross compiling, the platforms imply whether or not the dependency is needed at run-time or build-time, a concept that makes perfect sense outside of cross compilation.
200− For now, the run-time/build-time distinction is just a hint for mental clarity, but in the future it perhaps could be enforced.
201−</para>
202−<para>
203− The extension of <envar>PATH</envar> with dependencies, alluded to above, proceeds according to the relative platforms alone.
204− The process is carried out only for dependencies whose host platform matches the new derivation's build platform–i.e. which run on the platform where the new derivation will be built.
205− <footnote><para>
206− Currently, that means for native builds all dependencies are put on the <envar>PATH</envar>.
207− But in the future that may not be the case for sake of matching cross:
208− the platforms would be assumed to be unique for native and cross builds alike, so only the <varname>depsBuild*</varname> and <varname>nativeBuildDependencies</varname> dependencies would affect the <envar>PATH</envar>.
209− </para></footnote>
210− For each dependency <replaceable>dep</replaceable> of those dependencies, <filename><replaceable>dep</replaceable>/bin</filename>, if present, is added to the <envar>PATH</envar> environment variable.
211−</para>
212−<para>
213− The dependency is propagated when it forces some of its other-transitive (non-immediate) downstream dependencies to also take it on as an immediate dependency.
214− Nix itself already takes a package's transitive dependencies into account, but this propagation ensures nixpkgs-specific infrastructure like setup hooks (mentioned above) also are run as if the propagated dependency.
215−</para>
216−<para>
217− It is important to note dependencies are not necessary propagated as the same sort of dependency that they were before, but rather as the corresponding sort so that the platform rules still line up.
218− The exact rules for dependency propagation can be given by assigning each sort of dependency two integers based one how it's host and target platforms are offset from the depending derivation's platforms.
219− Those offsets are given are given below in the descriptions of each dependency list attribute.
220− Algorithmically, we traverse propagated inputs, accumulating every propagated dep's propagated deps and adjusting them to account for the "shift in perspective" described by the current dep's platform offsets.
221− This results in sort a transitive closure of the dependency relation, with the offsets being approximately summed when two dependency links are combined.
222− We also prune transitive deps whose combined offsets go out-of-bounds, which can be viewed as a filter over that transitive closure removing dependencies that are blatantly absurd.
223−</para>
224−<para>
225− We can define the process precisely with <link xlink:href="https://en.wikipedia.org/wiki/Natural_deduction">Natural Deduction</link> using the inference rules.
226− This probably seems a bit obtuse, but so is the bash code that actually implements it!
227− <footnote><para>
228− The <function>findInputs</function> function, currently residing in <filename>pkgs/stdenv/generic/setup.sh</filename>, implements the propagation logic.
229− </para></footnote>
230− They're confusing in very different ways so...hopefully if something doesn't make sense in one presentation, it does in the other!
231− <programlisting>
113+ </para>
114+ </section>
115+ <section xml:id="sec-tools-of-stdenv">
116+ <title>Tools provided by <literal>stdenv</literal></title>
117+
118+ <para>
119+ The standard environment provides the following packages:
120+ <itemizedlist>
121+ <listitem>
122+ <para>
123+ The GNU C Compiler, configured with C and C++ support.
124+ </para>
125+ </listitem>
126+ <listitem>
127+ <para>
128+ GNU coreutils (contains a few dozen standard Unix commands).
129+ </para>
130+ </listitem>
131+ <listitem>
132+ <para>
133+ GNU findutils (contains <command>find</command>).
134+ </para>
135+ </listitem>
136+ <listitem>
137+ <para>
138+ GNU diffutils (contains <command>diff</command>, <command>cmp</command>).
139+ </para>
140+ </listitem>
141+ <listitem>
142+ <para>
143+ GNU <command>sed</command>.
144+ </para>
145+ </listitem>
146+ <listitem>
147+ <para>
148+ GNU <command>grep</command>.
149+ </para>
150+ </listitem>
151+ <listitem>
152+ <para>
153+ GNU <command>awk</command>.
154+ </para>
155+ </listitem>
156+ <listitem>
157+ <para>
158+ GNU <command>tar</command>.
159+ </para>
160+ </listitem>
161+ <listitem>
162+ <para>
163+ <command>gzip</command>, <command>bzip2</command> and
164+ <command>xz</command>.
165+ </para>
166+ </listitem>
167+ <listitem>
168+ <para>
169+ GNU Make. It has been patched to provide <quote>nested</quote> output
170+ that can be fed into the <command>nix-log2xml</command> command and
171+ <command>log2html</command> stylesheet to create a structured, readable
172+ output of the build steps performed by Make.
173+ </para>
174+ </listitem>
175+ <listitem>
176+ <para>
177+ Bash. This is the shell used for all builders in the Nix Packages
178+ collection. Not using <command>/bin/sh</command> removes a large source
179+ of portability problems.
180+ </para>
181+ </listitem>
182+ <listitem>
183+ <para>
184+ The <command>patch</command> command.
185+ </para>
186+ </listitem>
187+ </itemizedlist>
188+ </para>
189+
190+ <para>
191+ On Linux, <literal>stdenv</literal> also includes the
192+ <command>patchelf</command> utility.
193+ </para>
194+ </section>
195+ <section xml:id="ssec-stdenv-dependencies">
196+ <title>Specifying dependencies</title>
197+
198+ <para>
199+ As described in the Nix manual, almost any <filename>*.drv</filename> store
200+ path in a derivation's attribute set will induce a dependency on that
201+ derivation. <varname>mkDerivation</varname>, however, takes a few attributes
202+ intended to, between them, include all the dependencies of a package. This
203+ is done both for structure and consistency, but also so that certain other
204+ setup can take place. For example, certain dependencies need their bin
205+ directories added to the <envar>PATH</envar>. That is built-in, but other
206+ setup is done via a pluggable mechanism that works in conjunction with these
207+ dependency attributes. See <xref linkend="ssec-setup-hooks"/> for details.
208+ </para>
209+
210+ <para>
211+ Dependencies can be broken down along three axes: their host and target
212+ platforms relative to the new derivation's, and whether they are propagated.
213+ The platform distinctions are motivated by cross compilation; see
214+ <xref linkend="chap-cross"/> for exactly what each platform means.
215+ <footnote>
216+ <para>
217+ The build platform is ignored because it is a mere implementation detail
218+ of the package satisfying the dependency: As a general programming
219+ principle, dependencies are always <emphasis>specified</emphasis> as
220+ interfaces, not concrete implementation.
221+ </para>
222+ </footnote>
223+ But even if one is not cross compiling, the platforms imply whether or not
224+ the dependency is needed at run-time or build-time, a concept that makes
225+ perfect sense outside of cross compilation. For now, the run-time/build-time
226+ distinction is just a hint for mental clarity, but in the future it perhaps
227+ could be enforced.
228+ </para>
229+
230+ <para>
231+ The extension of <envar>PATH</envar> with dependencies, alluded to above,
232+ proceeds according to the relative platforms alone. The process is carried
233+ out only for dependencies whose host platform matches the new derivation's
234+ build platform–i.e. which run on the platform where the new derivation
235+ will be built.
236+ <footnote>
237+ <para>
238+ Currently, that means for native builds all dependencies are put on the
239+ <envar>PATH</envar>. But in the future that may not be the case for sake
240+ of matching cross: the platforms would be assumed to be unique for native
241+ and cross builds alike, so only the <varname>depsBuild*</varname> and
242+ <varname>nativeBuildDependencies</varname> dependencies would affect the
243+ <envar>PATH</envar>.
244+ </para>
245+ </footnote>
246+ For each dependency <replaceable>dep</replaceable> of those dependencies,
247+ <filename><replaceable>dep</replaceable>/bin</filename>, if present, is
248+ added to the <envar>PATH</envar> environment variable.
249+ </para>
250+
251+ <para>
252+ The dependency is propagated when it forces some of its other-transitive
253+ (non-immediate) downstream dependencies to also take it on as an immediate
254+ dependency. Nix itself already takes a package's transitive dependencies
255+ into account, but this propagation ensures nixpkgs-specific infrastructure
256+ like setup hooks (mentioned above) also are run as if the propagated
257+ dependency.
258+ </para>
259+
260+ <para>
261+ It is important to note dependencies are not necessary propagated as the
262+ same sort of dependency that they were before, but rather as the
263+ corresponding sort so that the platform rules still line up. The exact rules
264+ for dependency propagation can be given by assigning each sort of dependency
265+ two integers based one how it's host and target platforms are offset from
266+ the depending derivation's platforms. Those offsets are given are given
267+ below in the descriptions of each dependency list attribute.
268+ Algorithmically, we traverse propagated inputs, accumulating every
269+ propagated dep's propagated deps and adjusting them to account for the
270+ "shift in perspective" described by the current dep's platform offsets. This
271+ results in sort a transitive closure of the dependency relation, with the
272+ offsets being approximately summed when two dependency links are combined.
273+ We also prune transitive deps whose combined offsets go out-of-bounds, which
274+ can be viewed as a filter over that transitive closure removing dependencies
275+ that are blatantly absurd.
276+ </para>
277+
278+ <para>
279+ We can define the process precisely with
280+ <link xlink:href="https://en.wikipedia.org/wiki/Natural_deduction">Natural
281+ Deduction</link> using the inference rules. This probably seems a bit
282+ obtuse, but so is the bash code that actually implements it!
283+ <footnote>
284+ <para>
285+ The <function>findInputs</function> function, currently residing in
286+ <filename>pkgs/stdenv/generic/setup.sh</filename>, implements the
287+ propagation logic.
288+ </para>
289+ </footnote>
290+ They're confusing in very different ways so...hopefully if something doesn't
291+ make sense in one presentation, it does in the other!
292+<programlisting>
232293let mapOffset(h, t, i) = i + (if i &lt;= 0 then h else t - 1)
233294
234295propagated-dep(h0, t0, A, B)
@@ -239,7 +300,7 @@ h0 + t1 in {-1, 0, 1}
239300propagated-dep(mapOffset(h0, t0, h1),
240301 mapOffset(h0, t0, t1),
241302 A, C)</programlisting>
242− <programlisting>
303+<programlisting>
243304let mapOffset(h, t, i) = i + (if i &lt;= 0 then h else t - 1)
244305
245306dep(h0, _, A, B)
@@ -250,1139 +311,1450 @@ h0 + t1 in {-1, 0, -1}
250311propagated-dep(mapOffset(h0, t0, h1),
251312 mapOffset(h0, t0, t1),
252313 A, C)</programlisting>
253− <programlisting>
314+<programlisting>
254315propagated-dep(h, t, A, B)
255316-------------------------------------- Propagated deps count as deps
256317dep(h, t, A, B)</programlisting>
257− Some explanation of this monstrosity is in order.
258− In the common case, the target offset of a dependency is the successor to the target offset: <literal>t = h + 1</literal>.
259− That means that:
260− <programlisting>
318+ Some explanation of this monstrosity is in order. In the common case, the
319+ target offset of a dependency is the successor to the target offset:
320+ <literal>t = h + 1</literal>. That means that:
321+<programlisting>
261322let f(h, t, i) = i + (if i &lt;= 0 then h else t - 1)
262323let f(h, h + 1, i) = i + (if i &lt;= 0 then h else (h + 1) - 1)
263324let f(h, h + 1, i) = i + (if i &lt;= 0 then h else h)
264325let f(h, h + 1, i) = i + h
265326 </programlisting>
266− This is where the "sum-like" comes from above:
267− We can just sum all the host offset to get the host offset of the transitive dependency.
268− The target offset is the transitive dep is simply the host offset + 1, just as it was with the dependencies composed to make this transitive one;
269− it can be ignored as it doesn't add any new information.
270−</para>
271−<para>
272− Because of the bounds checks, the uncommon cases are <literal>h = t</literal> and <literal>h + 2 = t</literal>.
273− In the former case, the motivation for <function>mapOffset</function> is that since its host and target platforms are the same, no transitive dep of it should be able to "discover" an offset greater than its reduced target offsets.
274− <function>mapOffset</function> effectively "squashes" all its transitive dependencies' offsets so that none will ever be greater than the target offset of the original <literal>h = t</literal> package.
275− In the other case, <literal>h + 1</literal> is skipped over between the host and target offsets.
276− Instead of squashing the offsets, we need to "rip" them apart so no transitive dependencies' offset is that one.
277−</para>
278−<para>
279−Overall, the unifying theme here is that propagation shouldn't be introducing transitive dependencies involving platforms the needing package is unaware of.
280−The offset bounds checking and definition of <function>mapOffset</function> together ensure that this is the case.
281−Discovering a new offset is discovering a new platform, and since those platforms weren't in the derivation "spec" of the needing package, they cannot be relevant.
282−From a capability perspective, we can imagine that the host and target platforms of a package are the capabilities a package requires, and the depending package must provide the capability to the dependency.
283−</para>
284−
285−<variablelist>
286− <title>Variables specifying dependencies</title>
287−
327+ This is where the "sum-like" comes from above: We can just sum all the host
328+ offset to get the host offset of the transitive dependency. The target
329+ offset is the transitive dep is simply the host offset + 1, just as it was
330+ with the dependencies composed to make this transitive one; it can be
331+ ignored as it doesn't add any new information.
332+ </para>
333+
334+ <para>
335+ Because of the bounds checks, the uncommon cases are <literal>h =
336+ t</literal> and <literal>h + 2 = t</literal>. In the former case, the
337+ motivation for <function>mapOffset</function> is that since its host and
338+ target platforms are the same, no transitive dep of it should be able to
339+ "discover" an offset greater than its reduced target offsets.
340+ <function>mapOffset</function> effectively "squashes" all its transitive
341+ dependencies' offsets so that none will ever be greater than the target
342+ offset of the original <literal>h = t</literal> package. In the other case,
343+ <literal>h + 1</literal> is skipped over between the host and target
344+ offsets. Instead of squashing the offsets, we need to "rip" them apart so no
345+ transitive dependencies' offset is that one.
346+ </para>
347+
348+ <para>
349+ Overall, the unifying theme here is that propagation shouldn't be
350+ introducing transitive dependencies involving platforms the needing package
351+ is unaware of. The offset bounds checking and definition of
352+ <function>mapOffset</function> together ensure that this is the case.
353+ Discovering a new offset is discovering a new platform, and since those
354+ platforms weren't in the derivation "spec" of the needing package, they
355+ cannot be relevant. From a capability perspective, we can imagine that the
356+ host and target platforms of a package are the capabilities a package
357+ requires, and the depending package must provide the capability to the
358+ dependency.
359+ </para>
360+
361+ <variablelist>
362+ <title>Variables specifying dependencies</title>
288363 <varlistentry>
289− <term><varname>depsBuildBuild</varname></term>
290− <listitem>
291− <para>
292− A list of dependencies whose host and target platforms are the new derivation's build platform.
293− This means a <literal>-1</literal> host and <literal>-1</literal> target offset from the new derivation's platforms.
294− They are programs/libraries used at build time that furthermore produce programs/libraries also used at build time.
295− If the dependency doesn't care about the target platform (i.e. isn't a compiler or similar tool), put it in <varname>nativeBuildInputs</varname>instead.
296− The most common use for this <literal>buildPackages.stdenv.cc</literal>, the default C compiler for this role.
297− That example crops up more than one might think in old commonly used C libraries.
298− </para>
299− <para>
300− Since these packages are able to be run at build time, that are always added to the <envar>PATH</envar>, as described above.
301− But since these packages are only guaranteed to be able to run then, they shouldn't persist as run-time dependencies.
302− This isn't currently enforced, but could be in the future.
303− </para>
304− </listitem>
305− </varlistentry>
306−
307− <varlistentry>
308− <term><varname>nativeBuildInputs</varname></term>
364+ <term><varname>depsBuildBuild</varname>
365+ </term>
309366 <listitem>
310− <para>
311− A list of dependencies whose host platform is the new derivation's build platform, and target platform is the new derivation's host platform.
312− This means a <literal>-1</literal> host offset and <literal>0</literal> target offset from the new derivation's platforms.
313− They are programs/libraries used at build time that, if they are a compiler or similar tool, produce code to run at run time—i.e. tools used to build the new derivation.
314− If the dependency doesn't care about the target platform (i.e. isn't a compiler or similar tool), put it here, rather than in <varname>depsBuildBuild</varname> or <varname>depsBuildTarget</varname>.
315− This would be called <varname>depsBuildHost</varname> but for historical continuity.
316− </para>
317− <para>
318− Since these packages are able to be run at build time, that are added to the <envar>PATH</envar>, as described above.
319− But since these packages only are guaranteed to be able to run then, they shouldn't persist as run-time dependencies.
320− This isn't currently enforced, but could be in the future.
321− </para>
367+ <para>
368+ A list of dependencies whose host and target platforms are the new
369+ derivation's build platform. This means a <literal>-1</literal> host and
370+ <literal>-1</literal> target offset from the new derivation's platforms.
371+ They are programs/libraries used at build time that furthermore produce
372+ programs/libraries also used at build time. If the dependency doesn't
373+ care about the target platform (i.e. isn't a compiler or similar tool),
374+ put it in <varname>nativeBuildInputs</varname>instead. The most common
375+ use for this <literal>buildPackages.stdenv.cc</literal>, the default C
376+ compiler for this role. That example crops up more than one might think
377+ in old commonly used C libraries.
378+ </para>
379+ <para>
380+ Since these packages are able to be run at build time, that are always
381+ added to the <envar>PATH</envar>, as described above. But since these
382+ packages are only guaranteed to be able to run then, they shouldn't
383+ persist as run-time dependencies. This isn't currently enforced, but
384+ could be in the future.
385+ </para>
322386 </listitem>
323− </varlistentry>
324−
325− <varlistentry>
326− <term><varname>depsBuildTarget</varname></term>
387+ </varlistentry>
388+ <varlistentry>
389+ <term><varname>nativeBuildInputs</varname>
390+ </term>
327391 <listitem>
328− <para>
329− A list of dependencies whose host platform is the new derivation's build platform, and target platform is the new derivation's target platform.
330− This means a <literal>-1</literal> host offset and <literal>1</literal> target offset from the new derivation's platforms.
331− They are programs used at build time that produce code to run at run with code produced by the depending package.
332− Most commonly, these would tools used to build the runtime or standard library the currently-being-built compiler will inject into any code it compiles.
333− In many cases, the currently-being built compiler is itself employed for that task, but when that compiler won't run (i.e. its build and host platform differ) this is not possible.
334− Other times, the compiler relies on some other tool, like binutils, that is always built separately so the dependency is unconditional.
335− </para>
336− <para>
337− This is a somewhat confusing dependency to wrap ones head around, and for good reason.
338− As the only one where the platform offsets are not adjacent integers, it requires thinking of a bootstrapping stage <emphasis>two</emphasis> away from the current one.
339− It and it's use-case go hand in hand and are both considered poor form:
340− try not to need this sort dependency, and try not avoid building standard libraries / runtimes in the same derivation as the compiler produces code using them.
341− Instead strive to build those like a normal library, using the newly-built compiler just as a normal library would.
342− In short, do not use this attribute unless you are packaging a compiler and are sure it is needed.
392+ <para>
393+ A list of dependencies whose host platform is the new derivation's build
394+ platform, and target platform is the new derivation's host platform. This
395+ means a <literal>-1</literal> host offset and <literal>0</literal> target
396+ offset from the new derivation's platforms. They are programs/libraries
397+ used at build time that, if they are a compiler or similar tool, produce
398+ code to run at run time—i.e. tools used to build the new derivation. If
399+ the dependency doesn't care about the target platform (i.e. isn't a
400+ compiler or similar tool), put it here, rather than in
401+ <varname>depsBuildBuild</varname> or <varname>depsBuildTarget</varname>.
402+ This would be called <varname>depsBuildHost</varname> but for historical
403+ continuity.
343404 </para>
344405 <para>
345− Since these packages are able to be run at build time, that are added to the <envar>PATH</envar>, as described above.
346− But since these packages only are guaranteed to be able to run then, they shouldn't persist as run-time dependencies.
347− This isn't currently enforced, but could be in the future.
406+ Since these packages are able to be run at build time, that are added to
407+ the <envar>PATH</envar>, as described above. But since these packages
408+ only are guaranteed to be able to run then, they shouldn't persist as
409+ run-time dependencies. This isn't currently enforced, but could be in the
410+ future.
348411 </para>
349412 </listitem>
350− </varlistentry>
351−
352− <varlistentry>
353− <term><varname>depsHostHost</varname></term>
354− <listitem><para>
355− A list of dependencies whose host and target platforms match the new derivation's host platform.
356− This means a both <literal>0</literal> host offset and <literal>0</literal> target offset from the new derivation's host platform.
357− These are packages used at run-time to generate code also used at run-time.
358− In practice, that would usually be tools used by compilers for metaprogramming/macro systems, or libraries used by the macros/metaprogramming code itself.
359− It's always preferable to use a <varname>depsBuildBuild</varname> dependency in the derivation being built than a <varname>depsHostHost</varname> on the tool doing the building for this purpose.
360− </para></listitem>
361− </varlistentry>
362−
363− <varlistentry>
364− <term><varname>buildInputs</varname></term>
413+ </varlistentry>
414+ <varlistentry>
415+ <term><varname>depsBuildTarget</varname>
416+ </term>
365417 <listitem>
366− <para>
367− A list of dependencies whose host platform and target platform match the new derivation's.
368− This means a <literal>0</literal> host offset and <literal>1</literal> target offset from the new derivation's host platform.
369− This would be called <varname>depsHostTarget</varname> but for historical continuity.
370− If the dependency doesn't care about the target platform (i.e. isn't a compiler or similar tool), put it here, rather than in <varname>depsBuildBuild</varname>.
371− </para>
372− <para>
373− These often are programs/libraries used by the new derivation at <emphasis>run</emphasis>-time, but that isn't always the case.
374− For example, the machine code in a statically linked library is only used at run time, but the derivation containing the library is only needed at build time.
375− Even in the dynamic case, the library may also be needed at build time to appease the linker.
376− </para>
418+ <para>
419+ A list of dependencies whose host platform is the new derivation's build
420+ platform, and target platform is the new derivation's target platform.
421+ This means a <literal>-1</literal> host offset and <literal>1</literal>
422+ target offset from the new derivation's platforms. They are programs used
423+ at build time that produce code to run at run with code produced by the
424+ depending package. Most commonly, these would tools used to build the
425+ runtime or standard library the currently-being-built compiler will
426+ inject into any code it compiles. In many cases, the currently-being
427+ built compiler is itself employed for that task, but when that compiler
428+ won't run (i.e. its build and host platform differ) this is not possible.
429+ Other times, the compiler relies on some other tool, like binutils, that
430+ is always built separately so the dependency is unconditional.
431+ </para>
432+ <para>
433+ This is a somewhat confusing dependency to wrap ones head around, and for
434+ good reason. As the only one where the platform offsets are not adjacent
435+ integers, it requires thinking of a bootstrapping stage
436+ <emphasis>two</emphasis> away from the current one. It and it's use-case
437+ go hand in hand and are both considered poor form: try not to need this
438+ sort dependency, and try not avoid building standard libraries / runtimes
439+ in the same derivation as the compiler produces code using them. Instead
440+ strive to build those like a normal library, using the newly-built
441+ compiler just as a normal library would. In short, do not use this
442+ attribute unless you are packaging a compiler and are sure it is needed.
443+ </para>
444+ <para>
445+ Since these packages are able to be run at build time, that are added to
446+ the <envar>PATH</envar>, as described above. But since these packages
447+ only are guaranteed to be able to run then, they shouldn't persist as
448+ run-time dependencies. This isn't currently enforced, but could be in the
449+ future.
450+ </para>
377451 </listitem>
378− </varlistentry>
379−
380− <varlistentry>
381− <term><varname>depsTargetTarget</varname></term>
382− <listitem><para>
383− A list of dependencies whose host platform matches the new derivation's target platform.
384− This means a <literal>1</literal> offset from the new derivation's platforms.
385− These are packages that run on the target platform, e.g. the standard library or run-time deps of standard library that a compiler insists on knowing about.
386− It's poor form in almost all cases for a package to depend on another from a future stage [future stage corresponding to positive offset].
387− Do not use this attribute unless you are packaging a compiler and are sure it is needed.
388− </para></listitem>
389− </varlistentry>
390−
391− <varlistentry>
392− <term><varname>depsBuildBuildPropagated</varname></term>
393− <listitem><para>
394− The propagated equivalent of <varname>depsBuildBuild</varname>.
395− This perhaps never ought to be used, but it is included for consistency [see below for the others].
396− </para></listitem>
397− </varlistentry>
398−
399− <varlistentry>
400− <term><varname>propagatedNativeBuildInputs</varname></term>
401− <listitem><para>
402− The propagated equivalent of <varname>nativeBuildInputs</varname>.
403− This would be called <varname>depsBuildHostPropagated</varname> but for historical continuity.
404− For example, if package <varname>Y</varname> has <literal>propagatedNativeBuildInputs = [X]</literal>, and package <varname>Z</varname> has <literal>buildInputs = [Y]</literal>, then package <varname>Z</varname> will be built as if it included package <varname>X</varname> in its <varname>nativeBuildInputs</varname>.
405− If instead, package <varname>Z</varname> has <literal>nativeBuildInputs = [Y]</literal>, then <varname>Z</varname> will be built as if it included <varname>X</varname> in the <varname>depsBuildBuild</varname> of package <varname>Z</varname>, because of the sum of the two <literal>-1</literal> host offsets.
406− </para></listitem>
407− </varlistentry>
408−
409− <varlistentry>
410− <term><varname>depsBuildTargetPropagated</varname></term>
411− <listitem><para>
412− The propagated equivalent of <varname>depsBuildTarget</varname>.
413− This is prefixed for the same reason of alerting potential users.
414− </para></listitem>
415− </varlistentry>
416−
417− <varlistentry>
418− <term><varname>depsHostHostPropagated</varname></term>
419− <listitem><para>
420− The propagated equivalent of <varname>depsHostHost</varname>.
421− </para></listitem>
422− </varlistentry>
423−
424− <varlistentry>
425− <term><varname>propagatedBuildInputs</varname></term>
426− <listitem><para>
427− The propagated equivalent of <varname>buildInputs</varname>.
428− This would be called <varname>depsHostTargetPropagated</varname> but for historical continuity.
429− </para></listitem>
430− </varlistentry>
431−
432− <varlistentry>
433− <term><varname>depsTargetTarget</varname></term>
434− <listitem><para>
435− The propagated equivalent of <varname>depsTargetTarget</varname>.
436− This is prefixed for the same reason of alerting potential users.
437− </para></listitem>
438− </varlistentry>
439−
440−</variablelist>
441−
442−</section>
443−
444−
445−<section xml:id="ssec-stdenv-attributes"><title>Attributes</title>
446−
447−<variablelist>
448− <title>Variables affecting <literal>stdenv</literal>
449− initialisation</title>
450−
451− <varlistentry>
452− <term><varname>NIX_DEBUG</varname></term>
453− <listitem><para>
454− A natural number indicating how much information to log.
455− If set to 1 or higher, <literal>stdenv</literal> will print moderate debug information during the build.
456− In particular, the <command>gcc</command> and <command>ld</command> wrapper scripts will print out the complete command line passed to the wrapped tools.
457− If set to 6 or higher, the <literal>stdenv</literal> setup script will be run with <literal>set -x</literal> tracing.
458− If set to 7 or higher, the <command>gcc</command> and <command>ld</command> wrapper scripts will also be run with <literal>set -x</literal> tracing.
459− </para></listitem>
460− </varlistentry>
461−
462−</variablelist>
463−
464−<variablelist>
465− <title>Variables affecting build properties</title>
466−
467− <varlistentry>
468− <term><varname>enableParallelBuilding</varname></term>
452+ </varlistentry>
453+ <varlistentry>
454+ <term><varname>depsHostHost</varname>
455+ </term>
469456 <listitem>
470− <para>If set to <literal>true</literal>, <literal>stdenv</literal> will
471− pass specific flags to <literal>make</literal> and other build tools to
472− enable parallel building with up to <literal>build-cores</literal>
473− workers.</para>
474−
475− <para>Unless set to <literal>false</literal>, some build systems with good
476− support for parallel building including <literal>cmake</literal>,
477− <literal>meson</literal>, and <literal>qmake</literal> will set it to
478− <literal>true</literal>.</para>
457+ <para>
458+ A list of dependencies whose host and target platforms match the new
459+ derivation's host platform. This means a both <literal>0</literal> host
460+ offset and <literal>0</literal> target offset from the new derivation's
461+ host platform. These are packages used at run-time to generate code also
462+ used at run-time. In practice, that would usually be tools used by
463+ compilers for metaprogramming/macro systems, or libraries used by the
464+ macros/metaprogramming code itself. It's always preferable to use a
465+ <varname>depsBuildBuild</varname> dependency in the derivation being
466+ built than a <varname>depsHostHost</varname> on the tool doing the
467+ building for this purpose.
468+ </para>
479469 </listitem>
480− </varlistentry>
481−
482− <varlistentry>
483− <term><varname>preferLocalBuild</varname></term>
484− <listitem><para>If set, specifies that the package is so lightweight
485− in terms of build operations (e.g. write a text file from a Nix string
486− to the store) that there's no need to look for it in binary caches --
487− it's faster to just build it locally. It also tells Hydra and other
488− facilities that this package doesn't need to be exported in binary
489− caches (noone would use it, after all).</para></listitem>
490− </varlistentry>
491−
492−</variablelist>
493−
494−<variablelist>
495− <title>Special variables</title>
496−
497− <varlistentry>
498− <term><varname>passthru</varname></term>
499− <listitem><para>This is an attribute set which can be filled with arbitrary
500− values. For example:
501−
502−<programlisting>
503−passthru = {
504− foo = "bar";
505− baz = {
506− value1 = 4;
507− value2 = 5;
508− };
509−}
510−</programlisting>
511−
512−</para>
513−
514− <para>Values inside it are not passed to the builder, so you can change
515− them without triggering a rebuild. However, they can be accessed outside of a
516− derivation directly, as if they were set inside a derivation itself, e.g.
517− <literal>hello.baz.value1</literal>. We don't specify any usage or
518− schema of <literal>passthru</literal> - it is meant for values that would be
519− useful outside the derivation in other parts of a Nix expression (e.g. in other
520− derivations). An example would be to convey some specific dependency of your
521− derivation which contains a program with plugins support. Later, others who
522− make derivations with plugins can use passed-through dependency to ensure that
523− their plugin would be binary-compatible with built program.</para></listitem>
524− </varlistentry>
525−
526−</variablelist>
527−
528−</section>
529−
530−
531−<section xml:id="sec-stdenv-phases"><title>Phases</title>
532−
533−<para>The generic builder has a number of <emphasis>phases</emphasis>.
534−Package builds are split into phases to make it easier to override
535−specific parts of the build (e.g., unpacking the sources or installing
536−the binaries). Furthermore, it allows a nicer presentation of build
537−logs in the Nix build farm.</para>
538−
539−<para>Each phase can be overridden in its entirety either by setting
540−the environment variable
541−<varname><replaceable>name</replaceable>Phase</varname> to a string
542−containing some shell commands to be executed, or by redefining the
543−shell function
544−<varname><replaceable>name</replaceable>Phase</varname>. The former
545−is convenient to override a phase from the derivation, while the
546−latter is convenient from a build script.
547−
548−However, typically one only wants to <emphasis>add</emphasis> some
549−commands to a phase, e.g. by defining <literal>postInstall</literal>
550−or <literal>preFixup</literal>, as skipping some of the default actions
551−may have unexpected consequences.
552−</para>
553−
554−
555−<section xml:id="ssec-controlling-phases"><title>Controlling
556−phases</title>
557−
558−<para>There are a number of variables that control what phases are
559−executed and in what order:
560−
561−<variablelist>
562− <title>Variables affecting phase control</title>
563−
564− <varlistentry>
565− <term><varname>phases</varname></term>
470+ </varlistentry>
471+ <varlistentry>
472+ <term><varname>buildInputs</varname>
473+ </term>
566474 <listitem>
567− <para>Specifies the phases. You can change the order in which
568− phases are executed, or add new phases, by setting this
569− variable. If it’s not set, the default value is used, which is
570− <literal>$prePhases unpackPhase patchPhase $preConfigurePhases
571− configurePhase $preBuildPhases buildPhase checkPhase
572− $preInstallPhases installPhase fixupPhase $preDistPhases
573− distPhase $postPhases</literal>.
574− </para>
575−
576− <para>Usually, if you just want to add a few phases, it’s more
577− convenient to set one of the variables below (such as
578− <varname>preInstallPhases</varname>), as you then don’t specify
579− all the normal phases.</para>
475+ <para>
476+ A list of dependencies whose host platform and target platform match the
477+ new derivation's. This means a <literal>0</literal> host offset and
478+ <literal>1</literal> target offset from the new derivation's host
479+ platform. This would be called <varname>depsHostTarget</varname> but for
480+ historical continuity. If the dependency doesn't care about the target
481+ platform (i.e. isn't a compiler or similar tool), put it here, rather
482+ than in <varname>depsBuildBuild</varname>.
483+ </para>
484+ <para>
485+ These often are programs/libraries used by the new derivation at
486+ <emphasis>run</emphasis>-time, but that isn't always the case. For
487+ example, the machine code in a statically linked library is only used at
488+ run time, but the derivation containing the library is only needed at
489+ build time. Even in the dynamic case, the library may also be needed at
490+ build time to appease the linker.
491+ </para>
580492 </listitem>
581− </varlistentry>
582−
583− <varlistentry>
584− <term><varname>prePhases</varname></term>
493+ </varlistentry>
494+ <varlistentry>
495+ <term><varname>depsTargetTarget</varname>
496+ </term>
585497 <listitem>
586− <para>Additional phases executed before any of the default phases.</para>
498+ <para>
499+ A list of dependencies whose host platform matches the new derivation's
500+ target platform. This means a <literal>1</literal> offset from the new
501+ derivation's platforms. These are packages that run on the target
502+ platform, e.g. the standard library or run-time deps of standard library
503+ that a compiler insists on knowing about. It's poor form in almost all
504+ cases for a package to depend on another from a future stage [future
505+ stage corresponding to positive offset]. Do not use this attribute unless
506+ you are packaging a compiler and are sure it is needed.
507+ </para>
587508 </listitem>
588− </varlistentry>
589−
590− <varlistentry>
591− <term><varname>preConfigurePhases</varname></term>
509+ </varlistentry>
510+ <varlistentry>
511+ <term><varname>depsBuildBuildPropagated</varname>
512+ </term>
592513 <listitem>
593− <para>Additional phases executed just before the configure phase.</para>
514+ <para>
515+ The propagated equivalent of <varname>depsBuildBuild</varname>. This
516+ perhaps never ought to be used, but it is included for consistency [see
517+ below for the others].
518+ </para>
594519 </listitem>
595− </varlistentry>
596−
597− <varlistentry>
598− <term><varname>preBuildPhases</varname></term>
520+ </varlistentry>
521+ <varlistentry>
522+ <term><varname>propagatedNativeBuildInputs</varname>
523+ </term>
599524 <listitem>
600− <para>Additional phases executed just before the build phase.</para>
525+ <para>
526+ The propagated equivalent of <varname>nativeBuildInputs</varname>. This
527+ would be called <varname>depsBuildHostPropagated</varname> but for
528+ historical continuity. For example, if package <varname>Y</varname> has
529+ <literal>propagatedNativeBuildInputs = [X]</literal>, and package
530+ <varname>Z</varname> has <literal>buildInputs = [Y]</literal>, then
531+ package <varname>Z</varname> will be built as if it included package
532+ <varname>X</varname> in its <varname>nativeBuildInputs</varname>. If
533+ instead, package <varname>Z</varname> has <literal>nativeBuildInputs =
534+ [Y]</literal>, then <varname>Z</varname> will be built as if it included
535+ <varname>X</varname> in the <varname>depsBuildBuild</varname> of package
536+ <varname>Z</varname>, because of the sum of the two <literal>-1</literal>
537+ host offsets.
538+ </para>
601539 </listitem>
602− </varlistentry>
603−
604− <varlistentry>
605− <term><varname>preInstallPhases</varname></term>
540+ </varlistentry>
541+ <varlistentry>
542+ <term><varname>depsBuildTargetPropagated</varname>
543+ </term>
606544 <listitem>
607− <para>Additional phases executed just before the install phase.</para>
545+ <para>
546+ The propagated equivalent of <varname>depsBuildTarget</varname>. This is
547+ prefixed for the same reason of alerting potential users.
548+ </para>
608549 </listitem>
609− </varlistentry>
610−
611− <varlistentry>
612− <term><varname>preFixupPhases</varname></term>
550+ </varlistentry>
551+ <varlistentry>
552+ <term><varname>depsHostHostPropagated</varname>
553+ </term>
613554 <listitem>
614− <para>Additional phases executed just before the fixup phase.</para>
555+ <para>
556+ The propagated equivalent of <varname>depsHostHost</varname>.
557+ </para>
615558 </listitem>
616− </varlistentry>
617−
618− <varlistentry>
619− <term><varname>preDistPhases</varname></term>
559+ </varlistentry>
560+ <varlistentry>
561+ <term><varname>propagatedBuildInputs</varname>
562+ </term>
620563 <listitem>
621− <para>Additional phases executed just before the distribution phase.</para>
564+ <para>
565+ The propagated equivalent of <varname>buildInputs</varname>. This would
566+ be called <varname>depsHostTargetPropagated</varname> but for historical
567+ continuity.
568+ </para>
622569 </listitem>
623− </varlistentry>
624−
625− <varlistentry>
626− <term><varname>postPhases</varname></term>
570+ </varlistentry>
571+ <varlistentry>
572+ <term><varname>depsTargetTarget</varname>
573+ </term>
627574 <listitem>
628− <para>Additional phases executed after any of the default
629− phases.</para>
575+ <para>
576+ The propagated equivalent of <varname>depsTargetTarget</varname>. This is
577+ prefixed for the same reason of alerting potential users.
578+ </para>
630579 </listitem>
631− </varlistentry>
632−
633−</variablelist>
634−
635−</para>
636−
637−</section>
638−
639−
640−<section xml:id="ssec-unpack-phase"><title>The unpack phase</title>
641−
642−<para>The unpack phase is responsible for unpacking the source code of
643−the package. The default implementation of
644−<function>unpackPhase</function> unpacks the source files listed in
645−the <envar>src</envar> environment variable to the current directory.
646−It supports the following files by default:
647−
648−<variablelist>
649−
650− <varlistentry>
651− <term>Tar files</term>
652− <listitem><para>These can optionally be compressed using
653− <command>gzip</command> (<filename>.tar.gz</filename>,
654− <filename>.tgz</filename> or <filename>.tar.Z</filename>),
655− <command>bzip2</command> (<filename>.tar.bz2</filename> or
656− <filename>.tbz2</filename>) or <command>xz</command>
657− (<filename>.tar.xz</filename> or
658− <filename>.tar.lzma</filename>).</para></listitem>
659− </varlistentry>
660−
661− <varlistentry>
662− <term>Zip files</term>
663− <listitem><para>Zip files are unpacked using
664− <command>unzip</command>. However, <command>unzip</command> is
665− not in the standard environment, so you should add it to
666− <varname>buildInputs</varname> yourself.</para></listitem>
667− </varlistentry>
668−
669− <varlistentry>
670− <term>Directories in the Nix store</term>
671− <listitem><para>These are simply copied to the current directory.
672− The hash part of the file name is stripped,
673− e.g. <filename>/nix/store/1wydxgby13cz...-my-sources</filename>
674− would be copied to
675− <filename>my-sources</filename>.</para></listitem>
676− </varlistentry>
677−
678−</variablelist>
679−
680−Additional file types can be supported by setting the
681−<varname>unpackCmd</varname> variable (see below).</para>
682−
683−<para></para>
684−
685−<variablelist>
686− <title>Variables controlling the unpack phase</title>
687−
688− <varlistentry>
689− <term><varname>srcs</varname> / <varname>src</varname></term>
690− <listitem><para>The list of source files or directories to be
691− unpacked or copied. One of these must be set.</para></listitem>
692− </varlistentry>
693−
694− <varlistentry>
695− <term><varname>sourceRoot</varname></term>
696− <listitem><para>After running <function>unpackPhase</function>,
697− the generic builder changes the current directory to the directory
698− created by unpacking the sources. If there are multiple source
699− directories, you should set <varname>sourceRoot</varname> to the
700− name of the intended directory.</para></listitem>
701− </varlistentry>
702−
703− <varlistentry>
704− <term><varname>setSourceRoot</varname></term>
705− <listitem><para>Alternatively to setting
706− <varname>sourceRoot</varname>, you can set
707− <varname>setSourceRoot</varname> to a shell command to be
708− evaluated by the unpack phase after the sources have been
709− unpacked. This command must set
710− <varname>sourceRoot</varname>.</para></listitem>
711− </varlistentry>
712−
713− <varlistentry>
714− <term><varname>preUnpack</varname></term>
715− <listitem><para>Hook executed at the start of the unpack
716− phase.</para></listitem>
717− </varlistentry>
718−
719− <varlistentry>
720− <term><varname>postUnpack</varname></term>
721− <listitem><para>Hook executed at the end of the unpack
722− phase.</para></listitem>
723− </varlistentry>
724−
725− <varlistentry>
726− <term><varname>dontMakeSourcesWritable</varname></term>
727− <listitem><para>If set to <literal>1</literal>, the unpacked
728− sources are <emphasis>not</emphasis> made
729− writable. By default, they are made writable to prevent problems
730− with read-only sources. For example, copied store directories
731− would be read-only without this.</para></listitem>
732− </varlistentry>
733−
734− <varlistentry>
735− <term><varname>unpackCmd</varname></term>
736− <listitem><para>The unpack phase evaluates the string
737− <literal>$unpackCmd</literal> for any unrecognised file. The path
738− to the current source file is contained in the
739− <varname>curSrc</varname> variable.</para></listitem>
740− </varlistentry>
741−
742−</variablelist>
743−
744−</section>
745−
746−
747−<section xml:id="ssec-patch-phase"><title>The patch phase</title>
748−
749−<para>The patch phase applies the list of patches defined in the
750−<varname>patches</varname> variable.</para>
751−
752−<variablelist>
753− <title>Variables controlling the patch phase</title>
754−
755− <varlistentry>
756− <term><varname>patches</varname></term>
757− <listitem><para>The list of patches. They must be in the format
758− accepted by the <command>patch</command> command, and may
759− optionally be compressed using <command>gzip</command>
760− (<filename>.gz</filename>), <command>bzip2</command>
761− (<filename>.bz2</filename>) or <command>xz</command>
762− (<filename>.xz</filename>).</para></listitem>
763− </varlistentry>
764−
765− <varlistentry>
766− <term><varname>patchFlags</varname></term>
767− <listitem><para>Flags to be passed to <command>patch</command>.
768− If not set, the argument <option>-p1</option> is used, which
769− causes the leading directory component to be stripped from the
770− file names in each patch.</para></listitem>
771− </varlistentry>
772−
773− <varlistentry>
774− <term><varname>prePatch</varname></term>
775− <listitem><para>Hook executed at the start of the patch
776− phase.</para></listitem>
777− </varlistentry>
778−
779− <varlistentry>
780− <term><varname>postPatch</varname></term>
781− <listitem><para>Hook executed at the end of the patch
782− phase.</para></listitem>
783− </varlistentry>
784−
785−</variablelist>
786−
787−</section>
788−
789−
790−<section xml:id="ssec-configure-phase"><title>The configure phase</title>
791−
792−<para>The configure phase prepares the source tree for building. The
793−default <function>configurePhase</function> runs
794−<filename>./configure</filename> (typically an Autoconf-generated
795−script) if it exists.</para>
796−
797−<variablelist>
798− <title>Variables controlling the configure phase</title>
799−
800− <varlistentry>
801− <term><varname>configureScript</varname></term>
802− <listitem><para>The name of the configure script. It defaults to
803− <filename>./configure</filename> if it exists; otherwise, the
804− configure phase is skipped. This can actually be a command (like
805− <literal>perl ./Configure.pl</literal>).</para></listitem>
806− </varlistentry>
807−
808− <varlistentry>
809− <term><varname>configureFlags</varname></term>
810− <listitem><para>A list of strings passed as additional arguments to the
811− configure script.</para></listitem>
812− </varlistentry>
813−
814− <varlistentry>
815− <term><varname>configureFlagsArray</varname></term>
816− <listitem><para>A shell array containing additional arguments
817− passed to the configure script. You must use this instead of
818− <varname>configureFlags</varname> if the arguments contain
819− spaces.</para></listitem>
820− </varlistentry>
821−
822− <varlistentry>
823− <term><varname>dontAddPrefix</varname></term>
824− <listitem><para>By default, the flag
825− <literal>--prefix=$prefix</literal> is added to the configure
826− flags. If this is undesirable, set this variable to
827− true.</para></listitem>
828− </varlistentry>
829−
830− <varlistentry>
831− <term><varname>prefix</varname></term>
832− <listitem><para>The prefix under which the package must be
833− installed, passed via the <option>--prefix</option> option to the
834− configure script. It defaults to
835− <option>$out</option>.</para></listitem>
836− </varlistentry>
837−
838− <varlistentry>
839− <term><varname>dontAddDisableDepTrack</varname></term>
840− <listitem><para>By default, the flag
841− <literal>--disable-dependency-tracking</literal> is added to the
842− configure flags to speed up Automake-based builds. If this is
843− undesirable, set this variable to true.</para></listitem>
844− </varlistentry>
845−
846− <varlistentry>
847− <term><varname>dontFixLibtool</varname></term>
848− <listitem><para>By default, the configure phase applies some
849− special hackery to all files called <filename>ltmain.sh</filename>
850− before running the configure script in order to improve the purity
851− of Libtool-based packages<footnote><para>It clears the
852− <varname>sys_lib_<replaceable>*</replaceable>search_path</varname>
853− variables in the Libtool script to prevent Libtool from using
854− libraries in <filename>/usr/lib</filename> and
855− such.</para></footnote>. If this is undesirable, set this
856− variable to true.</para></listitem>
857− </varlistentry>
858−
859− <varlistentry>
860− <term><varname>dontDisableStatic</varname></term>
861− <listitem><para>By default, when the configure script has
862− <option>--enable-static</option>, the option
863− <option>--disable-static</option> is added to the configure flags.</para>
864− <para>If this is undesirable, set this variable to
865− true.</para></listitem>
866− </varlistentry>
867−
868− <varlistentry>
869− <term><varname>configurePlatforms</varname></term>
870− <listitem><para>
871− By default, when cross compiling, the configure script has <option>--build=...</option> and <option>--host=...</option> passed.
872− Packages can instead pass <literal>[ "build" "host" "target" ]</literal> or a subset to control exactly which platform flags are passed.
873− Compilers and other tools should use this to also pass the target platform, for example.
874− <footnote><para>Eventually these will be passed when in native builds too, to improve determinism: build-time guessing, as is done today, is a risk of impurity.</para></footnote>
875− </para></listitem>
876− </varlistentry>
877−
878− <varlistentry>
879− <term><varname>preConfigure</varname></term>
880− <listitem><para>Hook executed at the start of the configure
881− phase.</para></listitem>
882− </varlistentry>
883−
884− <varlistentry>
885− <term><varname>postConfigure</varname></term>
886− <listitem><para>Hook executed at the end of the configure
887− phase.</para></listitem>
888− </varlistentry>
889−
890−</variablelist>
891−
892−
893−</section>
894−
895−
896−<section xml:id="build-phase"><title>The build phase</title>
897−
898−<para>The build phase is responsible for actually building the package
899−(e.g. compiling it). The default <function>buildPhase</function>
900−simply calls <command>make</command> if a file named
901−<filename>Makefile</filename>, <filename>makefile</filename> or
902−<filename>GNUmakefile</filename> exists in the current directory (or
903−the <varname>makefile</varname> is explicitly set); otherwise it does
904−nothing.</para>
905−
906−<variablelist>
907− <title>Variables controlling the build phase</title>
908−
909− <varlistentry>
910− <term><varname>dontBuild</varname></term>
911− <listitem><para>Set to true to skip the build phase.</para></listitem>
912− </varlistentry>
913−
914− <varlistentry>
915− <term><varname>makefile</varname></term>
916− <listitem><para>The file name of the Makefile.</para></listitem>
917− </varlistentry>
918−
919− <varlistentry>
920− <term><varname>makeFlags</varname></term>
921− <listitem><para>A list of strings passed as additional flags to
922− <command>make</command>. These flags are also used by the default
923− install and check phase. For setting make flags specific to the
924− build phase, use <varname>buildFlags</varname> (see below).
925−
926−<programlisting>
927−makeFlags = [ "PREFIX=$(out)" ];
928−</programlisting>
929−
930− <note><para>The flags are quoted in bash, but environment variables can
931− be specified by using the make syntax.</para></note></para></listitem>
932− </varlistentry>
933−
934− <varlistentry>
935− <term><varname>makeFlagsArray</varname></term>
936− <listitem><para>A shell array containing additional arguments
937− passed to <command>make</command>. You must use this instead of
938− <varname>makeFlags</varname> if the arguments contain
939− spaces, e.g.
940−
941−<programlisting>
942−makeFlagsArray=(CFLAGS="-O0 -g" LDFLAGS="-lfoo -lbar")
943−</programlisting>
944−
945− Note that shell arrays cannot be passed through environment
946− variables, so you cannot set <varname>makeFlagsArray</varname> in
947− a derivation attribute (because those are passed through
948− environment variables): you have to define them in shell
949− code.</para></listitem>
950− </varlistentry>
951−
952− <varlistentry>
953− <term><varname>buildFlags</varname> / <varname>buildFlagsArray</varname></term>
954− <listitem><para>A list of strings passed as additional flags to
955− <command>make</command>. Like <varname>makeFlags</varname> and
956− <varname>makeFlagsArray</varname>, but only used by the build
957− phase.</para></listitem>
958− </varlistentry>
959−
960− <varlistentry>
961− <term><varname>preBuild</varname></term>
962− <listitem><para>Hook executed at the start of the build
963− phase.</para></listitem>
964− </varlistentry>
965−
966− <varlistentry>
967− <term><varname>postBuild</varname></term>
968− <listitem><para>Hook executed at the end of the build
969− phase.</para></listitem>
970− </varlistentry>
971−
972−</variablelist>
973−
974−
975−<para>
976−You can set flags for <command>make</command> through the
977−<varname>makeFlags</varname> variable.</para>
978−
979−<para>Before and after running <command>make</command>, the hooks
980−<varname>preBuild</varname> and <varname>postBuild</varname> are
981−called, respectively.</para>
982−
983−</section>
984−
985−
986−<section xml:id="ssec-check-phase"><title>The check phase</title>
987−
988−<para>The check phase checks whether the package was built correctly
989−by running its test suite. The default
990−<function>checkPhase</function> calls <command>make check</command>,
991−but only if the <varname>doCheck</varname> variable is enabled.</para>
992−
993−<variablelist>
994− <title>Variables controlling the check phase</title>
995−
996− <varlistentry>
997− <term><varname>doCheck</varname></term>
998− <listitem><para>
999− Controls whether the check phase is executed.
1000− By default it is skipped, but if <varname>doCheck</varname> is set to true, the check phase is usually executed.
1001− Thus you should set <programlisting>doCheck = true;</programlisting> in the derivation to enable checks.
1002− The exception is cross compilation.
1003− Cross compiled builds never run tests, no matter how <varname>doCheck</varname> is set,
1004− as the newly-built program won't run on the platform used to build it.
1005− </para></listitem>
1006− </varlistentry>
1007−
1008− <varlistentry>
1009− <term><varname>makeFlags</varname> /
1010− <varname>makeFlagsArray</varname> /
1011− <varname>makefile</varname></term>
1012− <listitem><para>See the build phase for details.</para></listitem>
1013− </varlistentry>
1014−
1015− <varlistentry>
1016− <term><varname>checkTarget</varname></term>
1017− <listitem><para>The make target that runs the tests. Defaults to
1018− <literal>check</literal>.</para></listitem>
1019− </varlistentry>
1020−
1021− <varlistentry>
1022− <term><varname>checkFlags</varname> / <varname>checkFlagsArray</varname></term>
1023− <listitem><para>A list of strings passed as additional flags to
1024− <command>make</command>. Like <varname>makeFlags</varname> and
1025− <varname>makeFlagsArray</varname>, but only used by the check
1026− phase.</para></listitem>
1027− </varlistentry>
1028−
1029− <varlistentry>
1030− <term><varname>preCheck</varname></term>
1031− <listitem><para>Hook executed at the start of the check
1032− phase.</para></listitem>
1033− </varlistentry>
1034−
1035− <varlistentry>
1036− <term><varname>postCheck</varname></term>
1037− <listitem><para>Hook executed at the end of the check
1038− phase.</para></listitem>
1039− </varlistentry>
1040−
1041−</variablelist>
1042−
1043−
1044−</section>
1045−
1046−
1047−<section xml:id="ssec-install-phase"><title>The install phase</title>
1048−
1049−<para>The install phase is responsible for installing the package in
1050−the Nix store under <envar>out</envar>. The default
1051−<function>installPhase</function> creates the directory
1052−<literal>$out</literal> and calls <command>make
1053−install</command>.</para>
1054−
1055−<variablelist>
1056− <title>Variables controlling the install phase</title>
1057−
1058− <varlistentry>
1059− <term><varname>makeFlags</varname> /
1060− <varname>makeFlagsArray</varname> /
1061− <varname>makefile</varname></term>
1062− <listitem><para>See the build phase for details.</para></listitem>
1063− </varlistentry>
1064−
1065− <varlistentry>
1066− <term><varname>installTargets</varname></term>
1067− <listitem><para>The make targets that perform the installation.
1068− Defaults to <literal>install</literal>. Example:
1069−
1070−<programlisting>
1071−installTargets = "install-bin install-doc";</programlisting>
580+ </varlistentry>
581+ </variablelist>
582+ </section>
583+ <section xml:id="ssec-stdenv-attributes">
584+ <title>Attributes</title>
585+
586+ <variablelist>
587+ <title>Variables affecting <literal>stdenv</literal> initialisation</title>
588+ <varlistentry>
589+ <term><varname>NIX_DEBUG</varname>
590+ </term>
591+ <listitem>
592+ <para>
593+ A natural number indicating how much information to log. If set to 1 or
594+ higher, <literal>stdenv</literal> will print moderate debug information
595+ during the build. In particular, the <command>gcc</command> and
596+ <command>ld</command> wrapper scripts will print out the complete command
597+ line passed to the wrapped tools. If set to 6 or higher, the
598+ <literal>stdenv</literal> setup script will be run with <literal>set
599+ -x</literal> tracing. If set to 7 or higher, the <command>gcc</command>
600+ and <command>ld</command> wrapper scripts will also be run with
601+ <literal>set -x</literal> tracing.
602+ </para>
603+ </listitem>
604+ </varlistentry>
605+ </variablelist>
1072606
1073− </para></listitem>
1074− </varlistentry>
1075−
1076− <varlistentry>
1077− <term><varname>installFlags</varname> / <varname>installFlagsArray</varname></term>
1078− <listitem><para>A list of strings passed as additional flags to
1079− <command>make</command>. Like <varname>makeFlags</varname> and
1080− <varname>makeFlagsArray</varname>, but only used by the install
1081− phase.</para></listitem>
1082− </varlistentry>
1083−
1084− <varlistentry>
1085− <term><varname>preInstall</varname></term>
1086− <listitem><para>Hook executed at the start of the install
1087− phase.</para></listitem>
1088− </varlistentry>
1089−
1090− <varlistentry>
1091− <term><varname>postInstall</varname></term>
1092− <listitem><para>Hook executed at the end of the install
1093− phase.</para></listitem>
1094− </varlistentry>
1095−
1096−</variablelist>
1097−
1098−
1099−</section>
1100−
1101−
1102−<section xml:id="ssec-fixup-phase"><title>The fixup phase</title>
1103−
1104−<para>The fixup phase performs some (Nix-specific) post-processing
1105−actions on the files installed under <filename>$out</filename> by the
1106−install phase. The default <function>fixupPhase</function> does the
1107−following:
1108−
1109−<itemizedlist>
1110−
1111− <listitem><para>It moves the <filename>man/</filename>,
1112− <filename>doc/</filename> and <filename>info/</filename>
1113− subdirectories of <envar>$out</envar> to
1114− <filename>share/</filename>.</para></listitem>
1115−
1116− <listitem><para>It strips libraries and executables of debug
1117− information.</para></listitem>
1118−
1119− <listitem><para>On Linux, it applies the <command>patchelf</command>
1120− command to ELF executables and libraries to remove unused
1121− directories from the <literal>RPATH</literal> in order to prevent
1122− unnecessary runtime dependencies.</para></listitem>
1123−
1124− <listitem><para>It rewrites the interpreter paths of shell scripts
1125− to paths found in <envar>PATH</envar>. E.g.,
1126− <filename>/usr/bin/perl</filename> will be rewritten to
1127− <filename>/nix/store/<replaceable>some-perl</replaceable>/bin/perl</filename>
1128− found in <envar>PATH</envar>.</para></listitem>
1129−
1130−</itemizedlist>
1131−
1132−</para>
1133−
1134−<variablelist>
1135− <title>Variables controlling the fixup phase</title>
1136−
1137− <varlistentry>
1138− <term><varname>dontStrip</varname></term>
1139− <listitem><para>If set, libraries and executables are not
1140− stripped. By default, they are.</para></listitem>
1141− </varlistentry>
1142− <varlistentry>
1143− <term><varname>dontStripHost</varname></term>
1144− <listitem><para>
1145− Like <varname>dontStripHost</varname>, but only affects the <command>strip</command> command targetting the package's host platform.
1146− Useful when supporting cross compilation, but otherwise feel free to ignore.
1147− </para></listitem>
1148− </varlistentry>
1149− <varlistentry>
1150− <term><varname>dontStripTarget</varname></term>
1151− <listitem><para>
1152− Like <varname>dontStripHost</varname>, but only affects the <command>strip</command> command targetting the packages' target platform.
1153− Useful when supporting cross compilation, but otherwise feel free to ignore.
1154− </para></listitem>
1155− </varlistentry>
1156−
1157− <varlistentry>
1158− <term><varname>dontMoveSbin</varname></term>
1159− <listitem><para>If set, files in <filename>$out/sbin</filename> are not moved
1160− to <filename>$out/bin</filename>. By default, they are.</para></listitem>
1161− </varlistentry>
1162−
1163− <varlistentry>
1164− <term><varname>stripAllList</varname></term>
1165− <listitem><para>List of directories to search for libraries and
1166− executables from which <emphasis>all</emphasis> symbols should be
1167− stripped. By default, it’s empty. Stripping all symbols is
1168− risky, since it may remove not just debug symbols but also ELF
1169− information necessary for normal execution.</para></listitem>
1170− </varlistentry>
1171−
1172− <varlistentry>
1173− <term><varname>stripAllFlags</varname></term>
1174− <listitem><para>Flags passed to the <command>strip</command>
1175− command applied to the files in the directories listed in
1176− <varname>stripAllList</varname>. Defaults to <option>-s</option>
1177− (i.e. <option>--strip-all</option>).</para></listitem>
1178− </varlistentry>
1179−
1180− <varlistentry>
1181− <term><varname>stripDebugList</varname></term>
1182− <listitem><para>List of directories to search for libraries and
1183− executables from which only debugging-related symbols should be
1184− stripped. It defaults to <literal>lib bin
1185− sbin</literal>.</para></listitem>
1186− </varlistentry>
1187−
1188− <varlistentry>
1189− <term><varname>stripDebugFlags</varname></term>
1190− <listitem><para>Flags passed to the <command>strip</command>
1191− command applied to the files in the directories listed in
1192− <varname>stripDebugList</varname>. Defaults to
1193− <option>-S</option>
1194− (i.e. <option>--strip-debug</option>).</para></listitem>
1195− </varlistentry>
1196−
1197− <varlistentry>
1198− <term><varname>dontPatchELF</varname></term>
1199− <listitem><para>If set, the <command>patchelf</command> command is
1200− not used to remove unnecessary <literal>RPATH</literal> entries.
1201− Only applies to Linux.</para></listitem>
1202− </varlistentry>
1203−
1204− <varlistentry>
1205− <term><varname>dontPatchShebangs</varname></term>
1206− <listitem><para>If set, scripts starting with
1207− <literal>#!</literal> do not have their interpreter paths
1208− rewritten to paths in the Nix store.</para></listitem>
1209− </varlistentry>
1210−
1211− <varlistentry>
1212− <term><varname>forceShare</varname></term>
1213− <listitem><para>The list of directories that must be moved from
1214− <filename>$out</filename> to <filename>$out/share</filename>.
1215− Defaults to <literal>man doc info</literal>.</para></listitem>
1216− </varlistentry>
1217−
1218− <varlistentry>
1219− <term><varname>setupHook</varname></term>
1220− <listitem><para>A package can export a <link
1221− linkend="ssec-setup-hooks">setup hook</link> by setting this
1222− variable. The setup hook, if defined, is copied to
1223− <filename>$out/nix-support/setup-hook</filename>. Environment
1224− variables are then substituted in it using <function
1225− linkend="fun-substituteAll">substituteAll</function>.</para></listitem>
1226− </varlistentry>
1227−
1228− <varlistentry>
1229− <term><varname>preFixup</varname></term>
1230− <listitem><para>Hook executed at the start of the fixup
1231− phase.</para></listitem>
1232− </varlistentry>
1233−
1234− <varlistentry>
1235− <term><varname>postFixup</varname></term>
1236− <listitem><para>Hook executed at the end of the fixup
1237− phase.</para></listitem>
1238− </varlistentry>
1239−
1240− <varlistentry xml:id="stdenv-separateDebugInfo">
1241− <term><varname>separateDebugInfo</varname></term>
1242− <listitem><para>If set to <literal>true</literal>, the standard
1243− environment will enable debug information in C/C++ builds. After
1244− installation, the debug information will be separated from the
1245− executables and stored in the output named
1246− <literal>debug</literal>. (This output is enabled automatically;
1247− you don’t need to set the <varname>outputs</varname> attribute
1248− explicitly.) To be precise, the debug information is stored in
1249− <filename><replaceable>debug</replaceable>/lib/debug/.build-id/<replaceable>XX</replaceable>/<replaceable>YYYY…</replaceable></filename>,
1250− where <replaceable>XXYYYY…</replaceable> is the <replaceable>build
1251− ID</replaceable> of the binary — a SHA-1 hash of the contents of
1252− the binary. Debuggers like GDB use the build ID to look up the
1253− separated debug information.</para>
1254−
1255− <para>For example, with GDB, you can add
607+ <variablelist>
608+ <title>Variables affecting build properties</title>
609+ <varlistentry>
610+ <term><varname>enableParallelBuilding</varname>
611+ </term>
612+ <listitem>
613+ <para>
614+ If set to <literal>true</literal>, <literal>stdenv</literal> will pass
615+ specific flags to <literal>make</literal> and other build tools to enable
616+ parallel building with up to <literal>build-cores</literal> workers.
617+ </para>
618+ <para>
619+ Unless set to <literal>false</literal>, some build systems with good
620+ support for parallel building including <literal>cmake</literal>,
621+ <literal>meson</literal>, and <literal>qmake</literal> will set it to
622+ <literal>true</literal>.
623+ </para>
624+ </listitem>
625+ </varlistentry>
626+ <varlistentry>
627+ <term><varname>preferLocalBuild</varname>
628+ </term>
629+ <listitem>
630+ <para>
631+ If set, specifies that the package is so lightweight in terms of build
632+ operations (e.g. write a text file from a Nix string to the store) that
633+ there's no need to look for it in binary caches -- it's faster to just
634+ build it locally. It also tells Hydra and other facilities that this
635+ package doesn't need to be exported in binary caches (noone would use it,
636+ after all).
637+ </para>
638+ </listitem>
639+ </varlistentry>
640+ </variablelist>
1256641
642+ <variablelist>
643+ <title>Special variables</title>
644+ <varlistentry>
645+ <term><varname>passthru</varname>
646+ </term>
647+ <listitem>
648+ <para>
649+ This is an attribute set which can be filled with arbitrary values. For
650+ example:
1257651<programlisting>
1258−set debug-file-directory ~/.nix-profile/lib/debug
652+passthru = {
653+ foo = "bar";
654+ baz = {
655+ value1 = 4;
656+ value2 = 5;
657+ };
658+}
1259659</programlisting>
1260−
1261− to <filename>~/.gdbinit</filename>. GDB will then be able to find
1262− debug information installed via <literal>nix-env
1263− -i</literal>.</para>
1264−
660+ </para>
661+ <para>
662+ Values inside it are not passed to the builder, so you can change them
663+ without triggering a rebuild. However, they can be accessed outside of a
664+ derivation directly, as if they were set inside a derivation itself, e.g.
665+ <literal>hello.baz.value1</literal>. We don't specify any usage or schema
666+ of <literal>passthru</literal> - it is meant for values that would be
667+ useful outside the derivation in other parts of a Nix expression (e.g. in
668+ other derivations). An example would be to convey some specific
669+ dependency of your derivation which contains a program with plugins
670+ support. Later, others who make derivations with plugins can use
671+ passed-through dependency to ensure that their plugin would be
672+ binary-compatible with built program.
673+ </para>
1265674 </listitem>
1266− </varlistentry>
1267−
1268−</variablelist>
1269−
1270−</section>
1271−
1272−<section xml:id="ssec-installCheck-phase"><title>The installCheck phase</title>
1273−
1274−<para>The installCheck phase checks whether the package was installed
1275−correctly by running its test suite against the installed directories.
1276−The default <function>installCheck</function> calls <command>make
1277−installcheck</command>.</para>
1278−
1279−<variablelist>
1280− <title>Variables controlling the installCheck phase</title>
1281−
1282− <varlistentry>
1283− <term><varname>doInstallCheck</varname></term>
1284− <listitem><para>
1285− Controls whether the installCheck phase is executed.
1286− By default it is skipped, but if <varname>doInstallCheck</varname> is set to true, the installCheck phase is usually executed.
1287− Thus you should set <programlisting>doInstallCheck = true;</programlisting> in the derivation to enable install checks.
1288− The exception is cross compilation.
1289− Cross compiled builds never run tests, no matter how <varname>doInstallCheck</varname> is set,
1290− as the newly-built program won't run on the platform used to build it.
1291− </para></listitem>
1292− </varlistentry>
1293−
1294− <varlistentry>
1295− <term><varname>preInstallCheck</varname></term>
1296− <listitem><para>Hook executed at the start of the installCheck
1297− phase.</para></listitem>
1298− </varlistentry>
1299−
1300− <varlistentry>
1301− <term><varname>postInstallCheck</varname></term>
1302− <listitem><para>Hook executed at the end of the installCheck
1303− phase.</para></listitem>
1304− </varlistentry>
1305−
1306−</variablelist>
1307−
1308−</section>
1309−
1310−<section xml:id="ssec-distribution-phase"><title>The distribution
1311−phase</title>
1312−
1313−<para>The distribution phase is intended to produce a source
1314−distribution of the package. The default
1315−<function>distPhase</function> first calls <command>make
1316−dist</command>, then it copies the resulting source tarballs to
1317−<filename>$out/tarballs/</filename>. This phase is only executed if
1318−the attribute <varname>doDist</varname> is set.</para>
1319−
1320−<variablelist>
1321− <title>Variables controlling the distribution phase</title>
1322−
1323− <varlistentry>
1324− <term><varname>distTarget</varname></term>
1325− <listitem><para>The make target that produces the distribution.
1326− Defaults to <literal>dist</literal>.</para></listitem>
1327− </varlistentry>
1328−
1329− <varlistentry>
1330− <term><varname>distFlags</varname> / <varname>distFlagsArray</varname></term>
1331− <listitem><para>Additional flags passed to
1332− <command>make</command>.</para></listitem>
1333− </varlistentry>
1334−
1335− <varlistentry>
1336− <term><varname>tarballs</varname></term>
1337− <listitem><para>The names of the source distribution files to be
1338− copied to <filename>$out/tarballs/</filename>. It can contain
1339− shell wildcards. The default is
1340− <filename>*.tar.gz</filename>.</para></listitem>
1341− </varlistentry>
1342−
1343− <varlistentry>
1344− <term><varname>dontCopyDist</varname></term>
1345− <listitem><para>If set, no files are copied to
1346− <filename>$out/tarballs/</filename>.</para></listitem>
1347− </varlistentry>
1348−
1349− <varlistentry>
1350− <term><varname>preDist</varname></term>
1351− <listitem><para>Hook executed at the start of the distribution
1352− phase.</para></listitem>
1353− </varlistentry>
1354−
1355− <varlistentry>
1356− <term><varname>postDist</varname></term>
1357− <listitem><para>Hook executed at the end of the distribution
1358− phase.</para></listitem>
1359− </varlistentry>
1360−
1361−</variablelist>
1362−
1363−
1364−</section>
1365−
1366−
1367−</section>
1368−
1369−
1370−<section xml:id="ssec-stdenv-functions"><title>Shell functions</title>
1371−
1372−<para>The standard environment provides a number of useful
1373−functions.</para>
1374−
1375−<variablelist>
1376−
1377−
1378− <varlistentry xml:id='fun-makeWrapper'>
1379− <term><function>makeWrapper</function>
1380− <replaceable>executable</replaceable>
1381− <replaceable>wrapperfile</replaceable>
1382− <replaceable>args</replaceable></term>
1383− <listitem><para>Constructs a wrapper for a program with various
1384− possible arguments. For example:
1385−
675+ </varlistentry>
676+ </variablelist>
677+ </section>
678+ <section xml:id="sec-stdenv-phases">
679+ <title>Phases</title>
680+
681+ <para>
682+ The generic builder has a number of <emphasis>phases</emphasis>. Package
683+ builds are split into phases to make it easier to override specific parts of
684+ the build (e.g., unpacking the sources or installing the binaries).
685+ Furthermore, it allows a nicer presentation of build logs in the Nix build
686+ farm.
687+ </para>
688+
689+ <para>
690+ Each phase can be overridden in its entirety either by setting the
691+ environment variable <varname><replaceable>name</replaceable>Phase</varname>
692+ to a string containing some shell commands to be executed, or by redefining
693+ the shell function <varname><replaceable>name</replaceable>Phase</varname>.
694+ The former is convenient to override a phase from the derivation, while the
695+ latter is convenient from a build script. However, typically one only wants
696+ to <emphasis>add</emphasis> some commands to a phase, e.g. by defining
697+ <literal>postInstall</literal> or <literal>preFixup</literal>, as skipping
698+ some of the default actions may have unexpected consequences.
699+ </para>
700+
701+ <section xml:id="ssec-controlling-phases">
702+ <title>Controlling phases</title>
703+
704+ <para>
705+ There are a number of variables that control what phases are executed and
706+ in what order:
707+ <variablelist>
708+ <title>Variables affecting phase control</title>
709+ <varlistentry>
710+ <term><varname>phases</varname>
711+ </term>
712+ <listitem>
713+ <para>
714+ Specifies the phases. You can change the order in which phases are
715+ executed, or add new phases, by setting this variable. If it’s not
716+ set, the default value is used, which is <literal>$prePhases
717+ unpackPhase patchPhase $preConfigurePhases configurePhase
718+ $preBuildPhases buildPhase checkPhase $preInstallPhases installPhase
719+ fixupPhase $preDistPhases distPhase $postPhases</literal>.
720+ </para>
721+ <para>
722+ Usually, if you just want to add a few phases, it’s more convenient
723+ to set one of the variables below (such as
724+ <varname>preInstallPhases</varname>), as you then don’t specify all
725+ the normal phases.
726+ </para>
727+ </listitem>
728+ </varlistentry>
729+ <varlistentry>
730+ <term><varname>prePhases</varname>
731+ </term>
732+ <listitem>
733+ <para>
734+ Additional phases executed before any of the default phases.
735+ </para>
736+ </listitem>
737+ </varlistentry>
738+ <varlistentry>
739+ <term><varname>preConfigurePhases</varname>
740+ </term>
741+ <listitem>
742+ <para>
743+ Additional phases executed just before the configure phase.
744+ </para>
745+ </listitem>
746+ </varlistentry>
747+ <varlistentry>
748+ <term><varname>preBuildPhases</varname>
749+ </term>
750+ <listitem>
751+ <para>
752+ Additional phases executed just before the build phase.
753+ </para>
754+ </listitem>
755+ </varlistentry>
756+ <varlistentry>
757+ <term><varname>preInstallPhases</varname>
758+ </term>
759+ <listitem>
760+ <para>
761+ Additional phases executed just before the install phase.
762+ </para>
763+ </listitem>
764+ </varlistentry>
765+ <varlistentry>
766+ <term><varname>preFixupPhases</varname>
767+ </term>
768+ <listitem>
769+ <para>
770+ Additional phases executed just before the fixup phase.
771+ </para>
772+ </listitem>
773+ </varlistentry>
774+ <varlistentry>
775+ <term><varname>preDistPhases</varname>
776+ </term>
777+ <listitem>
778+ <para>
779+ Additional phases executed just before the distribution phase.
780+ </para>
781+ </listitem>
782+ </varlistentry>
783+ <varlistentry>
784+ <term><varname>postPhases</varname>
785+ </term>
786+ <listitem>
787+ <para>
788+ Additional phases executed after any of the default phases.
789+ </para>
790+ </listitem>
791+ </varlistentry>
792+ </variablelist>
793+ </para>
794+ </section>
795+
796+ <section xml:id="ssec-unpack-phase">
797+ <title>The unpack phase</title>
798+
799+ <para>
800+ The unpack phase is responsible for unpacking the source code of the
801+ package. The default implementation of <function>unpackPhase</function>
802+ unpacks the source files listed in the <envar>src</envar> environment
803+ variable to the current directory. It supports the following files by
804+ default:
805+ <variablelist>
806+ <varlistentry>
807+ <term>Tar files</term>
808+ <listitem>
809+ <para>
810+ These can optionally be compressed using <command>gzip</command>
811+ (<filename>.tar.gz</filename>, <filename>.tgz</filename> or
812+ <filename>.tar.Z</filename>), <command>bzip2</command>
813+ (<filename>.tar.bz2</filename> or <filename>.tbz2</filename>) or
814+ <command>xz</command> (<filename>.tar.xz</filename> or
815+ <filename>.tar.lzma</filename>).
816+ </para>
817+ </listitem>
818+ </varlistentry>
819+ <varlistentry>
820+ <term>Zip files</term>
821+ <listitem>
822+ <para>
823+ Zip files are unpacked using <command>unzip</command>. However,
824+ <command>unzip</command> is not in the standard environment, so you
825+ should add it to <varname>buildInputs</varname> yourself.
826+ </para>
827+ </listitem>
828+ </varlistentry>
829+ <varlistentry>
830+ <term>Directories in the Nix store</term>
831+ <listitem>
832+ <para>
833+ These are simply copied to the current directory. The hash part of the
834+ file name is stripped, e.g.
835+ <filename>/nix/store/1wydxgby13cz...-my-sources</filename> would be
836+ copied to <filename>my-sources</filename>.
837+ </para>
838+ </listitem>
839+ </varlistentry>
840+ </variablelist>
841+ Additional file types can be supported by setting the
842+ <varname>unpackCmd</varname> variable (see below).
843+ </para>
844+
845+ <para></para>
846+
847+ <variablelist>
848+ <title>Variables controlling the unpack phase</title>
849+ <varlistentry>
850+ <term><varname>srcs</varname> / <varname>src</varname>
851+ </term>
852+ <listitem>
853+ <para>
854+ The list of source files or directories to be unpacked or copied. One of
855+ these must be set.
856+ </para>
857+ </listitem>
858+ </varlistentry>
859+ <varlistentry>
860+ <term><varname>sourceRoot</varname>
861+ </term>
862+ <listitem>
863+ <para>
864+ After running <function>unpackPhase</function>, the generic builder
865+ changes the current directory to the directory created by unpacking the
866+ sources. If there are multiple source directories, you should set
867+ <varname>sourceRoot</varname> to the name of the intended directory.
868+ </para>
869+ </listitem>
870+ </varlistentry>
871+ <varlistentry>
872+ <term><varname>setSourceRoot</varname>
873+ </term>
874+ <listitem>
875+ <para>
876+ Alternatively to setting <varname>sourceRoot</varname>, you can set
877+ <varname>setSourceRoot</varname> to a shell command to be evaluated by
878+ the unpack phase after the sources have been unpacked. This command must
879+ set <varname>sourceRoot</varname>.
880+ </para>
881+ </listitem>
882+ </varlistentry>
883+ <varlistentry>
884+ <term><varname>preUnpack</varname>
885+ </term>
886+ <listitem>
887+ <para>
888+ Hook executed at the start of the unpack phase.
889+ </para>
890+ </listitem>
891+ </varlistentry>
892+ <varlistentry>
893+ <term><varname>postUnpack</varname>
894+ </term>
895+ <listitem>
896+ <para>
897+ Hook executed at the end of the unpack phase.
898+ </para>
899+ </listitem>
900+ </varlistentry>
901+ <varlistentry>
902+ <term><varname>dontMakeSourcesWritable</varname>
903+ </term>
904+ <listitem>
905+ <para>
906+ If set to <literal>1</literal>, the unpacked sources are
907+ <emphasis>not</emphasis> made writable. By default, they are made
908+ writable to prevent problems with read-only sources. For example, copied
909+ store directories would be read-only without this.
910+ </para>
911+ </listitem>
912+ </varlistentry>
913+ <varlistentry>
914+ <term><varname>unpackCmd</varname>
915+ </term>
916+ <listitem>
917+ <para>
918+ The unpack phase evaluates the string <literal>$unpackCmd</literal> for
919+ any unrecognised file. The path to the current source file is contained
920+ in the <varname>curSrc</varname> variable.
921+ </para>
922+ </listitem>
923+ </varlistentry>
924+ </variablelist>
925+ </section>
926+
927+ <section xml:id="ssec-patch-phase">
928+ <title>The patch phase</title>
929+
930+ <para>
931+ The patch phase applies the list of patches defined in the
932+ <varname>patches</varname> variable.
933+ </para>
934+
935+ <variablelist>
936+ <title>Variables controlling the patch phase</title>
937+ <varlistentry>
938+ <term><varname>patches</varname>
939+ </term>
940+ <listitem>
941+ <para>
942+ The list of patches. They must be in the format accepted by the
943+ <command>patch</command> command, and may optionally be compressed using
944+ <command>gzip</command> (<filename>.gz</filename>),
945+ <command>bzip2</command> (<filename>.bz2</filename>) or
946+ <command>xz</command> (<filename>.xz</filename>).
947+ </para>
948+ </listitem>
949+ </varlistentry>
950+ <varlistentry>
951+ <term><varname>patchFlags</varname>
952+ </term>
953+ <listitem>
954+ <para>
955+ Flags to be passed to <command>patch</command>. If not set, the argument
956+ <option>-p1</option> is used, which causes the leading directory
957+ component to be stripped from the file names in each patch.
958+ </para>
959+ </listitem>
960+ </varlistentry>
961+ <varlistentry>
962+ <term><varname>prePatch</varname>
963+ </term>
964+ <listitem>
965+ <para>
966+ Hook executed at the start of the patch phase.
967+ </para>
968+ </listitem>
969+ </varlistentry>
970+ <varlistentry>
971+ <term><varname>postPatch</varname>
972+ </term>
973+ <listitem>
974+ <para>
975+ Hook executed at the end of the patch phase.
976+ </para>
977+ </listitem>
978+ </varlistentry>
979+ </variablelist>
980+ </section>
981+
982+ <section xml:id="ssec-configure-phase">
983+ <title>The configure phase</title>
984+
985+ <para>
986+ The configure phase prepares the source tree for building. The default
987+ <function>configurePhase</function> runs <filename>./configure</filename>
988+ (typically an Autoconf-generated script) if it exists.
989+ </para>
990+
991+ <variablelist>
992+ <title>Variables controlling the configure phase</title>
993+ <varlistentry>
994+ <term><varname>configureScript</varname>
995+ </term>
996+ <listitem>
997+ <para>
998+ The name of the configure script. It defaults to
999+ <filename>./configure</filename> if it exists; otherwise, the configure
1000+ phase is skipped. This can actually be a command (like <literal>perl
1001+ ./Configure.pl</literal>).
1002+ </para>
1003+ </listitem>
1004+ </varlistentry>
1005+ <varlistentry>
1006+ <term><varname>configureFlags</varname>
1007+ </term>
1008+ <listitem>
1009+ <para>
1010+ A list of strings passed as additional arguments to the configure
1011+ script.
1012+ </para>
1013+ </listitem>
1014+ </varlistentry>
1015+ <varlistentry>
1016+ <term><varname>configureFlagsArray</varname>
1017+ </term>
1018+ <listitem>
1019+ <para>
1020+ A shell array containing additional arguments passed to the configure
1021+ script. You must use this instead of <varname>configureFlags</varname>
1022+ if the arguments contain spaces.
1023+ </para>
1024+ </listitem>
1025+ </varlistentry>
1026+ <varlistentry>
1027+ <term><varname>dontAddPrefix</varname>
1028+ </term>
1029+ <listitem>
1030+ <para>
1031+ By default, the flag <literal>--prefix=$prefix</literal> is added to the
1032+ configure flags. If this is undesirable, set this variable to true.
1033+ </para>
1034+ </listitem>
1035+ </varlistentry>
1036+ <varlistentry>
1037+ <term><varname>prefix</varname>
1038+ </term>
1039+ <listitem>
1040+ <para>
1041+ The prefix under which the package must be installed, passed via the
1042+ <option>--prefix</option> option to the configure script. It defaults to
1043+ <option>$out</option>.
1044+ </para>
1045+ </listitem>
1046+ </varlistentry>
1047+ <varlistentry>
1048+ <term><varname>dontAddDisableDepTrack</varname>
1049+ </term>
1050+ <listitem>
1051+ <para>
1052+ By default, the flag <literal>--disable-dependency-tracking</literal> is
1053+ added to the configure flags to speed up Automake-based builds. If this
1054+ is undesirable, set this variable to true.
1055+ </para>
1056+ </listitem>
1057+ </varlistentry>
1058+ <varlistentry>
1059+ <term><varname>dontFixLibtool</varname>
1060+ </term>
1061+ <listitem>
1062+ <para>
1063+ By default, the configure phase applies some special hackery to all
1064+ files called <filename>ltmain.sh</filename> before running the configure
1065+ script in order to improve the purity of Libtool-based packages
1066+ <footnote>
1067+ <para>
1068+ It clears the
1069+ <varname>sys_lib_<replaceable>*</replaceable>search_path</varname>
1070+ variables in the Libtool script to prevent Libtool from using
1071+ libraries in <filename>/usr/lib</filename> and such.
1072+ </para>
1073+ </footnote>
1074+ . If this is undesirable, set this variable to true.
1075+ </para>
1076+ </listitem>
1077+ </varlistentry>
1078+ <varlistentry>
1079+ <term><varname>dontDisableStatic</varname>
1080+ </term>
1081+ <listitem>
1082+ <para>
1083+ By default, when the configure script has
1084+ <option>--enable-static</option>, the option
1085+ <option>--disable-static</option> is added to the configure flags.
1086+ </para>
1087+ <para>
1088+ If this is undesirable, set this variable to true.
1089+ </para>
1090+ </listitem>
1091+ </varlistentry>
1092+ <varlistentry>
1093+ <term><varname>configurePlatforms</varname>
1094+ </term>
1095+ <listitem>
1096+ <para>
1097+ By default, when cross compiling, the configure script has
1098+ <option>--build=...</option> and <option>--host=...</option> passed.
1099+ Packages can instead pass <literal>[ "build" "host" "target" ]</literal>
1100+ or a subset to control exactly which platform flags are passed.
1101+ Compilers and other tools should use this to also pass the target
1102+ platform, for example.
1103+ <footnote>
1104+ <para>
1105+ Eventually these will be passed when in native builds too, to improve
1106+ determinism: build-time guessing, as is done today, is a risk of
1107+ impurity.
1108+ </para>
1109+ </footnote>
1110+ </para>
1111+ </listitem>
1112+ </varlistentry>
1113+ <varlistentry>
1114+ <term><varname>preConfigure</varname>
1115+ </term>
1116+ <listitem>
1117+ <para>
1118+ Hook executed at the start of the configure phase.
1119+ </para>
1120+ </listitem>
1121+ </varlistentry>
1122+ <varlistentry>
1123+ <term><varname>postConfigure</varname>
1124+ </term>
1125+ <listitem>
1126+ <para>
1127+ Hook executed at the end of the configure phase.
1128+ </para>
1129+ </listitem>
1130+ </varlistentry>
1131+ </variablelist>
1132+ </section>
1133+
1134+ <section xml:id="build-phase">
1135+ <title>The build phase</title>
1136+
1137+ <para>
1138+ The build phase is responsible for actually building the package (e.g.
1139+ compiling it). The default <function>buildPhase</function> simply calls
1140+ <command>make</command> if a file named <filename>Makefile</filename>,
1141+ <filename>makefile</filename> or <filename>GNUmakefile</filename> exists in
1142+ the current directory (or the <varname>makefile</varname> is explicitly
1143+ set); otherwise it does nothing.
1144+ </para>
1145+
1146+ <variablelist>
1147+ <title>Variables controlling the build phase</title>
1148+ <varlistentry>
1149+ <term><varname>dontBuild</varname>
1150+ </term>
1151+ <listitem>
1152+ <para>
1153+ Set to true to skip the build phase.
1154+ </para>
1155+ </listitem>
1156+ </varlistentry>
1157+ <varlistentry>
1158+ <term><varname>makefile</varname>
1159+ </term>
1160+ <listitem>
1161+ <para>
1162+ The file name of the Makefile.
1163+ </para>
1164+ </listitem>
1165+ </varlistentry>
1166+ <varlistentry>
1167+ <term><varname>makeFlags</varname>
1168+ </term>
1169+ <listitem>
1170+ <para>
1171+ A list of strings passed as additional flags to <command>make</command>.
1172+ These flags are also used by the default install and check phase. For
1173+ setting make flags specific to the build phase, use
1174+ <varname>buildFlags</varname> (see below).
1175+<programlisting>
1176+makeFlags = [ "PREFIX=$(out)" ];
1177+</programlisting>
1178+ <note>
1179+ <para>
1180+ The flags are quoted in bash, but environment variables can be
1181+ specified by using the make syntax.
1182+ </para>
1183+ </note>
1184+ </para>
1185+ </listitem>
1186+ </varlistentry>
1187+ <varlistentry>
1188+ <term><varname>makeFlagsArray</varname>
1189+ </term>
1190+ <listitem>
1191+ <para>
1192+ A shell array containing additional arguments passed to
1193+ <command>make</command>. You must use this instead of
1194+ <varname>makeFlags</varname> if the arguments contain spaces, e.g.
1195+<programlisting>
1196+makeFlagsArray=(CFLAGS="-O0 -g" LDFLAGS="-lfoo -lbar")
1197+</programlisting>
1198+ Note that shell arrays cannot be passed through environment variables,
1199+ so you cannot set <varname>makeFlagsArray</varname> in a derivation
1200+ attribute (because those are passed through environment variables): you
1201+ have to define them in shell code.
1202+ </para>
1203+ </listitem>
1204+ </varlistentry>
1205+ <varlistentry>
1206+ <term><varname>buildFlags</varname> / <varname>buildFlagsArray</varname>
1207+ </term>
1208+ <listitem>
1209+ <para>
1210+ A list of strings passed as additional flags to <command>make</command>.
1211+ Like <varname>makeFlags</varname> and <varname>makeFlagsArray</varname>,
1212+ but only used by the build phase.
1213+ </para>
1214+ </listitem>
1215+ </varlistentry>
1216+ <varlistentry>
1217+ <term><varname>preBuild</varname>
1218+ </term>
1219+ <listitem>
1220+ <para>
1221+ Hook executed at the start of the build phase.
1222+ </para>
1223+ </listitem>
1224+ </varlistentry>
1225+ <varlistentry>
1226+ <term><varname>postBuild</varname>
1227+ </term>
1228+ <listitem>
1229+ <para>
1230+ Hook executed at the end of the build phase.
1231+ </para>
1232+ </listitem>
1233+ </varlistentry>
1234+ </variablelist>
1235+
1236+ <para>
1237+ You can set flags for <command>make</command> through the
1238+ <varname>makeFlags</varname> variable.
1239+ </para>
1240+
1241+ <para>
1242+ Before and after running <command>make</command>, the hooks
1243+ <varname>preBuild</varname> and <varname>postBuild</varname> are called,
1244+ respectively.
1245+ </para>
1246+ </section>
1247+
1248+ <section xml:id="ssec-check-phase">
1249+ <title>The check phase</title>
1250+
1251+ <para>
1252+ The check phase checks whether the package was built correctly by running
1253+ its test suite. The default <function>checkPhase</function> calls
1254+ <command>make check</command>, but only if the <varname>doCheck</varname>
1255+ variable is enabled.
1256+ </para>
1257+
1258+ <variablelist>
1259+ <title>Variables controlling the check phase</title>
1260+ <varlistentry>
1261+ <term><varname>doCheck</varname>
1262+ </term>
1263+ <listitem>
1264+ <para>
1265+ Controls whether the check phase is executed. By default it is skipped,
1266+ but if <varname>doCheck</varname> is set to true, the check phase is
1267+ usually executed. Thus you should set
1268+<programlisting>doCheck = true;</programlisting>
1269+ in the derivation to enable checks. The exception is cross compilation.
1270+ Cross compiled builds never run tests, no matter how
1271+ <varname>doCheck</varname> is set, as the newly-built program won't run
1272+ on the platform used to build it.
1273+ </para>
1274+ </listitem>
1275+ </varlistentry>
1276+ <varlistentry>
1277+ <term><varname>makeFlags</varname> /
1278+ <varname>makeFlagsArray</varname> /
1279+ <varname>makefile</varname>
1280+ </term>
1281+ <listitem>
1282+ <para>
1283+ See the build phase for details.
1284+ </para>
1285+ </listitem>
1286+ </varlistentry>
1287+ <varlistentry>
1288+ <term><varname>checkTarget</varname>
1289+ </term>
1290+ <listitem>
1291+ <para>
1292+ The make target that runs the tests. Defaults to
1293+ <literal>check</literal>.
1294+ </para>
1295+ </listitem>
1296+ </varlistentry>
1297+ <varlistentry>
1298+ <term><varname>checkFlags</varname> / <varname>checkFlagsArray</varname>
1299+ </term>
1300+ <listitem>
1301+ <para>
1302+ A list of strings passed as additional flags to <command>make</command>.
1303+ Like <varname>makeFlags</varname> and <varname>makeFlagsArray</varname>,
1304+ but only used by the check phase.
1305+ </para>
1306+ </listitem>
1307+ </varlistentry>
1308+ <varlistentry>
1309+ <term><varname>preCheck</varname>
1310+ </term>
1311+ <listitem>
1312+ <para>
1313+ Hook executed at the start of the check phase.
1314+ </para>
1315+ </listitem>
1316+ </varlistentry>
1317+ <varlistentry>
1318+ <term><varname>postCheck</varname>
1319+ </term>
1320+ <listitem>
1321+ <para>
1322+ Hook executed at the end of the check phase.
1323+ </para>
1324+ </listitem>
1325+ </varlistentry>
1326+ </variablelist>
1327+ </section>
1328+
1329+ <section xml:id="ssec-install-phase">
1330+ <title>The install phase</title>
1331+
1332+ <para>
1333+ The install phase is responsible for installing the package in the Nix
1334+ store under <envar>out</envar>. The default
1335+ <function>installPhase</function> creates the directory
1336+ <literal>$out</literal> and calls <command>make install</command>.
1337+ </para>
1338+
1339+ <variablelist>
1340+ <title>Variables controlling the install phase</title>
1341+ <varlistentry>
1342+ <term><varname>makeFlags</varname> /
1343+ <varname>makeFlagsArray</varname> /
1344+ <varname>makefile</varname>
1345+ </term>
1346+ <listitem>
1347+ <para>
1348+ See the build phase for details.
1349+ </para>
1350+ </listitem>
1351+ </varlistentry>
1352+ <varlistentry>
1353+ <term><varname>installTargets</varname>
1354+ </term>
1355+ <listitem>
1356+ <para>
1357+ The make targets that perform the installation. Defaults to
1358+ <literal>install</literal>. Example:
1359+<programlisting>
1360+installTargets = "install-bin install-doc";</programlisting>
1361+ </para>
1362+ </listitem>
1363+ </varlistentry>
1364+ <varlistentry>
1365+ <term><varname>installFlags</varname> / <varname>installFlagsArray</varname>
1366+ </term>
1367+ <listitem>
1368+ <para>
1369+ A list of strings passed as additional flags to <command>make</command>.
1370+ Like <varname>makeFlags</varname> and <varname>makeFlagsArray</varname>,
1371+ but only used by the install phase.
1372+ </para>
1373+ </listitem>
1374+ </varlistentry>
1375+ <varlistentry>
1376+ <term><varname>preInstall</varname>
1377+ </term>
1378+ <listitem>
1379+ <para>
1380+ Hook executed at the start of the install phase.
1381+ </para>
1382+ </listitem>
1383+ </varlistentry>
1384+ <varlistentry>
1385+ <term><varname>postInstall</varname>
1386+ </term>
1387+ <listitem>
1388+ <para>
1389+ Hook executed at the end of the install phase.
1390+ </para>
1391+ </listitem>
1392+ </varlistentry>
1393+ </variablelist>
1394+ </section>
1395+
1396+ <section xml:id="ssec-fixup-phase">
1397+ <title>The fixup phase</title>
1398+
1399+ <para>
1400+ The fixup phase performs some (Nix-specific) post-processing actions on the
1401+ files installed under <filename>$out</filename> by the install phase. The
1402+ default <function>fixupPhase</function> does the following:
1403+ <itemizedlist>
1404+ <listitem>
1405+ <para>
1406+ It moves the <filename>man/</filename>, <filename>doc/</filename> and
1407+ <filename>info/</filename> subdirectories of <envar>$out</envar> to
1408+ <filename>share/</filename>.
1409+ </para>
1410+ </listitem>
1411+ <listitem>
1412+ <para>
1413+ It strips libraries and executables of debug information.
1414+ </para>
1415+ </listitem>
1416+ <listitem>
1417+ <para>
1418+ On Linux, it applies the <command>patchelf</command> command to ELF
1419+ executables and libraries to remove unused directories from the
1420+ <literal>RPATH</literal> in order to prevent unnecessary runtime
1421+ dependencies.
1422+ </para>
1423+ </listitem>
1424+ <listitem>
1425+ <para>
1426+ It rewrites the interpreter paths of shell scripts to paths found in
1427+ <envar>PATH</envar>. E.g., <filename>/usr/bin/perl</filename> will be
1428+ rewritten to
1429+ <filename>/nix/store/<replaceable>some-perl</replaceable>/bin/perl</filename>
1430+ found in <envar>PATH</envar>.
1431+ </para>
1432+ </listitem>
1433+ </itemizedlist>
1434+ </para>
1435+
1436+ <variablelist>
1437+ <title>Variables controlling the fixup phase</title>
1438+ <varlistentry>
1439+ <term><varname>dontStrip</varname>
1440+ </term>
1441+ <listitem>
1442+ <para>
1443+ If set, libraries and executables are not stripped. By default, they
1444+ are.
1445+ </para>
1446+ </listitem>
1447+ </varlistentry>
1448+ <varlistentry>
1449+ <term><varname>dontStripHost</varname>
1450+ </term>
1451+ <listitem>
1452+ <para>
1453+ Like <varname>dontStripHost</varname>, but only affects the
1454+ <command>strip</command> command targetting the package's host platform.
1455+ Useful when supporting cross compilation, but otherwise feel free to
1456+ ignore.
1457+ </para>
1458+ </listitem>
1459+ </varlistentry>
1460+ <varlistentry>
1461+ <term><varname>dontStripTarget</varname>
1462+ </term>
1463+ <listitem>
1464+ <para>
1465+ Like <varname>dontStripHost</varname>, but only affects the
1466+ <command>strip</command> command targetting the packages' target
1467+ platform. Useful when supporting cross compilation, but otherwise feel
1468+ free to ignore.
1469+ </para>
1470+ </listitem>
1471+ </varlistentry>
1472+ <varlistentry>
1473+ <term><varname>dontMoveSbin</varname>
1474+ </term>
1475+ <listitem>
1476+ <para>
1477+ If set, files in <filename>$out/sbin</filename> are not moved to
1478+ <filename>$out/bin</filename>. By default, they are.
1479+ </para>
1480+ </listitem>
1481+ </varlistentry>
1482+ <varlistentry>
1483+ <term><varname>stripAllList</varname>
1484+ </term>
1485+ <listitem>
1486+ <para>
1487+ List of directories to search for libraries and executables from which
1488+ <emphasis>all</emphasis> symbols should be stripped. By default, it’s
1489+ empty. Stripping all symbols is risky, since it may remove not just
1490+ debug symbols but also ELF information necessary for normal execution.
1491+ </para>
1492+ </listitem>
1493+ </varlistentry>
1494+ <varlistentry>
1495+ <term><varname>stripAllFlags</varname>
1496+ </term>
1497+ <listitem>
1498+ <para>
1499+ Flags passed to the <command>strip</command> command applied to the
1500+ files in the directories listed in <varname>stripAllList</varname>.
1501+ Defaults to <option>-s</option> (i.e. <option>--strip-all</option>).
1502+ </para>
1503+ </listitem>
1504+ </varlistentry>
1505+ <varlistentry>
1506+ <term><varname>stripDebugList</varname>
1507+ </term>
1508+ <listitem>
1509+ <para>
1510+ List of directories to search for libraries and executables from which
1511+ only debugging-related symbols should be stripped. It defaults to
1512+ <literal>lib bin sbin</literal>.
1513+ </para>
1514+ </listitem>
1515+ </varlistentry>
1516+ <varlistentry>
1517+ <term><varname>stripDebugFlags</varname>
1518+ </term>
1519+ <listitem>
1520+ <para>
1521+ Flags passed to the <command>strip</command> command applied to the
1522+ files in the directories listed in <varname>stripDebugList</varname>.
1523+ Defaults to <option>-S</option> (i.e. <option>--strip-debug</option>).
1524+ </para>
1525+ </listitem>
1526+ </varlistentry>
1527+ <varlistentry>
1528+ <term><varname>dontPatchELF</varname>
1529+ </term>
1530+ <listitem>
1531+ <para>
1532+ If set, the <command>patchelf</command> command is not used to remove
1533+ unnecessary <literal>RPATH</literal> entries. Only applies to Linux.
1534+ </para>
1535+ </listitem>
1536+ </varlistentry>
1537+ <varlistentry>
1538+ <term><varname>dontPatchShebangs</varname>
1539+ </term>
1540+ <listitem>
1541+ <para>
1542+ If set, scripts starting with <literal>#!</literal> do not have their
1543+ interpreter paths rewritten to paths in the Nix store.
1544+ </para>
1545+ </listitem>
1546+ </varlistentry>
1547+ <varlistentry>
1548+ <term><varname>forceShare</varname>
1549+ </term>
1550+ <listitem>
1551+ <para>
1552+ The list of directories that must be moved from
1553+ <filename>$out</filename> to <filename>$out/share</filename>. Defaults
1554+ to <literal>man doc info</literal>.
1555+ </para>
1556+ </listitem>
1557+ </varlistentry>
1558+ <varlistentry>
1559+ <term><varname>setupHook</varname>
1560+ </term>
1561+ <listitem>
1562+ <para>
1563+ A package can export a <link
1564+ linkend="ssec-setup-hooks">setup
1565+ hook</link> by setting this variable. The setup hook, if defined, is
1566+ copied to <filename>$out/nix-support/setup-hook</filename>. Environment
1567+ variables are then substituted in it using
1568+ <function
1569+ linkend="fun-substituteAll">substituteAll</function>.
1570+ </para>
1571+ </listitem>
1572+ </varlistentry>
1573+ <varlistentry>
1574+ <term><varname>preFixup</varname>
1575+ </term>
1576+ <listitem>
1577+ <para>
1578+ Hook executed at the start of the fixup phase.
1579+ </para>
1580+ </listitem>
1581+ </varlistentry>
1582+ <varlistentry>
1583+ <term><varname>postFixup</varname>
1584+ </term>
1585+ <listitem>
1586+ <para>
1587+ Hook executed at the end of the fixup phase.
1588+ </para>
1589+ </listitem>
1590+ </varlistentry>
1591+ <varlistentry xml:id="stdenv-separateDebugInfo">
1592+ <term><varname>separateDebugInfo</varname>
1593+ </term>
1594+ <listitem>
1595+ <para>
1596+ If set to <literal>true</literal>, the standard environment will enable
1597+ debug information in C/C++ builds. After installation, the debug
1598+ information will be separated from the executables and stored in the
1599+ output named <literal>debug</literal>. (This output is enabled
1600+ automatically; you don’t need to set the <varname>outputs</varname>
1601+ attribute explicitly.) To be precise, the debug information is stored in
1602+ <filename><replaceable>debug</replaceable>/lib/debug/.build-id/<replaceable>XX</replaceable>/<replaceable>YYYY…</replaceable></filename>,
1603+ where <replaceable>XXYYYY…</replaceable> is the <replaceable>build
1604+ ID</replaceable> of the binary — a SHA-1 hash of the contents of the
1605+ binary. Debuggers like GDB use the build ID to look up the separated
1606+ debug information.
1607+ </para>
1608+ <para>
1609+ For example, with GDB, you can add
1610+<programlisting>
1611+set debug-file-directory ~/.nix-profile/lib/debug
1612+</programlisting>
1613+ to <filename>~/.gdbinit</filename>. GDB will then be able to find debug
1614+ information installed via <literal>nix-env -i</literal>.
1615+ </para>
1616+ </listitem>
1617+ </varlistentry>
1618+ </variablelist>
1619+ </section>
1620+
1621+ <section xml:id="ssec-installCheck-phase">
1622+ <title>The installCheck phase</title>
1623+
1624+ <para>
1625+ The installCheck phase checks whether the package was installed correctly
1626+ by running its test suite against the installed directories. The default
1627+ <function>installCheck</function> calls <command>make
1628+ installcheck</command>.
1629+ </para>
1630+
1631+ <variablelist>
1632+ <title>Variables controlling the installCheck phase</title>
1633+ <varlistentry>
1634+ <term><varname>doInstallCheck</varname>
1635+ </term>
1636+ <listitem>
1637+ <para>
1638+ Controls whether the installCheck phase is executed. By default it is
1639+ skipped, but if <varname>doInstallCheck</varname> is set to true, the
1640+ installCheck phase is usually executed. Thus you should set
1641+<programlisting>doInstallCheck = true;</programlisting>
1642+ in the derivation to enable install checks. The exception is cross
1643+ compilation. Cross compiled builds never run tests, no matter how
1644+ <varname>doInstallCheck</varname> is set, as the newly-built program
1645+ won't run on the platform used to build it.
1646+ </para>
1647+ </listitem>
1648+ </varlistentry>
1649+ <varlistentry>
1650+ <term><varname>preInstallCheck</varname>
1651+ </term>
1652+ <listitem>
1653+ <para>
1654+ Hook executed at the start of the installCheck phase.
1655+ </para>
1656+ </listitem>
1657+ </varlistentry>
1658+ <varlistentry>
1659+ <term><varname>postInstallCheck</varname>
1660+ </term>
1661+ <listitem>
1662+ <para>
1663+ Hook executed at the end of the installCheck phase.
1664+ </para>
1665+ </listitem>
1666+ </varlistentry>
1667+ </variablelist>
1668+ </section>
1669+
1670+ <section xml:id="ssec-distribution-phase">
1671+ <title>The distribution phase</title>
1672+
1673+ <para>
1674+ The distribution phase is intended to produce a source distribution of the
1675+ package. The default <function>distPhase</function> first calls
1676+ <command>make dist</command>, then it copies the resulting source tarballs
1677+ to <filename>$out/tarballs/</filename>. This phase is only executed if the
1678+ attribute <varname>doDist</varname> is set.
1679+ </para>
1680+
1681+ <variablelist>
1682+ <title>Variables controlling the distribution phase</title>
1683+ <varlistentry>
1684+ <term><varname>distTarget</varname>
1685+ </term>
1686+ <listitem>
1687+ <para>
1688+ The make target that produces the distribution. Defaults to
1689+ <literal>dist</literal>.
1690+ </para>
1691+ </listitem>
1692+ </varlistentry>
1693+ <varlistentry>
1694+ <term><varname>distFlags</varname> / <varname>distFlagsArray</varname>
1695+ </term>
1696+ <listitem>
1697+ <para>
1698+ Additional flags passed to <command>make</command>.
1699+ </para>
1700+ </listitem>
1701+ </varlistentry>
1702+ <varlistentry>
1703+ <term><varname>tarballs</varname>
1704+ </term>
1705+ <listitem>
1706+ <para>
1707+ The names of the source distribution files to be copied to
1708+ <filename>$out/tarballs/</filename>. It can contain shell wildcards. The
1709+ default is <filename>*.tar.gz</filename>.
1710+ </para>
1711+ </listitem>
1712+ </varlistentry>
1713+ <varlistentry>
1714+ <term><varname>dontCopyDist</varname>
1715+ </term>
1716+ <listitem>
1717+ <para>
1718+ If set, no files are copied to <filename>$out/tarballs/</filename>.
1719+ </para>
1720+ </listitem>
1721+ </varlistentry>
1722+ <varlistentry>
1723+ <term><varname>preDist</varname>
1724+ </term>
1725+ <listitem>
1726+ <para>
1727+ Hook executed at the start of the distribution phase.
1728+ </para>
1729+ </listitem>
1730+ </varlistentry>
1731+ <varlistentry>
1732+ <term><varname>postDist</varname>
1733+ </term>
1734+ <listitem>
1735+ <para>
1736+ Hook executed at the end of the distribution phase.
1737+ </para>
1738+ </listitem>
1739+ </varlistentry>
1740+ </variablelist>
1741+ </section>
1742+ </section>
1743+ <section xml:id="ssec-stdenv-functions">
1744+ <title>Shell functions</title>
1745+
1746+ <para>
1747+ The standard environment provides a number of useful functions.
1748+ </para>
1749+
1750+ <variablelist>
1751+ <varlistentry xml:id='fun-makeWrapper'>
1752+ <term><function>makeWrapper</function><replaceable>executable</replaceable><replaceable>wrapperfile</replaceable><replaceable>args</replaceable>
1753+ </term>
1754+ <listitem>
1755+ <para>
1756+ Constructs a wrapper for a program with various possible arguments. For
1757+ example:
13861758<programlisting>
13871759# adds `FOOBAR=baz` to `$out/bin/foo`’s environment
13881760makeWrapper $out/bin/foo $wrapperfile --set FOOBAR baz
@@ -1392,662 +1764,763 @@ makeWrapper $out/bin/foo $wrapperfile --set FOOBAR baz
13921764# (via string replacements or in `configurePhase`).
13931765makeWrapper $out/bin/foo $wrapperfile --prefix PATH : ${lib.makeBinPath [ hello git ]}
13941766</programlisting>
1395−
1396− There’s many more kinds of arguments, they are documented in
1397− <literal>nixpkgs/pkgs/build-support/setup-hooks/make-wrapper.sh</literal>.</para>
1398−
1399− <para><literal>wrapProgram</literal> is a convenience function you probably
1400− want to use most of the time.</para>
1401−
1767+ There’s many more kinds of arguments, they are documented in
1768+ <literal>nixpkgs/pkgs/build-support/setup-hooks/make-wrapper.sh</literal>.
1769+ </para>
1770+ <para>
1771+ <literal>wrapProgram</literal> is a convenience function you probably
1772+ want to use most of the time.
1773+ </para>
14021774 </listitem>
1403− </varlistentry>
1404−
1405−
1406− <varlistentry xml:id='fun-substitute'>
1407− <term><function>substitute</function>
1408− <replaceable>infile</replaceable>
1409− <replaceable>outfile</replaceable>
1410− <replaceable>subs</replaceable></term>
1411−
1775+ </varlistentry>
1776+ <varlistentry xml:id='fun-substitute'>
1777+ <term><function>substitute</function><replaceable>infile</replaceable><replaceable>outfile</replaceable><replaceable>subs</replaceable>
1778+ </term>
14121779 <listitem>
1413− <para>Performs string substitution on the contents of
1780+ <para>
1781+ Performs string substitution on the contents of
14141782 <replaceable>infile</replaceable>, writing the result to
1415− <replaceable>outfile</replaceable>. The substitutions in
1783+ <replaceable>outfile</replaceable>. The substitutions in
14161784 <replaceable>subs</replaceable> are of the following form:
1417−
1418− <variablelist>
1419− <varlistentry>
1420− <term><option>--replace</option>
1421− <replaceable>s1</replaceable>
1422− <replaceable>s2</replaceable></term>
1423− <listitem><para>Replace every occurrence of the string
1424− <replaceable>s1</replaceable> by
1425− <replaceable>s2</replaceable>.</para></listitem>
1426− </varlistentry>
1427−
1428− <varlistentry>
1429− <term><option>--subst-var</option>
1430− <replaceable>varName</replaceable></term>
1431− <listitem><para>Replace every occurrence of
1432− <literal>@<replaceable>varName</replaceable>@</literal> by
1433− the contents of the environment variable
1434− <replaceable>varName</replaceable>. This is useful for
1435− generating files from templates, using
1436− <literal>@<replaceable>...</replaceable>@</literal> in the
1437− template as placeholders.</para></listitem>
1438− </varlistentry>
1439−
1440− <varlistentry>
1441− <term><option>--subst-var-by</option>
1442− <replaceable>varName</replaceable>
1443− <replaceable>s</replaceable></term>
1444− <listitem><para>Replace every occurrence of
1445− <literal>@<replaceable>varName</replaceable>@</literal> by
1446− the string <replaceable>s</replaceable>.</para></listitem>
1447− </varlistentry>
1448−
1449− </variablelist>
1450−
1451− </para>
1452−
1453− <para>Example:
1454−
1785+ <variablelist>
1786+ <varlistentry>
1787+ <term><option>--replace</option><replaceable>s1</replaceable><replaceable>s2</replaceable>
1788+ </term>
1789+ <listitem>
1790+ <para>
1791+ Replace every occurrence of the string <replaceable>s1</replaceable>
1792+ by <replaceable>s2</replaceable>.
1793+ </para>
1794+ </listitem>
1795+ </varlistentry>
1796+ <varlistentry>
1797+ <term><option>--subst-var</option><replaceable>varName</replaceable>
1798+ </term>
1799+ <listitem>
1800+ <para>
1801+ Replace every occurrence of
1802+ <literal>@<replaceable>varName</replaceable>@</literal> by the
1803+ contents of the environment variable
1804+ <replaceable>varName</replaceable>. This is useful for generating
1805+ files from templates, using
1806+ <literal>@<replaceable>...</replaceable>@</literal> in the template
1807+ as placeholders.
1808+ </para>
1809+ </listitem>
1810+ </varlistentry>
1811+ <varlistentry>
1812+ <term><option>--subst-var-by</option><replaceable>varName</replaceable><replaceable>s</replaceable>
1813+ </term>
1814+ <listitem>
1815+ <para>
1816+ Replace every occurrence of
1817+ <literal>@<replaceable>varName</replaceable>@</literal> by the string
1818+ <replaceable>s</replaceable>.
1819+ </para>
1820+ </listitem>
1821+ </varlistentry>
1822+ </variablelist>
1823+ </para>
1824+ <para>
1825+ Example:
14551826<programlisting>
14561827substitute ./foo.in ./foo.out \
14571828 --replace /usr/bin/bar $bar/bin/bar \
14581829 --replace "a string containing spaces" "some other text" \
14591830 --subst-var someVar
14601831</programlisting>
1461−
1462− </para>
1463−
1464− <para><function>substitute</function> is implemented using the
1832+ </para>
1833+ <para>
1834+ <function>substitute</function> is implemented using the
14651835 <command
14661836 xlink:href="http://replace.richardlloyd.org.uk/">replace</command>
1467− command. Unlike with the <command>sed</command> command, you
1468− don’t have to worry about escaping special characters. It
1469− supports performing substitutions on binary files (such as
1470− executables), though there you’ll probably want to make sure
1471− that the replacement string is as long as the replaced
1472− string.</para>
1473−
1837+ command. Unlike with the <command>sed</command> command, you don’t have
1838+ to worry about escaping special characters. It supports performing
1839+ substitutions on binary files (such as executables), though there
1840+ you’ll probably want to make sure that the replacement string is as
1841+ long as the replaced string.
1842+ </para>
14741843 </listitem>
1475− </varlistentry>
1476−
1477−
1478− <varlistentry xml:id='fun-substituteInPlace'>
1479− <term><function>substituteInPlace</function>
1480− <replaceable>file</replaceable>
1481− <replaceable>subs</replaceable></term>
1482− <listitem><para>Like <function>substitute</function>, but performs
1483− the substitutions in place on the file
1484− <replaceable>file</replaceable>.</para></listitem>
1485− </varlistentry>
1486−
1487−
1488− <varlistentry xml:id='fun-substituteAll'>
1489− <term><function>substituteAll</function>
1490− <replaceable>infile</replaceable>
1491− <replaceable>outfile</replaceable></term>
1492− <listitem><para>Replaces every occurrence of
1493− <literal>@<replaceable>varName</replaceable>@</literal>, where
1494− <replaceable>varName</replaceable> is any environment variable, in
1495− <replaceable>infile</replaceable>, writing the result to
1496− <replaceable>outfile</replaceable>. For instance, if
1497− <replaceable>infile</replaceable> has the contents
1498−
1844+ </varlistentry>
1845+ <varlistentry xml:id='fun-substituteInPlace'>
1846+ <term><function>substituteInPlace</function><replaceable>file</replaceable><replaceable>subs</replaceable>
1847+ </term>
1848+ <listitem>
1849+ <para>
1850+ Like <function>substitute</function>, but performs the substitutions in
1851+ place on the file <replaceable>file</replaceable>.
1852+ </para>
1853+ </listitem>
1854+ </varlistentry>
1855+ <varlistentry xml:id='fun-substituteAll'>
1856+ <term><function>substituteAll</function><replaceable>infile</replaceable><replaceable>outfile</replaceable>
1857+ </term>
1858+ <listitem>
1859+ <para>
1860+ Replaces every occurrence of
1861+ <literal>@<replaceable>varName</replaceable>@</literal>, where
1862+ <replaceable>varName</replaceable> is any environment variable, in
1863+ <replaceable>infile</replaceable>, writing the result to
1864+ <replaceable>outfile</replaceable>. For instance, if
1865+ <replaceable>infile</replaceable> has the contents
14991866<programlisting>
15001867#! @bash@/bin/sh
15011868PATH=@coreutils@/bin
15021869echo @foo@
15031870</programlisting>
1504−
1505− and the environment contains
1506− <literal>bash=/nix/store/bmwp0q28cf21...-bash-3.2-p39</literal>
1507− and
1508− <literal>coreutils=/nix/store/68afga4khv0w...-coreutils-6.12</literal>,
1509− but does not contain the variable <varname>foo</varname>, then the
1510− output will be
1511−
1871+ and the environment contains
1872+ <literal>bash=/nix/store/bmwp0q28cf21...-bash-3.2-p39</literal> and
1873+ <literal>coreutils=/nix/store/68afga4khv0w...-coreutils-6.12</literal>,
1874+ but does not contain the variable <varname>foo</varname>, then the output
1875+ will be
15121876<programlisting>
15131877#! /nix/store/bmwp0q28cf21...-bash-3.2-p39/bin/sh
15141878PATH=/nix/store/68afga4khv0w...-coreutils-6.12/bin
15151879echo @foo@
15161880</programlisting>
1517−
1518− That is, no substitution is performed for undefined variables.</para>
1519−
1520− <para>Environment variables that start with an uppercase letter or an
1521− underscore are filtered out,
1522− to prevent global variables (like <literal>HOME</literal>) or private
1523− variables (like <literal>__ETC_PROFILE_DONE</literal>) from accidentally
1524− getting substituted.
1525− The variables also have to be valid bash “names”, as
1526− defined in the bash manpage (alphanumeric or <literal>_</literal>,
1527− must not start with a number).</para>
1528− </listitem>
1529− </varlistentry>
1530−
1531−
1532− <varlistentry xml:id='fun-substituteAllInPlace'>
1533− <term><function>substituteAllInPlace</function>
1534− <replaceable>file</replaceable></term>
1535− <listitem><para>Like <function>substituteAll</function>, but performs
1536− the substitutions in place on the file
1537− <replaceable>file</replaceable>.</para></listitem>
1538− </varlistentry>
1539−
1540−
1541− <varlistentry xml:id='fun-stripHash'>
1542− <term><function>stripHash</function>
1543− <replaceable>path</replaceable></term>
1544− <listitem><para>Strips the directory and hash part of a store
1545− path, outputting the name part to <literal>stdout</literal>.
1546− For example:
1547−
1881+ That is, no substitution is performed for undefined variables.
1882+ </para>
1883+ <para>
1884+ Environment variables that start with an uppercase letter or an
1885+ underscore are filtered out, to prevent global variables (like
1886+ <literal>HOME</literal>) or private variables (like
1887+ <literal>__ETC_PROFILE_DONE</literal>) from accidentally getting
1888+ substituted. The variables also have to be valid bash “names”, as
1889+ defined in the bash manpage (alphanumeric or <literal>_</literal>, must
1890+ not start with a number).
1891+ </para>
1892+ </listitem>
1893+ </varlistentry>
1894+ <varlistentry xml:id='fun-substituteAllInPlace'>
1895+ <term><function>substituteAllInPlace</function><replaceable>file</replaceable>
1896+ </term>
1897+ <listitem>
1898+ <para>
1899+ Like <function>substituteAll</function>, but performs the substitutions
1900+ in place on the file <replaceable>file</replaceable>.
1901+ </para>
1902+ </listitem>
1903+ </varlistentry>
1904+ <varlistentry xml:id='fun-stripHash'>
1905+ <term><function>stripHash</function><replaceable>path</replaceable>
1906+ </term>
1907+ <listitem>
1908+ <para>
1909+ Strips the directory and hash part of a store path, outputting the name
1910+ part to <literal>stdout</literal>. For example:
15481911<programlisting>
15491912# prints coreutils-8.24
15501913stripHash "/nix/store/9s9r019176g7cvn2nvcw41gsp862y6b4-coreutils-8.24"
15511914</programlisting>
1552−
1553− If you wish to store the result in another variable, then the
1554− following idiom may be useful:
1555−
1915+ If you wish to store the result in another variable, then the following
1916+ idiom may be useful:
15561917<programlisting>
15571918name="/nix/store/9s9r019176g7cvn2nvcw41gsp862y6b4-coreutils-8.24"
15581919someVar=$(stripHash $name)
15591920</programlisting>
1560−
1561− </para></listitem>
1562− </varlistentry>
1563−
1564−
1565− <varlistentry xml:id='fun-wrapProgram'>
1566− <term><function>wrapProgram</function>
1567− <replaceable>executable</replaceable>
1568− <replaceable>makeWrapperArgs</replaceable></term>
1569− <listitem><para>Convenience function for <literal>makeWrapper</literal>
1570− that automatically creates a sane wrapper file
1571−
1572− It takes all the same arguments as <literal>makeWrapper</literal>,
1573− except for <literal>--argv0</literal>.</para>
1574−
1575− <para>It cannot be applied multiple times, since it will overwrite the wrapper
1576− file.</para>
1921+ </para>
1922+ </listitem>
1923+ </varlistentry>
1924+ <varlistentry xml:id='fun-wrapProgram'>
1925+ <term><function>wrapProgram</function><replaceable>executable</replaceable><replaceable>makeWrapperArgs</replaceable>
1926+ </term>
1927+ <listitem>
1928+ <para>
1929+ Convenience function for <literal>makeWrapper</literal> that
1930+ automatically creates a sane wrapper file It takes all the same arguments
1931+ as <literal>makeWrapper</literal>, except for <literal>--argv0</literal>.
1932+ </para>
1933+ <para>
1934+ It cannot be applied multiple times, since it will overwrite the wrapper
1935+ file.
1936+ </para>
15771937 </listitem>
1578− </varlistentry>
1579−
1580−
1581−</variablelist>
1582−
1583−</section>
1584−
1585−
1586−<section xml:id="ssec-setup-hooks"><title>Package setup hooks</title>
1587−
1588−<para>
1589− Nix itself considers a build-time dependency merely something that should previously be built and accessible at build time—packages themselves are on their own to perform any additional setup.
1590− In most cases, that is fine, and the downstream derivation can deal with it's own dependencies.
1591− But for a few common tasks, that would result in almost every package doing the same sort of setup work---depending not on the package itself, but entirely on which dependencies were used.
1592−</para>
1593−<para>
1594− In order to alleviate this burden, the <firstterm>setup hook></firstterm>mechanism was written, where any package can include a shell script that [by convention rather than enforcement by Nix], any downstream reverse-dependency will source as part of its build process.
1595− That allows the downstream dependency to merely specify its dependencies, and lets those dependencies effectively initialize themselves.
1596− No boilerplate mirroring the list of dependencies is needed.
1597−</para>
1598−<para>
1599− The Setup hook mechanism is a bit of a sledgehammer though: a powerful feature with a broad and indiscriminate area of effect.
1600− The combination of its power and implicit use may be expedient, but isn't without costs.
1601− Nix itself is unchanged, but the spirit of adding dependencies being effect-free is violated even if the letter isn't.
1602− For example, if a derivation path is mentioned more than once, Nix itself doesn't care and simply makes sure the dependency derivation is already built just the same—depending is just needing something to exist, and needing is idempotent.
1603− However, a dependency specified twice will have its setup hook run twice, and that could easily change the build environment (though a well-written setup hook will therefore strive to be idempotent so this is in fact not observable).
1604− More broadly, setup hooks are anti-modular in that multiple dependencies, whether the same or different, should not interfere and yet their setup hooks may well do so.
1605−</para>
1606−<para>
1607− The most typical use of the setup hook is actually to add other hooks which are then run (i.e. after all the setup hooks) on each dependency.
1608− For example, the C compiler wrapper's setup hook feeds itself flags for each dependency that contains relevant libaries and headers.
1609− This is done by defining a bash function, and appending its name to one of
1610− <envar>envBuildBuildHooks</envar>`,
1611− <envar>envBuildHostHooks</envar>`,
1612− <envar>envBuildTargetHooks</envar>`,
1613− <envar>envHostHostHooks</envar>`,
1614− <envar>envHostTargetHooks</envar>`, or
1615− <envar>envTargetTargetHooks</envar>`.
1616− These 6 bash variables correspond to the 6 sorts of dependencies by platform (there's 12 total but we ignore the propagated/non-propagated axis).
1617−</para>
1618−<para>
1619− Packages adding a hook should not hard code a specific hook, but rather choose a variable <emphasis>relative</emphasis> to how they are included.
1620− Returning to the C compiler wrapper example, if it itself is an <literal>n</literal> dependency, then it only wants to accumulate flags from <literal>n + 1</literal> dependencies, as only those ones match the compiler's target platform.
1621− The <envar>hostOffset</envar> variable is defined with the current dependency's host offset <envar>targetOffset</envar> with its target offset, before it's setup hook is sourced.
1622− Additionally, since most environment hooks don't care about the target platform,
1623− That means the setup hook can append to the right bash array by doing something like
1624− <programlisting language="bash">
1938+ </varlistentry>
1939+ </variablelist>
1940+ </section>
1941+ <section xml:id="ssec-setup-hooks">
1942+ <title>Package setup hooks</title>
1943+
1944+ <para>
1945+ Nix itself considers a build-time dependency merely something that should
1946+ previously be built and accessible at build time—packages themselves are
1947+ on their own to perform any additional setup. In most cases, that is fine,
1948+ and the downstream derivation can deal with it's own dependencies. But for a
1949+ few common tasks, that would result in almost every package doing the same
1950+ sort of setup work---depending not on the package itself, but entirely on
1951+ which dependencies were used.
1952+ </para>
1953+
1954+ <para>
1955+ In order to alleviate this burden, the <firstterm>setup
1956+ hook></firstterm>mechanism was written, where any package can include a
1957+ shell script that [by convention rather than enforcement by Nix], any
1958+ downstream reverse-dependency will source as part of its build process. That
1959+ allows the downstream dependency to merely specify its dependencies, and
1960+ lets those dependencies effectively initialize themselves. No boilerplate
1961+ mirroring the list of dependencies is needed.
1962+ </para>
1963+
1964+ <para>
1965+ The Setup hook mechanism is a bit of a sledgehammer though: a powerful
1966+ feature with a broad and indiscriminate area of effect. The combination of
1967+ its power and implicit use may be expedient, but isn't without costs. Nix
1968+ itself is unchanged, but the spirit of adding dependencies being effect-free
1969+ is violated even if the letter isn't. For example, if a derivation path is
1970+ mentioned more than once, Nix itself doesn't care and simply makes sure the
1971+ dependency derivation is already built just the same—depending is just
1972+ needing something to exist, and needing is idempotent. However, a dependency
1973+ specified twice will have its setup hook run twice, and that could easily
1974+ change the build environment (though a well-written setup hook will
1975+ therefore strive to be idempotent so this is in fact not observable). More
1976+ broadly, setup hooks are anti-modular in that multiple dependencies, whether
1977+ the same or different, should not interfere and yet their setup hooks may
1978+ well do so.
1979+ </para>
1980+
1981+ <para>
1982+ The most typical use of the setup hook is actually to add other hooks which
1983+ are then run (i.e. after all the setup hooks) on each dependency. For
1984+ example, the C compiler wrapper's setup hook feeds itself flags for each
1985+ dependency that contains relevant libaries and headers. This is done by
1986+ defining a bash function, and appending its name to one of
1987+ <envar>envBuildBuildHooks</envar>`, <envar>envBuildHostHooks</envar>`,
1988+ <envar>envBuildTargetHooks</envar>`, <envar>envHostHostHooks</envar>`,
1989+ <envar>envHostTargetHooks</envar>`, or <envar>envTargetTargetHooks</envar>`.
1990+ These 6 bash variables correspond to the 6 sorts of dependencies by platform
1991+ (there's 12 total but we ignore the propagated/non-propagated axis).
1992+ </para>
1993+
1994+ <para>
1995+ Packages adding a hook should not hard code a specific hook, but rather
1996+ choose a variable <emphasis>relative</emphasis> to how they are included.
1997+ Returning to the C compiler wrapper example, if it itself is an
1998+ <literal>n</literal> dependency, then it only wants to accumulate flags from
1999+ <literal>n + 1</literal> dependencies, as only those ones match the
2000+ compiler's target platform. The <envar>hostOffset</envar> variable is
2001+ defined with the current dependency's host offset
2002+ <envar>targetOffset</envar> with its target offset, before it's setup hook
2003+ is sourced. Additionally, since most environment hooks don't care about the
2004+ target platform, That means the setup hook can append to the right bash
2005+ array by doing something like
2006+<programlisting language="bash">
16252007addEnvHooks "$hostOffset" myBashFunction
16262008 </programlisting>
1627−</para>
1628−<para>
1629− The <emphasis>existence</emphasis> of setups hooks has long been documented and packages inside Nixpkgs are free to use these mechanism.
1630− Other packages, however, should not rely on these mechanisms not changing between Nixpkgs versions.
1631− Because of the existing issues with this system, there's little benefit from mandating it be stable for any period of time.
1632−</para>
1633−<para>
1634− Here are some packages that provide a setup hook.
1635− Since the mechanism is modular, this probably isn't an exhaustive list.
1636− Then again, since the mechanism is only to be used as a last resort, it might be.
1637−<variablelist>
1638−
1639− <varlistentry>
1640− <term>Bintools Wrapper</term>
1641− <listitem>
2009+ </para>
2010+
2011+ <para>
2012+ The <emphasis>existence</emphasis> of setups hooks has long been documented
2013+ and packages inside Nixpkgs are free to use these mechanism. Other packages,
2014+ however, should not rely on these mechanisms not changing between Nixpkgs
2015+ versions. Because of the existing issues with this system, there's little
2016+ benefit from mandating it be stable for any period of time.
2017+ </para>
2018+
2019+ <para>
2020+ Here are some packages that provide a setup hook. Since the mechanism is
2021+ modular, this probably isn't an exhaustive list. Then again, since the
2022+ mechanism is only to be used as a last resort, it might be.
2023+ <variablelist>
2024+ <varlistentry>
2025+ <term>Bintools Wrapper</term>
2026+ <listitem>
16422027 <para>
1643− Bintools Wrapper wraps the binary utilities for a bunch of miscellaneous purposes.
1644− These are GNU Binutils when targetting Linux, and a mix of cctools and GNU binutils for Darwin.
1645− [The "Bintools" name is supposed to be a compromise between "Binutils" and "cctools" not denoting any specific implementation.]
1646− Specifically, the underlying bintools package, and a C standard library (glibc or Darwin's libSystem, just for the dynamic loader) are all fed in, and dependency finding, hardening (see below), and purity checks for each are handled by Bintools Wrapper.
1647− Packages typically depend on CC Wrapper, which in turn (at run time) depends on Bintools Wrapper.
2028+ Bintools Wrapper wraps the binary utilities for a bunch of miscellaneous
2029+ purposes. These are GNU Binutils when targetting Linux, and a mix of
2030+ cctools and GNU binutils for Darwin. [The "Bintools" name is supposed to
2031+ be a compromise between "Binutils" and "cctools" not denoting any
2032+ specific implementation.] Specifically, the underlying bintools package,
2033+ and a C standard library (glibc or Darwin's libSystem, just for the
2034+ dynamic loader) are all fed in, and dependency finding, hardening (see
2035+ below), and purity checks for each are handled by Bintools Wrapper.
2036+ Packages typically depend on CC Wrapper, which in turn (at run time)
2037+ depends on Bintools Wrapper.
16482038 </para>
16492039 <para>
1650− Bintools Wrapper was only just recently split off from CC Wrapper, so the division of labor is still being worked out.
1651− For example, it shouldn't care about about the C standard library, but just take a derivation with the dynamic loader (which happens to be the glibc on linux).
1652− Dependency finding however is a task both wrappers will continue to need to share, and probably the most important to understand.
1653− It is currently accomplished by collecting directories of host-platform dependencies (i.e. <varname>buildInputs</varname> and <varname>nativeBuildInputs</varname>) in environment variables.
1654− Bintools Wrapper's setup hook causes any <filename>lib</filename> and <filename>lib64</filename> subdirectories to be added to <envar>NIX_LDFLAGS</envar>.
1655− Since CC Wrapper and Bintools Wrapper use the same strategy, most of the Bintools Wrapper code is sparsely commented and refers to CC Wrapper.
1656− But CC Wrapper's code, by contrast, has quite lengthy comments.
1657− Bintools Wrapper merely cites those, rather than repeating them, to avoid falling out of sync.
2040+ Bintools Wrapper was only just recently split off from CC Wrapper, so
2041+ the division of labor is still being worked out. For example, it
2042+ shouldn't care about about the C standard library, but just take a
2043+ derivation with the dynamic loader (which happens to be the glibc on
2044+ linux). Dependency finding however is a task both wrappers will continue
2045+ to need to share, and probably the most important to understand. It is
2046+ currently accomplished by collecting directories of host-platform
2047+ dependencies (i.e. <varname>buildInputs</varname> and
2048+ <varname>nativeBuildInputs</varname>) in environment variables. Bintools
2049+ Wrapper's setup hook causes any <filename>lib</filename> and
2050+ <filename>lib64</filename> subdirectories to be added to
2051+ <envar>NIX_LDFLAGS</envar>. Since CC Wrapper and Bintools Wrapper use
2052+ the same strategy, most of the Bintools Wrapper code is sparsely
2053+ commented and refers to CC Wrapper. But CC Wrapper's code, by contrast,
2054+ has quite lengthy comments. Bintools Wrapper merely cites those, rather
2055+ than repeating them, to avoid falling out of sync.
16582056 </para>
16592057 <para>
1660− A final task of the setup hook is defining a number of standard environment variables to tell build systems which executables full-fill which purpose.
1661− They are defined to just be the base name of the tools, under the assumption that Bintools Wrapper's binaries will be on the path.
1662− Firstly, this helps poorly-written packages, e.g. ones that look for just <command>gcc</command> when <envar>CC</envar> isn't defined yet <command>clang</command> is to be used.
1663− Secondly, this helps packages not get confused when cross-compiling, in which case multiple Bintools Wrappers may simultaneously be in use.
1664− <footnote><para>
1665− Each wrapper targets a single platform, so if binaries for multiple platforms are needed, the underlying binaries must be wrapped multiple times.
1666− As this is a property of the wrapper itself, the multiple wrappings are needed whether or not the same underlying binaries can target multiple platforms.
1667− </para></footnote>
1668− <envar>BUILD_</envar>- and <envar>TARGET_</envar>-prefixed versions of the normal environment variable are defined for the additional Bintools Wrappers, properly disambiguating them.
2058+ A final task of the setup hook is defining a number of standard
2059+ environment variables to tell build systems which executables full-fill
2060+ which purpose. They are defined to just be the base name of the tools,
2061+ under the assumption that Bintools Wrapper's binaries will be on the
2062+ path. Firstly, this helps poorly-written packages, e.g. ones that look
2063+ for just <command>gcc</command> when <envar>CC</envar> isn't defined yet
2064+ <command>clang</command> is to be used. Secondly, this helps packages
2065+ not get confused when cross-compiling, in which case multiple Bintools
2066+ Wrappers may simultaneously be in use.
2067+ <footnote>
2068+ <para>
2069+ Each wrapper targets a single platform, so if binaries for multiple
2070+ platforms are needed, the underlying binaries must be wrapped multiple
2071+ times. As this is a property of the wrapper itself, the multiple
2072+ wrappings are needed whether or not the same underlying binaries can
2073+ target multiple platforms.
2074+ </para>
2075+ </footnote>
2076+ <envar>BUILD_</envar>- and <envar>TARGET_</envar>-prefixed versions of
2077+ the normal environment variable are defined for the additional Bintools
2078+ Wrappers, properly disambiguating them.
16692079 </para>
16702080 <para>
1671− A problem with this final task is that Bintools Wrapper is honest and defines <envar>LD</envar> as <command>ld</command>.
1672− Most packages, however, firstly use the C compiler for linking, secondly use <envar>LD</envar> anyways, defining it as the C compiler, and thirdly, only so define <envar>LD</envar> when it is undefined as a fallback.
1673− This triple-threat means Bintools Wrapper will break those packages, as LD is already defined as the actual linker which the package won't override yet doesn't want to use.
1674− The workaround is to define, just for the problematic package, <envar>LD</envar> as the C compiler.
1675− A good way to do this would be <command>preConfigure = "LD=$CC"</command>.
2081+ A problem with this final task is that Bintools Wrapper is honest and
2082+ defines <envar>LD</envar> as <command>ld</command>. Most packages,
2083+ however, firstly use the C compiler for linking, secondly use
2084+ <envar>LD</envar> anyways, defining it as the C compiler, and thirdly,
2085+ only so define <envar>LD</envar> when it is undefined as a fallback.
2086+ This triple-threat means Bintools Wrapper will break those packages, as
2087+ LD is already defined as the actual linker which the package won't
2088+ override yet doesn't want to use. The workaround is to define, just for
2089+ the problematic package, <envar>LD</envar> as the C compiler. A good way
2090+ to do this would be <command>preConfigure = "LD=$CC"</command>.
16762091 </para>
1677− </listitem>
1678− </varlistentry>
1679−
1680− <varlistentry>
1681− <term>CC Wrapper</term>
1682− <listitem>
2092+ </listitem>
2093+ </varlistentry>
2094+ <varlistentry>
2095+ <term>CC Wrapper</term>
2096+ <listitem>
16832097 <para>
1684− CC Wrapper wraps a C toolchain for a bunch of miscellaneous purposes.
1685− Specifically, a C compiler (GCC or Clang), wrapped binary tools, and a C standard library (glibc or Darwin's libSystem, just for the dynamic loader) are all fed in, and dependency finding, hardening (see below), and purity checks for each are handled by CC Wrapper.
1686− Packages typically depend on CC Wrapper, which in turn (at run time) depends on Bintools Wrapper.
2098+ CC Wrapper wraps a C toolchain for a bunch of miscellaneous purposes.
2099+ Specifically, a C compiler (GCC or Clang), wrapped binary tools, and a C
2100+ standard library (glibc or Darwin's libSystem, just for the dynamic
2101+ loader) are all fed in, and dependency finding, hardening (see below),
2102+ and purity checks for each are handled by CC Wrapper. Packages typically
2103+ depend on CC Wrapper, which in turn (at run time) depends on Bintools
2104+ Wrapper.
16872105 </para>
16882106 <para>
1689− Dependency finding is undoubtedly the main task of CC Wrapper.
1690− This works just like Bintools Wrapper, except that any <filename>include</filename> subdirectory of any relevant dependency is added to <envar>NIX_CFLAGS_COMPILE</envar>.
1691− The setup hook itself contains some lengthy comments describing the exact convoluted mechanism by which this is accomplished.
2107+ Dependency finding is undoubtedly the main task of CC Wrapper. This
2108+ works just like Bintools Wrapper, except that any
2109+ <filename>include</filename> subdirectory of any relevant dependency is
2110+ added to <envar>NIX_CFLAGS_COMPILE</envar>. The setup hook itself
2111+ contains some lengthy comments describing the exact convoluted mechanism
2112+ by which this is accomplished.
16922113 </para>
16932114 <para>
1694− CC Wrapper also like Bintools Wrapper defines standard environment variables with the names of the tools it wraps, for the same reasons described above.
1695− Importantly, while it includes a <command>cc</command> symlink to the c compiler for portability, the <envar>CC</envar> will be defined using the compiler's "real name" (i.e. <command>gcc</command> or <command>clang</command>).
1696− This helps lousy build systems that inspect on the name of the compiler rather than run it.
2115+ CC Wrapper also like Bintools Wrapper defines standard environment
2116+ variables with the names of the tools it wraps, for the same reasons
2117+ described above. Importantly, while it includes a <command>cc</command>
2118+ symlink to the c compiler for portability, the <envar>CC</envar> will be
2119+ defined using the compiler's "real name" (i.e. <command>gcc</command> or
2120+ <command>clang</command>). This helps lousy build systems that inspect
2121+ on the name of the compiler rather than run it.
16972122 </para>
1698− </listitem>
1699− </varlistentry>
1700−
1701− <varlistentry>
1702− <term>Perl</term>
1703− <listitem>
2123+ </listitem>
2124+ </varlistentry>
2125+ <varlistentry>
2126+ <term>Perl</term>
2127+ <listitem>
17042128 <para>
1705− Adds the <filename>lib/site_perl</filename> subdirectory of each build input to the <envar>PERL5LIB</envar> environment variable.
1706− For instance, if <varname>buildInputs</varname> contains Perl, then the <filename>lib/site_perl</filename> subdirectory of each input is added to the <envar>PERL5LIB</envar> environment variable.
2129+ Adds the <filename>lib/site_perl</filename> subdirectory of each build
2130+ input to the <envar>PERL5LIB</envar> environment variable. For instance,
2131+ if <varname>buildInputs</varname> contains Perl, then the
2132+ <filename>lib/site_perl</filename> subdirectory of each input is added
2133+ to the <envar>PERL5LIB</envar> environment variable.
17072134 </para>
1708− </listitem>
1709− </varlistentry>
1710−
1711− <varlistentry>
1712− <term>Python</term>
1713− <listitem><para>Adds the
1714− <filename>lib/${python.libPrefix}/site-packages</filename> subdirectory of
1715− each build input to the <envar>PYTHONPATH</envar> environment
1716− variable.</para></listitem>
1717− </varlistentry>
1718−
1719− <varlistentry>
1720− <term>pkg-config</term>
1721− <listitem><para>Adds the <filename>lib/pkgconfig</filename> and
1722− <filename>share/pkgconfig</filename> subdirectories of each
1723− build input to the <envar>PKG_CONFIG_PATH</envar> environment
1724− variable.</para></listitem>
1725− </varlistentry>
1726−
1727− <varlistentry>
1728− <term>Automake</term>
1729− <listitem><para>Adds the <filename>share/aclocal</filename>
1730− subdirectory of each build input to the <envar>ACLOCAL_PATH</envar>
1731− environment variable.</para></listitem>
1732− </varlistentry>
1733−
1734− <varlistentry>
1735− <term>Autoconf</term>
1736− <listitem><para>The <varname>autoreconfHook</varname> derivation adds
1737− <varname>autoreconfPhase</varname>, which runs autoreconf, libtoolize and
1738− automake, essentially preparing the configure script in autotools-based
1739− builds.</para></listitem>
1740− </varlistentry>
1741−
1742− <varlistentry>
1743− <term>libxml2</term>
1744− <listitem><para>Adds every file named
1745− <filename>catalog.xml</filename> found under the
1746− <filename>xml/dtd</filename> and <filename>xml/xsl</filename>
1747− subdirectories of each build input to the
1748− <envar>XML_CATALOG_FILES</envar> environment
1749− variable.</para></listitem>
1750− </varlistentry>
1751−
1752− <varlistentry>
1753− <term>teTeX / TeX Live</term>
1754− <listitem><para>Adds the <filename>share/texmf-nix</filename>
1755− subdirectory of each build input to the <envar>TEXINPUTS</envar>
1756− environment variable.</para></listitem>
1757− </varlistentry>
1758−
1759− <varlistentry>
1760− <term>Qt 4</term>
1761− <listitem><para>Sets the <envar>QTDIR</envar> environment variable
1762− to Qt’s path.</para></listitem>
1763− </varlistentry>
1764−
1765− <varlistentry>
1766− <term>gdk-pixbuf</term>
1767− <listitem><para>Exports <envar>GDK_PIXBUF_MODULE_FILE</envar>
1768− environment variable the the builder. Add librsvg package
1769− to <varname>buildInputs</varname> to get svg support.</para></listitem>
1770− </varlistentry>
1771−
1772− <varlistentry>
1773− <term>GHC</term>
1774− <listitem><para>Creates a temporary package database and registers
1775− every Haskell build input in it (TODO: how?).</para></listitem>
1776− </varlistentry>
1777−
1778− <varlistentry>
1779− <term>GStreamer</term>
1780− <listitem><para>Adds the
1781− GStreamer plugins subdirectory of
1782− each build input to the <envar>GST_PLUGIN_SYSTEM_PATH_1_0</envar> or
1783− <envar>GST_PLUGIN_SYSTEM_PATH</envar> environment variable.</para></listitem>
1784− </varlistentry>
1785−
1786− <varlistentry>
1787− <term>paxctl</term>
1788− <listitem><para>Defines the <varname>paxmark</varname> helper for
1789− setting per-executable PaX flags on Linux (where it is available by
1790− default; on all other platforms, <varname>paxmark</varname> is a no-op).
1791− For example, to disable secure memory protections on the executable
1792− <replaceable>foo</replaceable>:
1793− <programlisting>
2135+ </listitem>
2136+ </varlistentry>
2137+ <varlistentry>
2138+ <term>Python</term>
2139+ <listitem>
2140+ <para>
2141+ Adds the <filename>lib/${python.libPrefix}/site-packages</filename>
2142+ subdirectory of each build input to the <envar>PYTHONPATH</envar>
2143+ environment variable.
2144+ </para>
2145+ </listitem>
2146+ </varlistentry>
2147+ <varlistentry>
2148+ <term>pkg-config</term>
2149+ <listitem>
2150+ <para>
2151+ Adds the <filename>lib/pkgconfig</filename> and
2152+ <filename>share/pkgconfig</filename> subdirectories of each build input
2153+ to the <envar>PKG_CONFIG_PATH</envar> environment variable.
2154+ </para>
2155+ </listitem>
2156+ </varlistentry>
2157+ <varlistentry>
2158+ <term>Automake</term>
2159+ <listitem>
2160+ <para>
2161+ Adds the <filename>share/aclocal</filename> subdirectory of each build
2162+ input to the <envar>ACLOCAL_PATH</envar> environment variable.
2163+ </para>
2164+ </listitem>
2165+ </varlistentry>
2166+ <varlistentry>
2167+ <term>Autoconf</term>
2168+ <listitem>
2169+ <para>
2170+ The <varname>autoreconfHook</varname> derivation adds
2171+ <varname>autoreconfPhase</varname>, which runs autoreconf, libtoolize
2172+ and automake, essentially preparing the configure script in
2173+ autotools-based builds.
2174+ </para>
2175+ </listitem>
2176+ </varlistentry>
2177+ <varlistentry>
2178+ <term>libxml2</term>
2179+ <listitem>
2180+ <para>
2181+ Adds every file named <filename>catalog.xml</filename> found under the
2182+ <filename>xml/dtd</filename> and <filename>xml/xsl</filename>
2183+ subdirectories of each build input to the
2184+ <envar>XML_CATALOG_FILES</envar> environment variable.
2185+ </para>
2186+ </listitem>
2187+ </varlistentry>
2188+ <varlistentry>
2189+ <term>teTeX / TeX Live</term>
2190+ <listitem>
2191+ <para>
2192+ Adds the <filename>share/texmf-nix</filename> subdirectory of each build
2193+ input to the <envar>TEXINPUTS</envar> environment variable.
2194+ </para>
2195+ </listitem>
2196+ </varlistentry>
2197+ <varlistentry>
2198+ <term>Qt 4</term>
2199+ <listitem>
2200+ <para>
2201+ Sets the <envar>QTDIR</envar> environment variable to Qt’s path.
2202+ </para>
2203+ </listitem>
2204+ </varlistentry>
2205+ <varlistentry>
2206+ <term>gdk-pixbuf</term>
2207+ <listitem>
2208+ <para>
2209+ Exports <envar>GDK_PIXBUF_MODULE_FILE</envar> environment variable the
2210+ the builder. Add librsvg package to <varname>buildInputs</varname> to
2211+ get svg support.
2212+ </para>
2213+ </listitem>
2214+ </varlistentry>
2215+ <varlistentry>
2216+ <term>GHC</term>
2217+ <listitem>
2218+ <para>
2219+ Creates a temporary package database and registers every Haskell build
2220+ input in it (TODO: how?).
2221+ </para>
2222+ </listitem>
2223+ </varlistentry>
2224+ <varlistentry>
2225+ <term>GStreamer</term>
2226+ <listitem>
2227+ <para>
2228+ Adds the GStreamer plugins subdirectory of each build input to the
2229+ <envar>GST_PLUGIN_SYSTEM_PATH_1_0</envar> or
2230+ <envar>GST_PLUGIN_SYSTEM_PATH</envar> environment variable.
2231+ </para>
2232+ </listitem>
2233+ </varlistentry>
2234+ <varlistentry>
2235+ <term>paxctl</term>
2236+ <listitem>
2237+ <para>
2238+ Defines the <varname>paxmark</varname> helper for setting per-executable
2239+ PaX flags on Linux (where it is available by default; on all other
2240+ platforms, <varname>paxmark</varname> is a no-op). For example, to
2241+ disable secure memory protections on the executable
2242+ <replaceable>foo</replaceable>:
2243+<programlisting>
17942244 postFixup = ''
17952245 paxmark m $out/bin/<replaceable>foo</replaceable>
17962246 '';
17972247 </programlisting>
1798− The <literal>m</literal> flag is the most common flag and is typically
1799− required for applications that employ JIT compilation or otherwise need to
1800− execute code generated at run-time. Disabling PaX protections should be
1801− considered a last resort: if possible, problematic features should be
1802− disabled or patched to work with PaX.</para></listitem>
1803− </varlistentry>
1804−
1805− <varlistentry>
1806− <term>autoPatchelfHook</term>
1807− <listitem><para>This is a special setup hook which helps in packaging
1808− proprietary software in that it automatically tries to find missing shared
1809− library dependencies of ELF files. All packages within the
1810− <envar>runtimeDependencies</envar> environment variable are unconditionally
1811− added to executables, which is useful for programs that use
1812− <citerefentry>
1813− <refentrytitle>dlopen</refentrytitle>
1814− <manvolnum>3</manvolnum>
1815− </citerefentry>
1816− to load libraries at runtime.</para></listitem>
1817− </varlistentry>
1818−
1819−</variablelist>
1820−
1821−</para>
1822−
1823−</section>
1824−
1825−
1826−<section xml:id="sec-purity-in-nixpkgs"><title>Purity in Nixpkgs</title>
1827−
1828−<para>[measures taken to prevent dependencies on packages outside the
1829−store, and what you can do to prevent them]</para>
1830−
1831−<para>GCC doesn't search in locations such as
1832−<filename>/usr/include</filename>. In fact, attempts to add such
1833−directories through the <option>-I</option> flag are filtered out.
1834−Likewise, the linker (from GNU binutils) doesn't search in standard
1835−locations such as <filename>/usr/lib</filename>. Programs built on
1836−Linux are linked against a GNU C Library that likewise doesn't search
1837−in the default system locations.</para>
1838−
1839−</section>
1840−
1841−<section xml:id="sec-hardening-in-nixpkgs"><title>Hardening in Nixpkgs</title>
1842−
1843−<para>There are flags available to harden packages at compile or link-time.
1844−These can be toggled using the <varname>stdenv.mkDerivation</varname> parameters
1845−<varname>hardeningDisable</varname> and <varname>hardeningEnable</varname>.
1846−</para>
1847−
1848−<para>
1849−Both parameters take a list of flags as strings. The special
1850−<varname>"all"</varname> flag can be passed to <varname>hardeningDisable</varname>
1851−to turn off all hardening. These flags can also be used as environment variables
1852−for testing or development purposes.
1853−</para>
1854−
1855−<para>The following flags are enabled by default and might require disabling with
1856−<varname>hardeningDisable</varname> if the program to package is incompatible.
1857−</para>
1858−
1859−<variablelist>
1860−
1861− <varlistentry>
1862− <term><varname>format</varname></term>
1863− <listitem><para>Adds the <option>-Wformat -Wformat-security
1864− -Werror=format-security</option> compiler options. At present,
1865− this warns about calls to <varname>printf</varname> and
1866− <varname>scanf</varname> functions where the format string is
1867− not a string literal and there are no format arguments, as in
1868− <literal>printf(foo);</literal>. This may be a security hole
1869− if the format string came from untrusted input and contains
1870− <literal>%n</literal>.</para>
1871−
1872− <para>This needs to be turned off or fixed for errors similar to:</para>
1873−
1874− <programlisting>
2248+ The <literal>m</literal> flag is the most common flag and is typically
2249+ required for applications that employ JIT compilation or otherwise need
2250+ to execute code generated at run-time. Disabling PaX protections should
2251+ be considered a last resort: if possible, problematic features should be
2252+ disabled or patched to work with PaX.
2253+ </para>
2254+ </listitem>
2255+ </varlistentry>
2256+ <varlistentry>
2257+ <term>autoPatchelfHook</term>
2258+ <listitem>
2259+ <para>
2260+ This is a special setup hook which helps in packaging proprietary
2261+ software in that it automatically tries to find missing shared library
2262+ dependencies of ELF files. All packages within the
2263+ <envar>runtimeDependencies</envar> environment variable are
2264+ unconditionally added to executables, which is useful for programs that
2265+ use <citerefentry>
2266+ <refentrytitle>dlopen</refentrytitle>
2267+ <manvolnum>3</manvolnum> </citerefentry> to load libraries at runtime.
2268+ </para>
2269+ </listitem>
2270+ </varlistentry>
2271+ </variablelist>
2272+ </para>
2273+ </section>
2274+ <section xml:id="sec-purity-in-nixpkgs">
2275+ <title>Purity in Nixpkgs</title>
2276+
2277+ <para>
2278+ [measures taken to prevent dependencies on packages outside the store, and
2279+ what you can do to prevent them]
2280+ </para>
2281+
2282+ <para>
2283+ GCC doesn't search in locations such as <filename>/usr/include</filename>.
2284+ In fact, attempts to add such directories through the <option>-I</option>
2285+ flag are filtered out. Likewise, the linker (from GNU binutils) doesn't
2286+ search in standard locations such as <filename>/usr/lib</filename>. Programs
2287+ built on Linux are linked against a GNU C Library that likewise doesn't
2288+ search in the default system locations.
2289+ </para>
2290+ </section>
2291+ <section xml:id="sec-hardening-in-nixpkgs">
2292+ <title>Hardening in Nixpkgs</title>
2293+
2294+ <para>
2295+ There are flags available to harden packages at compile or link-time. These
2296+ can be toggled using the <varname>stdenv.mkDerivation</varname> parameters
2297+ <varname>hardeningDisable</varname> and <varname>hardeningEnable</varname>.
2298+ </para>
2299+
2300+ <para>
2301+ Both parameters take a list of flags as strings. The special
2302+ <varname>"all"</varname> flag can be passed to
2303+ <varname>hardeningDisable</varname> to turn off all hardening. These flags
2304+ can also be used as environment variables for testing or development
2305+ purposes.
2306+ </para>
2307+
2308+ <para>
2309+ The following flags are enabled by default and might require disabling with
2310+ <varname>hardeningDisable</varname> if the program to package is
2311+ incompatible.
2312+ </para>
2313+
2314+ <variablelist>
2315+ <varlistentry>
2316+ <term><varname>format</varname>
2317+ </term>
2318+ <listitem>
2319+ <para>
2320+ Adds the <option>-Wformat -Wformat-security
2321+ -Werror=format-security</option> compiler options. At present, this warns
2322+ about calls to <varname>printf</varname> and <varname>scanf</varname>
2323+ functions where the format string is not a string literal and there are
2324+ no format arguments, as in <literal>printf(foo);</literal>. This may be a
2325+ security hole if the format string came from untrusted input and contains
2326+ <literal>%n</literal>.
2327+ </para>
2328+ <para>
2329+ This needs to be turned off or fixed for errors similar to:
2330+ </para>
2331+<programlisting>
18752332/tmp/nix-build-zynaddsubfx-2.5.2.drv-0/zynaddsubfx-2.5.2/src/UI/guimain.cpp:571:28: error: format not a string literal and no format arguments [-Werror=format-security]
18762333 printf(help_message);
18772334 ^
18782335cc1plus: some warnings being treated as errors
1879− </programlisting></listitem>
1880− </varlistentry>
1881−
1882− <varlistentry>
1883− <term><varname>stackprotector</varname></term>
2336+ </programlisting>
2337+ </listitem>
2338+ </varlistentry>
2339+ <varlistentry>
2340+ <term><varname>stackprotector</varname>
2341+ </term>
18842342 <listitem>
1885− <para>Adds the <option>-fstack-protector-strong
1886− --param ssp-buffer-size=4</option>
1887− compiler options. This adds safety checks against stack overwrites
1888− rendering many potential code injection attacks into aborting situations.
1889− In the best case this turns code injection vulnerabilities into denial
1890− of service or into non-issues (depending on the application).</para>
1891−
1892− <para>This needs to be turned off or fixed for errors similar to:</para>
1893−
1894− <programlisting>
2343+ <para>
2344+ Adds the <option>-fstack-protector-strong --param
2345+ ssp-buffer-size=4</option> compiler options. This adds safety checks
2346+ against stack overwrites rendering many potential code injection attacks
2347+ into aborting situations. In the best case this turns code injection
2348+ vulnerabilities into denial of service or into non-issues (depending on
2349+ the application).
2350+ </para>
2351+ <para>
2352+ This needs to be turned off or fixed for errors similar to:
2353+ </para>
2354+<programlisting>
18952355bin/blib.a(bios_console.o): In function `bios_handle_cup':
18962356/tmp/nix-build-ipxe-20141124-5cbdc41.drv-0/ipxe-5cbdc41/src/arch/i386/firmware/pcbios/bios_console.c:86: undefined reference to `__stack_chk_fail'
1897− </programlisting></listitem>
1898− </varlistentry>
1899−
1900− <varlistentry>
1901− <term><varname>fortify</varname></term>
2357+ </programlisting>
2358+ </listitem>
2359+ </varlistentry>
2360+ <varlistentry>
2361+ <term><varname>fortify</varname>
2362+ </term>
19022363 <listitem>
1903− <para>Adds the <option>-O2 -D_FORTIFY_SOURCE=2</option> compiler
1904− options. During code generation the compiler knows a great deal of
1905− information about buffer sizes (where possible), and attempts to replace
1906− insecure unlimited length buffer function calls with length-limited ones.
1907− This is especially useful for old, crufty code. Additionally, format
1908− strings in writable memory that contain '%n' are blocked. If an application
1909− depends on such a format string, it will need to be worked around.
1910− </para>
1911−
1912− <para>Additionally, some warnings are enabled which might trigger build
1913− failures if compiler warnings are treated as errors in the package build.
1914− In this case, set <option>NIX_CFLAGS_COMPILE</option> to
1915− <option>-Wno-error=warning-type</option>.</para>
1916−
1917− <para>This needs to be turned off or fixed for errors similar to:</para>
1918−
1919− <programlisting>
2364+ <para>
2365+ Adds the <option>-O2 -D_FORTIFY_SOURCE=2</option> compiler options.
2366+ During code generation the compiler knows a great deal of information
2367+ about buffer sizes (where possible), and attempts to replace insecure
2368+ unlimited length buffer function calls with length-limited ones. This is
2369+ especially useful for old, crufty code. Additionally, format strings in
2370+ writable memory that contain '%n' are blocked. If an application depends
2371+ on such a format string, it will need to be worked around.
2372+ </para>
2373+ <para>
2374+ Additionally, some warnings are enabled which might trigger build
2375+ failures if compiler warnings are treated as errors in the package build.
2376+ In this case, set <option>NIX_CFLAGS_COMPILE</option> to
2377+ <option>-Wno-error=warning-type</option>.
2378+ </para>
2379+ <para>
2380+ This needs to be turned off or fixed for errors similar to:
2381+ </para>
2382+<programlisting>
19202383malloc.c:404:15: error: return type is an incomplete type
19212384malloc.c:410:19: error: storage size of 'ms' isn't known
19222385 </programlisting>
1923− <programlisting>
2386+<programlisting>
19242387strdup.h:22:1: error: expected identifier or '(' before '__extension__'
19252388 </programlisting>
1926− <programlisting>
2389+<programlisting>
19272390strsep.c:65:23: error: register name not specified for 'delim'
19282391 </programlisting>
1929− <programlisting>
2392+<programlisting>
19302393installwatch.c:3751:5: error: conflicting types for '__open_2'
19312394 </programlisting>
1932− <programlisting>
2395+<programlisting>
19332396fcntl2.h:50:4: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
19342397 </programlisting>
19352398 </listitem>
1936− </varlistentry>
1937−
1938− <varlistentry>
1939− <term><varname>pic</varname></term>
2399+ </varlistentry>
2400+ <varlistentry>
2401+ <term><varname>pic</varname>
2402+ </term>
19402403 <listitem>
1941− <para>Adds the <option>-fPIC</option> compiler options. This options adds
1942− support for position independent code in shared libraries and thus making
1943− ASLR possible.</para>
1944− <para>Most notably, the Linux kernel, kernel modules and other code
1945− not running in an operating system environment like boot loaders won't
1946− build with PIC enabled. The compiler will is most cases complain that
1947− PIC is not supported for a specific build.
1948− </para>
1949−
1950− <para>This needs to be turned off or fixed for assembler errors similar to:</para>
1951−
1952− <programlisting>
2404+ <para>
2405+ Adds the <option>-fPIC</option> compiler options. This options adds
2406+ support for position independent code in shared libraries and thus making
2407+ ASLR possible.
2408+ </para>
2409+ <para>
2410+ Most notably, the Linux kernel, kernel modules and other code not running
2411+ in an operating system environment like boot loaders won't build with PIC
2412+ enabled. The compiler will is most cases complain that PIC is not
2413+ supported for a specific build.
2414+ </para>
2415+ <para>
2416+ This needs to be turned off or fixed for assembler errors similar to:
2417+ </para>
2418+<programlisting>
19532419ccbLfRgg.s: Assembler messages:
19542420ccbLfRgg.s:33: Error: missing or invalid displacement expression `private_key_len@GOTOFF'
19552421 </programlisting>
19562422 </listitem>
1957− </varlistentry>
1958−
1959− <varlistentry>
1960− <term><varname>strictoverflow</varname></term>
2423+ </varlistentry>
2424+ <varlistentry>
2425+ <term><varname>strictoverflow</varname>
2426+ </term>
19612427 <listitem>
1962− <para>Signed integer overflow is undefined behaviour according to the C
1963− standard. If it happens, it is an error in the program as it should check
1964− for overflow before it can happen, not afterwards. GCC provides built-in
1965− functions to perform arithmetic with overflow checking, which are correct
1966− and faster than any custom implementation. As a workaround, the option
1967− <option>-fno-strict-overflow</option> makes gcc behave as if signed
1968− integer overflows were defined.
1969− </para>
1970−
1971− <para>This flag should not trigger any build or runtime errors.</para>
2428+ <para>
2429+ Signed integer overflow is undefined behaviour according to the C
2430+ standard. If it happens, it is an error in the program as it should check
2431+ for overflow before it can happen, not afterwards. GCC provides built-in
2432+ functions to perform arithmetic with overflow checking, which are correct
2433+ and faster than any custom implementation. As a workaround, the option
2434+ <option>-fno-strict-overflow</option> makes gcc behave as if signed
2435+ integer overflows were defined.
2436+ </para>
2437+ <para>
2438+ This flag should not trigger any build or runtime errors.
2439+ </para>
19722440 </listitem>
1973− </varlistentry>
1974−
1975− <varlistentry>
1976− <term><varname>relro</varname></term>
2441+ </varlistentry>
2442+ <varlistentry>
2443+ <term><varname>relro</varname>
2444+ </term>
19772445 <listitem>
1978− <para>Adds the <option>-z relro</option> linker option. During program
1979− load, several ELF memory sections need to be written to by the linker,
1980− but can be turned read-only before turning over control to the program.
1981− This prevents some GOT (and .dtors) overwrite attacks, but at least the
1982− part of the GOT used by the dynamic linker (.got.plt) is still vulnerable.
1983− </para>
1984−
1985− <para>This flag can break dynamic shared object loading. For instance, the
1986− module systems of Xorg and OpenCV are incompatible with this flag. In almost
1987− all cases the <varname>bindnow</varname> flag must also be disabled and
1988− incompatible programs typically fail with similar errors at runtime.</para>
2446+ <para>
2447+ Adds the <option>-z relro</option> linker option. During program load,
2448+ several ELF memory sections need to be written to by the linker, but can
2449+ be turned read-only before turning over control to the program. This
2450+ prevents some GOT (and .dtors) overwrite attacks, but at least the part
2451+ of the GOT used by the dynamic linker (.got.plt) is still vulnerable.
2452+ </para>
2453+ <para>
2454+ This flag can break dynamic shared object loading. For instance, the
2455+ module systems of Xorg and OpenCV are incompatible with this flag. In
2456+ almost all cases the <varname>bindnow</varname> flag must also be
2457+ disabled and incompatible programs typically fail with similar errors at
2458+ runtime.
2459+ </para>
19892460 </listitem>
1990− </varlistentry>
1991−
1992− <varlistentry>
1993− <term><varname>bindnow</varname></term>
2461+ </varlistentry>
2462+ <varlistentry>
2463+ <term><varname>bindnow</varname>
2464+ </term>
19942465 <listitem>
1995− <para>Adds the <option>-z bindnow</option> linker option. During program
1996− load, all dynamic symbols are resolved, allowing for the complete GOT to
1997− be marked read-only (due to <varname>relro</varname>). This prevents GOT
1998− overwrite attacks. For very large applications, this can incur some
1999− performance loss during initial load while symbols are resolved, but this
2000− shouldn't be an issue for daemons.
2001− </para>
2002−
2003− <para>This flag can break dynamic shared object loading. For instance, the
2004− module systems of Xorg and PHP are incompatible with this flag. Programs
2005− incompatible with this flag often fail at runtime due to missing symbols,
2006− like:</para>
2007−
2008− <programlisting>
2466+ <para>
2467+ Adds the <option>-z bindnow</option> linker option. During program load,
2468+ all dynamic symbols are resolved, allowing for the complete GOT to be
2469+ marked read-only (due to <varname>relro</varname>). This prevents GOT
2470+ overwrite attacks. For very large applications, this can incur some
2471+ performance loss during initial load while symbols are resolved, but this
2472+ shouldn't be an issue for daemons.
2473+ </para>
2474+ <para>
2475+ This flag can break dynamic shared object loading. For instance, the
2476+ module systems of Xorg and PHP are incompatible with this flag. Programs
2477+ incompatible with this flag often fail at runtime due to missing symbols,
2478+ like:
2479+ </para>
2480+<programlisting>
20092481intel_drv.so: undefined symbol: vgaHWFreeHWRec
20102482 </programlisting>
20112483 </listitem>
2012− </varlistentry>
2013−
2014−</variablelist>
2015−
2016−<para>The following flags are disabled by default and should be enabled
2017−with <varname>hardeningEnable</varname> for packages that take untrusted
2018−input like network services.
2019−</para>
2484+ </varlistentry>
2485+ </variablelist>
20202486
2021−<variablelist>
2487+ <para>
2488+ The following flags are disabled by default and should be enabled with
2489+ <varname>hardeningEnable</varname> for packages that take untrusted input
2490+ like network services.
2491+ </para>
20222492
2023− <varlistentry>
2024− <term><varname>pie</varname></term>
2493+ <variablelist>
2494+ <varlistentry>
2495+ <term><varname>pie</varname>
2496+ </term>
20252497 <listitem>
2026− <para>Adds the <option>-fPIE</option> compiler and <option>-pie</option>
2027− linker options. Position Independent Executables are needed to take
2028− advantage of Address Space Layout Randomization, supported by modern
2029− kernel versions. While ASLR can already be enforced for data areas in
2030− the stack and heap (brk and mmap), the code areas must be compiled as
2031− position-independent. Shared libraries already do this with the
2032− <varname>pic</varname> flag, so they gain ASLR automatically, but binary
2033− .text regions need to be build with <varname>pie</varname> to gain ASLR.
2034− When this happens, ROP attacks are much harder since there are no static
2035− locations to bounce off of during a memory corruption attack.
2036− </para>
2498+ <para>
2499+ Adds the <option>-fPIE</option> compiler and <option>-pie</option> linker
2500+ options. Position Independent Executables are needed to take advantage of
2501+ Address Space Layout Randomization, supported by modern kernel versions.
2502+ While ASLR can already be enforced for data areas in the stack and heap
2503+ (brk and mmap), the code areas must be compiled as position-independent.
2504+ Shared libraries already do this with the <varname>pic</varname> flag, so
2505+ they gain ASLR automatically, but binary .text regions need to be build
2506+ with <varname>pie</varname> to gain ASLR. When this happens, ROP attacks
2507+ are much harder since there are no static locations to bounce off of
2508+ during a memory corruption attack.
2509+ </para>
20372510 </listitem>
2038− </varlistentry>
2039−
2040−</variablelist>
2041−
2042−<para>For more in-depth information on these hardening flags and hardening in
2043−general, refer to the
2044−<link xlink:href="https://wiki.debian.org/Hardening">Debian Wiki</link>,
2045−<link xlink:href="https://wiki.ubuntu.com/Security/Features">Ubuntu Wiki</link>,
2046−<link xlink:href="https://wiki.gentoo.org/wiki/Project:Hardened">Gentoo Wiki</link>,
2047−and the <link xlink:href="https://wiki.archlinux.org/index.php/DeveloperWiki:Security">
2048−Arch Wiki</link>.
2049−</para>
2050−
2051−</section>
2052−
2511+ </varlistentry>
2512+ </variablelist>
2513+
2514+ <para>
2515+ For more in-depth information on these hardening flags and hardening in
2516+ general, refer to the
2517+ <link xlink:href="https://wiki.debian.org/Hardening">Debian Wiki</link>,
2518+ <link xlink:href="https://wiki.ubuntu.com/Security/Features">Ubuntu
2519+ Wiki</link>,
2520+ <link xlink:href="https://wiki.gentoo.org/wiki/Project:Hardened">Gentoo
2521+ Wiki</link>, and the
2522+ <link xlink:href="https://wiki.archlinux.org/index.php/DeveloperWiki:Security">
2523+ Arch Wiki</link>.
2524+ </para>
2525+ </section>
20532526</chapter>
doc/style.css+23−7
@@ -29,8 +29,8 @@ h2 /* chapters, appendices, subtitle */
2929}
3030
3131/* Extra space between chapters, appendices. */
32−div.chapter > div.titlepage h2, div.appendix > div.titlepage h2
33−{
32+div.chapter > div.titlepage h2, div.appendix > div.titlepage h2
33+{
3434 margin-top: 1.5em;
3535}
3636
@@ -104,7 +104,7 @@ pre.screen, pre.programlisting
104104 padding: 3px 3px;
105105 margin-left: 1.5em;
106106 margin-right: 1.5em;
107− color: #600000;
107+
108108 background: #f4f4f8;
109109 font-family: monospace;
110110 border-radius: 0.4em;
@@ -118,7 +118,6 @@ div.example pre.programlisting
118118 margin: 0 0 0 0;
119119}
120120
121−
122121/***************************************************************************
123122 Notes, warnings etc:
124123 ***************************************************************************/
@@ -172,7 +171,7 @@ div.navfooter *
172171
173172
174173/***************************************************************************
175− Links colors and highlighting:
174+ Links colors and highlighting:
176175 ***************************************************************************/
177176
178177a { text-decoration: none; }
@@ -209,7 +208,7 @@ tt, code
209208.term
210209{
211210 font-weight: bold;
212−
211+
213212}
214213
215214div.variablelist dd p, div.glosslist dd p
@@ -249,7 +248,24 @@ table
249248 box-shadow: 0.4em 0.4em 0.5em #e0e0e0;
250249}
251250
251+table.simplelist
252+{
253+ text-align: left;
254+ color: #005aa0;
255+ border: 0;
256+ padding: 5px;
257+ background: #fffff5;
258+ font-weight: normal;
259+ font-style: italic;
260+ box-shadow: none;
261+ margin-bottom: 1em;
262+}
263+
264+div.navheader table, div.navfooter table {
265+ box-shadow: none;
266+}
267+
252268div.affiliation
253269{
254270 font-style: italic;
255−}
271+}
doc/submitting-changes.xml+462−398
@@ -1,447 +1,513 @@
11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="chap-submitting-changes">
4+ <title>Submitting changes</title>
5+ <section>
6+ <title>Making patches</title>
47
5−<title>Submitting changes</title>
6−
7−<section>
8−<title>Making patches</title>
9−
10−<itemizedlist>
11−<listitem>
12−<para>Read <link xlink:href="https://nixos.org/nixpkgs/manual/">Manual (How to write packages for Nix)</link>.</para>
13−</listitem>
14−
15−<listitem>
16−<para>Fork the repository on GitHub.</para>
17−</listitem>
18−
19−<listitem>
20−<para>Create a branch for your future fix.
21−
22−<itemizedlist>
23−<listitem>
24−<para>You can make branch from a commit of your local <command>nixos-version</command>. That will help you to avoid additional local compilations. Because you will receive packages from binary cache.
25−
26−<itemizedlist>
27−<listitem>
28−<para>For example: <command>nixos-version</command> returns <command>15.05.git.0998212 (Dingo)</command>. So you can do:</para>
29−</listitem>
30−</itemizedlist>
31−
8+ <itemizedlist>
9+ <listitem>
10+ <para>
11+ Read <link xlink:href="https://nixos.org/nixpkgs/manual/">Manual (How to
12+ write packages for Nix)</link>.
13+ </para>
14+ </listitem>
15+ <listitem>
16+ <para>
17+ Fork the repository on GitHub.
18+ </para>
19+ </listitem>
20+ <listitem>
21+ <para>
22+ Create a branch for your future fix.
23+ <itemizedlist>
24+ <listitem>
25+ <para>
26+ You can make branch from a commit of your local
27+ <command>nixos-version</command>. That will help you to avoid
28+ additional local compilations. Because you will receive packages from
29+ binary cache.
30+ <itemizedlist>
31+ <listitem>
32+ <para>
33+ For example: <command>nixos-version</command> returns
34+ <command>15.05.git.0998212 (Dingo)</command>. So you can do:
35+ </para>
36+ </listitem>
37+ </itemizedlist>
3238<screen>
3339$ git checkout 0998212
3440$ git checkout -b 'fix/pkg-name-update'
3541</screen>
36−</para>
37−</listitem>
38−
39−<listitem>
40−<para>Please avoid working directly on the <command>master</command> branch.</para>
41−</listitem>
42−</itemizedlist>
43−</para>
44−</listitem>
45−
46−<listitem>
47−<para>Make commits of logical units.
48−
49−<itemizedlist>
50−<listitem>
51−<para>If you removed pkgs, made some major NixOS changes etc., write about them in <command>nixos/doc/manual/release-notes/rl-unstable.xml</command>.</para>
52−</listitem>
53−</itemizedlist>
54−</para>
55−</listitem>
56−
57−<listitem>
58−<para>Check for unnecessary whitespace with <command>git diff --check</command> before committing.</para>
59−</listitem>
60−
61−<listitem>
62−<para>Format the commit in a following way:</para>
63−<programlisting>
64−(pkg-name | nixos/&lt;module>): (from -> to | init at version | refactor | etc)
65−Additional information.
66−</programlisting>
67−
68−<itemizedlist>
69−<listitem>
70−<para>Examples:
71−
72−<itemizedlist>
73−<listitem>
74−<para>
75−<command>nginx: init at 2.0.1</command>
76−</para>
77−</listitem>
78−
79−<listitem>
80−<para>
81−<command>firefox: 54.0.1 -> 55.0</command>
82−</para>
83−</listitem>
84−
85−<listitem>
86−<para>
87−<command>nixos/hydra: add bazBaz option</command>
88−</para>
89−</listitem>
90−
91−<listitem>
92−<para>
93−<command>nixos/nginx: refactor config generation</command>
94−</para>
95−</listitem>
96−</itemizedlist>
97−</para>
98−</listitem>
99−</itemizedlist>
100−</listitem>
101−
102−<listitem>
103−<para>Test your changes. If you work with
104−
105−<itemizedlist>
106−<listitem>
107−<para>nixpkgs:
108−
109−<itemizedlist>
110−<listitem>
111−<para>update pkg ->
112−
113−<itemizedlist>
114−<listitem>
115−<para>
116−<command>nix-env -i pkg-name -f &lt;path to your local nixpkgs folder&gt;</command>
117−</para>
118−</listitem>
119−</itemizedlist>
120−</para>
121−</listitem>
122−
123−<listitem>
124−<para>add pkg ->
125−
126−<itemizedlist>
127−<listitem>
128−<para>Make sure it's in <command>pkgs/top-level/all-packages.nix</command>
129−</para>
130−</listitem>
131−
132−<listitem>
133−<para>
134−<command>nix-env -i pkg-name -f &lt;path to your local nixpkgs folder&gt;</command>
135−</para>
136−</listitem>
137−</itemizedlist>
138−</para>
139−</listitem>
140−
141−<listitem>
142−<para>
143−<emphasis>If you don't want to install pkg in you profile</emphasis>.
144−
145−<itemizedlist>
146−<listitem>
147−<para>
148−<command>nix-build -A pkg-attribute-name &lt;path to your local nixpkgs folder&gt;/default.nix</command> and check results in the folder <command>result</command>. It will appear in the same directory where you did <command>nix-build</command>.</para>
149−</listitem>
150−</itemizedlist>
151−</para>
152−</listitem>
153−
154−<listitem>
155−<para>If you did <command>nix-env -i pkg-name</command> you can do <command>nix-env -e pkg-name</command> to uninstall it from your system.</para>
156−</listitem>
157−</itemizedlist>
158−</para>
159−</listitem>
160−
161−<listitem>
162−<para>NixOS and its modules:
163−
164−<itemizedlist>
165−<listitem>
166−<para>You can add new module to your NixOS configuration file (usually it's <command>/etc/nixos/configuration.nix</command>).
167− And do <command>sudo nixos-rebuild test -I nixpkgs=&lt;path to your local nixpkgs folder&gt; --fast</command>.</para>
168−</listitem>
169−</itemizedlist>
170−</para>
171−</listitem>
172−</itemizedlist>
173−</para>
174−</listitem>
175−
176−<listitem>
177−<para>If you have commits <command>pkg-name: oh, forgot to insert whitespace</command>: squash commits in this case. Use <command>git rebase -i</command>.</para>
178−</listitem>
179−
180−<listitem>
181−<para>Rebase you branch against current <command>master</command>.</para>
182−</listitem>
183−</itemizedlist>
184−</section>
185−
186−<section>
187−<title>Submitting changes</title>
188−
189−<itemizedlist>
190−<listitem>
191−<para>Push your changes to your fork of nixpkgs.</para>
192−</listitem>
193−
194−<listitem>
195−<para>Create pull request:
196−
197−<itemizedlist>
198−<listitem>
199−<para>Write the title in format <command>(pkg-name | nixos/&lt;module>): improvement</command>.
200−
201−<itemizedlist>
202−<listitem>
203−<para>If you update the pkg, write versions <command>from -> to</command>.</para>
204−</listitem>
205−</itemizedlist>
206−</para>
207−</listitem>
208−
209−<listitem>
210−<para>Write in comment if you have tested your patch. Do not rely much on <command>TravisCI</command>.</para>
211−</listitem>
212−
213−<listitem>
214−<para>If you make an improvement, write about your motivation.</para>
215−</listitem>
216−
217−<listitem>
218−<para>Notify maintainers of the package. For example add to the message: <command>cc @jagajaga @domenkozar</command>.</para>
219−</listitem>
220−</itemizedlist>
221−</para>
222−</listitem>
223−</itemizedlist>
224−</section>
225−
226−<section>
227− <title>Pull Request Template</title>
228− <para>
229− The pull request template helps determine what steps have been made for a
230− contribution so far, and will help guide maintainers on the status of a
231− change. The motivation section of the PR should include any extra details
232− the title does not address and link any existing issues related to the pull
233− request.
234− </para>
235− <para>When a PR is created, it will be pre-populated with some checkboxes detailed below:
236− </para>
237− <section>
238− <title>Tested using sandboxing</title>
42+ </para>
43+ </listitem>
44+ <listitem>
45+ <para>
46+ Please avoid working directly on the <command>master</command> branch.
47+ </para>
48+ </listitem>
49+ </itemizedlist>
50+ </para>
51+ </listitem>
52+ <listitem>
23953 <para>
240− When sandbox builds are enabled, Nix will setup an isolated environment
241− for each build process. It is used to remove further hidden dependencies
242− set by the build environment to improve reproducibility. This includes
243− access to the network during the build outside of
244− <function>fetch*</function> functions and files outside the Nix store.
245− Depending on the operating system access to other resources are blocked
246− as well (ex. inter process communication is isolated on Linux); see <link
247− xlink:href="https://nixos.org/nix/manual/#description-45">build-use-sandbox</link>
248− in Nix manual for details.
54+ Make commits of logical units.
55+ <itemizedlist>
56+ <listitem>
57+ <para>
58+ If you removed pkgs, made some major NixOS changes etc., write about
59+ them in
60+ <command>nixos/doc/manual/release-notes/rl-unstable.xml</command>.
61+ </para>
62+ </listitem>
63+ </itemizedlist>
24964 </para>
65+ </listitem>
66+ <listitem>
25067 <para>
251− Sandboxing is not enabled by default in Nix due to a small performance
252− hit on each build. In pull requests for <link
253− xlink:href="https://github.com/NixOS/nixpkgs/">nixpkgs</link> people
254− are asked to test builds with sandboxing enabled (see <literal>Tested
255− using sandboxing</literal> in the pull request template) because
256− in<link
257− xlink:href="https://nixos.org/hydra/">https://nixos.org/hydra/</link>
258− sandboxing is also used.
68+ Check for unnecessary whitespace with <command>git diff --check</command>
69+ before committing.
25970 </para>
71+ </listitem>
72+ <listitem>
26073 <para>
261− Depending if you use NixOS or other platforms you can use one of the
262− following methods to enable sandboxing <emphasis role="bold">before</emphasis> building the package:
263− <itemizedlist>
74+ Format the commit in a following way:
75+ </para>
76+<programlisting>
77+(pkg-name | nixos/&lt;module>): (from -> to | init at version | refactor | etc)
78+Additional information.
79+</programlisting>
80+ <itemizedlist>
81+ <listitem>
82+ <para>
83+ Examples:
84+ <itemizedlist>
26485 <listitem>
265− <para>
266− <emphasis role="bold">Globally enable sandboxing on NixOS</emphasis>:
267− add the following to
268− <filename>configuration.nix</filename>
269− <screen>nix.useSandbox = true;</screen>
270− </para>
86+ <para>
87+ <command>nginx: init at 2.0.1</command>
88+ </para>
27189 </listitem>
27290 <listitem>
273− <para>
274− <emphasis role="bold">Globally enable sandboxing on non-NixOS platforms</emphasis>:
275− add the following to: <filename>/etc/nix/nix.conf</filename>
276− <screen>build-use-sandbox = true</screen>
277− </para>
91+ <para>
92+ <command>firefox: 54.0.1 -> 55.0</command>
93+ </para>
27894 </listitem>
279− </itemizedlist>
280− </para>
281−
282− </section>
283− <section>
284− <title>Built on platform(s)</title>
95+ <listitem>
96+ <para>
97+ <command>nixos/hydra: add bazBaz option</command>
98+ </para>
99+ </listitem>
100+ <listitem>
101+ <para>
102+ <command>nixos/nginx: refactor config generation</command>
103+ </para>
104+ </listitem>
105+ </itemizedlist>
106+ </para>
107+ </listitem>
108+ </itemizedlist>
109+ </listitem>
110+ <listitem>
285111 <para>
286− Many Nix packages are designed to run on multiple
287− platforms. As such, it's important to let the maintainer know which
288− platforms your changes have been tested on. It's not always practical to
289− test a change on all platforms, and is not required for a pull request to
290− be merged. Only check the systems you tested the build on in this
291− section.
112+ Test your changes. If you work with
113+ <itemizedlist>
114+ <listitem>
115+ <para>
116+ nixpkgs:
117+ <itemizedlist>
118+ <listitem>
119+ <para>
120+ update pkg ->
121+ <itemizedlist>
122+ <listitem>
123+ <para>
124+ <command>nix-env -i pkg-name -f &lt;path to your local nixpkgs
125+ folder&gt;</command>
126+ </para>
127+ </listitem>
128+ </itemizedlist>
129+ </para>
130+ </listitem>
131+ <listitem>
132+ <para>
133+ add pkg ->
134+ <itemizedlist>
135+ <listitem>
136+ <para>
137+ Make sure it's in
138+ <command>pkgs/top-level/all-packages.nix</command>
139+ </para>
140+ </listitem>
141+ <listitem>
142+ <para>
143+ <command>nix-env -i pkg-name -f &lt;path to your local nixpkgs
144+ folder&gt;</command>
145+ </para>
146+ </listitem>
147+ </itemizedlist>
148+ </para>
149+ </listitem>
150+ <listitem>
151+ <para>
152+ <emphasis>If you don't want to install pkg in you
153+ profile</emphasis>.
154+ <itemizedlist>
155+ <listitem>
156+ <para>
157+ <command>nix-build -A pkg-attribute-name &lt;path to your local
158+ nixpkgs folder&gt;/default.nix</command> and check results in the
159+ folder <command>result</command>. It will appear in the same
160+ directory where you did <command>nix-build</command>.
161+ </para>
162+ </listitem>
163+ </itemizedlist>
164+ </para>
165+ </listitem>
166+ <listitem>
167+ <para>
168+ If you did <command>nix-env -i pkg-name</command> you can do
169+ <command>nix-env -e pkg-name</command> to uninstall it from your
170+ system.
171+ </para>
172+ </listitem>
173+ </itemizedlist>
174+ </para>
175+ </listitem>
176+ <listitem>
177+ <para>
178+ NixOS and its modules:
179+ <itemizedlist>
180+ <listitem>
181+ <para>
182+ You can add new module to your NixOS configuration file (usually
183+ it's <command>/etc/nixos/configuration.nix</command>). And do
184+ <command>sudo nixos-rebuild test -I nixpkgs=&lt;path to your local
185+ nixpkgs folder&gt; --fast</command>.
186+ </para>
187+ </listitem>
188+ </itemizedlist>
189+ </para>
190+ </listitem>
191+ </itemizedlist>
292192 </para>
293− </section>
294− <section>
295− <title>Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)</title>
193+ </listitem>
194+ <listitem>
296195 <para>
297− Packages with automated tests are much more likely to be merged in a
298− timely fashion because it doesn't require as much manual testing by the
299− maintainer to verify the functionality of the package. If there are
300− existing tests for the package, they should be run to verify your changes
301− do not break the tests. Tests only apply to packages with NixOS modules
302− defined and can only be run on Linux. For more details on writing and
303− running tests, see the <link
304− xlink:href="https://nixos.org/nixos/manual/index.html#sec-nixos-tests">section
305− in the NixOS manual</link>.
196+ If you have commits <command>pkg-name: oh, forgot to insert
197+ whitespace</command>: squash commits in this case. Use <command>git rebase
198+ -i</command>.
306199 </para>
307− </section>
308− <section>
309− <title>Tested compilation of all pkgs that depend on this change using <command>nox-review</command></title>
200+ </listitem>
201+ <listitem>
310202 <para>
311− If you are updating a package's version, you can use nox to make sure all
312− packages that depend on the updated package still compile correctly. This
313− can be done using the nox utility. The <command>nox-review</command>
314− utility can look for and build all dependencies either based on
315− uncommited changes with the <literal>wip</literal> option or specifying a
316− github pull request number.
203+ Rebase you branch against current <command>master</command>.
317204 </para>
205+ </listitem>
206+ </itemizedlist>
207+ </section>
208+ <section>
209+ <title>Submitting changes</title>
210+
211+ <itemizedlist>
212+ <listitem>
318213 <para>
319− review uncommitted changes:
320− <screen>nix-shell -p nox --run nox-review wip</screen>
214+ Push your changes to your fork of nixpkgs.
321215 </para>
216+ </listitem>
217+ <listitem>
322218 <para>
323− review changes from pull request number 12345:
324− <screen>nix-shell -p nox --run nox-review pr 12345</screen>
219+ Create pull request:
220+ <itemizedlist>
221+ <listitem>
222+ <para>
223+ Write the title in format <command>(pkg-name | nixos/&lt;module>):
224+ improvement</command>.
225+ <itemizedlist>
226+ <listitem>
227+ <para>
228+ If you update the pkg, write versions <command>from -> to</command>.
229+ </para>
230+ </listitem>
231+ </itemizedlist>
232+ </para>
233+ </listitem>
234+ <listitem>
235+ <para>
236+ Write in comment if you have tested your patch. Do not rely much on
237+ <command>TravisCI</command>.
238+ </para>
239+ </listitem>
240+ <listitem>
241+ <para>
242+ If you make an improvement, write about your motivation.
243+ </para>
244+ </listitem>
245+ <listitem>
246+ <para>
247+ Notify maintainers of the package. For example add to the message:
248+ <command>cc @jagajaga @domenkozar</command>.
249+ </para>
250+ </listitem>
251+ </itemizedlist>
325252 </para>
326− </section>
253+ </listitem>
254+ </itemizedlist>
255+ </section>
256+ <section>
257+ <title>Pull Request Template</title>
258+
259+ <para>
260+ The pull request template helps determine what steps have been made for a
261+ contribution so far, and will help guide maintainers on the status of a
262+ change. The motivation section of the PR should include any extra details
263+ the title does not address and link any existing issues related to the pull
264+ request.
265+ </para>
266+
267+ <para>
268+ When a PR is created, it will be pre-populated with some checkboxes detailed
269+ below:
270+ </para>
271+
327272 <section>
328− <title>Tested execution of all binary files (usually in <filename>./result/bin/</filename>)</title>
329− <para>
330− It's important to test any executables generated by a build when you
331− change or create a package in nixpkgs. This can be done by looking in
332− <filename>./result/bin</filename> and running any files in there, or at a
333− minimum, the main executable for the package. For example, if you make a change
334− to <package>texlive</package>, you probably would only check the binaries
335− associated with the change you made rather than testing all of them.
336− </para>
273+ <title>Tested using sandboxing</title>
274+
275+ <para>
276+ When sandbox builds are enabled, Nix will setup an isolated environment for
277+ each build process. It is used to remove further hidden dependencies set by
278+ the build environment to improve reproducibility. This includes access to
279+ the network during the build outside of <function>fetch*</function>
280+ functions and files outside the Nix store. Depending on the operating
281+ system access to other resources are blocked as well (ex. inter process
282+ communication is isolated on Linux); see
283+ <link
284+ xlink:href="https://nixos.org/nix/manual/#description-45">build-use-sandbox</link>
285+ in Nix manual for details.
286+ </para>
287+
288+ <para>
289+ Sandboxing is not enabled by default in Nix due to a small performance hit
290+ on each build. In pull requests for
291+ <link
292+ xlink:href="https://github.com/NixOS/nixpkgs/">nixpkgs</link>
293+ people are asked to test builds with sandboxing enabled (see
294+ <literal>Tested using sandboxing</literal> in the pull request template)
295+ because
296+ in<link
297+ xlink:href="https://nixos.org/hydra/">https://nixos.org/hydra/</link>
298+ sandboxing is also used.
299+ </para>
300+
301+ <para>
302+ Depending if you use NixOS or other platforms you can use one of the
303+ following methods to enable sandboxing
304+ <emphasis role="bold">before</emphasis> building the package:
305+ <itemizedlist>
306+ <listitem>
307+ <para>
308+ <emphasis role="bold">Globally enable sandboxing on NixOS</emphasis>:
309+ add the following to <filename>configuration.nix</filename>
310+<screen>nix.useSandbox = true;</screen>
311+ </para>
312+ </listitem>
313+ <listitem>
314+ <para>
315+ <emphasis role="bold">Globally enable sandboxing on non-NixOS
316+ platforms</emphasis>: add the following to:
317+ <filename>/etc/nix/nix.conf</filename>
318+<screen>build-use-sandbox = true</screen>
319+ </para>
320+ </listitem>
321+ </itemizedlist>
322+ </para>
337323 </section>
324+
338325 <section>
339− <title>Meets nixpkgs contribution standards</title>
340− <para>
341− The last checkbox is fits <link
342− xlink:href="https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md">CONTRIBUTING.md</link>.
343− The contributing document has detailed information on standards the Nix
344− community has for commit messages, reviews, licensing of contributions
345− you make to the project, etc... Everyone should read and understand the
346− standards the community has for contributing before submitting a pull
347− request.
348− </para>
349−
326+ <title>Built on platform(s)</title>
327+
328+ <para>
329+ Many Nix packages are designed to run on multiple platforms. As such, it's
330+ important to let the maintainer know which platforms your changes have been
331+ tested on. It's not always practical to test a change on all platforms, and
332+ is not required for a pull request to be merged. Only check the systems you
333+ tested the build on in this section.
334+ </para>
350335 </section>
351−</section>
352−
353−<section>
354−<title>Hotfixing pull requests</title>
355336
356−<itemizedlist>
357−<listitem>
358−<para>Make the appropriate changes in you branch.</para>
359−</listitem>
360−
361−<listitem>
362−<para>Don't create additional commits, do
337+ <section>
338+ <title>Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)</title>
339+
340+ <para>
341+ Packages with automated tests are much more likely to be merged in a timely
342+ fashion because it doesn't require as much manual testing by the maintainer
343+ to verify the functionality of the package. If there are existing tests for
344+ the package, they should be run to verify your changes do not break the
345+ tests. Tests only apply to packages with NixOS modules defined and can only
346+ be run on Linux. For more details on writing and running tests, see the
347+ <link
348+ xlink:href="https://nixos.org/nixos/manual/index.html#sec-nixos-tests">section
349+ in the NixOS manual</link>.
350+ </para>
351+ </section>
363352
364−<itemizedlist>
365−<listitem>
366−<para><command>git rebase -i</command></para>
367−</listitem>
368−<listitem>
369−<para>
370−<command>git push --force</command> to your branch.</para>
371−</listitem>
372−</itemizedlist>
373−</para>
374−</listitem>
353+ <section>
354+ <title>Tested compilation of all pkgs that depend on this change using <command>nox-review</command></title>
355+
356+ <para>
357+ If you are updating a package's version, you can use nox to make sure all
358+ packages that depend on the updated package still compile correctly. This
359+ can be done using the nox utility. The <command>nox-review</command>
360+ utility can look for and build all dependencies either based on uncommited
361+ changes with the <literal>wip</literal> option or specifying a github pull
362+ request number.
363+ </para>
364+
365+ <para>
366+ review uncommitted changes:
367+<screen>nix-shell -p nox --run "nox-review wip"</screen>
368+ </para>
369+
370+ <para>
371+ review changes from pull request number 12345:
372+<screen>nix-shell -p nox --run "nox-review pr 12345"</screen>
373+ </para>
374+ </section>
375375
376−</itemizedlist>
377−</section>
376+ <section>
377+ <title>Tested execution of all binary files (usually in <filename>./result/bin/</filename>)</title>
378+
379+ <para>
380+ It's important to test any executables generated by a build when you change
381+ or create a package in nixpkgs. This can be done by looking in
382+ <filename>./result/bin</filename> and running any files in there, or at a
383+ minimum, the main executable for the package. For example, if you make a
384+ change to <package>texlive</package>, you probably would only check the
385+ binaries associated with the change you made rather than testing all of
386+ them.
387+ </para>
388+ </section>
378389
379−<section>
380−<title>Commit policy</title>
390+ <section>
391+ <title>Meets nixpkgs contribution standards</title>
381392
382−<itemizedlist>
383−<listitem>
384−<para>Commits must be sufficiently tested before being merged, both for the master and staging branches.</para>
385−</listitem>
393+ <para>
394+ The last checkbox is fits
395+ <link
396+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md">CONTRIBUTING.md</link>.
397+ The contributing document has detailed information on standards the Nix
398+ community has for commit messages, reviews, licensing of contributions you
399+ make to the project, etc... Everyone should read and understand the
400+ standards the community has for contributing before submitting a pull
401+ request.
402+ </para>
403+ </section>
404+ </section>
405+ <section>
406+ <title>Hotfixing pull requests</title>
386407
387−<listitem>
388−<para>Hydra builds for master and staging should not be used as testing platform, it's a build farm for changes that have been already tested.</para>
389−</listitem>
408+ <itemizedlist>
409+ <listitem>
410+ <para>
411+ Make the appropriate changes in you branch.
412+ </para>
413+ </listitem>
414+ <listitem>
415+ <para>
416+ Don't create additional commits, do
417+ <itemizedlist>
418+ <listitem>
419+ <para>
420+ <command>git rebase -i</command>
421+ </para>
422+ </listitem>
423+ <listitem>
424+ <para>
425+ <command>git push --force</command> to your branch.
426+ </para>
427+ </listitem>
428+ </itemizedlist>
429+ </para>
430+ </listitem>
431+ </itemizedlist>
432+ </section>
433+ <section>
434+ <title>Commit policy</title>
390435
391−<listitem>
392−<para>When changing the bootloader installation process, extra care must be taken. Grub installations cannot be rolled back, hence changes may break people's installations forever. For any non-trivial change to the bootloader please file a PR asking for review, especially from @edolstra.</para>
393−</listitem>
394−</itemizedlist>
436+ <itemizedlist>
437+ <listitem>
438+ <para>
439+ Commits must be sufficiently tested before being merged, both for the
440+ master and staging branches.
441+ </para>
442+ </listitem>
443+ <listitem>
444+ <para>
445+ Hydra builds for master and staging should not be used as testing
446+ platform, it's a build farm for changes that have been already tested.
447+ </para>
448+ </listitem>
449+ <listitem>
450+ <para>
451+ When changing the bootloader installation process, extra care must be
452+ taken. Grub installations cannot be rolled back, hence changes may break
453+ people's installations forever. For any non-trivial change to the
454+ bootloader please file a PR asking for review, especially from @edolstra.
455+ </para>
456+ </listitem>
457+ </itemizedlist>
395458
396−<section>
397− <title>Master branch</title>
459+ <section>
460+ <title>Master branch</title>
398461
399− <itemizedlist>
462+ <itemizedlist>
400463 <listitem>
401− <para>
402− It should only see non-breaking commits that do not cause mass rebuilds.
403− </para>
464+ <para>
465+ It should only see non-breaking commits that do not cause mass rebuilds.
466+ </para>
404467 </listitem>
405− </itemizedlist>
406−</section>
468+ </itemizedlist>
469+ </section>
407470
408−<section>
409− <title>Staging branch</title>
471+ <section>
472+ <title>Staging branch</title>
410473
411− <itemizedlist>
474+ <itemizedlist>
412475 <listitem>
413− <para>
414− It's only for non-breaking mass-rebuild commits. That means it's not to
415− be used for testing, and changes must have been well tested already.
416− <link xlink:href="http://comments.gmane.org/gmane.linux.distributions.nixos/13447">Read policy here</link>.
417− </para>
476+ <para>
477+ It's only for non-breaking mass-rebuild commits. That means it's not to
478+ be used for testing, and changes must have been well tested already.
479+ <link xlink:href="https://web.archive.org/web/20160528180406/http://comments.gmane.org/gmane.linux.distributions.nixos/13447">Read
480+ policy here</link>.
481+ </para>
418482 </listitem>
419483 <listitem>
420− <para>
421− If the branch is already in a broken state, please refrain from adding
422− extra new breakages. Stabilize it for a few days, merge into master,
423− then resume development on staging.
424− <link xlink:href="http://hydra.nixos.org/jobset/nixpkgs/staging#tabs-evaluations">Keep an eye on the staging evaluations here</link>.
425− If any fixes for staging happen to be already in master, then master can
426− be merged into staging.
427− </para>
484+ <para>
485+ If the branch is already in a broken state, please refrain from adding
486+ extra new breakages. Stabilize it for a few days, merge into master, then
487+ resume development on staging.
488+ <link xlink:href="http://hydra.nixos.org/jobset/nixpkgs/staging#tabs-evaluations">Keep
489+ an eye on the staging evaluations here</link>. If any fixes for staging
490+ happen to be already in master, then master can be merged into staging.
491+ </para>
428492 </listitem>
429− </itemizedlist>
430−</section>
493+ </itemizedlist>
494+ </section>
431495
432−<section>
433− <title>Stable release branches</title>
496+ <section>
497+ <title>Stable release branches</title>
434498
435− <itemizedlist>
499+ <itemizedlist>
436500 <listitem>
437− <para>
438− If you're cherry-picking a commit to a stable release branch, always use
439− <command>git cherry-pick -xe</command> and ensure the message contains a
440− clear description about why this needs to be included in the stable
441− branch.
442− </para>
443− <para>An example of a cherry-picked commit would look like this:</para>
444− <screen>
501+ <para>
502+ If you're cherry-picking a commit to a stable release branch, always use
503+ <command>git cherry-pick -xe</command> and ensure the message contains a
504+ clear description about why this needs to be included in the stable
505+ branch.
506+ </para>
507+ <para>
508+ An example of a cherry-picked commit would look like this:
509+ </para>
510+<screen>
445511nixos: Refactor the world.
446512
447513The original commit message describing the reason why the world was torn apart.
@@ -451,9 +517,7 @@ Reason: I just had a gut feeling that this would also be wanted by people from
451517the stone age.
452518 </screen>
453519 </listitem>
454− </itemizedlist>
455−</section>
456−
457−</section>
520+ </itemizedlist>
521+ </section>
522+ </section>
458523</chapter>
459−
lib/debug.nix+128−56
@@ -1,34 +1,67 @@
1+/* Collection of functions useful for debugging
2+ broken nix expressions.
3+
4+ * `trace`-like functions take two values, print
5+ the first to stderr and return the second.
6+ * `traceVal`-like functions take one argument
7+ which both printed and returned.
8+ * `traceSeq`-like functions fully evaluate their
9+ traced value before printing (not just to “weak
10+ head normal form” like trace does by default).
11+ * Functions that end in `-Fn` take an additional
12+ function as their first argument, which is applied
13+ to the traced value before it is printed.
14+*/
115{ lib }:
2−
316let
4−
5−inherit (builtins) trace attrNamesToStr isAttrs isList isInt
6− isString isBool head substring attrNames;
7−
8−inherit (lib) all id mapAttrsFlatten elem isFunction;
9−
17+ inherit (builtins) trace isAttrs isList isInt
18+ head substring attrNames;
19+ inherit (lib) id elem isFunction;
1020in
1121
1222rec {
1323
14− inherit (builtins) addErrorContext;
15−
16− addErrorContextToAttrs = lib.mapAttrs (a: v: lib.addErrorContext "while evaluating ${a}" v);
24+ # -- TRACING --
1725
18− traceIf = p: msg: x: if p then trace msg x else x;
26+ /* Trace msg, but only if pred is true.
1927
20− traceVal = x: trace x x;
21− traceXMLVal = x: trace (builtins.toXML x) x;
22− traceXMLValMarked = str: x: trace (str + builtins.toXML x) x;
28+ Example:
29+ traceIf true "hello" 3
30+ trace: hello
31+ => 3
32+ */
33+ traceIf = pred: msg: x: if pred then trace msg x else x;
2334
24− # strict trace functions (traced structure is fully evaluated and printed)
35+ /* Trace the value and also return it.
2536
26− /* `builtins.trace`, but the value is `builtins.deepSeq`ed first. */
37+ Example:
38+ traceValFn (v: "mystring ${v}") "foo"
39+ trace: mystring foo
40+ => "foo"
41+ */
42+ traceValFn = f: x: trace (f x) x;
43+ traceVal = traceValFn id;
44+
45+ /* `builtins.trace`, but the value is `builtins.deepSeq`ed first.
46+
47+ Example:
48+ trace { a.b.c = 3; } null
49+ trace: { a = <CODE>; }
50+ => null
51+ traceSeq { a.b.c = 3; } null
52+ trace: { a = { b = { c = 3; }; }; }
53+ => null
54+ */
2755 traceSeq = x: y: trace (builtins.deepSeq x x) y;
2856
29− /* Like `traceSeq`, but only down to depth n.
30− * This is very useful because lots of `traceSeq` usages
31− * lead to an infinite recursion.
57+ /* Like `traceSeq`, but only evaluate down to depth n.
58+ This is very useful because lots of `traceSeq` usages
59+ lead to an infinite recursion.
60+
61+ Example:
62+ traceSeqN 2 { a.b.c = 3; } null
63+ trace: { a = { b = {…}; }; }
64+ => null
3265 */
3366 traceSeqN = depth: x: y: with lib;
3467 let snip = v: if isList v then noQuotes "[…]" v
@@ -43,39 +76,16 @@ rec {
4376 in trace (generators.toPretty { allowPrettyValues = true; }
4477 (modify depth snip x)) y;
4578
46− /* `traceSeq`, but the same value is traced and returned */
47− traceValSeq = v: traceVal (builtins.deepSeq v v);
48− /* `traceValSeq` but with fixed depth */
49− traceValSeqN = depth: v: traceSeqN depth v v;
79+ /* A combination of `traceVal` and `traceSeq` */
80+ traceValSeqFn = f: v: traceVal f (builtins.deepSeq v v);
81+ traceValSeq = traceValSeqFn id;
5082
83+ /* A combination of `traceVal` and `traceSeqN`. */
84+ traceValSeqNFn = f: depth: v: traceSeqN depth (f v) v;
85+ traceValSeqN = traceValSeqNFn id;
5186
52− # this can help debug your code as well - designed to not produce thousands of lines
53− traceShowVal = x: trace (showVal x) x;
54− traceShowValMarked = str: x: trace (str + showVal x) x;
55− attrNamesToStr = a: lib.concatStringsSep "; " (map (x: "${x}=") (attrNames a));
56− showVal = x:
57− if isAttrs x then
58− if x ? outPath then "x is a derivation, name ${if x ? name then x.name else "<no name>"}, { ${attrNamesToStr x} }"
59− else "x is attr set { ${attrNamesToStr x} }"
60− else if isFunction x then "x is a function"
61− else if x == [] then "x is an empty list"
62− else if isList x then "x is a list, first element is: ${showVal (head x)}"
63− else if x == true then "x is boolean true"
64− else if x == false then "x is boolean false"
65− else if x == null then "x is null"
66− else if isInt x then "x is an integer `${toString x}'"
67− else if isString x then "x is a string `${substring 0 50 x}...'"
68− else "x is probably a path `${substring 0 50 (toString x)}...'";
6987
70− # trace the arguments passed to function and its result
71− # maybe rewrite these functions in a traceCallXml like style. Then one function is enough
72− traceCall = n: f: a: let t = n2: x: traceShowValMarked "${n} ${n2}:" x; in t "result" (f (t "arg 1" a));
73− traceCall2 = n: f: a: b: let t = n2: x: traceShowValMarked "${n} ${n2}:" x; in t "result" (f (t "arg 1" a) (t "arg 2" b));
74− traceCall3 = n: f: a: b: c: let t = n2: x: traceShowValMarked "${n} ${n2}:" x; in t "result" (f (t "arg 1" a) (t "arg 2" b) (t "arg 3" c));
75−
76− # FIXME: rename this?
77− traceValIfNot = c: x:
78− if c x then true else trace (showVal x) false;
88+ # -- TESTING --
7989
8090 /* Evaluate a set of tests. A test is an attribute set {expr,
8191 expected}, denoting an expression and its expected result. The
@@ -99,9 +109,68 @@ rec {
99109 # usage: { testX = allTrue [ true ]; }
100110 testAllTrue = expr: { inherit expr; expected = map (x: true) expr; };
101111
102− strict = v:
103− trace "Warning: strict is deprecated and will be removed in the next release"
104− (builtins.seq v v);
112+
113+ # -- DEPRECATED --
114+
115+ traceShowVal = x: trace (showVal x) x;
116+ traceShowValMarked = str: x: trace (str + showVal x) x;
117+
118+ attrNamesToStr = a:
119+ trace ( "Warning: `attrNamesToStr` is deprecated "
120+ + "and will be removed in the next release. "
121+ + "Please use more specific concatenation "
122+ + "for your uses (`lib.concat(Map)StringsSep`)." )
123+ (lib.concatStringsSep "; " (map (x: "${x}=") (attrNames a)));
124+
125+ showVal = with lib;
126+ trace ( "Warning: `showVal` is deprecated "
127+ + "and will be removed in the next release, "
128+ + "please use `traceSeqN`" )
129+ (let
130+ modify = v:
131+ let pr = f: { __pretty = f; val = v; };
132+ in if isDerivation v then pr
133+ (drv: "<δ:${drv.name}:${concatStringsSep ","
134+ (attrNames drv)}>")
135+ else if [] == v then pr (const "[]")
136+ else if isList v then pr (l: "[ ${go (head l)}, … ]")
137+ else if isAttrs v then pr
138+ (a: "{ ${ concatStringsSep ", " (attrNames a)} }")
139+ else v;
140+ go = x: generators.toPretty
141+ { allowPrettyValues = true; }
142+ (modify x);
143+ in go);
144+
145+ traceXMLVal = x:
146+ trace ( "Warning: `traceXMLVal` is deprecated "
147+ + "and will be removed in the next release. "
148+ + "Please use `traceValFn builtins.toXML`." )
149+ (trace (builtins.toXML x) x);
150+ traceXMLValMarked = str: x:
151+ trace ( "Warning: `traceXMLValMarked` is deprecated "
152+ + "and will be removed in the next release. "
153+ + "Please use `traceValFn (x: str + builtins.toXML x)`." )
154+ (trace (str + builtins.toXML x) x);
155+
156+ # trace the arguments passed to function and its result
157+ # maybe rewrite these functions in a traceCallXml like style. Then one function is enough
158+ traceCall = n: f: a: let t = n2: x: traceShowValMarked "${n} ${n2}:" x; in t "result" (f (t "arg 1" a));
159+ traceCall2 = n: f: a: b: let t = n2: x: traceShowValMarked "${n} ${n2}:" x; in t "result" (f (t "arg 1" a) (t "arg 2" b));
160+ traceCall3 = n: f: a: b: c: let t = n2: x: traceShowValMarked "${n} ${n2}:" x; in t "result" (f (t "arg 1" a) (t "arg 2" b) (t "arg 3" c));
161+
162+ traceValIfNot = c: x:
163+ trace ( "Warning: `traceValIfNot` is deprecated "
164+ + "and will be removed in the next release. "
165+ + "Please use `if/then/else` and `traceValSeq 1`.")
166+ (if c x then true else traceSeq (showVal x) false);
167+
168+
169+ addErrorContextToAttrs = attrs:
170+ trace ( "Warning: `addErrorContextToAttrs` is deprecated "
171+ + "and will be removed in the next release. "
172+ + "Please use `builtins.addErrorContext` directly." )
173+ (lib.mapAttrs (a: v: lib.addErrorContext "while evaluating ${a}" v) attrs);
105174
106175 # example: (traceCallXml "myfun" id 3) will output something like
107176 # calling myfun arg 1: 3 result: 3
@@ -109,17 +178,20 @@ rec {
109178 # note: if result doesn't evaluate you'll get no trace at all (FIXME)
110179 # args should be printed in any case
111180 traceCallXml = a:
112− if !isInt a then
181+ trace ( "Warning: `traceCallXml` is deprecated "
182+ + "and will be removed in the next release. "
183+ + "Please complain if you use the function regularly." )
184+ (if !isInt a then
113185 traceCallXml 1 "calling ${a}\n"
114186 else
115187 let nr = a;
116188 in (str: expr:
117189 if isFunction expr then
118190 (arg:
119− traceCallXml (builtins.add 1 nr) "${str}\n arg ${builtins.toString nr} is \n ${builtins.toXML (strict arg)}" (expr arg)
191+ traceCallXml (builtins.add 1 nr) "${str}\n arg ${builtins.toString nr} is \n ${builtins.toXML (builtins.seq arg arg)}" (expr arg)
120192 )
121193 else
122− let r = strict expr;
194+ let r = builtins.seq expr expr;
123195 in trace "${str}\n result:\n${builtins.toXML r}" r
124− );
196+ ));
125197}
lib/default.nix+30−26
@@ -5,9 +5,11 @@
55 */
66let
77
8− callLibs = file: import file { inherit lib; };
8+ inherit (import ./fixed-points.nix {}) makeExtensible;
99
10− lib = rec {
10+ lib = makeExtensible (self: let
11+ callLibs = file: import file { lib = self; };
12+ in with self; {
1113
1214 # often used, or depending on very little
1315 trivial = callLibs ./trivial.nix;
@@ -21,7 +23,7 @@ let
2123
2224 # packaging
2325 customisation = callLibs ./customisation.nix;
24− maintainers = import ./maintainers-list.nix;
26+ maintainers = import ../maintainers/maintainer-list.nix;
2527 meta = callLibs ./meta.nix;
2628 sources = callLibs ./sources.nix;
2729 versions = callLibs ./versions.nix;
@@ -49,14 +51,14 @@ let
4951 # back-compat aliases
5052 platforms = systems.forMeta;
5153
52− inherit (builtins) add addErrorContext attrNames
53− concatLists deepSeq elem elemAt filter genericClosure genList
54− getAttr hasAttr head isAttrs isBool isInt isList
55− isString length lessThan listToAttrs pathExists readFile
56− replaceStrings seq stringLength sub substring tail;
54+ inherit (builtins) add addErrorContext attrNames concatLists
55+ deepSeq elem elemAt filter genericClosure genList getAttr
56+ hasAttr head isAttrs isBool isInt isList isString length
57+ lessThan listToAttrs pathExists readFile replaceStrings seq
58+ stringLength sub substring tail;
5759 inherit (trivial) id const concat or and boolToString mergeAttrs
5860 flip mapNullable inNixShell min max importJSON warn info
59− nixpkgsVersion mod compare splitByAndCompare
61+ nixpkgsVersion version mod compare splitByAndCompare
6062 functionArgs setFunctionArgs isFunction;
6163
6264 inherit (fixedPoints) fix fix' extends composeExtensions
@@ -72,30 +74,32 @@ let
7274 inherit (lists) singleton foldr fold foldl foldl' imap0 imap1
7375 concatMap flatten remove findSingle findFirst any all count
7476 optional optionals toList range partition zipListsWith zipLists
75− reverseList listDfs toposort sort compareLists take drop sublist
76− last init crossLists unique intersectLists subtractLists
77− mutuallyExclusive;
77+ reverseList listDfs toposort sort naturalSort compareLists take
78+ drop sublist last init crossLists unique intersectLists
79+ subtractLists mutuallyExclusive;
7880 inherit (strings) concatStrings concatMapStrings concatImapStrings
7981 intersperse concatStringsSep concatMapStringsSep
8082 concatImapStringsSep makeSearchPath makeSearchPathOutput
8183 makeLibraryPath makeBinPath makePerlPath optionalString
8284 hasPrefix hasSuffix stringToCharacters stringAsChars escape
83− escapeShellArg escapeShellArgs replaceChars lowerChars upperChars
84− toLower toUpper addContextFrom splitString removePrefix
85− removeSuffix versionOlder versionAtLeast getVersion nameFromURL
86− enableFeature fixedWidthString fixedWidthNumber isStorePath
85+ escapeShellArg escapeShellArgs replaceChars lowerChars
86+ upperChars toLower toUpper addContextFrom splitString
87+ removePrefix removeSuffix versionOlder versionAtLeast getVersion
88+ nameFromURL enableFeature enableFeatureAs withFeature
89+ withFeatureAs fixedWidthString fixedWidthNumber isStorePath
8790 toInt readPathsFromFile fileContents;
8891 inherit (stringsWithDeps) textClosureList textClosureMap
8992 noDepEntry fullDepEntry packEntry stringAfter;
9093 inherit (customisation) overrideDerivation makeOverridable
91− callPackageWith callPackagesWith extendDerivation
92− hydraJob makeScope;
94+ callPackageWith callPackagesWith extendDerivation hydraJob
95+ makeScope;
9396 inherit (meta) addMetaAttrs dontDistribute setName updateName
9497 appendToName mapDerivationAttrset lowPrio lowPrioSet hiPrio
9598 hiPrioSet;
9699 inherit (sources) pathType pathIsDirectory cleanSourceFilter
97100 cleanSource sourceByRegex sourceFilesBySuffices
98− commitIdFromGitRepo cleanSourceWith pathHasContext canCleanSource;
101+ commitIdFromGitRepo cleanSourceWith pathHasContext
102+ canCleanSource;
99103 inherit (modules) evalModules closeModules unifyModuleSyntax
100104 applyIfFunction unpackSubmodule packSubmodule mergeModules
101105 mergeModules' mergeOptionDecls evalOptionValue mergeDefinitions
@@ -113,11 +117,11 @@ let
113117 unknownModule mkOption;
114118 inherit (types) isType setType defaultTypeMerge defaultFunctor
115119 isOptionType mkOptionType;
116− inherit (debug) addErrorContextToAttrs traceIf traceVal
120+ inherit (debug) addErrorContextToAttrs traceIf traceVal traceValFn
117121 traceXMLVal traceXMLValMarked traceSeq traceSeqN traceValSeq
118− traceValSeqN traceShowVal traceShowValMarked
119− showVal traceCall traceCall2 traceCall3 traceValIfNot runTests
120− testAllTrue strict traceCallXml attrNamesToStr;
122+ traceValSeqFn traceValSeqN traceValSeqNFn traceShowVal
123+ traceShowValMarked showVal traceCall traceCall2 traceCall3
124+ traceValIfNot runTests testAllTrue traceCallXml attrNamesToStr;
121125 inherit (misc) maybeEnv defaultMergeArg defaultMerge foldArgs
122126 defaultOverridableDelayableArgs composedArgsAndFun
123127 maybeAttrNullable maybeAttr ifEnable checkFlag getValue
@@ -126,7 +130,7 @@ let
126130 closePropagation mapAttrsFlatten nvs setAttr setAttrMerge
127131 mergeAttrsWithFunc mergeAttrsConcatenateValues
128132 mergeAttrsNoOverride mergeAttrByFunc mergeAttrsByFuncDefaults
129− mergeAttrsByFuncDefaultsClean mergeAttrBy
130− prepareDerivationArgs nixType imap overridableDelayableArgs;
131− };
133+ mergeAttrsByFuncDefaultsClean mergeAttrBy prepareDerivationArgs
134+ nixType imap overridableDelayableArgs;
135+ });
132136in lib
lib/generators.nix+54−13
@@ -4,6 +4,12 @@
44 * They all follow a similar interface:
55 * generator { config-attrs } data
66 *
7+ * `config-attrs` are “holes” in the generators
8+ * with sensible default implementations that
9+ * can be overwritten. The default implementations
10+ * are mostly generators themselves, called with
11+ * their respective default values; they can be reused.
12+ *
713 * Tests can be found in ./tests.nix
814 * Documentation in the manual, #sec-generators
915 */
@@ -20,6 +26,32 @@ in
2026
2127rec {
2228
29+ ## -- HELPER FUNCTIONS & DEFAULTS --
30+
31+ /* Convert a value to a sensible default string representation.
32+ * The builtin `toString` function has some strange defaults,
33+ * suitable for bash scripts but not much else.
34+ */
35+ mkValueStringDefault = {}: v: with builtins;
36+ let err = t: v: abort
37+ ("generators.mkValueStringDefault: " +
38+ "${t} not supported: ${toPretty {} v}");
39+ in if isInt v then toString v
40+ # we default to not quoting strings
41+ else if isString v then v
42+ # isString returns "1", which is not a good default
43+ else if true == v then "true"
44+ # here it returns to "", which is even less of a good default
45+ else if false == v then "false"
46+ else if null == v then "null"
47+ # if you have lists you probably want to replace this
48+ else if isList v then err "lists" v
49+ # same as for lists, might want to replace
50+ else if isAttrs v then err "attrsets" v
51+ else if isFunction v then err "functions" v
52+ else err "this value is" (toString v);
53+
54+
2355 /* Generate a line of key k and value v, separated by
2456 * character sep. If sep appears in k, it is escaped.
2557 * Helper for synaxes with different separators.
@@ -30,11 +62,14 @@ rec {
3062 * > "f\:oo:bar"
3163 */
3264 mkKeyValueDefault = {
33− mkValueString ? toString
65+ mkValueString ? mkValueStringDefault {}
3466 }: sep: k: v:
3567 "${libStr.escape [sep] k}${sep}${mkValueString v}";
3668
3769
70+ ## -- FILE FORMAT GENERATORS --
71+
72+
3873 /* Generate a key-value-style config file from an attrset.
3974 *
4075 * mkKeyValue is the same as in toINI.
@@ -98,6 +133,7 @@ rec {
98133 */
99134 toYAML = {}@args: toJSON args;
100135
136+
101137 /* Pretty print a value, akin to `builtins.trace`.
102138 * Should probably be a builtin as well.
103139 */
@@ -107,17 +143,13 @@ rec {
107143 (This means fn is type Val -> String.) */
108144 allowPrettyValues ? false
109145 }@args: v: with builtins;
110− if isInt v then toString v
111− else if isBool v then (if v == true then "true" else "false")
112− else if isString v then "\"" + v + "\""
113− else if null == v then "null"
114− else if isFunction v then
115− let fna = lib.functionArgs v;
116− showFnas = concatStringsSep "," (libAttr.mapAttrsToList
117− (name: hasDefVal: if hasDefVal then "(${name})" else name)
118− fna);
119− in if fna == {} then "<λ>"
120− else "<λ:{${showFnas}}>"
146+ let isPath = v: typeOf v == "path";
147+ in if isInt v then toString v
148+ else if isString v then ''"${libStr.escape [''"''] v}"''
149+ else if true == v then "true"
150+ else if false == v then "false"
151+ else if null == v then "null"
152+ else if isPath v then toString v
121153 else if isList v then "[ "
122154 + libStr.concatMapStringsSep " " (toPretty args) v
123155 + " ]"
@@ -126,12 +158,21 @@ rec {
126158 if attrNames v == [ "__pretty" "val" ] && allowPrettyValues
127159 then v.__pretty v.val
128160 # TODO: there is probably a better representation?
129− else if v ? type && v.type == "derivation" then "<δ>"
161+ else if v ? type && v.type == "derivation" then
162+ "<δ:${v.name}>"
163+ # "<δ:${concatStringsSep "," (builtins.attrNames v)}>"
130164 else "{ "
131165 + libStr.concatStringsSep " " (libAttr.mapAttrsToList
132166 (name: value:
133167 "${toPretty args name} = ${toPretty args value};") v)
134168 + " }"
169+ else if isFunction v then
170+ let fna = lib.functionArgs v;
171+ showFnas = concatStringsSep "," (libAttr.mapAttrsToList
172+ (name: hasDefVal: if hasDefVal then "(${name})" else name)
173+ fna);
174+ in if fna == {} then "<λ>"
175+ else "<λ:{${showFnas}}>"
135176 else abort "toPretty: should never happen (v = ${v})";
136177
137178}
lib/licenses.nix+6−1
@@ -179,6 +179,11 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
179179 fullName = "CeCILL-C Free Software License Agreement";
180180 };
181181
182+ cpal10 = spdx {
183+ spdxId = "CPAL-1.0";
184+ fullName = "Common Public Attribution License 1.0";
185+ };
186+
182187 cpl10 = spdx {
183188 spdxId = "CPL-1.0";
184189 fullName = "Common Public License 1.0";
@@ -279,7 +284,7 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
279284
280285 gpl2Oss = {
281286 fullName = "GNU General Public License version 2 only (with OSI approved licenses linking exception)";
282− url = http://www.mysql.com/about/legal/licensing/foss-exception;
287+ url = https://www.mysql.com/about/legal/licensing/foss-exception;
283288 };
284289
285290 gpl2Plus = spdx {
lib/lists.nix+22−1
@@ -1,7 +1,9 @@
11# General list operations.
22{ lib }:
33with lib.trivial;
4−
4+let
5+ inherit (lib.strings) toInt;
6+in
57rec {
68
79 inherit (builtins) head tail length isList elemAt concatLists filter elem genList;
@@ -409,6 +411,25 @@ rec {
409411 then compareLists cmp (tail a) (tail b)
410412 else rel;
411413
414+ /* Sort list using "Natural sorting".
415+ Numeric portions of strings are sorted in numeric order.
416+
417+ Example:
418+ naturalSort ["disk11" "disk8" "disk100" "disk9"]
419+ => ["disk8" "disk9" "disk11" "disk100"]
420+ naturalSort ["10.46.133.149" "10.5.16.62" "10.54.16.25"]
421+ => ["10.5.16.62" "10.46.133.149" "10.54.16.25"]
422+ naturalSort ["v0.2" "v0.15" "v0.0.9"]
423+ => [ "v0.0.9" "v0.2" "v0.15" ]
424+ */
425+ naturalSort = lst:
426+ let
427+ vectorise = s: map (x: if isList x then toInt (head x) else x) (builtins.split "(0|[1-9][0-9]*)" s);
428+ prepared = map (x: [ (vectorise x) x ]) lst; # remember vectorised version for O(n) regex splits
429+ less = a: b: (compareLists compare (head a) (head b)) < 0;
430+ in
431+ map (x: elemAt x 1) (sort less prepared);
432+
412433 /* Return the first (at most) N elements of a list.
413434
414435 Example:
lib/modules.nix+23−12
@@ -59,7 +59,7 @@ rec {
5959 };
6060 };
6161
62− closed = closeModules (modules ++ [ internalModule ]) ({ inherit config options; lib = import ./.; } // specialArgs);
62+ closed = closeModules (modules ++ [ internalModule ]) ({ inherit config options lib; } // specialArgs);
6363
6464 options = mergeModules prefix (reverseList (filterModules (specialArgs.modulesPath or "") closed));
6565
@@ -159,7 +159,7 @@ rec {
159159 context = name: ''while evaluating the module argument `${name}' in "${key}":'';
160160 extraArgs = builtins.listToAttrs (map (name: {
161161 inherit name;
162− value = addErrorContext (context name)
162+ value = builtins.addErrorContext (context name)
163163 (args.${name} or config._module.args.${name});
164164 }) requiredArgs);
165165
@@ -309,7 +309,8 @@ rec {
309309 res.mergedValue;
310310
311311 in opt //
312− { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
312+ { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
313+ inherit (res.defsFinal') highestPrio;
313314 definitions = map (def: def.value) res.defsFinal;
314315 files = map (def: def.file) res.defsFinal;
315316 inherit (res) isDefined;
@@ -317,7 +318,7 @@ rec {
317318
318319 # Merge definitions of a value of a given type.
319320 mergeDefinitions = loc: type: defs: rec {
320− defsFinal =
321+ defsFinal' =
321322 let
322323 # Process mkMerge and mkIf properties.
323324 defs' = concatMap (m:
@@ -325,15 +326,20 @@ rec {
325326 ) defs;
326327
327328 # Process mkOverride properties.
328− defs'' = filterOverrides defs';
329+ defs'' = filterOverrides' defs';
329330
330331 # Sort mkOrder properties.
331332 defs''' =
332333 # Avoid sorting if we don't have to.
333− if any (def: def.value._type or "" == "order") defs''
334− then sortProperties defs''
335− else defs'';
336− in defs''';
334+ if any (def: def.value._type or "" == "order") defs''.values
335+ then sortProperties defs''.values
336+ else defs''.values;
337+ in {
338+ values = defs''';
339+ inherit (defs'') highestPrio;
340+ };
341+
342+ defsFinal = defsFinal'.values;
337343
338344 # Type-check the remaining definitions, and merge them.
339345 mergedValue = foldl' (res: def:
@@ -416,13 +422,18 @@ rec {
416422
417423 Note that "z" has the default priority 100.
418424 */
419− filterOverrides = defs:
425+ filterOverrides = defs: (filterOverrides' defs).values;
426+
427+ filterOverrides' = defs:
420428 let
421429 defaultPrio = 100;
422430 getPrio = def: if def.value._type or "" == "override" then def.value.priority else defaultPrio;
423431 highestPrio = foldl' (prio: def: min (getPrio def) prio) 9999 defs;
424432 strip = def: if def.value._type or "" == "override" then def // { value = def.value.content; } else def;
425− in concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
433+ in {
434+ values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
435+ inherit highestPrio;
436+ };
426437
427438 /* Sort a list of properties. The sort priority of a property is
428439 1000 by default, but can be overridden by wrapping the property
@@ -660,7 +671,7 @@ rec {
660671 doRename = { from, to, visible, warn, use }:
661672 let
662673 toOf = attrByPath to
663− (abort "Renaming error: option `${showOption to}' does not exists.");
674+ (abort "Renaming error: option `${showOption to}' does not exist.");
664675 in
665676 { config, options, ... }:
666677 { options = setAttrByPath from (mkOption {
lib/strings.nix+42−2
@@ -82,7 +82,7 @@ rec {
8282 => "//bin"
8383 */
8484 makeSearchPath = subDir: packages:
85− concatStringsSep ":" (map (path: path + "/" + subDir) packages);
85+ concatStringsSep ":" (map (path: path + "/" + subDir) (builtins.filter (x: x != null) packages));
8686
8787 /* Construct a Unix-style search path, using given package output.
8888 If no output is found, fallback to `.out` and then to the default.
@@ -414,6 +414,39 @@ rec {
414414 */
415415 enableFeature = enable: feat: "--${if enable then "enable" else "disable"}-${feat}";
416416
417+ /* Create an --{enable-<feat>=<value>,disable-<feat>} string that can be passed to
418+ standard GNU Autoconf scripts.
419+
420+ Example:
421+ enableFeature true "shared" "foo"
422+ => "--enable-shared=foo"
423+ enableFeature false "shared" (throw "ignored")
424+ => "--disable-shared"
425+ */
426+ enableFeatureAs = enable: feat: value: enableFeature enable feat + optionalString enable "=${value}";
427+
428+ /* Create an --{with,without}-<feat> string that can be passed to
429+ standard GNU Autoconf scripts.
430+
431+ Example:
432+ withFeature true "shared"
433+ => "--with-shared"
434+ withFeature false "shared"
435+ => "--without-shared"
436+ */
437+ withFeature = with_: feat: "--${if with_ then "with" else "without"}-${feat}";
438+
439+ /* Create an --{with-<feat>=<value>,without-<feat>} string that can be passed to
440+ standard GNU Autoconf scripts.
441+
442+ Example:
443+ with_Feature true "shared" "foo"
444+ => "--with-shared=foo"
445+ with_Feature false "shared" (throw "ignored")
446+ => "--without-shared"
447+ */
448+ withFeatureAs = with_: feat: value: withFeature with_ feat + optionalString with_ "=${value}";
449+
417450 /* Create a fixed width string with additional prefix to match
418451 required width.
419452
@@ -437,6 +470,13 @@ rec {
437470 */
438471 fixedWidthNumber = width: n: fixedWidthString width "0" (toString n);
439472
473+ /* Check whether a value can be coerced to a string */
474+ isCoercibleToString = x:
475+ builtins.elem (builtins.typeOf x) [ "path" "string" "null" "int" "float" "bool" ] ||
476+ (builtins.isList x && lib.all isCoercibleToString x) ||
477+ x ? outPath ||
478+ x ? __toString;
479+
440480 /* Check whether a value is a store path.
441481
442482 Example:
@@ -450,7 +490,7 @@ rec {
450490 => false
451491 */
452492 isStorePath = x:
453− builtins.isString x
493+ isCoercibleToString x
454494 && builtins.substring 0 1 (toString x) == "/"
455495 && dirOf (builtins.toPath x) == builtins.storeDir;
456496
lib/systems/default.nix+9
@@ -45,8 +45,17 @@ rec {
4545 };
4646 # Misc boolean options
4747 useAndroidPrebuilt = false;
48+ useiOSPrebuilt = false;
49+ isiPhoneSimulator = false;
4850 } // mapAttrs (n: v: v final.parsed) inspect.predicates
4951 // args;
5052 in assert final.useAndroidPrebuilt -> final.isAndroid;
53+ assert lib.foldl
54+ (pass: { assertion, message }:
55+ if assertion final
56+ then pass
57+ else throw message)
58+ true
59+ (final.parsed.abi.assertions or []);
5160 final;
5261}
lib/systems/examples.nix+26−6
@@ -94,16 +94,36 @@ rec {
9494 #
9595
9696 iphone64 = {
97− config = "aarch64-apple-darwin14";
98− arch = "arm64";
99− libc = "libSystem";
97+ config = "aarch64-apple-ios";
98+ # config = "aarch64-apple-darwin14";
99+ sdkVer = "10.2";
100+ useiOSPrebuilt = true;
100101 platform = {};
101102 };
102103
103104 iphone32 = {
104− config = "arm-apple-darwin10";
105− arch = "armv7-a";
106− libc = "libSystem";
105+ config = "armv7a-apple-ios";
106+ # config = "arm-apple-darwin10";
107+ sdkVer = "10.2";
108+ useiOSPrebuilt = true;
109+ platform = {};
110+ };
111+
112+ iphone64-simulator = {
113+ config = "x86_64-apple-ios";
114+ # config = "x86_64-apple-darwin14";
115+ sdkVer = "10.2";
116+ useiOSPrebuilt = true;
117+ isiPhoneSimulator = true;
118+ platform = {};
119+ };
120+
121+ iphone32-simulator = {
122+ config = "i686-apple-ios";
123+ # config = "i386-apple-darwin11";
124+ sdkVer = "10.2";
125+ useiOSPrebuilt = true;
126+ isiPhoneSimulator = true;
107127 platform = {};
108128 };
109129
lib/systems/for-meta.nix+6−2
@@ -4,8 +4,8 @@ let
44 inherit (lib.systems.inspect) patterns;
55
66in rec {
7− inherit (lib.systems.doubles) all mesaPlatforms;
8− none = [];
7+ all = [ {} ]; # `{}` matches anything
8+ none = [];
99
1010 arm = [ patterns.isAarch32 ];
1111 aarch64 = [ patterns.isAarch64 ];
@@ -13,6 +13,7 @@ in rec {
1313 i686 = [ patterns.isi686 ];
1414 x86_64 = [ patterns.isx86_64 ];
1515 mips = [ patterns.isMips ];
16+ riscv = [ patterns.isRiscV ];
1617
1718 cygwin = [ patterns.isCygwin ];
1819 darwin = [ patterns.isDarwin ];
@@ -24,4 +25,7 @@ in rec {
2425 netbsd = [ patterns.isNetBSD ];
2526 openbsd = [ patterns.isOpenBSD ];
2627 unix = patterns.isUnix; # Actually a list
28+ windows = [ patterns.isWindows ];
29+
30+ inherit (lib.systems.doubles) mesaPlatforms;
2731}
lib/systems/inspect.nix+6−5
@@ -3,6 +3,9 @@ with import ./parse.nix { inherit lib; };
33with lib.attrsets;
44with lib.lists;
55
6+let abis_ = abis; in
7+let abis = lib.mapAttrs (_: abi: builtins.removeAttrs abi [ "assertions" ]) abis_; in
8+
69rec {
710 patterns = rec {
811 isi686 = { cpu = cpuTypes.i686; };
@@ -21,9 +24,11 @@ rec {
2124 isLittleEndian = { cpu = { significantByte = significantBytes.littleEndian; }; };
2225
2326 isBSD = { kernel = { families = { inherit (kernelFamilies) bsd; }; }; };
27+ isDarwin = { kernel = { families = { inherit (kernelFamilies) darwin; }; }; };
2428 isUnix = [ isBSD isDarwin isLinux isSunOS isHurd isCygwin ];
2529
26− isDarwin = { kernel = kernels.darwin; };
30+ isMacOS = { kernel = kernels.macos; };
31+ isiOS = { kernel = kernels.ios; };
2732 isLinux = { kernel = kernels.linux; };
2833 isSunOS = { kernel = kernels.solaris; };
2934 isFreeBSD = { kernel = kernels.freebsd; };
@@ -38,12 +43,8 @@ rec {
3843 isMusl = with abis; map (a: { abi = a; }) [ musl musleabi musleabihf ];
3944 isUClibc = with abis; map (a: { abi = a; }) [ uclibc uclibceabi uclibceabihf ];
4045
41− isKexecable = map (family: { kernel = kernels.linux; cpu.family = family; })
42− [ "x86" "arm" "aarch64" "mips" ];
4346 isEfi = map (family: { cpu.family = family; })
4447 [ "x86" "arm" "aarch64" ];
45− isSeccomputable = map (family: { kernel = kernels.linux; cpu.family = family; })
46− [ "x86" "arm" "aarch64" "mips" ];
4748
4849 # Deprecated after 18.03
4950 isArm = isAarch32;
lib/systems/parse.nix+35−11
@@ -34,7 +34,7 @@ rec {
3434
3535 ################################################################################
3636
37− types.openSignifiantByte = mkOptionType {
37+ types.openSignificantByte = mkOptionType {
3838 name = "significant-byte";
3939 description = "Endianness";
4040 merge = mergeOneOption;
@@ -42,7 +42,7 @@ rec {
4242
4343 types.significantByte = enum (attrValues significantBytes);
4444
45− significantBytes = setTypes types.openSignifiantByte {
45+ significantBytes = setTypes types.openSignificantByte {
4646 bigEndian = {};
4747 littleEndian = {};
4848 };
@@ -145,6 +145,7 @@ rec {
145145
146146 kernelFamilies = setTypes types.openKernelFamily {
147147 bsd = {};
148+ darwin = {};
148149 };
149150
150151 ################################################################################
@@ -160,7 +161,10 @@ rec {
160161 types.kernel = enum (attrValues kernels);
161162
162163 kernels = with execFormats; with kernelFamilies; setTypes types.openKernel {
163− darwin = { execFormat = macho; families = { }; };
164+ # TODO(@Ericson2314): Don't want to mass-rebuild yet to keeping 'darwin' as
165+ # the nnormalized name for macOS.
166+ macos = { execFormat = macho; families = { inherit darwin; }; name = "darwin"; };
167+ ios = { execFormat = macho; families = { inherit darwin; }; };
164168 freebsd = { execFormat = elf; families = { inherit bsd; }; };
165169 hurd = { execFormat = elf; families = { }; };
166170 linux = { execFormat = elf; families = { }; };
@@ -170,9 +174,13 @@ rec {
170174 solaris = { execFormat = elf; families = { }; };
171175 windows = { execFormat = pe; families = { }; };
172176 } // { # aliases
177+ # 'darwin' is the kernel for all of them. We choose macOS by default.
178+ darwin = kernels.macos;
173179 # TODO(@Ericson2314): Handle these Darwin version suffixes more generally.
174− darwin10 = kernels.darwin;
175− darwin14 = kernels.darwin;
180+ darwin10 = kernels.macos;
181+ darwin14 = kernels.macos;
182+ watchos = kernels.ios;
183+ tvos = kernels.ios;
176184 win32 = kernels.windows;
177185 };
178186
@@ -192,11 +200,27 @@ rec {
192200 eabi = {};
193201
194202 androideabi = {};
195− android = {};
203+ android = {
204+ assertions = [
205+ { assertion = platform: !platform.isAarch32;
206+ message = ''
207+ The "android" ABI is not for 32-bit ARM. Use "androideabi" instead.
208+ '';
209+ }
210+ ];
211+ };
196212
197213 gnueabi = { float = "soft"; };
198214 gnueabihf = { float = "hard"; };
199− gnu = {};
215+ gnu = {
216+ assertions = [
217+ { assertion = platform: !platform.isAarch32;
218+ message = ''
219+ The "gnu" ABI is ambiguous on 32-bit ARM. Use "gnueabi" or "gnueabihf" instead.
220+ '';
221+ }
222+ ];
223+ };
200224
201225 musleabi = { float = "soft"; };
202226 musleabihf = { float = "hard"; };
@@ -211,7 +235,7 @@ rec {
211235
212236 ################################################################################
213237
214− types.system = mkOptionType {
238+ types.parsedPlatform = mkOptionType {
215239 name = "system";
216240 description = "fully parsed representation of llvm- or nix-style platform tuple";
217241 merge = mergeOneOption;
@@ -225,7 +249,7 @@ rec {
225249 isSystem = isType "system";
226250
227251 mkSystem = components:
228− assert types.system.check components;
252+ assert types.parsedPlatform.check components;
229253 setType "system" components;
230254
231255 mkSkeletonFromList = l: {
@@ -286,8 +310,8 @@ rec {
286310 mkSystemFromString = s: mkSystemFromSkeleton (mkSkeletonFromList (lib.splitString "-" s));
287311
288312 doubleFromSystem = { cpu, vendor, kernel, abi, ... }:
289− if abi == abis.cygnus
290− then "${cpu.name}-cygwin"
313+ /**/ if abi == abis.cygnus then "${cpu.name}-cygwin"
314+ else if kernel.families ? darwin then "${cpu.name}-darwin"
291315 else "${cpu.name}-${kernel.name}";
292316
293317 tripleFromSystem = { cpu, vendor, kernel, abi, ... } @ sys: assert isSystem sys; let
lib/tests/misc.nix+33−3
@@ -93,6 +93,7 @@ runTests {
9393 "${builtins.storeDir}/d945ibfx9x185xf04b890y4f9g3cbb63-python-2.7.11";
9494 in {
9595 storePath = isStorePath goodPath;
96+ storePathDerivation = isStorePath (import ../.. {}).hello;
9697 storePathAppendix = isStorePath
9798 "${goodPath}/bin/python";
9899 nonAbsolute = isStorePath (concatStrings (tail (stringToCharacters goodPath)));
@@ -106,6 +107,7 @@ runTests {
106107 };
107108 expected = {
108109 storePath = true;
110+ storePathDerivation = true;
109111 storePathAppendix = false;
110112 nonAbsolute = false;
111113 asPath = true;
@@ -205,6 +207,29 @@ runTests {
205207 expected = ''f\:oo:bar'';
206208 };
207209
210+ testMkValueString = {
211+ expr = let
212+ vals = {
213+ int = 42;
214+ string = ''fo"o'';
215+ bool = true;
216+ bool2 = false;
217+ null = null;
218+ # float = 42.23; # floats are strange
219+ };
220+ in mapAttrs
221+ (const (generators.mkValueStringDefault {}))
222+ vals;
223+ expected = {
224+ int = "42";
225+ string = ''fo"o'';
226+ bool = "true";
227+ bool2 = "false";
228+ null = "null";
229+ # float = "42.23" true false [ "bar" ] ]'';
230+ };
231+ };
232+
208233 testToKeyValue = {
209234 expr = generators.toKeyValue {} {
210235 key = "value";
@@ -247,6 +272,8 @@ runTests {
247272 "section 1" = {
248273 attribute1 = 5;
249274 x = "Me-se JarJar Binx";
275+ # booleans are converted verbatim by default
276+ boolean = false;
250277 };
251278 "foo[]" = {
252279 "he\\h=he" = "this is okay";
@@ -258,6 +285,7 @@ runTests {
258285
259286 [section 1]
260287 attribute1=5
288+ boolean=false
261289 x=Me-se JarJar Binx
262290 '';
263291 };
@@ -289,7 +317,8 @@ runTests {
289317 expr = mapAttrs (const (generators.toPretty {})) rec {
290318 int = 42;
291319 bool = true;
292− string = "fnord";
320+ string = ''fno"rd'';
321+ path = /. + "/foo"; # toPath returns a string
293322 null_ = null;
294323 function = x: x;
295324 functionArgs = { arg ? 4, foo }: arg;
@@ -300,13 +329,14 @@ runTests {
300329 expected = rec {
301330 int = "42";
302331 bool = "true";
303− string = "\"fnord\"";
332+ string = ''"fno\"rd"'';
333+ path = "/foo";
304334 null_ = "null";
305335 function = "<λ>";
306336 functionArgs = "<λ:{(arg),foo}>";
307337 list = "[ 3 4 ${function} [ false ] ]";
308338 attrs = "{ \"foo\" = null; \"foo bar\" = \"baz\"; }";
309− drv = "<δ>";
339+ drv = "<δ:test>";
310340 };
311341 };
312342
lib/tests/modules.sh+12−1
@@ -136,7 +136,18 @@ checkConfigOutput "true" "$@" ./define-module-check.nix
136136# Check coerced value.
137137checkConfigOutput "\"42\"" config.value ./declare-coerced-value.nix
138138checkConfigOutput "\"24\"" config.value ./declare-coerced-value.nix ./define-value-string.nix
139−checkConfigError 'The option value .* in .* is not.*string or signed integer.*' config.value ./declare-coerced-value.nix ./define-value-list.nix
139+checkConfigError 'The option value .* in .* is not.*string or signed integer convertible to it' config.value ./declare-coerced-value.nix ./define-value-list.nix
140+
141+# Check coerced value with unsound coercion
142+checkConfigOutput "12" config.value ./declare-coerced-value-unsound.nix
143+checkConfigError 'The option value .* in .* is not.*8 bit signed integer.* or string convertible to it' config.value ./declare-coerced-value-unsound.nix ./define-value-string-bigint.nix
144+checkConfigError 'unrecognised JSON value' config.value ./declare-coerced-value-unsound.nix ./define-value-string-arbitrary.nix
145+
146+# Check loaOf with long list.
147+checkConfigOutput "1 2 3 4 5 6 7 8 9 10" config.result ./loaOf-with-long-list.nix
148+
149+# Check loaOf with many merges of lists.
150+checkConfigOutput "1 2 3 4 5 6 7 8 9 10" config.result ./loaOf-with-many-list-merges.nix
140151
141152cat <<EOF
142153====== module tests ======
lib/tests/modules/declare-coerced-value-unsound.nixnew file+10
@@ -0,0 +1,10 @@
1+{ lib, ... }:
2+
3+{
4+ options = {
5+ value = lib.mkOption {
6+ default = "12";
7+ type = lib.types.coercedTo lib.types.str lib.toInt lib.types.ints.s8;
8+ };
9+ };
10+}
lib/tests/modules/define-value-string-arbitrary.nixnew file+3
@@ -0,0 +1,3 @@
1+{
2+ value = "foobar";
3+}
lib/tests/modules/define-value-string-bigint.nixnew file+3
@@ -0,0 +1,3 @@
1+{
2+ value = "1000";
3+}
lib/tests/modules/loaOf-with-long-list.nixnew file+19
@@ -0,0 +1,19 @@
1+{ config, lib, ... }:
2+
3+{
4+ options = {
5+ loaOfInt = lib.mkOption {
6+ type = lib.types.loaOf lib.types.int;
7+ };
8+
9+ result = lib.mkOption {
10+ type = lib.types.str;
11+ };
12+ };
13+
14+ config = {
15+ loaOfInt = [ 1 2 3 4 5 6 7 8 9 10 ];
16+
17+ result = toString (lib.attrValues config.loaOfInt);
18+ };
19+}
lib/tests/modules/loaOf-with-many-list-merges.nixnew file+19
@@ -0,0 +1,19 @@
1+{ config, lib, ... }:
2+
3+{
4+ options = {
5+ loaOfInt = lib.mkOption {
6+ type = lib.types.loaOf lib.types.int;
7+ };
8+
9+ result = lib.mkOption {
10+ type = lib.types.str;
11+ };
12+ };
13+
14+ config = {
15+ loaOfInt = lib.mkMerge (map lib.singleton [ 1 2 3 4 5 6 7 8 9 10 ]);
16+
17+ result = toString (lib.attrValues config.loaOfInt);
18+ };
19+}
lib/tests/release.nix+1−2
@@ -13,7 +13,6 @@ pkgs.stdenv.mkDerivation {
1313 export NIX_DB_DIR=$TEST_ROOT/db
1414 export NIX_LOCALSTATE_DIR=$TEST_ROOT/var
1515 export NIX_LOG_DIR=$TEST_ROOT/var/log/nix
16− export NIX_MANIFESTS_DIR=$TEST_ROOT/var/nix/manifests
1716 export NIX_STATE_DIR=$TEST_ROOT/var/nix
1817 export NIX_STORE_DIR=$TEST_ROOT/store
1918 export PAGER=cat
@@ -21,7 +20,7 @@ pkgs.stdenv.mkDerivation {
2120 nix-store --init
2221
2322 cd ${pkgs.path}/lib/tests
24− ./modules.sh
23+ bash ./modules.sh
2524
2625 [[ "$(nix-instantiate --eval --strict misc.nix)" == "[ ]" ]]
2726
lib/trivial.nix+7−4
@@ -58,11 +58,14 @@ rec {
5858
5959 inherit (lib.strings) fileContents;
6060
61+ release = fileContents ../.version;
62+ versionSuffix = let suffixFile = ../.version-suffix; in
63+ if pathExists suffixFile then fileContents suffixFile else "pre-git";
64+
6165 # Return the Nixpkgs version number.
62− nixpkgsVersion =
63− let suffixFile = ../.version-suffix; in
64− fileContents ../.version
65− + (if pathExists suffixFile then fileContents suffixFile else "pre-git");
66+ version = release + versionSuffix;
67+
68+ nixpkgsVersion = builtins.trace "`lib.nixpkgsVersion` is deprecated, use `lib.version` instead!" version;
6669
6770 # Whether we're being called by nix-shell.
6871 inNixShell = builtins.getEnv "IN_NIX_SHELL" != "";
lib/types.nix+24−16
@@ -256,7 +256,7 @@ rec {
256256 functor = (defaultFunctor name) // { wrapped = elemType; };
257257 };
258258
259− nonEmptyListOf = elemType:
259+ nonEmptyListOf = elemType:
260260 let list = addCheck (types.listOf elemType) (l: l != []);
261261 in list // { description = "non-empty " + list.description; };
262262
@@ -280,15 +280,26 @@ rec {
280280 # List or attribute set of ...
281281 loaOf = elemType:
282282 let
283− convertIfList = defIdx: def:
283+ convertAllLists = defs:
284+ let
285+ padWidth = stringLength (toString (length defs));
286+ unnamedPrefix = i: "unnamed-" + fixedWidthNumber padWidth i + ".";
287+ in
288+ imap1 (i: convertIfList (unnamedPrefix i)) defs;
289+
290+ convertIfList = unnamedPrefix: def:
284291 if isList def.value then
285− { inherit (def) file;
286− value = listToAttrs (
287− imap1 (elemIdx: elem:
288− { name = elem.name or "unnamed-${toString defIdx}.${toString elemIdx}";
289− value = elem;
290− }) def.value);
291− }
292+ let
293+ padWidth = stringLength (toString (length def.value));
294+ unnamed = i: unnamedPrefix + fixedWidthNumber padWidth i;
295+ in
296+ { inherit (def) file;
297+ value = listToAttrs (
298+ imap1 (elemIdx: elem:
299+ { name = elem.name or (unnamed elemIdx);
300+ value = elem;
301+ }) def.value);
302+ }
292303 else
293304 def;
294305 listOnly = listOf elemType;
@@ -297,7 +308,7 @@ rec {
297308 name = "loaOf";
298309 description = "list or attribute set of ${elemType.description}s";
299310 check = x: isList x || isAttrs x;
300− merge = loc: defs: attrOnly.merge loc (imap1 convertIfList defs);
311+ merge = loc: defs: attrOnly.merge loc (convertAllLists defs);
301312 getSubOptions = prefix: elemType.getSubOptions (prefix ++ ["<name?>"]);
302313 getSubModules = elemType.getSubModules;
303314 substSubModules = m: loaOf (elemType.substSubModules m);
@@ -419,16 +430,13 @@ rec {
419430 assert coercedType.getSubModules == null;
420431 mkOptionType rec {
421432 name = "coercedTo";
422− description = "${finalType.description} or ${coercedType.description}";
423− check = x: finalType.check x || coercedType.check x;
433+ description = "${finalType.description} or ${coercedType.description} convertible to it";
434+ check = x: finalType.check x || (coercedType.check x && finalType.check (coerceFunc x));
424435 merge = loc: defs:
425436 let
426437 coerceVal = val:
427438 if finalType.check val then val
428− else let
429− coerced = coerceFunc val;
430− in assert finalType.check coerced; coerced;
431−
439+ else coerceFunc val;
432440 in finalType.merge loc (map (def: def // { value = coerceVal def.value; }) defs);
433441 getSubOptions = finalType.getSubOptions;
434442 getSubModules = finalType.getSubModules;
lib/maintainers-list.nix → maintainers/maintainer-list.nixrenamed+323−15
@@ -28,6 +28,11 @@
2828 github = "AndersonTorres";
2929 name = "Anderson Torres";
3030 };
31+ Anton-Latukha = {
32+ email = "anton.latuka+nixpkgs@gmail.com";
33+ github = "Anton-Latukha";
34+ name = "Anton Latukha";
35+ };
3136 Baughn = {
3237 email = "sveina@gmail.com";
3338 github = "Baughn";
@@ -38,6 +43,11 @@
3843 github = "ChengCat";
3944 name = "Yucheng Zhang";
4045 };
46+ CrazedProgrammer = {
47+ email = "crazedprogrammer@gmail.com";
48+ github = "CrazedProgrammer";
49+ name = "CrazedProgrammer";
50+ };
4151 CrystalGamma = {
4252 email = "nixos@crystalgamma.de";
4353 github = "CrystalGamma";
@@ -63,11 +73,20 @@
6373 github = "DmitryTsygankov";
6474 name = "Dmitry Tsygankov";
6575 };
76+ Esteth = {
77+ email = "adam.copp@gmail.com";
78+ name = "Adam Copp";
79+ };
6680 FireyFly = {
6781 email = "nix@firefly.nu";
6882 github = "FireyFly";
6983 name = "Jonas Höglund";
7084 };
85+ Fresheyeball = {
86+ email = "fresheyeball@gmail.com";
87+ github = "fresheyeball";
88+ name = "Isaac Shapira";
89+ };
7190 Gonzih = {
7291 email = "gonzih@gmail.com";
7392 github = "Gonzih";
@@ -87,6 +106,11 @@
87106 github = "MP2E";
88107 name = "Cray Elliott";
89108 };
109+ Mogria = {
110+ email = "m0gr14@gmail.com";
111+ github = "mogria";
112+ name = "Mogria";
113+ };
90114 MostAwesomeDude = {
91115 email = "cds@corbinsimpson.com";
92116 github = "MostAwesomeDude";
@@ -111,6 +135,11 @@
111135 github = "Profpatsch";
112136 name = "Profpatsch";
113137 };
138+ roosemberth = {
139+ email = "roosembert.palacios+nixpkgs@gmail.com";
140+ github = "roosemberth";
141+ name = "Roosembert (Roosemberth) Palacios";
142+ };
114143 SShrike = {
115144 email = "severen@shrike.me";
116145 github = "severen";
@@ -176,6 +205,11 @@
176205 github = "abigailbuccaneer";
177206 name = "Abigail Bunyan";
178207 };
208+ aborsu = {
209+ email = "a.borsu@gmail.com";
210+ github = "aborsu";
211+ name = "Augustin Borsu";
212+ };
179213 aboseley = {
180214 email = "adam.boseley@gmail.com";
181215 github = "aboseley";
@@ -276,6 +310,21 @@
276310 github = "akc";
277311 name = "Anders Claesson";
278312 };
313+ akru = {
314+ email = "mail@akru.me";
315+ github = "akru";
316+ name = "Alexander Krupenkin ";
317+ };
318+ alexchapman = {
319+ name = "Alex Chapman";
320+ email = "alex@farfromthere.net";
321+ github = "AJChapman";
322+ };
323+ alexfmpe = {
324+ email = "alexandre.fmp.esteves@gmail.com";
325+ github = "alexfmpe";
326+ name = "Alexandre Esteves";
327+ };
279328 alexvorobiev = {
280329 email = "alexander.vorobiev@gmail.com";
281330 github = "alexvorobiev";
@@ -314,6 +363,11 @@
314363 github = "amiloradovsky";
315364 name = "Andrew Miloradovsky";
316365 };
366+ aminechikhaoui = {
367+ email = "amine.chikhaoui91@gmail.com";
368+ github = "AmineChikhaoui";
369+ name = "Amine Chikhaoui";
370+ };
317371 amorsillo = {
318372 email = "andrew.morsillo@gmail.com";
319373 github = "AndrewMorsillo";
@@ -483,6 +537,11 @@
483537 email = "sivaraman.balaji@gmail.com";
484538 name = "Balaji Sivaraman";
485539 };
540+ bandresen = {
541+ email = "bandresen@gmail.com";
542+ github = "bandresen";
543+ name = "Benjamin Andresen";
544+ };
486545 barrucadu = {
487546 email = "mike@barrucadu.co.uk";
488547 github = "barrucadu";
@@ -543,6 +602,16 @@
543602 github = "bergey";
544603 name = "Daniel Bergey";
545604 };
605+ bfortz = {
606+ email = "bernard.fortz@gmail.com";
607+ github = "bfortz";
608+ name = "Bernard Fortz";
609+ };
610+ bgamari = {
611+ email = "ben@smart-cactus.org";
612+ github = "bgamari";
613+ name = "Ben Gamari";
614+ };
546615 bhipple = {
547616 email = "bhipple@protonmail.com";
548617 github = "bhipple";
@@ -555,7 +624,6 @@
555624 };
556625 bjg = {
557626 email = "bjg@gnu.org";
558− github = "civodul";
559627 name = "Brian Gough";
560628 };
561629 bjornfor = {
@@ -563,6 +631,11 @@
563631 github = "bjornfor";
564632 name = "Bjørn Forsman";
565633 };
634+ bkchr = {
635+ email = "nixos@kchr.de";
636+ github = "bkchr";
637+ name = "Bastian Köcher";
638+ };
566639 bluescreen303 = {
567640 email = "mathijs@bluescreen303.nl";
568641 github = "bluescreen303";
@@ -598,11 +671,21 @@
598671 github = "bradediger";
599672 name = "Brad Ediger";
600673 };
674+ brainrape = {
675+ email = "martonboros@gmail.com";
676+ github = "brainrape";
677+ name = "Marton Boros";
678+ };
601679 bramd = {
602680 email = "bram@bramd.nl";
603681 github = "bramd";
604682 name = "Bram Duvigneau";
605683 };
684+ brian-dawn = {
685+ email = "brian.t.dawn@gmail.com";
686+ github = "brian-dawn";
687+ name = "Brian Dawn";
688+ };
606689 bstrik = {
607690 email = "dutchman55@gmx.com";
608691 github = "bstrik";
@@ -632,11 +715,6 @@
632715 github = "calbrecht";
633716 name = "Christian Albrecht";
634717 };
635− calrama = {
636− email = "moritz@ucworks.org";
637− github = "MoritzMaxeiner";
638− name = "Moritz Maxeiner";
639− };
640718 calvertvl = {
641719 email = "calvertvl@gmail.com";
642720 github = "calvertvl";
@@ -652,11 +730,21 @@
652730 github = "canndrew";
653731 name = "Andrew Cann";
654732 };
733+ carlosdagos = {
734+ email = "m@cdagostino.io";
735+ github = "carlosdagos";
736+ name = "Carlos D'Agostino";
737+ };
655738 carlsverre = {
656739 email = "accounts@carlsverre.com";
657740 github = "carlsverre";
658741 name = "Carl Sverre";
659742 };
743+ cartr = {
744+ email = "carter.sande@duodecima.technology";
745+ github = "cartr";
746+ name = "Carter Sande";
747+ };
660748 casey = {
661749 email = "casey@rodarmor.net";
662750 github = "casey";
@@ -920,6 +1008,11 @@
9201008 github = "demin-dmitriy";
9211009 name = "Dmitriy Demin";
9221010 };
1011+ demyanrogozhin = {
1012+ email = "demyan.rogozhin@gmail.com";
1013+ github = "demyanrogozhin";
1014+ name = "Demyan Rogozhin";
1015+ };
9231016 derchris = {
9241017 email = "derchris@me.com";
9251018 github = "derchrisuk";
@@ -1034,11 +1127,6 @@
10341127 github = "dtzWill";
10351128 name = "Will Dietz";
10361129 };
1037− dupgit = {
1038− email = "olivier.delhomme@free.fr";
1039− github = "dupgit";
1040− name = "Olivier Delhomme";
1041− };
10421130 dywedir = {
10431131 email = "dywedir@protonmail.ch";
10441132 github = "dywedir";
@@ -1143,6 +1231,16 @@
11431231 github = "ellis";
11441232 name = "Ellis Whitehead";
11451233 };
1234+ elvishjerricco = {
1235+ email = "elvishjerricco@gmail.com";
1236+ github = "ElvishJerricco";
1237+ name = "Will Fancher";
1238+ };
1239+ endgame = {
1240+ email = "jack@jackkelly.name";
1241+ github = "endgame";
1242+ name = "Jack Kelly";
1243+ };
11461244 enzime = {
11471245 email = "enzime@users.noreply.github.com";
11481246 github = "enzime";
@@ -1158,7 +1256,7 @@
11581256 name = "Mabry Cervin";
11591257 };
11601258 eqyiel = {
1161− email = "r@rkm.id.au";
1259+ email = "ruben@maher.fyi";
11621260 github = "eqyiel";
11631261 name = "Ruben Maher";
11641262 };
@@ -1247,6 +1345,11 @@
12471345 github = "fare";
12481346 name = "Francois-Rene Rideau";
12491347 };
1348+ fdns = {
1349+ email = "fdns02@gmail.com";
1350+ github = "fdns";
1351+ name = "Felipe Espinoza";
1352+ };
12501353 fgaz = {
12511354 email = "francygazz@gmail.com";
12521355 github = "fgaz";
@@ -1524,6 +1627,11 @@
15241627 github = "hrdinka";
15251628 name = "Christoph Hrdinka";
15261629 };
1630+ hschaeidt = {
1631+ email = "he.schaeidt@gmail.com";
1632+ github = "hschaeidt";
1633+ name = "Hendrik Schaeidt";
1634+ };
15271635 htr = {
15281636 email = "hugo@linux.com";
15291637 github = "htr";
@@ -1549,6 +1657,11 @@
15491657 github = "iblech";
15501658 name = "Ingo Blechschmidt";
15511659 };
1660+ idontgetoutmuch = {
1661+ email = "dominic@steinitz.org";
1662+ github = "idontgetoutmuch";
1663+ name = "Dominic Steinitz";
1664+ };
15521665 igsha = {
15531666 email = "igor.sharonov@gmail.com";
15541667 github = "igsha";
@@ -1628,6 +1741,11 @@
16281741 github = "jbedo";
16291742 name = "Justin Bedő";
16301743 };
1744+ jbgi = {
1745+ email = "jb@giraudeau.info";
1746+ github = "jbgi";
1747+ name = "Jean-Baptiste Giraudeau";
1748+ };
16311749 jcumming = {
16321750 email = "jack@mudshark.org";
16331751 name = "Jack Cummings";
@@ -1637,13 +1755,18 @@
16371755 github = "jdagilliland";
16381756 name = "Jason Gilliland";
16391757 };
1758+ jD91mZM2 = {
1759+ email = "me@krake.one";
1760+ github = "jD91mZM2";
1761+ name = "jD91mZM2";
1762+ };
16401763 jefdaj = {
16411764 email = "jefdaj@gmail.com";
16421765 github = "jefdaj";
16431766 name = "Jeffrey David Johnson";
16441767 };
16451768 jensbin = {
1646− email = "jensbin@protonmail.com";
1769+ email = "jensbin+git@pm.me";
16471770 github = "jensbin";
16481771 name = "Jens Binkert";
16491772 };
@@ -1657,13 +1780,18 @@
16571780 github = "tftio";
16581781 name = "James Felix Black";
16591782 };
1783+ jflanglois = {
1784+ email = "yourstruly@julienlanglois.me";
1785+ github = "jflanglois";
1786+ name = "Julien Langlois";
1787+ };
16601788 jfrankenau = {
16611789 email = "johannes@frankenau.net";
16621790 github = "jfrankenau";
16631791 name = "Johannes Frankenau";
16641792 };
16651793 jgeerds = {
1666− email = "jascha@jgeerds.name";
1794+ email = "jascha@geerds.org";
16671795 github = "jgeerds";
16681796 name = "Jascha Geerds";
16691797 };
@@ -1707,6 +1835,11 @@
17071835 github = "joamaki";
17081836 name = "Jussi Maki";
17091837 };
1838+ joelburget = {
1839+ email = "joelburget@gmail.com";
1840+ github = "joelburget";
1841+ name = "Joel Burget";
1842+ };
17101843 joelmo = {
17111844 email = "joel.moberg@gmail.com";
17121845 github = "joelmo";
@@ -1726,6 +1859,11 @@
17261859 github = "johnazoidberg";
17271860 name = "Daniel Schäfer";
17281861 };
1862+ johnchildren = {
1863+ email = "john.a.children@gmail.com";
1864+ github = "johnchildren";
1865+ name = "John Children";
1866+ };
17291867 johnmh = {
17301868 email = "johnmh@openblox.org";
17311869 github = "johnmh";
@@ -1819,6 +1957,11 @@
18191957 email = "info+nix@chmist.com";
18201958 name = "karolchmist";
18211959 };
1960+ kazcw = {
1961+ email = "kaz@lambdaverse.org";
1962+ github = "kazcw";
1963+ name = "Kaz Wesley";
1964+ };
18221965 kentjames = {
18231966 email = "jameschristopherkent@gmail.com";
18241967 github = "kentjames";
@@ -1883,6 +2026,11 @@
18832026 github = "kragniz";
18842027 name = "Louis Taylor";
18852028 };
2029+ krav = {
2030+ email = "kristoffer@microdisko.no";
2031+ github = "krav";
2032+ name = "Kristoffer Thømt Ravneberg";
2033+ };
18862034 kristoff3r = {
18872035 email = "k.soeholm@gmail.com";
18882036 github = "kristoff3r";
@@ -1948,6 +2096,11 @@
19482096 github = "leenaars";
19492097 name = "Michiel Leenaars";
19502098 };
2099+ leo60228 = {
2100+ email = "iakornfeld@gmail.com";
2101+ github = "leo60228";
2102+ name = "leo60228";
2103+ };
19512104 leonardoce = {
19522105 email = "leonardo.cecchi@gmail.com";
19532106 github = "leonardoce";
@@ -2013,6 +2166,11 @@
20132166 github = "lo1tuma";
20142167 name = "Mathias Schreck";
20152168 };
2169+ lopsided98 = {
2170+ email = "benwolsieffer@gmail.com";
2171+ github = "lopsided98";
2172+ name = "Ben Wolsieffer";
2173+ };
20162174 loskutov = {
20172175 email = "ignat.loskutov@gmail.com";
20182176 github = "loskutov";
@@ -2140,6 +2298,11 @@
21402298 github = "markuskowa";
21412299 name = "Markus Kowalewski";
21422300 };
2301+ marsam = {
2302+ email = "marsam@users.noreply.github.com";
2303+ github = "marsam";
2304+ name = "Mario Rodas";
2305+ };
21432306 martijnvermaat = {
21442307 email = "martijn@vermaat.name";
21452308 github = "martijnvermaat";
@@ -2220,6 +2383,11 @@
22202383 github = "meditans";
22212384 name = "Carlo Nucera";
22222385 };
2386+ megheaiulian = {
2387+ email = "iulian.meghea@gmail.com";
2388+ github = "megheaiulian";
2389+ name = "Meghea Iulian";
2390+ };
22232391 mehandes = {
22242392 email = "niewskici@gmail.com";
22252393 github = "mehandes";
@@ -2333,6 +2501,16 @@
23332501 github = "mmahut";
23342502 name = "Marek Mahut";
23352503 };
2504+ mmlb = {
2505+ email = "me.mmlb@mmlb.me";
2506+ github = "mmlb";
2507+ name = "Manuel Mendez";
2508+ };
2509+ mnacamura = {
2510+ email = "m.nacamura@gmail.com";
2511+ github = "mnacamura";
2512+ name = "Mitsuhiro Nakamura";
2513+ };
23362514 moaxcp = {
23372515 email = "moaxcp@gmail.com";
23382516 github = "moaxcp";
@@ -2393,6 +2571,11 @@
23932571 github = "fstamour";
23942572 name = "Francis St-Amour";
23952573 };
2574+ mrkkrp = {
2575+ email = "markkarpov92@gmail.com";
2576+ github = "mrkkrp";
2577+ name = "Mark Karpov";
2578+ };
23962579 mrVanDalo = {
23972580 email = "contact@ingolf-wagner.de";
23982581 github = "mrVanDalo";
@@ -2407,6 +2590,11 @@
24072590 github = "mschristiansen";
24082591 name = "Mikkel Christiansen";
24092592 };
2593+ msiedlarek = {
2594+ email = "mikolaj@siedlarek.pl";
2595+ github = "msiedlarek";
2596+ name = "Mikołaj Siedlarek";
2597+ };
24102598 mstarzyk = {
24112599 email = "mstarzyk@gmail.com";
24122600 github = "mstarzyk";
@@ -2422,6 +2610,11 @@
24222610 github = "mt-caret";
24232611 name = "Masayuki Takeda";
24242612 };
2613+ MtP = {
2614+ email = "marko.nixos@poikonen.de";
2615+ github = "MtP76";
2616+ name = "Marko Poikonen";
2617+ };
24252618 mtreskin = {
24262619 email = "zerthurd@gmail.com";
24272620 github = "Zert";
@@ -2517,6 +2710,11 @@
25172710 github = "ninjatrappeur";
25182711 name = "Félix Baylac-Jacqué";
25192712 };
2713+ nioncode = {
2714+ email = "nioncode+github@gmail.com";
2715+ github = "nioncode";
2716+ name = "Nicolas Schneider";
2717+ };
25202718 nipav = {
25212719 email = "niko.pavlinek@gmail.com";
25222720 github = "nipav";
@@ -2532,6 +2730,11 @@
25322730 github = "nmattia";
25332731 name = "Nicolas Mattia";
25342732 };
2733+ nocent = {
2734+ email = "nocent@protonmail.ch";
2735+ github = "nocent";
2736+ name = "nocent";
2737+ };
25352738 nocoolnametom = {
25362739 email = "nocoolnametom@gmail.com";
25372740 github = "nocoolnametom";
@@ -2556,6 +2759,11 @@
25562759 github = "nthorne";
25572760 name = "Niklas Thörne";
25582761 };
2762+ nyanloutre = {
2763+ email = "paul@nyanlout.re";
2764+ github = "nyanloutre";
2765+ name = "Paul Trehiou";
2766+ };
25592767 nyarly = {
25602768 email = "nyarly@gmail.com";
25612769 github = "nyarly";
@@ -2896,11 +3104,21 @@
28963104 github = "rbasso";
28973105 name = "Rafael Basso";
28983106 };
3107+ rdnetto = {
3108+ email = "rdnetto@gmail.com";
3109+ github = "rdnetto";
3110+ name = "Reuben D'Netto";
3111+ };
28993112 redbaron = {
29003113 email = "ivanov.maxim@gmail.com";
29013114 github = "redbaron";
29023115 name = "Maxim Ivanov";
29033116 };
3117+ redfish64 = {
3118+ email = "engler@gmail.com";
3119+ github = "redfish64";
3120+ name = "Tim Engler";
3121+ };
29043122 redvers = {
29053123 email = "red@infect.me";
29063124 github = "redvers";
@@ -2956,6 +3174,16 @@
29563174 github = "risicle";
29573175 name = "Robert Scott";
29583176 };
3177+ rittelle = {
3178+ email = "rittelle@posteo.de";
3179+ github = "rittelle";
3180+ name = "Lennart Rittel";
3181+ };
3182+ rkoe = {
3183+ email = "rk@simple-is-better.org";
3184+ github = "rkoe";
3185+ name = "Roland Koebler";
3186+ };
29593187 rlupton20 = {
29603188 email = "richard.lupton@gmail.com";
29613189 github = "rlupton20";
@@ -3016,6 +3244,11 @@
30163244 github = "rongcuid";
30173245 name = "Rongcui Dong";
30183246 };
3247+ rprospero = {
3248+ email = "rprospero+nix@gmail.com";
3249+ github = "rprospero";
3250+ name = "Adam Washington";
3251+ };
30193252 rszibele = {
30203253 email = "richard@szibele.com";
30213254 github = "rszibele";
@@ -3031,6 +3264,11 @@
30313264 github = "rushmorem";
30323265 name = "Rushmore Mushambi";
30333266 };
3267+ ruuda = {
3268+ email = "dev+nix@veniogames.com";
3269+ github = "ruuda";
3270+ name = "Ruud van Asseldonk";
3271+ };
30343272 rvl = {
30353273 email = "dev+nix@rodney.id.au";
30363274 github = "rvl";
@@ -3155,6 +3393,16 @@
31553393 github = "sellout";
31563394 name = "Greg Pfeil";
31573395 };
3396+ sengaya = {
3397+ email = "tlo@sengaya.de";
3398+ github = "sengaya";
3399+ name = "Thilo Uttendorfer";
3400+ };
3401+ sephalon = {
3402+ email = "me@sephalon.net";
3403+ github = "sephalon";
3404+ name = "Stefan Wiehler";
3405+ };
31583406 sepi = {
31593407 email = "raffael@mancini.lu";
31603408 github = "sepi";
@@ -3258,6 +3506,11 @@
32583506 github = "grwlf";
32593507 name = "Sergey Mironov";
32603508 };
3509+ sna = {
3510+ email = "abouzahra.9@wright.edu";
3511+ github = "s-na";
3512+ name = "S. Nordin Abouzahra";
3513+ };
32613514 snyh = {
32623515 email = "snyh@snyh.org";
32633516 github = "snyh";
@@ -3303,6 +3556,11 @@
33033556 github = "spwhitt";
33043557 name = "Spencer Whitt";
33053558 };
3559+ srghma = {
3560+ email = "srghma@gmail.com";
3561+ github = "srghma";
3562+ name = "Sergei Khoma";
3563+ };
33063564 srhb = {
33073565 email = "sbrofeldt@gmail.com";
33083566 github = "srhb";
@@ -3338,6 +3596,11 @@
33383596 github = "suvash";
33393597 name = "Suvash Thapaliya";
33403598 };
3599+ sveitser = {
3600+ email = "sveitser@gmail.com";
3601+ github = "sveitser";
3602+ name = "Mathis Antony";
3603+ };
33413604 svsdep = {
33423605 email = "svsdep@gmail.com";
33433606 github = "svsdep";
@@ -3363,6 +3626,11 @@
33633626 github = "symphorien";
33643627 name = "Guillaume Girol";
33653628 };
3629+ synthetica = {
3630+ email = "nix@hilhorst.be";
3631+ github = "Synthetica9";
3632+ name = "Patrick Hilhorst";
3633+ };
33663634 szczyp = {
33673635 email = "qb@szczyp.com";
33683636 github = "szczyp";
@@ -3418,6 +3686,11 @@
34183686 github = "tavyc";
34193687 name = "Octavian Cerna";
34203688 };
3689+ tazjin = {
3690+ email = "mail@tazj.in";
3691+ github = "tazjin";
3692+ name = "Vincent Ambo";
3693+ };
34213694 teh = {
34223695 email = "tehunger@gmail.com";
34233696 github = "teh";
@@ -3508,11 +3781,21 @@
35083781 github = "titanous";
35093782 name = "Jonathan Rudenberg";
35103783 };
3784+ tmplt = {
3785+ email = "tmplt@dragons.rocks";
3786+ github = "tmplt";
3787+ name = "Viktor";
3788+ };
35113789 tnias = {
35123790 email = "phil@grmr.de";
35133791 github = "tnias";
35143792 name = "Philipp Bartsch";
35153793 };
3794+ tobim = {
3795+ email = "nix@tobim.fastmail.fm";
3796+ github = "tobimpub";
3797+ name = "Tobias Mayer";
3798+ };
35163799 tohl = {
35173800 email = "tom@logand.com";
35183801 github = "tohl";
@@ -3592,6 +3875,11 @@
35923875 github = "twey";
35933876 name = "James ‘Twey’ Kay";
35943877 };
3878+ typetetris = {
3879+ email = "ericwolf42@mail.com";
3880+ github = "typetetris";
3881+ name = "Eric Wolf";
3882+ };
35953883 unode = {
35963884 email = "alves.rjc@gmail.com";
35973885 github = "unode";
@@ -3607,6 +3895,11 @@
36073895 github = "utdemir";
36083896 name = "Utku Demir";
36093897 };
3898+ uvnikita = {
3899+ email = "uv.nikita@gmail.com";
3900+ github = "uvNikita";
3901+ name = "Nikita Uvarov";
3902+ };
36103903 uwap = {
36113904 email = "me@uwap.name";
36123905 github = "uwap";
@@ -3746,6 +4039,11 @@
37464039 github = "vyp";
37474040 name = "vyp";
37484041 };
4042+ wchresta = {
4043+ email = "wchresta.nix@chrummibei.ch";
4044+ github = "wchresta";
4045+ name = "wchresta";
4046+ };
37494047 wedens = {
37504048 email = "kirill.wedens@gmail.com";
37514049 name = "wedens";
@@ -3793,6 +4091,11 @@
37934091 github = "womfoo";
37944092 name = "Kranium Gikos Mendoza";
37954093 };
4094+ worldofpeace = {
4095+ email = "worldofpeace@users.noreply.github.com";
4096+ github = "worldofpeace";
4097+ name = "Worldofpeace";
4098+ };
37964099 wscott = {
37974100 email = "wsc9tt@gmail.com";
37984101 github = "wscott";
@@ -3811,7 +4114,7 @@
38114114 xeji = {
38124115 email = "xeji@cat3.de";
38134116 github = "xeji";
3814− name = "xeji";
4117+ name = "Uli Baum";
38154118 };
38164119 xnaveira = {
38174120 email = "xnaveira@gmail.com";
@@ -3883,6 +4186,11 @@
38834186 github = "yrashk";
38844187 name = "Yurii Rashkovskii";
38854188 };
4189+ ysndr = {
4190+ email = "me@ysndr.de";
4191+ github = "ysndr";
4192+ name = "Yannik Sander";
4193+ };
38864194 yuriaisaka = {
38874195 email = "yuri.aisaka+nix@gmail.com";
38884196 github = "yuriaisaka";
maintainers/scripts/copy-tarballs.pl+8−2
@@ -100,7 +100,10 @@ sub uploadFile {
100100 sub redirect {
101101 my ($name, $dest) = @_;
102102 #print STDERR "linking $name to $dest...\n";
103− $bucket->add_key($name, "", { 'x-amz-website-redirect-location' => "/" . $dest })
103+ $bucket->add_key($name, "", {
104+ 'x-amz-website-redirect-location' => "/" . $dest,
105+ 'x-amz-acl' => "public-read"
106+ })
104107 or die "failed to create redirect from $name to $dest\n";
105108 $cache{$name} = 1;
106109 }
@@ -112,7 +115,10 @@ sub uploadFile {
112115
113116 # Upload the file as sha512/<hash-in-base-16>.
114117 print STDERR "uploading $fn to $mainKey...\n";
115− $bucket->add_key_filename($mainKey, $fn, { 'x-amz-meta-original-name' => $name })
118+ $bucket->add_key_filename($mainKey, $fn, {
119+ 'x-amz-meta-original-name' => $name,
120+ 'x-amz-acl' => "public-read"
121+ })
116122 or die "failed to upload $fn to $mainKey\n";
117123 $cache{$mainKey} = 1;
118124}
maintainers/scripts/hydra-eval-failures.py+20−15
@@ -1,5 +1,5 @@
11#!/usr/bin/env nix-shell
2−#!nix-shell -i python -p pythonFull pythonPackages.requests pythonPackages.pyquery pythonPackages.click
2+#!nix-shell -i python3 -p 'python3.withPackages(ps: with ps; [ requests pyquery click ])'
33
44# To use, just execute this script with --help to display help.
55
@@ -13,10 +13,10 @@ from pyquery import PyQuery as pq
1313
1414
1515maintainers_json = subprocess.check_output([
16− 'nix-instantiate', '-E', 'import ./lib/maintainers.nix {}', '--eval', '--json'
16+ 'nix-instantiate', '-E', 'import ./maintainers/maintainer-list.nix {}', '--eval', '--json'
1717])
1818maintainers = json.loads(maintainers_json)
19−MAINTAINERS = {v: k for k, v in maintainers.iteritems()}
19+MAINTAINERS = {v: k for k, v in maintainers.items()}
2020
2121
2222def get_response_text(url):
@@ -45,6 +45,17 @@ def get_maintainers(attr_name):
4545 except:
4646 return []
4747
48+def print_build(table_row):
49+ a = pq(table_row)('a')[1]
50+ print("- [ ] [{}]({})".format(a.text, a.get('href')), flush=True)
51+
52+ maintainers = get_maintainers(a.text)
53+ if maintainers:
54+ print(" - maintainers: {}".format(", ".join(map(lambda u: '@' + u, maintainers))))
55+ # TODO: print last three persons that touched this file
56+ # TODO: pinpoint the diff that broke this build, or maybe it's transient or maybe it never worked?
57+
58+ sys.stdout.flush()
4859
4960@click.command()
5061@click.option(
@@ -73,23 +84,17 @@ def cli(jobset):
7384
7485 # TODO: aborted evaluations
7586 # TODO: dependency failed without propagated builds
87+ print('\nFailures:')
7688 for tr in d('img[alt="Failed"]').parents('tr'):
77− a = pq(tr)('a')[1]
78− print("- [ ] [{}]({})".format(a.text, a.get('href')))
89+ print_build(tr)
7990
80− sys.stdout.flush()
81−
82− maintainers = get_maintainers(a.text)
83− if maintainers:
84− print(" - maintainers: {}".format(", ".join(map(lambda u: '@' + u, maintainers))))
85− # TODO: print last three persons that touched this file
86− # TODO: pinpoint the diff that broke this build, or maybe it's transient or maybe it never worked?
87−
88− sys.stdout.flush()
91+ print('\nDependency failures:')
92+ for tr in d('img[alt="Dependency failed"]').parents('tr'):
93+ print_build(tr)
8994
9095
9196if __name__ == "__main__":
9297 try:
9398 cli()
94− except:
99+ except Exception as e:
95100 import pdb;pdb.post_mortem()
maintainers/scripts/update-python-libraries+2−2
@@ -1,5 +1,5 @@
11#! /usr/bin/env nix-shell
2−#! nix-shell -i python3 -p 'python3.withPackages(ps: with ps; [ packaging requests toolz ])' -p git
2+#! nix-shell -i python3 -p "python3.withPackages(ps: with ps; [ packaging requests toolz ])" -p git
33
44"""
55Update a Python package expression by passing in the `.nix` file, or the directory containing it.
@@ -358,4 +358,4 @@ def main():
358358
359359
360360if __name__ == '__main__':
361− main()
361+ main()
maintainers/scripts/update.nix+14−3
@@ -6,11 +6,22 @@
66# TODO: add assert statements
77
88let
9+ /* Remove duplicate elements from the list based on some extracted value. O(n^2) complexity.
10+ */
11+ nubOn = f: list:
12+ if list == [] then
13+ []
14+ else
15+ let
16+ x = pkgs.lib.head list;
17+ xs = pkgs.lib.filter (p: f x != f p) (pkgs.lib.drop 1 list);
18+ in
19+ [x] ++ nubOn f xs;
920
1021 pkgs = import ./../../default.nix { };
1122
1223 packagesWith = cond: return: set:
13− pkgs.lib.unique
24+ nubOn (pkg: pkg.updateScript)
1425 (pkgs.lib.flatten
1526 (pkgs.lib.mapAttrsToList
1627 (name: pkg:
@@ -34,7 +45,7 @@ let
3445 let
3546 maintainer =
3647 if ! builtins.hasAttr maintainer' pkgs.lib.maintainers then
37− builtins.throw "Maintainer with name `${maintainer'} does not exist in `lib/maintainers.nix`."
48+ builtins.throw "Maintainer with name `${maintainer'} does not exist in `maintainers/maintainer-list.nix`."
3849 else
3950 builtins.getAttr maintainer' pkgs.lib.maintainers;
4051 in
@@ -65,7 +76,7 @@ let
6576 if package == null then
6677 builtins.throw "Package with an attribute name `${name}` does not exists."
6778 else if ! builtins.hasAttr "updateScript" package then
68− builtins.throw "Package with an attribute name `${name}` does have an `passthru.updateScript` defined."
79+ builtins.throw "Package with an attribute name `${name}` does not have a `passthru.updateScript` attribute defined."
6980 else
7081 package;
7182
maintainers/scripts/vanity.sh+1−1
@@ -10,7 +10,7 @@ git_data="$(echo "$raw_git_log" | grep 'Author:' |
1010
1111# Name - nick - email correspondence from log and from maintainer list
1212# Also there are a few manual entries
13−maintainers="$(cat "$(dirname "$0")/../../lib/maintainers.nix" |
13+maintainers="$(cat "$(dirname "$0")/../maintainer-list.nix" |
1414 grep '=' | sed -re 's/\\"/''/g;
1515 s/[ ]*([^ =]*)[ ]*=[ ]*" *(.*[^ ]) *[<](.*)[>] *".*/\1\t\2\t\3/')"
1616git_lines="$( ( echo "$git_data";
nixos/doc/manual/.gitignorenew file+2
@@ -0,0 +1,2 @@
1+generated
2+manual-combined.xml
nixos/doc/manual/Makefilenew file+24
@@ -0,0 +1,24 @@
1+.PHONY: all
2+all: manual-combined.xml format
3+
4+.PHONY: debug
5+debug: generated manual-combined.xml
6+
7+manual-combined.xml: generated *.xml
8+ rm -f ./manual-combined.xml
9+ nix-shell --packages xmloscopy \
10+ --run "xmloscopy --docbook5 ./manual.xml ./manual-combined.xml"
11+
12+.PHONY: format
13+format:
14+ find . -iname '*.xml' -type f -print0 | xargs -0 -I{} -n1 \
15+ xmlformat --config-file "../xmlformat.conf" -i {}
16+
17+.PHONY: clean
18+clean:
19+ rm -f manual-combined.xml generated
20+
21+generated: ./options-to-docbook.xsl
22+ nix-build ../../release.nix \
23+ --attr manualGeneratedSources.x86_64-linux \
24+ --out-link ./generated
nixos/doc/manual/administration/boot-problems.xml+78−58
@@ -3,63 +3,83 @@
33 xmlns:xi="http://www.w3.org/2001/XInclude"
44 version="5.0"
55 xml:id="sec-boot-problems">
6+ <title>Boot Problems</title>
67
7−<title>Boot Problems</title>
8+ <para>
9+ If NixOS fails to boot, there are a number of kernel command line parameters
10+ that may help you to identify or fix the issue. You can add these parameters
11+ in the GRUB boot menu by pressing “e” to modify the selected boot entry
12+ and editing the line starting with <literal>linux</literal>. The following
13+ are some useful kernel command line parameters that are recognised by the
14+ NixOS boot scripts or by systemd:
15+ <variablelist>
16+ <varlistentry>
17+ <term><literal>boot.shell_on_fail</literal>
18+ </term>
19+ <listitem>
20+ <para>
21+ Start a root shell if something goes wrong in stage 1 of the boot process
22+ (the initial ramdisk). This is disabled by default because there is no
23+ authentication for the root shell.
24+ </para>
25+ </listitem>
26+ </varlistentry>
27+ <varlistentry>
28+ <term><literal>boot.debug1</literal>
29+ </term>
30+ <listitem>
31+ <para>
32+ Start an interactive shell in stage 1 before anything useful has been
33+ done. That is, no modules have been loaded and no file systems have been
34+ mounted, except for <filename>/proc</filename> and
35+ <filename>/sys</filename>.
36+ </para>
37+ </listitem>
38+ </varlistentry>
39+ <varlistentry>
40+ <term><literal>boot.trace</literal>
41+ </term>
42+ <listitem>
43+ <para>
44+ Print every shell command executed by the stage 1 and 2 boot scripts.
45+ </para>
46+ </listitem>
47+ </varlistentry>
48+ <varlistentry>
49+ <term><literal>single</literal>
50+ </term>
51+ <listitem>
52+ <para>
53+ Boot into rescue mode (a.k.a. single user mode). This will cause systemd
54+ to start nothing but the unit <literal>rescue.target</literal>, which
55+ runs <command>sulogin</command> to prompt for the root password and start
56+ a root login shell. Exiting the shell causes the system to continue with
57+ the normal boot process.
58+ </para>
59+ </listitem>
60+ </varlistentry>
61+ <varlistentry>
62+ <term><literal>systemd.log_level=debug systemd.log_target=console</literal>
63+ </term>
64+ <listitem>
65+ <para>
66+ Make systemd very verbose and send log messages to the console instead of
67+ the journal.
68+ </para>
69+ </listitem>
70+ </varlistentry>
71+ </variablelist>
72+ For more parameters recognised by systemd, see <citerefentry>
73+ <refentrytitle>systemd</refentrytitle>
74+ <manvolnum>1</manvolnum></citerefentry>.
75+ </para>
876
9−<para>If NixOS fails to boot, there are a number of kernel command
10−line parameters that may help you to identify or fix the issue. You
11−can add these parameters in the GRUB boot menu by pressing “e” to
12−modify the selected boot entry and editing the line starting with
13−<literal>linux</literal>. The following are some useful kernel command
14−line parameters that are recognised by the NixOS boot scripts or by
15−systemd:
16−
17−<variablelist>
18−
19− <varlistentry><term><literal>boot.shell_on_fail</literal></term>
20− <listitem><para>Start a root shell if something goes wrong in
21− stage 1 of the boot process (the initial ramdisk). This is
22− disabled by default because there is no authentication for the
23− root shell.</para></listitem>
24− </varlistentry>
25−
26− <varlistentry><term><literal>boot.debug1</literal></term>
27− <listitem><para>Start an interactive shell in stage 1 before
28− anything useful has been done. That is, no modules have been
29− loaded and no file systems have been mounted, except for
30− <filename>/proc</filename> and
31− <filename>/sys</filename>.</para></listitem>
32− </varlistentry>
33−
34− <varlistentry><term><literal>boot.trace</literal></term>
35− <listitem><para>Print every shell command executed by the stage 1
36− and 2 boot scripts.</para></listitem>
37− </varlistentry>
38−
39− <varlistentry><term><literal>single</literal></term>
40− <listitem><para>Boot into rescue mode (a.k.a. single user mode).
41− This will cause systemd to start nothing but the unit
42− <literal>rescue.target</literal>, which runs
43− <command>sulogin</command> to prompt for the root password and
44− start a root login shell. Exiting the shell causes the system to
45− continue with the normal boot process.</para></listitem>
46− </varlistentry>
47−
48− <varlistentry><term><literal>systemd.log_level=debug systemd.log_target=console</literal></term>
49− <listitem><para>Make systemd very verbose and send log messages to
50− the console instead of the journal.</para></listitem>
51− </varlistentry>
52−
53−</variablelist>
54−
55−For more parameters recognised by systemd, see
56−<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para>
57−
58−<para>If no login prompts or X11 login screens appear (e.g. due to
59−hanging dependencies), you can press Alt+ArrowUp. If you’re lucky,
60−this will start rescue mode (described above). (Also note that since
61−most units have a 90-second timeout before systemd gives up on them,
62−the <command>agetty</command> login prompts should appear eventually
63−unless something is very wrong.)</para>
64−
65−</section>
77+ <para>
78+ If no login prompts or X11 login screens appear (e.g. due to hanging
79+ dependencies), you can press Alt+ArrowUp. If you’re lucky, this will start
80+ rescue mode (described above). (Also note that since most units have a
81+ 90-second timeout before systemd gives up on them, the
82+ <command>agetty</command> login prompts should appear eventually unless
83+ something is very wrong.)
84+ </para>
85+</section>
nixos/doc/manual/administration/cleaning-store.xml+30−39
@@ -3,60 +3,51 @@
33 xmlns:xi="http://www.w3.org/2001/XInclude"
44 version="5.0"
55 xml:id="sec-nix-gc">
6−
7−<title>Cleaning the Nix Store</title>
8−
9−<para>Nix has a purely functional model, meaning that packages are
10−never upgraded in place. Instead new versions of packages end up in a
11−different location in the Nix store (<filename>/nix/store</filename>).
12−You should periodically run Nix’s <emphasis>garbage
13−collector</emphasis> to remove old, unreferenced packages. This is
14−easy:
15−
6+ <title>Cleaning the Nix Store</title>
7+ <para>
8+ Nix has a purely functional model, meaning that packages are never upgraded
9+ in place. Instead new versions of packages end up in a different location in
10+ the Nix store (<filename>/nix/store</filename>). You should periodically run
11+ Nix’s <emphasis>garbage collector</emphasis> to remove old, unreferenced
12+ packages. This is easy:
1613<screen>
1714$ nix-collect-garbage
1815</screen>
19−
20−Alternatively, you can use a systemd unit that does the same in the
21−background:
22−
16+ Alternatively, you can use a systemd unit that does the same in the
17+ background:
2318<screen>
2419# systemctl start nix-gc.service
2520</screen>
26−
27−You can tell NixOS in <filename>configuration.nix</filename> to run
28−this unit automatically at certain points in time, for instance, every
29−night at 03:15:
30−
21+ You can tell NixOS in <filename>configuration.nix</filename> to run this unit
22+ automatically at certain points in time, for instance, every night at 03:15:
3123<programlisting>
32−nix.gc.automatic = true;
33−nix.gc.dates = "03:15";
24+<xref linkend="opt-nix.gc.automatic"/> = true;
25+<xref linkend="opt-nix.gc.dates"/> = "03:15";
3426</programlisting>
35−
36−</para>
37−
38−<para>The commands above do not remove garbage collector roots, such
39−as old system configurations. Thus they do not remove the ability to
40−roll back to previous configurations. The following command deletes
41−old roots, removing the ability to roll back to them:
27+ </para>
28+ <para>
29+ The commands above do not remove garbage collector roots, such as old system
30+ configurations. Thus they do not remove the ability to roll back to previous
31+ configurations. The following command deletes old roots, removing the ability
32+ to roll back to them:
4233<screen>
4334$ nix-collect-garbage -d
4435</screen>
45−You can also do this for specific profiles, e.g.
36+ You can also do this for specific profiles, e.g.
4637<screen>
4738$ nix-env -p /nix/var/nix/profiles/per-user/eelco/profile --delete-generations old
4839</screen>
49−Note that NixOS system configurations are stored in the profile
50−<filename>/nix/var/nix/profiles/system</filename>.</para>
51−
52−<para>Another way to reclaim disk space (often as much as 40% of the
53−size of the Nix store) is to run Nix’s store optimiser, which seeks
54−out identical files in the store and replaces them with hard links to
55−a single copy.
40+ Note that NixOS system configurations are stored in the profile
41+ <filename>/nix/var/nix/profiles/system</filename>.
42+ </para>
43+ <para>
44+ Another way to reclaim disk space (often as much as 40% of the size of the
45+ Nix store) is to run Nix’s store optimiser, which seeks out identical files
46+ in the store and replaces them with hard links to a single copy.
5647<screen>
5748$ nix-store --optimise
5849</screen>
59−Since this command needs to read the entire Nix store, it can take
60−quite a while to finish.</para>
61−
50+ Since this command needs to read the entire Nix store, it can take quite a
51+ while to finish.
52+ </para>
6253</chapter>
nixos/doc/manual/administration/container-networking.xml+36−39
@@ -3,15 +3,13 @@
33 xmlns:xi="http://www.w3.org/2001/XInclude"
44 version="5.0"
55 xml:id="sec-container-networking">
6+ <title>Container Networking</title>
67
7−
8−<title>Container Networking</title>
9−
10−<para>When you create a container using <literal>nixos-container
11−create</literal>, it gets it own private IPv4 address in the range
12−<literal>10.233.0.0/16</literal>. You can get the container’s IPv4
13−address as follows:
14−
8+ <para>
9+ When you create a container using <literal>nixos-container create</literal>,
10+ it gets it own private IPv4 address in the range
11+ <literal>10.233.0.0/16</literal>. You can get the container’s IPv4 address
12+ as follows:
1513<screen>
1614# nixos-container show-ip foo
171510.233.4.2
@@ -19,40 +17,39 @@ address as follows:
1917$ ping -c1 10.233.4.2
201864 bytes from 10.233.4.2: icmp_seq=1 ttl=64 time=0.106 ms
2119</screen>
22−
23−</para>
24−
25−<para>Networking is implemented using a pair of virtual Ethernet
26−devices. The network interface in the container is called
27−<literal>eth0</literal>, while the matching interface in the host is
28−called <literal>ve-<replaceable>container-name</replaceable></literal>
29−(e.g., <literal>ve-foo</literal>). The container has its own network
30−namespace and the <literal>CAP_NET_ADMIN</literal> capability, so it
31−can perform arbitrary network configuration such as setting up
32−firewall rules, without affecting or having access to the host’s
33−network.</para>
34−
35−<para>By default, containers cannot talk to the outside network. If
36−you want that, you should set up Network Address Translation (NAT)
37−rules on the host to rewrite container traffic to use your external
38−IP address. This can be accomplished using the following configuration
39−on the host:
40−
20+ </para>
21+
22+ <para>
23+ Networking is implemented using a pair of virtual Ethernet devices. The
24+ network interface in the container is called <literal>eth0</literal>, while
25+ the matching interface in the host is called
26+ <literal>ve-<replaceable>container-name</replaceable></literal> (e.g.,
27+ <literal>ve-foo</literal>). The container has its own network namespace and
28+ the <literal>CAP_NET_ADMIN</literal> capability, so it can perform arbitrary
29+ network configuration such as setting up firewall rules, without affecting or
30+ having access to the host’s network.
31+ </para>
32+
33+ <para>
34+ By default, containers cannot talk to the outside network. If you want that,
35+ you should set up Network Address Translation (NAT) rules on the host to
36+ rewrite container traffic to use your external IP address. This can be
37+ accomplished using the following configuration on the host:
4138<programlisting>
42−networking.nat.enable = true;
43−networking.nat.internalInterfaces = ["ve-+"];
44−networking.nat.externalInterface = "eth0";
39+<xref linkend="opt-networking.nat.enable"/> = true;
40+<xref linkend="opt-networking.nat.internalInterfaces"/> = ["ve-+"];
41+<xref linkend="opt-networking.nat.externalInterface"/> = "eth0";
4542</programlisting>
46−where <literal>eth0</literal> should be replaced with the desired
47−external interface. Note that <literal>ve-+</literal> is a wildcard
48−that matches all container interfaces.</para>
49−
50−<para>If you are using Network Manager, you need to explicitly prevent
51−it from managing container interfaces:
52−
43+ where <literal>eth0</literal> should be replaced with the desired external
44+ interface. Note that <literal>ve-+</literal> is a wildcard that matches all
45+ container interfaces.
46+ </para>
47+
48+ <para>
49+ If you are using Network Manager, you need to explicitly prevent it from
50+ managing container interfaces:
5351<programlisting>
5452networking.networkmanager.unmanaged = [ "interface-name:ve-*" ];
5553</programlisting>
56−</para>
57−
54+ </para>
5855</section>
nixos/doc/manual/administration/containers.xml+28−28
@@ -3,32 +3,32 @@
33 xmlns:xi="http://www.w3.org/2001/XInclude"
44 version="5.0"
55 xml:id="ch-containers">
6−
7−<title>Container Management</title>
8−
9−<para>NixOS allows you to easily run other NixOS instances as
10−<emphasis>containers</emphasis>. Containers are a light-weight
11−approach to virtualisation that runs software in the container at the
12−same speed as in the host system. NixOS containers share the Nix store
13−of the host, making container creation very efficient.</para>
14−
15−<warning><para>Currently, NixOS containers are not perfectly isolated
16−from the host system. This means that a user with root access to the
17−container can do things that affect the host. So you should not give
18−container root access to untrusted users.</para></warning>
19−
20−<para>NixOS containers can be created in two ways: imperatively, using
21−the command <command>nixos-container</command>, and declaratively, by
22−specifying them in your <filename>configuration.nix</filename>. The
23−declarative approach implies that containers get upgraded along with
24−your host system when you run <command>nixos-rebuild</command>, which
25−is often not what you want. By contrast, in the imperative approach,
26−containers are configured and updated independently from the host
27−system.</para>
28−
29−<xi:include href="imperative-containers.xml" />
30−<xi:include href="declarative-containers.xml" />
31−<xi:include href="container-networking.xml" />
32−
6+ <title>Container Management</title>
7+ <para>
8+ NixOS allows you to easily run other NixOS instances as
9+ <emphasis>containers</emphasis>. Containers are a light-weight approach to
10+ virtualisation that runs software in the container at the same speed as in
11+ the host system. NixOS containers share the Nix store of the host, making
12+ container creation very efficient.
13+ </para>
14+ <warning>
15+ <para>
16+ Currently, NixOS containers are not perfectly isolated from the host system.
17+ This means that a user with root access to the container can do things that
18+ affect the host. So you should not give container root access to untrusted
19+ users.
20+ </para>
21+ </warning>
22+ <para>
23+ NixOS containers can be created in two ways: imperatively, using the command
24+ <command>nixos-container</command>, and declaratively, by specifying them in
25+ your <filename>configuration.nix</filename>. The declarative approach implies
26+ that containers get upgraded along with your host system when you run
27+ <command>nixos-rebuild</command>, which is often not what you want. By
28+ contrast, in the imperative approach, containers are configured and updated
29+ independently from the host system.
30+ </para>
31+ <xi:include href="imperative-containers.xml" />
32+ <xi:include href="declarative-containers.xml" />
33+ <xi:include href="container-networking.xml" />
3334</chapter>
34−
nixos/doc/manual/administration/control-groups.xml+38−46

This diff is too big to show here.

nixos/doc/manual/administration/declarative-containers.xml+44−44

This diff is too big to show here.

nixos/doc/manual/administration/imperative-containers.xml+66−83

This diff is too big to show here.

nixos/doc/manual/administration/logging.xml+21−30

This diff is too big to show here.

nixos/doc/manual/administration/maintenance-mode.xml+7−9

This diff is too big to show here.

nixos/doc/manual/administration/network-problems.xml+14−20

This diff is too big to show here.

nixos/doc/manual/administration/rebooting.xml+20−29

This diff is too big to show here.

nixos/doc/manual/administration/rollback.xml+23−30

This diff is too big to show here.

nixos/doc/manual/administration/running.xml+15−18

This diff is too big to show here.

nixos/doc/manual/administration/service-mgmt.xml+31−42

This diff is too big to show here.

nixos/doc/manual/administration/store-corruption.xml+23−24

This diff is too big to show here.

nixos/doc/manual/administration/troubleshooting.xml+10−12

This diff is too big to show here.

nixos/doc/manual/administration/user-sessions.xml+15−23

This diff is too big to show here.

nixos/doc/manual/configuration/abstractions.xml+57−67

This diff is too big to show here.

nixos/doc/manual/configuration/ad-hoc-network-config.xml+8−12

This diff is too big to show here.

nixos/doc/manual/configuration/ad-hoc-packages.xml+38−40

This diff is too big to show here.

nixos/doc/manual/configuration/adding-custom-packages.xml+27−38

This diff is too big to show here.

nixos/doc/manual/configuration/config-file.xml+112−131

This diff is too big to show here.

nixos/doc/manual/configuration/config-syntax.xml+18−20

This diff is too big to show here.

nixos/doc/manual/configuration/configuration.xml+19−26

This diff is too big to show here.

nixos/doc/manual/configuration/customizing-packages.xml+61−68

This diff is too big to show here.

nixos/doc/manual/configuration/declarative-packages.xml+26−26

This diff is too big to show here.

nixos/doc/manual/configuration/file-systems.xml+35−35

This diff is too big to show here.

nixos/doc/manual/configuration/firewall.xml+27−32

This diff is too big to show here.

nixos/doc/manual/configuration/ipv4-config.xml+30−31

This diff is too big to show here.

nixos/doc/manual/configuration/ipv6-config.xml+29−25

This diff is too big to show here.

nixos/doc/manual/configuration/linux-kernel.xml+49−52

This diff is too big to show here.

nixos/doc/manual/configuration/luks-file-systems.xml+15−21

This diff is too big to show here.

nixos/doc/manual/configuration/modularity.xml+81−93

This diff is too big to show here.

nixos/doc/manual/configuration/network-manager.xml+32−29

This diff is too big to show here.

nixos/doc/manual/configuration/networking.xml+12−15

This diff is too big to show here.

nixos/doc/manual/configuration/package-mgmt.xml+25−28

This diff is too big to show here.

nixos/doc/manual/configuration/ssh.xml+14−19

This diff is too big to show here.

nixos/doc/manual/configuration/summary.xml+202−167

This diff is too big to show here.

nixos/doc/manual/configuration/user-mgmt.xml+64−76

This diff is too big to show here.

nixos/doc/manual/configuration/wireless.xml+24−32

This diff is too big to show here.

nixos/doc/manual/configuration/x-windows.xml+100−105

This diff is too big to show here.

nixos/doc/manual/configuration/xfce.xml+57−79

This diff is too big to show here.

nixos/doc/manual/default.nix+23−14

This diff is too big to show here.

nixos/doc/manual/development/assertions.xml+29−35

This diff is too big to show here.

nixos/doc/manual/development/building-nixos.xml+15−20

This diff is too big to show here.

nixos/doc/manual/development/building-parts.xml+78−79

This diff is too big to show here.

nixos/doc/manual/development/development.xml+14−17

This diff is too big to show here.

nixos/doc/manual/development/importing-modules.xmlnew file+56

This diff is too big to show here.

nixos/doc/manual/development/meta-attributes.xml+28−27

This diff is too big to show here.

nixos/doc/manual/development/nixos-tests.xml+12−13

This diff is too big to show here.

nixos/doc/manual/development/option-declarations.xml+142−113

This diff is too big to show here.

nixos/doc/manual/development/option-def.xml+49−62

This diff is too big to show here.

nixos/doc/manual/development/option-types.xml+627−421

This diff is too big to show here.

nixos/doc/manual/development/releases.xml+215−209

This diff is too big to show here.

nixos/doc/manual/development/replace-modules.xml+26−22

This diff is too big to show here.

nixos/doc/manual/development/running-nixos-tests-interactively.xml+18−21

This diff is too big to show here.

nixos/doc/manual/development/running-nixos-tests.xml+13−18

This diff is too big to show here.

nixos/doc/manual/development/sources.xml+48−65

This diff is too big to show here.

nixos/doc/manual/development/testing-installer.xml+7−14

This diff is too big to show here.

nixos/doc/manual/development/writing-documentation.xml+140−138

This diff is too big to show here.

nixos/doc/manual/development/writing-modules.xml+95−94

This diff is too big to show here.

nixos/doc/manual/development/writing-nixos-tests.xml+338−252

This diff is too big to show here.

nixos/doc/manual/installation/changing-config.xml+58−75

This diff is too big to show here.

nixos/doc/manual/installation/installation.xml+11−15

This diff is too big to show here.

nixos/doc/manual/installation/installing-from-other-distro.xml+321−262

This diff is too big to show here.

nixos/doc/manual/installation/installing-pxe.xml+33−31

This diff is too big to show here.

nixos/doc/manual/installation/installing-usb.xml+49−40

This diff is too big to show here.

nixos/doc/manual/installation/installing-virtualbox-guest.xml+61−43

This diff is too big to show here.

nixos/doc/manual/installation/installing.xml+322−291

This diff is too big to show here.

nixos/doc/manual/installation/obtaining.xml+45−39

This diff is too big to show here.

nixos/doc/manual/installation/upgrading.xml+99−109

This diff is too big to show here.

nixos/doc/manual/man-configuration.xml+26−33

This diff is too big to show here.

nixos/doc/manual/man-nixos-build-vms.xml+76−77

This diff is too big to show here.

nixos/doc/manual/man-nixos-enter.xml+97−97

This diff is too big to show here.

nixos/doc/manual/man-nixos-generate-config.xml+140−149

This diff is too big to show here.

nixos/doc/manual/man-nixos-install.xml+197−191

This diff is too big to show here.

nixos/doc/manual/man-nixos-option.xml+90−99

This diff is too big to show here.

nixos/doc/manual/man-nixos-rebuild.xml+372−356

This diff is too big to show here.

nixos/doc/manual/man-nixos-version.xml+88−83

This diff is too big to show here.

nixos/doc/manual/man-pages.xml+16−29

This diff is too big to show here.

nixos/doc/manual/manual.xml+40−39

This diff is too big to show here.

nixos/doc/manual/options-to-docbook.xsl+4−4

This diff is too big to show here.

nixos/doc/manual/release-notes/release-notes.xml+15−16

This diff is too big to show here.

nixos/doc/manual/release-notes/rl-1310.xml+4−4

This diff is too big to show here.

nixos/doc/manual/release-notes/rl-1404.xml+150−131

This diff is too big to show here.

nixos/doc/manual/release-notes/rl-1412.xml+454−164

This diff is too big to show here.

nixos/doc/manual/release-notes/rl-1509.xml+641−382

This diff is too big to show here.

nixos/doc/manual/release-notes/rl-1603.xml+529−311

This diff is too big to show here.

nixos/doc/manual/release-notes/rl-1609.xml+205−167

This diff is too big to show here.

nixos/doc/manual/release-notes/rl-1703.xml+685−382

This diff is too big to show here.

nixos/doc/manual/release-notes/rl-1709.xml+732−444

This diff is too big to show here.

nixos/doc/manual/release-notes/rl-1803.xml+777−391

This diff is too big to show here.

nixos/doc/manual/release-notes/rl-1809.xmlnew file+243

This diff is too big to show here.

nixos/doc/manual/shell.nixnew file+8

This diff is too big to show here.

nixos/doc/manual/style.cssdeleted−267

This diff is too big to show here.

nixos/doc/xmlformat.confnew file+72

This diff is too big to show here.

nixos/lib/eval-config.nix+2−2

This diff is too big to show here.

nixos/lib/make-ext4-fs.nix+15−9

This diff is too big to show here.

nixos/lib/make-system-tarball.nix+11−3

This diff is too big to show here.

nixos/lib/make-system-tarball.sh+2−3

This diff is too big to show here.

nixos/lib/test-driver/Machine.pm+15−4

This diff is too big to show here.

nixos/lib/testing.nix+10−4

This diff is too big to show here.

pkgs/development/libraries/javascript/jquery-ui/default.nix → nixos/lib/testing/jquery-ui.nixrenamed

The content is the same.

pkgs/development/libraries/javascript/jquery/default.nix → nixos/lib/testing/jquery.nixrenamed

The content is the same.

nixos/maintainers/option-usages.nix+3−3

This diff is too big to show here.

nixos/maintainers/scripts/ec2/amazon-image.nix+5

This diff is too big to show here.

nixos/maintainers/scripts/ec2/create-amis.sh+1−1

This diff is too big to show here.

nixos/maintainers/scripts/gce/create-gce.sh+2−2

This diff is too big to show here.

nixos/modules/config/i18n.nix+1−1

This diff is too big to show here.

nixos/modules/config/no-x-libs.nix+1−1

This diff is too big to show here.

nixos/modules/config/nsswitch.nix+9−9

This diff is too big to show here.

nixos/modules/config/pulseaudio.nix+2

This diff is too big to show here.

nixos/modules/config/system-path.nix−1

This diff is too big to show here.

nixos/modules/config/users-groups.nix+25−29

This diff is too big to show here.

nixos/modules/config/zram.nix+5−5

This diff is too big to show here.

nixos/modules/hardware/onlykey.nixnew file+33

This diff is too big to show here.

nixos/modules/hardware/onlykey.udevnew file+4

This diff is too big to show here.

nixos/modules/hardware/opengl.nix+85−83

This diff is too big to show here.

nixos/modules/hardware/video/amdgpu-pro.nix+15−1

This diff is too big to show here.

nixos/modules/hardware/video/nvidia.nix+6−15

This diff is too big to show here.

nixos/modules/i18n/input-method/default.xml+39−39

This diff is too big to show here.

nixos/modules/installer/cd-dvd/channel.nix+2

This diff is too big to show here.

nixos/modules/installer/cd-dvd/iso-image.nix+3−2

This diff is too big to show here.

nixos/modules/installer/cd-dvd/sd-image-aarch64.nix−3

This diff is too big to show here.

nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix−3

This diff is too big to show here.

nixos/modules/installer/cd-dvd/sd-image-raspberrypi.nix−3

This diff is too big to show here.

nixos/modules/installer/cd-dvd/sd-image.nix+27−7

This diff is too big to show here.

nixos/modules/installer/cd-dvd/system-tarball-fuloong2f.nix+1−1

This diff is too big to show here.

nixos/modules/installer/tools/nix-fallback-paths.nix+4−4

This diff is too big to show here.

nixos/modules/installer/tools/nixos-enter.sh+2−1

This diff is too big to show here.

nixos/modules/installer/tools/nixos-generate-config.pl+3−4

This diff is too big to show here.

nixos/modules/installer/tools/nixos-rebuild.sh+1−1

This diff is too big to show here.

nixos/modules/installer/virtualbox-demo.nix+2

This diff is too big to show here.

nixos/modules/misc/documentation.nixnew file+96

This diff is too big to show here.

nixos/modules/misc/ids.nix+13−9

This diff is too big to show here.

nixos/modules/misc/locate.nix+15−2

This diff is too big to show here.

nixos/modules/misc/nixpkgs.nix+66−9

This diff is too big to show here.

nixos/modules/misc/version.nix+14−13

This diff is too big to show here.

nixos/modules/module-list.nix+23−17

This diff is too big to show here.

nixos/modules/profiles/base.nix+2−1

This diff is too big to show here.

nixos/modules/profiles/demo.nix+6

This diff is too big to show here.

nixos/modules/profiles/docker-container.nix+1−3

This diff is too big to show here.

nixos/modules/profiles/minimal.nix+2−3

This diff is too big to show here.

nixos/modules/programs/bash/bash.nix+2−2

This diff is too big to show here.

nixos/modules/programs/digitalbitbox/doc.xml+19−19

This diff is too big to show here.

nixos/modules/programs/iftop.nixnew file+18

This diff is too big to show here.

nixos/modules/programs/info.nixdeleted−30

This diff is too big to show here.

nixos/modules/programs/less.nix+15−2

This diff is too big to show here.

nixos/modules/programs/man.nixdeleted−31

This diff is too big to show here.

nixos/modules/programs/plotinus.xml+1−1

This diff is too big to show here.

nixos/modules/programs/rootston.nix+1−1

This diff is too big to show here.

nixos/modules/programs/shell.nix+1−1

This diff is too big to show here.

nixos/modules/programs/singularity.nixnew file+20

This diff is too big to show here.

nixos/modules/programs/ssh.nix+1−1

This diff is too big to show here.

nixos/modules/programs/zsh/zsh.nix+1−1

This diff is too big to show here.

nixos/modules/rename.nix+30−12

This diff is too big to show here.

nixos/modules/security/acme.nix+86−43

This diff is too big to show here.

nixos/modules/security/acme.xml+11−11

This diff is too big to show here.

nixos/modules/security/audit.nix+3−3

This diff is too big to show here.

nixos/modules/security/dhparams.nix+147−81

This diff is too big to show here.

nixos/modules/security/duosec.nix+2−2

This diff is too big to show here.

nixos/modules/security/hidepid.xml+6−6

This diff is too big to show here.

nixos/modules/security/pam.nix+14−3

This diff is too big to show here.

nixos/modules/security/sudo.nix+3−3

This diff is too big to show here.

nixos/modules/security/wrappers/wrapper.c+1−1

This diff is too big to show here.

nixos/modules/services/audio/alsa.nix+5

This diff is too big to show here.

nixos/modules/services/backup/almir.nixdeleted−173

This diff is too big to show here.

nixos/modules/services/backup/borgbackup.nixnew file+580

This diff is too big to show here.

nixos/modules/services/backup/duplicati.nixnew file+40

This diff is too big to show here.

nixos/modules/services/backup/restic-rest-server.nixnew file+107

This diff is too big to show here.

nixos/modules/services/backup/restic.nixnew file+150

This diff is too big to show here.

nixos/modules/services/backup/tarsnap.nix+60−7

This diff is too big to show here.

nixos/modules/services/backup/znapzend.nix+1−1

This diff is too big to show here.

nixos/modules/services/cluster/fleet.nixdeleted−150

This diff is too big to show here.

nixos/modules/services/cluster/kubernetes/default.nix+8−8

This diff is too big to show here.

nixos/modules/services/cluster/panamax.nixdeleted−156

This diff is too big to show here.

nixos/modules/services/computing/boinc/client.nix+45−1

This diff is too big to show here.

nixos/modules/services/continuous-integration/buildkite-agent.nix+2−2

This diff is too big to show here.

nixos/modules/services/continuous-integration/jenkins/default.nix+7

This diff is too big to show here.

nixos/modules/services/databases/4store-endpoint.nix+1−1

This diff is too big to show here.

nixos/modules/services/databases/4store.nix+1−1

This diff is too big to show here.

nixos/modules/services/databases/foundationdb.nixnew file+416

This diff is too big to show here.

nixos/modules/services/databases/foundationdb.xmlnew file+322

This diff is too big to show here.

nixos/modules/services/databases/monetdb.nixnew file+100

This diff is too big to show here.

nixos/modules/services/databases/mysql.nix+1−1

This diff is too big to show here.

nixos/modules/services/databases/pgmanage.nix+3−3

This diff is too big to show here.

nixos/modules/services/databases/postgresql.nix+6−9

This diff is too big to show here.

nixos/modules/services/databases/postgresql.xml+6−6

This diff is too big to show here.

nixos/modules/services/editors/emacs.nix+21−2

This diff is too big to show here.

nixos/modules/services/editors/emacs.xml+10−10

This diff is too big to show here.

nixos/modules/services/editors/infinoted.nix+1−1

This diff is too big to show here.

nixos/modules/services/hardware/bluetooth.nix+11−1

This diff is too big to show here.

nixos/modules/services/hardware/lcd.nixnew file+172

This diff is too big to show here.

nixos/modules/services/hardware/trezord.nix+10−3

This diff is too big to show here.

nixos/modules/services/hardware/udev.nix+1−1

This diff is too big to show here.

nixos/modules/services/logging/graylog.nix+1−1

This diff is too big to show here.

nixos/modules/services/mail/dovecot.nix+7−2

This diff is too big to show here.

nixos/modules/services/misc/defaultUnicornConfig.rb+52−188

This diff is too big to show here.

nixos/modules/services/misc/disnix.nix+1−1

This diff is too big to show here.

nixos/modules/services/misc/docker-registry.nix+89−8

This diff is too big to show here.

nixos/modules/services/misc/dysnomia.nix+30−30

This diff is too big to show here.

nixos/modules/services/misc/folding-at-home.nix+1−1

This diff is too big to show here.

nixos/modules/services/misc/geoip-updater.nix+1−1

This diff is too big to show here.

nixos/modules/services/misc/gitea.nix+54−2

This diff is too big to show here.

nixos/modules/services/misc/gitit.nix+1−1

This diff is too big to show here.

nixos/modules/services/misc/gitlab.nix+15−20

This diff is too big to show here.

nixos/modules/services/misc/gitlab.xml+29−30

This diff is too big to show here.

nixos/modules/services/misc/gitweb.nixnew file+59

This diff is too big to show here.

nixos/modules/services/misc/gogs.nix+3

This diff is too big to show here.

nixos/modules/services/misc/home-assistant.nix+46−7

This diff is too big to show here.

nixos/modules/services/misc/ihaskell.nix+1−1

This diff is too big to show here.

nixos/modules/services/misc/logkeys.nix+8−1

This diff is too big to show here.

nixos/modules/services/misc/matrix-synapse.nix+10−10

This diff is too big to show here.

nixos/modules/services/misc/mesos-slave.nix+3−3

This diff is too big to show here.

nixos/modules/services/misc/nix-daemon.nix+8−7

This diff is too big to show here.

nixos/modules/services/misc/nixos-manual.nix+6−6

This diff is too big to show here.

nixos/modules/services/misc/parsoid.nix+3−1

This diff is too big to show here.

nixos/modules/services/misc/safeeyes.nixnew file+50

This diff is too big to show here.

nixos/modules/services/misc/serviio.nixnew file+92

This diff is too big to show here.

nixos/modules/services/misc/ssm-agent.nix+1−1

This diff is too big to show here.

nixos/modules/services/misc/taskserver/doc.xml+6−6

This diff is too big to show here.

nixos/modules/services/monitoring/apcupsd.nix+1−1

This diff is too big to show here.

nixos/modules/services/monitoring/grafana.nix+14−2

This diff is too big to show here.

nixos/modules/services/monitoring/monit.nix+6−10

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/blackbox-exporter.nixdeleted−68

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/collectd-exporter.nixdeleted−128

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/exporters.nixnew file+174

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/exporters.xmlnew file+135

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/exporters/blackbox.nixnew file+31

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/exporters/collectd.nixnew file+78

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/exporters/dovecot.nixnew file+50

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/exporters/fritzbox.nixnew file+39

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/exporters/json.nixnew file+36

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/exporters/minio.nixnew file+65

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/exporters/nginx.nixnew file+47

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/exporters/node.nixnew file+39

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/exporters/postfix.nixnew file+81

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/exporters/snmp.nixnew file+71

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/exporters/surfboard.nixnew file+32

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/exporters/unifi.nixnew file+67

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/exporters/varnish.nixnew file+87

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/fritzbox-exporter.nixdeleted−76

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/json-exporter.nixdeleted−74

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/minio-exporter.nixdeleted−117

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/nginx-exporter.nixdeleted−78

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/node-exporter.nixdeleted−87

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/snmp-exporter.nixdeleted−127

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/unifi-exporter.nixdeleted−105

This diff is too big to show here.

nixos/modules/services/monitoring/prometheus/varnish-exporter.nixdeleted−61

This diff is too big to show here.

nixos/modules/services/monitoring/smartd.nix+1−1

This diff is too big to show here.

nixos/modules/services/network-filesystems/ipfs.nix+1−1

This diff is too big to show here.

nixos/modules/services/network-filesystems/xtreemfs.nix+1−1

This diff is too big to show here.

nixos/modules/services/network-filesystems/yandex-disk.nix+2−2

This diff is too big to show here.

nixos/modules/services/networking/amuled.nix+1−1

This diff is too big to show here.

nixos/modules/services/networking/dante.nix+7−6

This diff is too big to show here.

nixos/modules/services/networking/ddclient.nix+59−53

This diff is too big to show here.

nixos/modules/services/networking/dhcpd.nix+1

This diff is too big to show here.

nixos/modules/services/networking/dnscache.nix+24−7

This diff is too big to show here.

nixos/modules/services/networking/dnscrypt-proxy.xml+10−10

This diff is too big to show here.

nixos/modules/services/networking/firewall.nix+4−1

This diff is too big to show here.

nixos/modules/services/networking/flashpolicyd.nix+1−1

This diff is too big to show here.

nixos/modules/services/networking/gnunet.nix+11−3

This diff is too big to show here.

nixos/modules/services/networking/hans.nixnew file+145

This diff is too big to show here.

nixos/modules/services/networking/hostapd.nix−5

This diff is too big to show here.

nixos/modules/services/networking/iodine.nix+17−5

This diff is too big to show here.

nixos/modules/services/networking/iwd.nix+1−1

This diff is too big to show here.

nixos/modules/services/networking/keepalived/default.nix+60−2

This diff is too big to show here.

nixos/modules/services/networking/keepalived/vrrp-options.nix → nixos/modules/services/networking/keepalived/vrrp-instance-options.nixrenamed+14

This diff is too big to show here.

nixos/modules/services/networking/keepalived/vrrp-script-options.nixnew file+64

This diff is too big to show here.

nixos/modules/services/networking/matterbridge.nix+53−31

This diff is too big to show here.

nixos/modules/services/networking/minidlna.nix+29−14

This diff is too big to show here.

nixos/modules/services/networking/murmur.nix+2−1

This diff is too big to show here.

nixos/modules/services/networking/ndppd.nixnew file+47

This diff is too big to show here.

nixos/modules/services/networking/networkmanager.nix+16−15

This diff is too big to show here.

nixos/modules/services/networking/nftables.nix+1−1

This diff is too big to show here.

nixos/modules/services/networking/nix-serve.nix+2

This diff is too big to show here.

nixos/modules/services/networking/nsd.nix+141−8

This diff is too big to show here.

nixos/modules/services/networking/openvpn.nix+1−1

This diff is too big to show here.

nixos/modules/services/networking/prosody.nix+221−29

This diff is too big to show here.

nixos/modules/services/networking/quagga.nix+1−1

This diff is too big to show here.

nixos/modules/services/networking/radicale.nix+2−2

This diff is too big to show here.

nixos/modules/services/networking/rdnssd.nix+1−1

This diff is too big to show here.

nixos/modules/services/networking/resilio.nix+1−6

This diff is too big to show here.

nixos/modules/services/networking/shadowsocks.nixnew file+112

This diff is too big to show here.

nixos/modules/services/networking/ssh/sshd.nix+62−8

This diff is too big to show here.

nixos/modules/services/networking/strongswan-swanctl/module.nixnew file+82

This diff is too big to show here.

nixos/modules/services/networking/strongswan-swanctl/param-constructors.nixnew file+162

This diff is too big to show here.

nixos/modules/services/networking/strongswan-swanctl/param-lib.nixnew file+82

This diff is too big to show here.

nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nixnew file+1168

This diff is too big to show here.

nixos/modules/services/networking/tcpcrypt.nix+5−5

This diff is too big to show here.

nixos/modules/services/networking/unbound.nix+1−1

This diff is too big to show here.

nixos/modules/services/networking/unifi.nix+32−5

This diff is too big to show here.

nixos/modules/services/networking/wireguard.nix+51−50

This diff is too big to show here.

nixos/modules/services/networking/zerotierone.nix+18−4

This diff is too big to show here.

nixos/modules/services/printing/cupsd.nix+17−5

This diff is too big to show here.

nixos/modules/services/search/elasticsearch.nix+5−2

This diff is too big to show here.

nixos/modules/services/security/hologram-server.nix+33−5

This diff is too big to show here.

nixos/modules/services/security/oauth2_proxy.nix+106−60

This diff is too big to show here.

nixos/modules/services/security/sshguard.nix+1

This diff is too big to show here.

nixos/modules/services/security/tor.nix+18−7

This diff is too big to show here.

nixos/modules/services/security/torify.nix+1−1

This diff is too big to show here.

nixos/modules/services/security/torsocks.nix+1−1

This diff is too big to show here.

nixos/modules/services/torrent/deluge.nix+2−12

This diff is too big to show here.

nixos/modules/services/torrent/transmission.nix+17−5

This diff is too big to show here.

nixos/modules/services/web-apps/atlassian/jira.nix+1−1

This diff is too big to show here.

nixos/modules/services/web-apps/nixbot.nixdeleted−149

This diff is too big to show here.

nixos/modules/services/web-apps/tt-rss.nix+4−4

This diff is too big to show here.

nixos/modules/services/web-apps/youtrack.nixnew file+177

This diff is too big to show here.

nixos/modules/services/web-servers/apache-httpd/owncloud.nix+1−1

This diff is too big to show here.

nixos/modules/services/web-servers/apache-httpd/per-server-options.nix+1−1

This diff is too big to show here.

nixos/modules/services/web-servers/caddy.nix+3−3

This diff is too big to show here.

nixos/modules/services/web-servers/hitch/default.nixnew file+108

This diff is too big to show here.

nixos/modules/services/web-servers/lighttpd/gitweb.nix+8−27

This diff is too big to show here.

nixos/modules/services/web-servers/nginx/default.nix+22−15

This diff is too big to show here.

nixos/modules/services/web-servers/nginx/gitweb.nixnew file+61

This diff is too big to show here.

nixos/modules/services/web-servers/nginx/vhost-options.nix+8

This diff is too big to show here.

nixos/modules/services/web-servers/tomcat.nix+191−189

This diff is too big to show here.

nixos/modules/services/web-servers/varnish/default.nix+14−5

This diff is too big to show here.

nixos/modules/services/x11/desktop-managers/default.nix+3−3

This diff is too big to show here.

nixos/modules/services/x11/desktop-managers/gnome3.nix+1−2

This diff is too big to show here.

nixos/modules/services/x11/desktop-managers/lxqt.nix+2

This diff is too big to show here.

nixos/modules/services/x11/desktop-managers/mate.nix+2

This diff is too big to show here.

nixos/modules/services/x11/desktop-managers/xfce.nix+1−1

This diff is too big to show here.

nixos/modules/services/x11/desktop-managers/xterm.nix+1

This diff is too big to show here.

nixos/modules/services/x11/display-managers/slim.nix+1−1

This diff is too big to show here.

nixos/modules/services/x11/window-managers/bspwm.nix+1−1

This diff is too big to show here.

nixos/modules/services/x11/window-managers/default.nix+2−3

This diff is too big to show here.

nixos/modules/services/x11/xserver.nix+5−18

This diff is too big to show here.

nixos/modules/system/activation/activation-script.nix+1−1

This diff is too big to show here.

nixos/modules/system/activation/switch-to-configuration.pl+9−10

This diff is too big to show here.

nixos/modules/system/activation/top-level.nix+2−1

This diff is too big to show here.

nixos/modules/system/boot/coredump.nix+5−2

This diff is too big to show here.

nixos/modules/system/boot/grow-partition.nix+10−3

This diff is too big to show here.

nixos/modules/system/boot/kernel.nix+2−2

This diff is too big to show here.

nixos/modules/system/boot/kexec.nix+19−18

This diff is too big to show here.

nixos/modules/system/boot/loader/grub/grub.nix+3−3

This diff is too big to show here.

nixos/modules/system/boot/loader/grub/install-grub.pl+1−1

This diff is too big to show here.

nixos/modules/system/boot/loader/raspberrypi/builder.sh+4

This diff is too big to show here.

nixos/modules/system/boot/loader/raspberrypi/builder_uboot.nixnew file+34

This diff is too big to show here.

nixos/modules/system/boot/loader/raspberrypi/builder_uboot.shnew file+29

This diff is too big to show here.

nixos/modules/system/boot/loader/raspberrypi/raspberrypi.nix+83−17

This diff is too big to show here.

nixos/modules/system/boot/luksroot.nix−1

This diff is too big to show here.

nixos/modules/system/boot/networkd.nix+5−1

This diff is too big to show here.

nixos/modules/system/boot/stage-1-init.sh+26−33

This diff is too big to show here.

nixos/modules/system/boot/stage-1.nix+49−5

This diff is too big to show here.

nixos/modules/system/boot/stage-2-init.sh+4−4

This diff is too big to show here.

nixos/modules/system/boot/stage-2.nix+1

This diff is too big to show here.

nixos/modules/system/boot/systemd-nspawn.nix+1−1

This diff is too big to show here.

nixos/modules/system/boot/systemd-unit-options.nix+1−1

This diff is too big to show here.

nixos/modules/system/boot/systemd.nix+24−9

This diff is too big to show here.

nixos/modules/tasks/filesystems/exfat.nix+1−1

This diff is too big to show here.

nixos/modules/tasks/filesystems/zfs.nix+3−1

This diff is too big to show here.

nixos/modules/tasks/kbd.nix+1−1

This diff is too big to show here.

nixos/modules/tasks/network-interfaces-scripted.nix+3−4

This diff is too big to show here.

nixos/modules/tasks/network-interfaces.nix+6−35

This diff is too big to show here.

nixos/modules/testing/test-instrumentation.nix+6

This diff is too big to show here.

nixos/modules/virtualisation/amazon-image.nix−7

This diff is too big to show here.

nixos/modules/virtualisation/amazon-init.nix+1−1

This diff is too big to show here.

nixos/modules/virtualisation/amazon-options.nix+1−1

This diff is too big to show here.

nixos/modules/virtualisation/azure-agent.nix+7−3

This diff is too big to show here.

nixos/modules/virtualisation/containers.nix+19−7

This diff is too big to show here.

nixos/modules/virtualisation/ec2-amis.nix+18−1

This diff is too big to show here.

nixos/modules/virtualisation/google-compute-image.nix+23−2

This diff is too big to show here.

nixos/modules/virtualisation/libvirtd.nix+3−11

This diff is too big to show here.

nixos/modules/virtualisation/lxc.nix+4−1

This diff is too big to show here.

nixos/modules/virtualisation/lxd.nix+33−27

This diff is too big to show here.

nixos/modules/virtualisation/openvswitch.nix+1−1

This diff is too big to show here.

nixos/modules/virtualisation/qemu-guest-agent.nixnew file+36

This diff is too big to show here.

nixos/modules/virtualisation/qemu-vm.nix+65−21

This diff is too big to show here.

nixos/modules/virtualisation/virtualbox-host.nix+4−4

This diff is too big to show here.

nixos/modules/virtualisation/xen-dom0.nix+9−3

This diff is too big to show here.

nixos/release-combined.nix+14−7

This diff is too big to show here.

nixos/release.nix+58−27

This diff is too big to show here.

nixos/tests/acme.nix+3−1

This diff is too big to show here.

nixos/tests/atd.nix−6

This diff is too big to show here.

nixos/tests/borgbackup.nix+152−11

This diff is too big to show here.

nixos/tests/chromium.nix+27−2

This diff is too big to show here.

nixos/tests/common/letsencrypt.nix+24−4

This diff is too big to show here.

nixos/tests/containers-imperative.nix+2−2

This diff is too big to show here.

nixos/tests/containers-physical_interfaces.nix+2−2

This diff is too big to show here.

nixos/tests/containers-tmpfs.nix+1−1

This diff is too big to show here.

nixos/tests/deluge.nixnew file+29

This diff is too big to show here.

nixos/tests/dhparams.nixnew file+144

This diff is too big to show here.

nixos/tests/docker-registry.nix+21−1

This diff is too big to show here.

nixos/tests/docker-tools-overlay.nixnew file+32

This diff is too big to show here.

nixos/tests/docker-tools.nix+15−5

This diff is too big to show here.

nixos/tests/dovecot.nix+16−3

This diff is too big to show here.

nixos/tests/fleet.nixdeleted−76

This diff is too big to show here.

nixos/tests/gnome3-gdm.nix+10−3

This diff is too big to show here.

nixos/tests/grafana.nix+1−1

This diff is too big to show here.

nixos/tests/graphite.nix+13−7

This diff is too big to show here.

nixos/tests/hibernate.nix+1−1

This diff is too big to show here.

nixos/tests/hitch/default.nixnew file+33

This diff is too big to show here.

nixos/tests/hitch/example.pemnew file+53

This diff is too big to show here.

nixos/tests/hitch/example/index.txtnew file+1

This diff is too big to show here.

nixos/tests/home-assistant.nix+6−6

This diff is too big to show here.

nixos/tests/iftop.nixnew file+30

This diff is too big to show here.

nixos/tests/installer.nix+11−4

This diff is too big to show here.

nixos/tests/kafka.nixnew file+68

This diff is too big to show here.

nixos/tests/kafka_0_10.nixdeleted−48

This diff is too big to show here.

nixos/tests/kafka_0_11.nixdeleted−48

This diff is too big to show here.

nixos/tests/kafka_0_9.nixdeleted−48

This diff is too big to show here.

nixos/tests/kafka_1_0.nixdeleted−48

This diff is too big to show here.

nixos/tests/kernel-copperhead.nix+2−2

This diff is too big to show here.

nixos/tests/keymap.nix+45−84

This diff is too big to show here.

nixos/tests/kubernetes/certs.nix+52−19

This diff is too big to show here.

nixos/tests/kubernetes/e2e.nix+1−1

This diff is too big to show here.

nixos/tests/kubernetes/rbac.nix+2−2

This diff is too big to show here.

nixos/tests/mesos.nix+3−1

This diff is too big to show here.

nixos/tests/misc.nix+1−1

This diff is too big to show here.

nixos/tests/mysql-backup.nix+12−4

This diff is too big to show here.

nixos/tests/nsd.nix+9

This diff is too big to show here.

nixos/tests/openldap.nix+2−2

This diff is too big to show here.

nixos/tests/osquery.nixnew file+28

This diff is too big to show here.

nixos/tests/panamax.nixdeleted−21

This diff is too big to show here.

nixos/tests/plotinus.nix+5−5

This diff is too big to show here.

nixos/tests/predictable-interface-names.nix+22−25

This diff is too big to show here.

nixos/tests/printing.nix+3−1

This diff is too big to show here.

nixos/tests/prosody.nixnew file+75

This diff is too big to show here.

nixos/tests/radicale.nix+2−2

This diff is too big to show here.

nixos/tests/statsd.nix+1−1

This diff is too big to show here.

nixos/tests/strongswan-swanctl.nixnew file+148

This diff is too big to show here.

nixos/tests/systemd.nix+2

This diff is too big to show here.

nixos/tests/transmission.nixnew file+21

This diff is too big to show here.

nixos/tests/udisks2.nix+3−2

This diff is too big to show here.

nixos/tests/vault.nix+2−2

This diff is too big to show here.

nixos/tests/virtualbox.nix+3

This diff is too big to show here.

nixos/tests/xautolock.nixnew file+24

This diff is too big to show here.

pkgs/applications/altcoins/bitcoin-abc.nix+2−2

This diff is too big to show here.

pkgs/applications/altcoins/bitcoin-classic.nix+2−2

This diff is too big to show here.

pkgs/applications/altcoins/bitcoin-unlimited-const-comparators.patchnew file+38

This diff is too big to show here.

pkgs/applications/altcoins/bitcoin-unlimited.nix+13−6

This diff is too big to show here.

pkgs/applications/altcoins/bitcoin-xt.nix+7−5

This diff is too big to show here.

pkgs/applications/altcoins/btc1.nix+2−2

This diff is too big to show here.

pkgs/applications/altcoins/dcrd.nix+1

This diff is too big to show here.

pkgs/applications/altcoins/dcrwallet.nix+1

This diff is too big to show here.

pkgs/applications/altcoins/default.nix+37−15

This diff is too big to show here.

pkgs/applications/altcoins/ethsign/default.nix+1−1

This diff is too big to show here.

pkgs/applications/altcoins/freicoin.nix+1−1

This diff is too big to show here.

pkgs/applications/altcoins/go-ethereum.nix+2−2

This diff is too big to show here.

pkgs/applications/altcoins/hevm.nix+1

This diff is too big to show here.

pkgs/applications/altcoins/litecoin.nix+2−2

This diff is too big to show here.

pkgs/applications/altcoins/masari.nixnew file+27

This diff is too big to show here.

pkgs/applications/altcoins/memorycoin.nix+1−1

This diff is too big to show here.

pkgs/applications/altcoins/mist.nixnew file+71

This diff is too big to show here.

pkgs/applications/altcoins/monero-gui/default.nix+8−6

This diff is too big to show here.

pkgs/applications/altcoins/monero-gui/move-log-file.patch+13−17

This diff is too big to show here.

pkgs/applications/altcoins/monero/build-wallet-rpc.patchdeleted−78

This diff is too big to show here.

pkgs/applications/altcoins/monero/default.nix+26−19

This diff is too big to show here.

pkgs/applications/altcoins/namecoin.nix+2−2

This diff is too big to show here.

pkgs/applications/altcoins/nano-wallet/CMakeLists.txt.patchnew file+13

This diff is too big to show here.

pkgs/applications/altcoins/nano-wallet/default.nixnew file+57

This diff is too big to show here.

pkgs/applications/altcoins/parity-ui/default.nixnew file+50

This diff is too big to show here.

pkgs/applications/altcoins/parity-ui/env.nixnew file+19

This diff is too big to show here.

pkgs/applications/altcoins/parity/beta.nixnew file+7

This diff is too big to show here.

pkgs/applications/altcoins/parity/default.nixnew file+7

This diff is too big to show here.

pkgs/applications/altcoins/parity/parity.nixnew file+38

This diff is too big to show here.

pkgs/applications/altcoins/parity/patches/vendored-sources-1.10.patchnew file+114

This diff is too big to show here.

pkgs/applications/altcoins/parity/patches/vendored-sources-1.9.patchnew file+101

This diff is too big to show here.

pkgs/applications/altcoins/particl/particl-core.nixnew file+47

This diff is too big to show here.

pkgs/applications/audio/aj-snapshot/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/asunder/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/audacious/default.nix+1−1

This diff is too big to show here.

pkgs/applications/audio/audacious/qt-5.nix+1−1

This diff is too big to show here.

pkgs/applications/audio/bitwig-studio/bitwig-studio2.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/caps/default.nix+5−1

This diff is too big to show here.

pkgs/applications/audio/cava/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/cdparanoia/default.nix+2−1

This diff is too big to show here.

pkgs/applications/audio/cdparanoia/fix_private_keyword.patchnew file+468

This diff is too big to show here.

pkgs/applications/audio/chuck/clang.patchnew file+58

This diff is too big to show here.

pkgs/applications/audio/chuck/default.nix+13−6

This diff is too big to show here.

pkgs/applications/audio/clementine/default.nix+22−35

This diff is too big to show here.

pkgs/applications/audio/crip/default.nixnew file+68

This diff is too big to show here.

pkgs/applications/audio/csound/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/deadbeef/default.nix+1−1

This diff is too big to show here.

pkgs/applications/audio/dragonfly-reverb/default.nixnew file+33

This diff is too big to show here.

pkgs/applications/audio/drumkv1/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/easytag/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/eflite/buf-overflow.patchdeleted−22

This diff is too big to show here.

pkgs/applications/audio/eflite/cvs-update.patchdeleted−98

This diff is too big to show here.

pkgs/applications/audio/eflite/default.nix+25−6

This diff is too big to show here.

pkgs/applications/audio/eflite/link.patchdeleted−11

This diff is too big to show here.

pkgs/applications/audio/elisa/default.nixnew file+35

This diff is too big to show here.

pkgs/applications/audio/eq10q/default.nix+10−1

This diff is too big to show here.

pkgs/applications/audio/faust/faust1.nix+1−1

This diff is too big to show here.

pkgs/applications/audio/faust/faust2.nix+3−3

This diff is too big to show here.

pkgs/applications/audio/flacon/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/fldigi/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/fluidsynth/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/fmit/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/freewheeling/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/gmpc/default.nix+1−1

This diff is too big to show here.

pkgs/applications/audio/google-play-music-desktop-player/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/gtkpod/default.nix+8−15

This diff is too big to show here.

pkgs/applications/audio/guitarix/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/kid3/default.nix+11−12

This diff is too big to show here.

pkgs/applications/audio/lastfmsubmitd/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/mi2ly/default.nix+1

This diff is too big to show here.

pkgs/applications/audio/mopidy-gmusic/default.nix → pkgs/applications/audio/mopidy/gmusic.nixrenamed+1−1

This diff is too big to show here.

pkgs/applications/audio/mopidy-iris/default.nix → pkgs/applications/audio/mopidy/iris.nixrenamed+5−2

This diff is too big to show here.

pkgs/applications/audio/mopidy-local-images/default.nix → pkgs/applications/audio/mopidy/local-images.nixrenamed

The content is the same.

pkgs/applications/audio/mopidy-local-sqlite/default.nix → pkgs/applications/audio/mopidy/local-sqlite.nixrenamed

The content is the same.

pkgs/applications/audio/mopidy-moped/default.nix → pkgs/applications/audio/mopidy/moped.nixrenamed

The content is the same.

pkgs/applications/audio/mopidy-mopify/default.nix → pkgs/applications/audio/mopidy/mopify.nixrenamed

The content is the same.

pkgs/applications/audio/mopidy-musicbox-webclient/default.nix → pkgs/applications/audio/mopidy/musicbox-webclient.nixrenamed

The content is the same.

pkgs/applications/audio/mopidy-soundcloud/default.nix → pkgs/applications/audio/mopidy/soundcloud.nixrenamed

The content is the same.

pkgs/applications/audio/mopidy-spotify-tunigo/default.nix → pkgs/applications/audio/mopidy/spotify-tunigo.nixrenamed

The content is the same.

pkgs/applications/audio/mopidy-spotify/default.nix → pkgs/applications/audio/mopidy/spotify.nixrenamed+1−1

This diff is too big to show here.

pkgs/applications/audio/mopidy-youtube/default.nix → pkgs/applications/audio/mopidy/youtube.nixrenamed

The content is the same.

pkgs/applications/audio/mp3blaster/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/mpc123/default.nix+1−1

This diff is too big to show here.

pkgs/applications/audio/mpg123/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/mpg321/default.nix+1−1

This diff is too big to show here.

pkgs/applications/audio/ncmpc/default.nix+2−4

This diff is too big to show here.

pkgs/applications/audio/ncmpcpp/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/padthv1/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/pamixer/default.nix+12−5

This diff is too big to show here.

pkgs/applications/audio/pd-plugins/helmholtz/default.nix+3

This diff is too big to show here.

pkgs/applications/audio/praat/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/qmmp/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/quodlibet/default.nix+28−13

This diff is too big to show here.

pkgs/applications/audio/radiotray-ng/default.nix+4−3

This diff is too big to show here.

pkgs/applications/audio/rhvoice/default.nixnew file+48

This diff is too big to show here.

pkgs/applications/audio/rhvoice/honor_nix_environment.patchnew file+14

This diff is too big to show here.

pkgs/applications/audio/rhythmbox/default.nix+9

This diff is too big to show here.

pkgs/applications/audio/samplv1/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/snd/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/sonata/default.nix+1−3

This diff is too big to show here.

pkgs/applications/audio/sound-juicer/default.nix+21−29

This diff is too big to show here.

pkgs/applications/audio/soundscape-renderer/default.nix+2

This diff is too big to show here.

pkgs/applications/audio/spotify/default.nix+5−8

This diff is too big to show here.

pkgs/applications/audio/squishyball/default.nix+2

This diff is too big to show here.

pkgs/applications/audio/streamripper/default.nix+2−3

This diff is too big to show here.

pkgs/applications/audio/synthv1/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/x42-plugins/default.nix+2−2

This diff is too big to show here.

pkgs/applications/audio/yoshimi/default.nix+2−2

This diff is too big to show here.

pkgs/applications/backup/deja-dup/default.nix+9−18

This diff is too big to show here.

pkgs/applications/backup/deja-dup/fix-paths.patch+10−11

This diff is too big to show here.

pkgs/applications/display-managers/lightdm-gtk-greeter/default.nix → pkgs/applications/display-managers/lightdm/gtk-greeter.nixrenamed+4−2

This diff is too big to show here.

pkgs/applications/display-managers/sddm/default.nix+4

This diff is too big to show here.

pkgs/applications/display-managers/slim/default.nix+5−2

This diff is too big to show here.

pkgs/applications/editors/android-studio/common.nix+10−1

This diff is too big to show here.

pkgs/applications/editors/android-studio/default.nix+42−15

This diff is too big to show here.

pkgs/applications/editors/atom/default.nix+5−3

This diff is too big to show here.

pkgs/applications/editors/bonzomatic/default.nixnew file+30

This diff is too big to show here.

pkgs/applications/editors/codeblocks/default.nix+4−8

This diff is too big to show here.

pkgs/applications/editors/dit/default.nixnew file+30

This diff is too big to show here.

pkgs/applications/editors/eclipse/build-eclipse.nix+4−4

This diff is too big to show here.

pkgs/applications/editors/eclipse/default.nix+3−3

This diff is too big to show here.

pkgs/applications/editors/eclipse/plugins.nix+38−20

This diff is too big to show here.

pkgs/applications/editors/edbrowse/default.nix+8−10

This diff is too big to show here.

pkgs/applications/editors/emacs-modes/calfw/default.nix+1−1

This diff is too big to show here.

pkgs/applications/editors/emacs-modes/elpa-generated.nix+88−47

This diff is too big to show here.

pkgs/applications/editors/emacs-modes/icicles/default.nix+14−14

This diff is too big to show here.

pkgs/applications/editors/emacs-modes/jdee/default.nix+1−1

This diff is too big to show here.

pkgs/applications/editors/emacs-modes/melpa-generated.nix+3020−2400

This diff is too big to show here.

pkgs/applications/editors/emacs-modes/melpa-packages.nix+3−25

This diff is too big to show here.

pkgs/applications/editors/emacs-modes/melpa-stable-generated.nix+1246−794

This diff is too big to show here.

pkgs/applications/editors/emacs-modes/melpa-stable-packages.nix+2−6

This diff is too big to show here.

pkgs/applications/editors/emacs-modes/org-generated.nix+6−6

This diff is too big to show here.

pkgs/applications/editors/focuswriter/default.nix+3−3

This diff is too big to show here.

pkgs/applications/editors/geany/default.nix+2−4

This diff is too big to show here.

pkgs/applications/editors/ghostwriter/default.nix+2−2

This diff is too big to show here.

pkgs/applications/editors/hexcurse/default.nix+13−1

This diff is too big to show here.

pkgs/applications/editors/ht/default.nix+2

This diff is too big to show here.

pkgs/applications/editors/ht/gcc7.patchnew file+11

This diff is too big to show here.

pkgs/applications/editors/jetbrains/default.nix+32−29

This diff is too big to show here.

pkgs/applications/editors/kakoune/default.nix+3−3

This diff is too big to show here.

pkgs/applications/editors/kodestudio/default.nix+1−1

This diff is too big to show here.

pkgs/applications/editors/moe/default.nix+1−1

This diff is too big to show here.

pkgs/applications/editors/nano/default.nix+2−2

This diff is too big to show here.

pkgs/applications/editors/neovim/default.nix+1

This diff is too big to show here.

pkgs/applications/editors/neovim/ruby_provider/Gemfile.lock+2−2

This diff is too big to show here.

pkgs/applications/editors/neovim/ruby_provider/gemset.nix+4−4

This diff is too big to show here.

pkgs/applications/kde/okteta.nix → pkgs/applications/editors/okteta/default.nixrenamed+9−3

This diff is too big to show here.

pkgs/applications/editors/rstudio/default.nix+2−2

This diff is too big to show here.

pkgs/applications/editors/sublime/default.nix → pkgs/applications/editors/sublime/2/default.nixrenamed+2−2

This diff is too big to show here.

pkgs/applications/editors/sublime3/default.nix → pkgs/applications/editors/sublime/3/common.nixrenamed+26−21

This diff is too big to show here.

pkgs/applications/editors/sublime/3/packages.nixnew file+18

This diff is too big to show here.

pkgs/applications/editors/texmacs/common.nixnew file+68

This diff is too big to show here.

pkgs/applications/editors/texmacs/darwin.nixnew file+59

This diff is too big to show here.

pkgs/applications/editors/texmacs/darwin.patchnew file+29

This diff is too big to show here.

pkgs/applications/editors/texmacs/default.nix+18−73

This diff is too big to show here.

pkgs/applications/editors/texmaker/default.nix+9−6

This diff is too big to show here.

pkgs/applications/editors/texstudio/default.nix+7−6

This diff is too big to show here.

pkgs/applications/editors/tiled/default.nix+3−3

This diff is too big to show here.

pkgs/applications/editors/typora/default.nix+3−3

This diff is too big to show here.

pkgs/applications/editors/vim/common.nix+2−2

This diff is too big to show here.

pkgs/applications/editors/vim/configurable.nix+6

This diff is too big to show here.

pkgs/applications/editors/vim/ft-nix-support.patch+1−70

This diff is too big to show here.

pkgs/applications/editors/vis/default.nix+6−2

This diff is too big to show here.

pkgs/applications/editors/vscode/default.nix+5−5

This diff is too big to show here.

pkgs/applications/editors/vscode-with-extensions/default.nix → pkgs/applications/editors/vscode/with-extensions.nixrenamed

The content is the same.

pkgs/applications/editors/wxhexeditor/default.nix+19−9

This diff is too big to show here.

pkgs/applications/editors/zed/default.nixdeleted−82

This diff is too big to show here.

pkgs/applications/editors/zed/deps.jsondeleted−6

This diff is too big to show here.

pkgs/applications/editors/zed/deps.shdeleted−7

This diff is too big to show here.

pkgs/applications/editors/zed/node-packages.nixdeleted−877

This diff is too big to show here.

pkgs/applications/editors/zed/node.nixdeleted−16

This diff is too big to show here.

pkgs/applications/gis/grass/default.nix+13−2

This diff is too big to show here.

pkgs/applications/gis/grass/no_symbolic_links.patchnew file+37

This diff is too big to show here.

pkgs/applications/gis/openorienteering-mapper/default.nixnew file+68

This diff is too big to show here.

pkgs/applications/gis/qgis/default.nix+49−14

This diff is too big to show here.

pkgs/applications/gis/saga/default.nix+3−3

This diff is too big to show here.

pkgs/applications/graphics/ImageMagick/7.0.nix+2−2

This diff is too big to show here.

pkgs/applications/graphics/ImageMagick/default.nix+1−1

This diff is too big to show here.

pkgs/applications/graphics/ahoviewer/default.nix+26−16

This diff is too big to show here.

pkgs/applications/graphics/ao/default.nix+1

This diff is too big to show here.

pkgs/applications/graphics/avocode/default.nixnew file+99

This diff is too big to show here.

pkgs/applications/graphics/c3d/default.nix+4−3

This diff is too big to show here.

pkgs/applications/graphics/darktable/default.nix+2−2

This diff is too big to show here.

pkgs/applications/graphics/digikam/default.nix+3−3

This diff is too big to show here.

pkgs/applications/graphics/displaycal/default.nix+5−4

This diff is too big to show here.

pkgs/applications/graphics/dosage/default.nixnew file+28

This diff is too big to show here.

pkgs/applications/graphics/draftsight/default.nix+1−3

This diff is too big to show here.

pkgs/applications/graphics/epeg/default.nixnew file+31

This diff is too big to show here.

pkgs/applications/graphics/exrdisplay/default.nix+3−3

This diff is too big to show here.

pkgs/applications/graphics/fbida/default.nix+6−3

This diff is too big to show here.

pkgs/applications/graphics/feh/default.nix+2−2

This diff is too big to show here.

pkgs/applications/graphics/fstl/default.nixnew file+35

This diff is too big to show here.

pkgs/applications/graphics/geeqie/default.nix+1−1

This diff is too big to show here.

pkgs/applications/graphics/gimp/2.8.nixdeleted−58

This diff is too big to show here.

pkgs/applications/graphics/gimp/default.nixnew file+96

This diff is too big to show here.

pkgs/applications/graphics/gimp/plugins/default.nix+13−56

This diff is too big to show here.

pkgs/applications/graphics/gimp/wrapper.nix+4−3

This diff is too big to show here.

pkgs/applications/graphics/gnuclad/default.nixnew file+22

This diff is too big to show here.

pkgs/applications/graphics/gocr/default.nix+2−2

This diff is too big to show here.

pkgs/applications/graphics/goxel/default.nix+4−2

This diff is too big to show here.

pkgs/applications/graphics/goxel/disable-imgui_ini.patchnew file+13

This diff is too big to show here.

pkgs/applications/graphics/graphicsmagick/compat.nixnew file+37

This diff is too big to show here.

pkgs/applications/graphics/graphicsmagick/default.nix+3−4

This diff is too big to show here.

pkgs/applications/graphics/gthumb/default.nix+25−14

This diff is too big to show here.

pkgs/applications/graphics/inkscape/default.nix+27−15

This diff is too big to show here.

pkgs/applications/graphics/jpegoptim/default.nix+2−2

This diff is too big to show here.

pkgs/applications/graphics/k3d/default.nix+10−9

This diff is too big to show here.

pkgs/applications/graphics/krita/default.nix+2−2

This diff is too big to show here.

pkgs/applications/graphics/leocad/default.nix+1−1

This diff is too big to show here.

pkgs/applications/graphics/meshlab/default.nix+1

This diff is too big to show here.

pkgs/applications/graphics/nomacs/default.nix+2−4

This diff is too big to show here.

pkgs/applications/graphics/nomacs/fix-appdata-install.patchdeleted−13

This diff is too big to show here.

pkgs/applications/graphics/ocrad/default.nix+1−1

This diff is too big to show here.

pkgs/applications/graphics/openimageio/default.nix+4−4

This diff is too big to show here.

pkgs/applications/graphics/openscad/default.nix+19−9

This diff is too big to show here.

pkgs/applications/graphics/panotools/default.nix+1−1

This diff is too big to show here.

pkgs/applications/graphics/paraview/default.nix+18−6

This diff is too big to show here.

pkgs/applications/graphics/pencil/default.nix+12−12

This diff is too big to show here.

pkgs/applications/graphics/photoflow/default.nixnew file+55

This diff is too big to show here.

pkgs/applications/graphics/pqiv/default.nix+2−2

This diff is too big to show here.

pkgs/applications/graphics/processing/default.nixdeleted−39

This diff is too big to show here.

pkgs/applications/graphics/processing/use-nixpkgs-jre.patchdeleted−88

This diff is too big to show here.

pkgs/applications/graphics/processing3/default.nixnew file+53

This diff is too big to show here.

pkgs/applications/graphics/qscreenshot/default.nix+3−2

This diff is too big to show here.

pkgs/applications/graphics/qtpfsgui/default.nix+1−1

This diff is too big to show here.

pkgs/applications/graphics/rapcad/default.nix+1

This diff is too big to show here.

pkgs/applications/graphics/rawtherapee/default.nix+2−2

This diff is too big to show here.

pkgs/applications/graphics/sane/xsane.nix+3−3

This diff is too big to show here.

pkgs/applications/graphics/scantailor/advanced.nix+3−3

This diff is too big to show here.

pkgs/applications/graphics/scantailor/default.nix+1−1

This diff is too big to show here.

pkgs/applications/graphics/shotwell/default.nix+4−4

This diff is too big to show here.

pkgs/applications/graphics/shutter/default.nix+5−1

This diff is too big to show here.

pkgs/applications/graphics/solvespace/default.nix+2−2

This diff is too big to show here.

pkgs/applications/graphics/ufraw/default.nix+21−5

This diff is too big to show here.

pkgs/applications/graphics/viewnior/default.nix+1−1

This diff is too big to show here.

pkgs/applications/graphics/xfig/default.nix+1−1

This diff is too big to show here.

pkgs/applications/kde/akonadi-import-wizard.nixnew file+20

This diff is too big to show here.

pkgs/applications/kde/akonadi/akonadi-paths.patch+60−61

This diff is too big to show here.

pkgs/applications/kde/default.nix+9−2

This diff is too big to show here.

pkgs/applications/kde/fetch.sh+1−1

This diff is too big to show here.

pkgs/applications/kde/k3b.nix+12−6

This diff is too big to show here.

pkgs/applications/kde/kalarm.nixnew file+37

This diff is too big to show here.

pkgs/applications/kde/kalarmcal.nix+2−2

This diff is too big to show here.

pkgs/applications/kde/kdebugsettings.nixnew file+20

This diff is too big to show here.

pkgs/applications/kde/kdepim-addons.nixnew file+23

This diff is too big to show here.

pkgs/applications/kde/konsole.nix+2−2

This diff is too big to show here.

pkgs/applications/kde/krfb.nix+2−2

This diff is too big to show here.

pkgs/applications/kde/ksystemlog.nixnew file+17

This diff is too big to show here.

pkgs/applications/kde/mbox-importer.nix−3

This diff is too big to show here.

pkgs/applications/kde/okular.nix+16−14

This diff is too big to show here.

pkgs/applications/kde/spectacle.nix+2−1

This diff is too big to show here.

pkgs/applications/kde/srcs.nix+860−852

This diff is too big to show here.

pkgs/applications/misc/1password/default.nixnew file+34

This diff is too big to show here.

pkgs/applications/misc/alacritty/default.nix+5−3

This diff is too big to show here.

pkgs/applications/misc/apvlv/default.nix+6−1

This diff is too big to show here.

pkgs/applications/misc/bb/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/bleachbit/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/blender/default.nix+13−3

This diff is too big to show here.

pkgs/applications/misc/buku/default.nix+11−6

This diff is too big to show here.

pkgs/applications/misc/calibre/default.nix+4−12

This diff is too big to show here.

pkgs/applications/misc/calibre/disable_plugins.patchnew file+17

This diff is too big to show here.

pkgs/applications/misc/calibre/no_updates_dialog.patchnew file+15

This diff is too big to show here.

pkgs/applications/misc/cataract/build.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/cbatticon/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/cheat/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/cherrytree/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/chirp/default.nix+4−4

This diff is too big to show here.

pkgs/applications/misc/cli-visualizer/default.nix+3−3

This diff is too big to show here.

pkgs/applications/misc/cointop/default.nixnew file+30

This diff is too big to show here.

pkgs/applications/misc/cointop/deps.nixnew file+3

This diff is too big to show here.

pkgs/applications/misc/confclerk/default.nix+3−3

This diff is too big to show here.

pkgs/applications/misc/copyq/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/coursera-dl/default.nixnew file+41

This diff is too big to show here.

pkgs/applications/misc/cpp-ethereum/default.nix+1

This diff is too big to show here.

pkgs/applications/misc/ctodo/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/curabydagoma/default.nixnew file+76

This diff is too big to show here.

pkgs/applications/misc/dbeaver/default.nix+4−4

This diff is too big to show here.

pkgs/applications/misc/deco/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/djvulibre/default.nix+2−4

This diff is too big to show here.

pkgs/applications/misc/dmenu/default.nix+4−4

This diff is too big to show here.

pkgs/applications/misc/dunst/default.nix+3−3

This diff is too big to show here.

pkgs/applications/misc/electron-cash/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/electrum-dash/default.nix → pkgs/applications/misc/electrum/dash.nixrenamed

The content is the same.

pkgs/applications/misc/electrum/default.nix+2−11

This diff is too big to show here.

pkgs/applications/misc/electrum-ltc/default.nix → pkgs/applications/misc/electrum/ltc.nixrenamed+2−2

This diff is too big to show here.

pkgs/applications/misc/et/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/far2l/add-nix-syntax-highlighting.patch+3−3

This diff is too big to show here.

pkgs/applications/misc/far2l/default.nix+3−3

This diff is too big to show here.

pkgs/applications/misc/gcal/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/gcalcli/default.nix+44−19

This diff is too big to show here.

pkgs/applications/misc/girara/default.nix+7−24

This diff is too big to show here.

pkgs/applications/misc/gkrellm/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/gmtp/default.nix+6−2

This diff is too big to show here.

pkgs/applications/misc/gnome-usage/default.nixnew file+37

This diff is too big to show here.

pkgs/applications/misc/gnuradio-ais/default.nix → pkgs/applications/misc/gnuradio/ais.nixrenamed

The content is the same.

pkgs/applications/misc/gnuradio-gsm/default.nix → pkgs/applications/misc/gnuradio/gsm.nixrenamed

The content is the same.

pkgs/applications/misc/gnuradio-nacl/default.nix → pkgs/applications/misc/gnuradio/nacl.nixrenamed

The content is the same.

pkgs/applications/misc/gnuradio-osmosdr/default.nix → pkgs/applications/misc/gnuradio/osmosdr.nixrenamed

The content is the same.

pkgs/applications/misc/gnuradio-rds/default.nix → pkgs/applications/misc/gnuradio/rds.nixrenamed

The content is the same.

pkgs/applications/misc/go-jira/default.nixnew file+22

This diff is too big to show here.

pkgs/applications/misc/googleearth/default.nix+30−12

This diff is too big to show here.

pkgs/applications/misc/googler/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/gosmore/default.nix+3

This diff is too big to show here.

pkgs/applications/misc/gosmore/pointer_int_comparison.patchnew file+11

This diff is too big to show here.

pkgs/applications/misc/gpa/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/gphoto2/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/gpx/default.nixnew file+23

This diff is too big to show here.

pkgs/applications/misc/gqrx/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/gramps/default.nix+8−17

This diff is too big to show here.

pkgs/applications/misc/guake/default.nix+25−57

This diff is too big to show here.

pkgs/applications/misc/gv/default.nix+14−3

This diff is too big to show here.

pkgs/applications/misc/haxor-news/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/houdini/runtime.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/hr/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/hstr/default.nix+3−3

This diff is too big to show here.

pkgs/applications/misc/hubstaff/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/hugo/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/hugo/deps.nix+61−61

This diff is too big to show here.

pkgs/applications/misc/hyper/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/ipmicfg/default.nix+3−2

This diff is too big to show here.

pkgs/applications/misc/ipmiview/default.nix−2

This diff is too big to show here.

pkgs/applications/misc/jekyll/basic/Gemfile.lock+8−10

This diff is too big to show here.

pkgs/applications/misc/jekyll/basic/gemset.nix+18−18

This diff is too big to show here.

pkgs/applications/misc/jekyll/full/Gemfile.lock+10−12

This diff is too big to show here.

pkgs/applications/misc/jekyll/full/gemset.nix+22−22

This diff is too big to show here.

pkgs/applications/misc/jekyll/update.shnew file+15

This diff is too big to show here.

pkgs/applications/misc/jgmenu/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/josm/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/k2pdfopt/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/kdeconnect/default.nix+5−4

This diff is too big to show here.

pkgs/applications/misc/keepass/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/keepassx/community.nix+15−4

This diff is too big to show here.

pkgs/applications/misc/khal/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/khard/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/kitty/default.nix+10−4

This diff is too big to show here.

pkgs/applications/misc/latte-dock/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/lilyterm/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/limesuite/default.nixnew file+53

This diff is too big to show here.

pkgs/applications/misc/lyx/default.nix+3−3

This diff is too big to show here.

pkgs/applications/misc/makeself/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/masterpdfeditor/default.nix+42−52

This diff is too big to show here.

pkgs/applications/misc/mdp/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/mediainfo-gui/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/mediainfo/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/minergate/default.nixnew file+36

This diff is too big to show here.

pkgs/applications/misc/mucommander/default.nixnew file+82

This diff is too big to show here.

pkgs/applications/misc/multimon-ng/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/mupdf/default.nix+4−20

This diff is too big to show here.

pkgs/applications/misc/mupdf/default.upstream+1−1

This diff is too big to show here.

pkgs/applications/misc/mupdf/mupdf-1.12-shared_libs-1.patch → pkgs/applications/misc/mupdf/mupdf-1.13-shared_libs-1.patchrenamed+9−5

This diff is too big to show here.

pkgs/applications/misc/mwic/default.nix+3−3

This diff is too big to show here.

pkgs/applications/misc/netsurf/buildsystem/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/netsurf/libcss/default.nix+2

This diff is too big to show here.

pkgs/applications/misc/nixnote2/default.nix+6

This diff is too big to show here.

pkgs/applications/misc/nnn/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/octoprint/default.nix+3

This diff is too big to show here.

pkgs/applications/misc/onboard/default.nix+1

This diff is too big to show here.

pkgs/applications/misc/oneko/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/open-pdf-presenter/default.nixdeleted−22

This diff is too big to show here.

pkgs/applications/misc/opencpn/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/orca/default.nix+6−5

This diff is too big to show here.

pkgs/applications/misc/overmind/default.nixnew file+27

This diff is too big to show here.

pkgs/applications/misc/pcmanfm/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/pcmanx-gtk2/default.nix+12−6

This diff is too big to show here.

pkgs/applications/misc/pdf-quench/default.nixnew file+36

This diff is too big to show here.

pkgs/applications/misc/pdfpc/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/pgmanage/default.nix+10−2

This diff is too big to show here.

pkgs/applications/misc/plank/default.nixnew file+48

This diff is too big to show here.

pkgs/applications/misc/playonlinux/default.nix+1−3

This diff is too big to show here.

pkgs/applications/misc/plover/default.nix+40−19

This diff is too big to show here.

pkgs/applications/misc/polybar/default.nix+8−1

This diff is too big to show here.

pkgs/applications/misc/posterazor/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/projectlibre/default.nixnew file+44

This diff is too big to show here.

pkgs/applications/misc/pytrainer/default.nix+11−7

This diff is too big to show here.

pkgs/applications/misc/pytrainer/fix-test-tz.patch+7−4

This diff is too big to show here.

pkgs/applications/misc/qlcplus/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/qmapshack/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/qpdfview/default.nix+8−9

This diff is too big to show here.

pkgs/applications/misc/qsyncthingtray/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/qtbitcointrader/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/redis-desktop-manager/default.nix+7−11

This diff is too big to show here.

pkgs/applications/misc/robo3t/default.nix+2−1

This diff is too big to show here.

pkgs/applications/misc/rofi/config.patchnew file+54

This diff is too big to show here.

pkgs/applications/misc/rofi/default.nix+14−6

This diff is too big to show here.

pkgs/applications/misc/rofi/wrapper.nixnew file+17

This diff is too big to show here.

pkgs/applications/misc/rsibreak/default.nixnew file+28

This diff is too big to show here.

pkgs/applications/misc/rtl-sdr/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/rtv/default.nix+3−3

This diff is too big to show here.

pkgs/applications/misc/safeeyes/default.nixnew file+71

This diff is too big to show here.

pkgs/applications/misc/sakura/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/sc-im/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/sdcv/default.nix+1−2

This diff is too big to show here.

pkgs/applications/misc/sent/default.nix+6−2

This diff is too big to show here.

pkgs/applications/misc/sigal/default.nix+4−2

This diff is too big to show here.

pkgs/applications/misc/simplenote/default.nix+4−3

This diff is too big to show here.

pkgs/applications/misc/slade/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/slade/git.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/sleepyhead/default.nixnew file+42

This diff is too big to show here.

pkgs/applications/misc/slic3r-prusa3d/default.nix → pkgs/applications/misc/slic3r/prusa3d.nixrenamed+8−3

This diff is too big to show here.

pkgs/applications/misc/slstatus/default.nixnew file+30

This diff is too big to show here.

pkgs/applications/misc/soapyairspy/default.nixnew file+30

This diff is too big to show here.

pkgs/applications/misc/soapybladerf/default.nixnew file+31

This diff is too big to show here.

pkgs/applications/misc/soapyhackrf/default.nixnew file+30

This diff is too big to show here.

pkgs/applications/misc/soapyremote/default.nixnew file+28

This diff is too big to show here.

pkgs/applications/misc/soapysdr/default.nixnew file+50

This diff is too big to show here.

pkgs/applications/misc/soapyuhd/default.nixnew file+34

This diff is too big to show here.

pkgs/applications/misc/spacefm/default.nix+6−2

This diff is too big to show here.

pkgs/applications/misc/st/default.nix+8−7

This diff is too big to show here.

pkgs/applications/misc/st/st-fix-deletekey.patchdeleted−15

This diff is too big to show here.

pkgs/applications/misc/stag/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/stupidterm/default.nix+3−3

This diff is too big to show here.

pkgs/applications/misc/synapse/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/tasknc/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/tasksh/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/taskwarrior/default.nix+4−4

This diff is too big to show here.

pkgs/applications/misc/terminator/default.nix+6−10

This diff is too big to show here.

pkgs/applications/misc/terminus/default.nixnew file+43

This diff is too big to show here.

pkgs/applications/misc/teseq/default.nixnew file+22

This diff is too big to show here.

pkgs/applications/misc/timewarrior/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/todiff/default.nixnew file+23

This diff is too big to show here.

pkgs/applications/misc/todolist/default.nixnew file+22

This diff is too big to show here.

pkgs/applications/misc/toot/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/translate-shell/default.nix+18−81

This diff is too big to show here.

pkgs/applications/misc/urh/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/urlscan/default.nix+7−4

This diff is too big to show here.

pkgs/applications/misc/veracrypt/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/vit/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/weather/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/welle-io/default.nix+4−4

This diff is too big to show here.

pkgs/applications/misc/wmname/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/wordnet/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/workrave/default.nix+10−19

This diff is too big to show here.

pkgs/applications/misc/xca/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/xfe/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/xfontsel/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/xmr-stak/default.nix+11−6

This diff is too big to show here.

pkgs/applications/misc/xmrig/default.nixnew file+34

This diff is too big to show here.

pkgs/applications/misc/xmrig/proxy.nixnew file+34

This diff is too big to show here.

pkgs/applications/misc/xpdf/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/xterm/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/xtermcontrol/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/yaft/default.nix+1−1

This diff is too big to show here.

pkgs/applications/misc/yakuake/default.nix+2−2

This diff is too big to show here.

pkgs/applications/misc/yarssr/default.nixnew file+68

This diff is too big to show here.

pkgs/applications/misc/yate/default.nix+5−4

This diff is too big to show here.

pkgs/applications/misc/zathura/core/default.nix+23−33

This diff is too big to show here.

pkgs/applications/misc/zathura/core/icon.xpmdeleted−120

This diff is too big to show here.

pkgs/applications/misc/zathura/djvu/default.nix+7−16

This diff is too big to show here.

pkgs/applications/misc/zathura/djvu/gtkflags.patchdeleted−23

This diff is too big to show here.

pkgs/applications/misc/zathura/pdf-mupdf/default.nix+8−15

This diff is too big to show here.

pkgs/applications/misc/zathura/pdf-poppler/default.nix+7−14

This diff is too big to show here.

pkgs/applications/misc/zathura/ps/default.nix+8−17

This diff is too big to show here.

pkgs/applications/misc/zathura/ps/gtkflags.patchdeleted−23

This diff is too big to show here.

pkgs/applications/misc/zathura/wrapper.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/browsers/chromium/browser.nix+1

This diff is too big to show here.

pkgs/applications/networking/browsers/chromium/common.nix+16−18

This diff is too big to show here.

pkgs/applications/networking/browsers/chromium/default.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/browsers/chromium/patches/chromium-gcc5-r4.patchdeleted−98

This diff is too big to show here.

pkgs/applications/networking/browsers/chromium/patches/constexpr-fix.patchdeleted−98

This diff is too big to show here.

pkgs/applications/networking/browsers/chromium/patches/fix_network_api_crash.patchdeleted−77

This diff is too big to show here.

pkgs/applications/networking/browsers/chromium/patches/include-math-for-round.patchdeleted−34

This diff is too big to show here.

pkgs/applications/networking/browsers/chromium/patches/neon_buildfix.patchnew file+21

This diff is too big to show here.

pkgs/applications/networking/browsers/chromium/patches/skia_buildfix.patchnew file+22

This diff is too big to show here.

pkgs/applications/networking/browsers/chromium/plugins.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/browsers/chromium/upstream-info.nix+9−9

This diff is too big to show here.

pkgs/applications/networking/browsers/dwb/default.nixdeleted−35

This diff is too big to show here.

pkgs/applications/networking/browsers/eolie/0001-Remove-post-install-script-handle-in-nix-config-inst.patchdeleted−23

This diff is too big to show here.

pkgs/applications/networking/browsers/eolie/default.nix+8−9

This diff is too big to show here.

pkgs/applications/networking/browsers/falkon/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/browsers/firefox-bin/beta_sources.nix+399−389

This diff is too big to show here.

pkgs/applications/networking/browsers/firefox-bin/default.nix+7−9

This diff is too big to show here.

pkgs/applications/networking/browsers/firefox-bin/devedition_sources.nix+399−389

This diff is too big to show here.

pkgs/applications/networking/browsers/firefox-bin/release_sources.nix+395−385

This diff is too big to show here.

pkgs/applications/networking/browsers/firefox-bin/update.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/browsers/firefox/common.nix+3−3

This diff is too big to show here.

pkgs/applications/networking/browsers/firefox/fix-pa-context-connect-retval.patchnew file+26

This diff is too big to show here.

pkgs/applications/networking/browsers/firefox/packages.nix+49−34

This diff is too big to show here.

pkgs/applications/networking/browsers/firefox/update.nix+4−2

This diff is too big to show here.

pkgs/applications/networking/browsers/firefox/wrapper.nix+13−12

This diff is too big to show here.

pkgs/applications/networking/browsers/google-chrome/default.nix+7−10

This diff is too big to show here.

pkgs/applications/networking/browsers/links2/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/browsers/luakit/default.nixnew file+61

This diff is too big to show here.

pkgs/applications/networking/browsers/lynx/default.nix+7−4

This diff is too big to show here.

pkgs/applications/networking/browsers/mozilla-plugins/flashplayer/default.nix+6−6

This diff is too big to show here.

pkgs/applications/networking/browsers/mozilla-plugins/flashplayer/standalone.nix+5−5

This diff is too big to show here.

pkgs/applications/networking/browsers/mozilla-plugins/trezor/default.nix+3−4

This diff is too big to show here.

pkgs/applications/networking/browsers/otter/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/browsers/palemoon/default.nix+4−4

This diff is too big to show here.

pkgs/applications/networking/browsers/qutebrowser/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix+4−4

This diff is too big to show here.

pkgs/applications/networking/c14/default.nix+4−5

This diff is too big to show here.

pkgs/applications/networking/cluster/click/default.nixnew file+28

This diff is too big to show here.

pkgs/applications/networking/cluster/cni/default.nix+3−6

This diff is too big to show here.

pkgs/applications/networking/cluster/cni/plugins.nixnew file+33

This diff is too big to show here.

pkgs/applications/networking/cluster/docker-machine/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/cluster/flink/default.nix+3−3

This diff is too big to show here.

pkgs/applications/networking/cluster/helm/default.nix+6−5

This diff is too big to show here.

pkgs/applications/networking/cluster/heptio-ark/default.nixnew file+25

This diff is too big to show here.

pkgs/applications/networking/cluster/kontemplate/default.nix+25−16

This diff is too big to show here.

pkgs/applications/networking/cluster/kontemplate/deps.nix+42−51

This diff is too big to show here.

pkgs/applications/networking/cluster/kubernetes/default.nix+14−5

This diff is too big to show here.

pkgs/applications/networking/cluster/mesos/default.nix+17−13

This diff is too big to show here.

pkgs/applications/networking/cluster/minikube/default.nix+4−4

This diff is too big to show here.

pkgs/applications/networking/cluster/openshift/default.nix+42−17

This diff is too big to show here.

pkgs/applications/networking/cluster/panamax/api/Gemfiledeleted−23

This diff is too big to show here.

pkgs/applications/networking/cluster/panamax/api/Gemfile.lockdeleted−164

This diff is too big to show here.

pkgs/applications/networking/cluster/panamax/api/default.nixdeleted−74

This diff is too big to show here.

pkgs/applications/networking/cluster/panamax/api/gemset.nixdeleted−568

This diff is too big to show here.

pkgs/applications/networking/cluster/panamax/ui/Gemfiledeleted−31

This diff is too big to show here.

pkgs/applications/networking/cluster/panamax/ui/Gemfile.lockdeleted−226

This diff is too big to show here.

pkgs/applications/networking/cluster/panamax/ui/default.nixdeleted−72

This diff is too big to show here.

pkgs/applications/networking/cluster/panamax/ui/gemset.nixdeleted−789

This diff is too big to show here.

pkgs/applications/networking/cluster/pig/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/cluster/spark/default.nix+11−13

This diff is too big to show here.

pkgs/applications/networking/cluster/taktuk/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/cluster/terraform-provider-ibm/default.nixnew file+38

This diff is too big to show here.

pkgs/applications/networking/cluster/terraform-provider-libvirt/default.nixnew file+47

This diff is too big to show here.

pkgs/applications/networking/cluster/terraform-provider-libvirt/deps.nixnew file+12

This diff is too big to show here.

pkgs/applications/networking/cluster/terraform-provider-nixos/default.nixnew file+23

This diff is too big to show here.

pkgs/applications/networking/cluster/terraform/default.nix+7−3

This diff is too big to show here.

pkgs/applications/networking/cluster/terraform/providers/data.nix+85−64

This diff is too big to show here.

pkgs/applications/networking/cluster/terraform/providers/update-all+1−1

This diff is too big to show here.

pkgs/applications/networking/cluster/terragrunt/default.nix+5−5

This diff is too big to show here.

pkgs/applications/networking/cluster/terragrunt/deps.nix+16−16

This diff is too big to show here.

pkgs/applications/networking/compactor/default.nixnew file+52

This diff is too big to show here.

pkgs/applications/networking/corebird/default.nix+14−10

This diff is too big to show here.

pkgs/applications/networking/dropbox-cli/default.nix → pkgs/applications/networking/dropbox/cli.nixrenamed

The content is the same.

pkgs/applications/networking/dropbox/default.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/enhanced-ctorrent/default.nix+14−1

This diff is too big to show here.

pkgs/applications/networking/errbot/default.nix+3−1

This diff is too big to show here.

pkgs/applications/networking/feedreaders/newsbeuter/default.nixdeleted−61

This diff is too big to show here.

pkgs/applications/networking/feedreaders/newsboat/default.nix+4−2

This diff is too big to show here.

pkgs/applications/networking/firehol/default.nix+32−3

This diff is too big to show here.

pkgs/applications/networking/flexget/default.nix+53−61

This diff is too big to show here.

pkgs/applications/networking/gmailieer/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/gns3/default.nix+3−3

This diff is too big to show here.

pkgs/applications/networking/google-drive-ocamlfuse/default.nix+6−7

This diff is too big to show here.

pkgs/applications/networking/ids/snort/default.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/ike/default.nix−2

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/baresip/default.nix+7−9

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/bitlbee/default.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/blink/default.nix+7−6

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/dino/default.nix+3−3

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/discord/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/franz/default.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/gajim/default.nix+38−97

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/hipchat/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/jitsi/default.nix−2

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/nheko/default.nixnew file+83

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/nheko/external-deps.patchnew file+94

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/nheko/fetchurls.patchnew file+21

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-discord/default.nixnew file+31

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-hangouts/default.nix+3−3

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/pidgin-plugins/telegram-purple/default.nix+4−4

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/profanity/default.nix+27−8

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/profanity/patches/packages-osx.patchnew file+11

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/profanity/patches/undefined-macros.patchnew file+40

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/psi-plus/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/qtox/default.nix+18−13

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/quaternion/default.nix+4−7

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/ratox/default.nix+10−8

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/ratox/ldlibs.patchdeleted−5

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/ring-daemon/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/riot/riot-web.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/signal-desktop/beta.nix+7−2

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/signal-desktop/default.nix+5−5

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/skypeforlinux/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/slack/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/stride/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix+18−129

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/telegram/tdesktop/generic.nixnew file+140

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/telepathy/gabble/default.nix+4−4

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/telepathy/haze/default.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/telepathy/idle/default.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/telepathy/logger/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/telepathy/salut/default.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/toxic/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/utox/default.nix+15−9

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/viber/default.nix+1−3

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/weechat-matrix-bridge/default.nix+3−3

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/wire-desktop/default.nixnew file+104

This diff is too big to show here.

pkgs/applications/networking/instant-messengers/zoom-us/default.nix+24−17

This diff is too big to show here.

pkgs/applications/networking/insync/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/ipfs/default.nix+3−3

This diff is too big to show here.

pkgs/applications/networking/irc/bip/default.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/irc/ii/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/irc/irssi/default.nix+3−3

This diff is too big to show here.

pkgs/applications/networking/irc/quassel/default.nix−2

This diff is too big to show here.

pkgs/applications/networking/irc/quassel/source.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/irc/sic/default.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/irc/weechat/default.nix+11−3

This diff is too big to show here.

pkgs/applications/networking/mailreaders/balsa/default.nixnew file+61

This diff is too big to show here.

pkgs/applications/networking/mailreaders/imapfilter.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/mailreaders/inboxer/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/mailreaders/lumail/default.nix+42−10

This diff is too big to show here.

pkgs/applications/networking/mailreaders/mutt/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/mailreaders/neomutt/default.nix+4−4

This diff is too big to show here.

pkgs/applications/networking/mailreaders/notmuch/default.nix+4−2

This diff is too big to show here.

pkgs/applications/networking/mailreaders/sylpheed/default.nix+3−3

This diff is too big to show here.

pkgs/applications/networking/mailreaders/thunderbird-bin/default.nix−2

This diff is too big to show here.

pkgs/applications/networking/mailreaders/thunderbird-bin/release_sources.nix+237−237

This diff is too big to show here.

pkgs/applications/networking/mailreaders/thunderbird/default.nix+3−3

This diff is too big to show here.

pkgs/applications/networking/ndppd/default.nix+17−2

This diff is too big to show here.

pkgs/applications/networking/netperf/default.nix+13−5

This diff is too big to show here.

pkgs/applications/networking/newsreaders/liferea/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/newsreaders/pan/default.nix+23−8

This diff is too big to show here.

pkgs/applications/networking/newsreaders/quiterss/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/nextcloud-client/default.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/offrss/default.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/ostinato/default.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/owncloud-client/default.nix+3−3

This diff is too big to show here.

pkgs/applications/networking/owncloud-client/find-sql.patchnew file+12

This diff is too big to show here.

pkgs/applications/networking/p2p/frostwire/default.nix+69−13

This diff is too big to show here.

pkgs/applications/networking/p2p/frostwire/frostwire-bin.nixnew file+31

This diff is too big to show here.

pkgs/applications/networking/p2p/gnunet/default.nix+1−1

This diff is too big to show here.

pkgs/applications/networking/p2p/gnunet/svn.nix → pkgs/applications/networking/p2p/gnunet/git.nixrenamed+9−10

This diff is too big to show here.

pkgs/applications/networking/p2p/qbittorrent/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/p2p/soulseekqt/default.nixnew file+55

This diff is too big to show here.

pkgs/applications/networking/p2p/tixati/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/p2p/transmission/default.nix+3−3

This diff is too big to show here.

pkgs/applications/networking/p2p/tribler/default.nix+4−4

This diff is too big to show here.

pkgs/applications/networking/remote/citrix-receiver/default.nix+35−13

This diff is too big to show here.

pkgs/applications/networking/remote/freerdp/default.nix+6−6

This diff is too big to show here.

pkgs/applications/networking/remote/teamviewer/default.nix+16−45

This diff is too big to show here.

pkgs/applications/networking/resilio-sync/default.nix+3−3

This diff is too big to show here.

pkgs/applications/networking/seafile-client/default.nix+3−3

This diff is too big to show here.

pkgs/applications/networking/sniffers/wireshark/default.nix+7−2

This diff is too big to show here.

pkgs/applications/networking/spideroak/default.nix+7−7

This diff is too big to show here.

pkgs/applications/networking/sync/backintime/common.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/sync/backintime/qt4.nix+4−1

This diff is too big to show here.

pkgs/applications/networking/sync/rclone/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/syncplay/default.nix+3−3

This diff is too big to show here.

pkgs/applications/networking/syncthing-gtk/default.nix+6−6

This diff is too big to show here.

pkgs/applications/networking/syncthing-gtk/disable-syncthing-binary-configuration.patch+20−20

This diff is too big to show here.

pkgs/applications/networking/syncthing/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/testssl/default.nix+22−17

This diff is too big to show here.

pkgs/applications/networking/testssl/testssl.patchdeleted−10

This diff is too big to show here.

pkgs/applications/networking/vnstat/default.nix+2−2

This diff is too big to show here.

pkgs/applications/networking/znc/default.nix+2−2

This diff is too big to show here.

pkgs/applications/office/abiword/default.nix+9−12

This diff is too big to show here.

pkgs/applications/office/atlassian-cli/default.nixnew file+31

This diff is too big to show here.

pkgs/applications/office/atlassian-cli/wrapper.shnew file+20

This diff is too big to show here.

pkgs/applications/office/beancount/bean-add.nix+1−1

This diff is too big to show here.

pkgs/applications/office/calligra/default.nix+2−10

This diff is too big to show here.

pkgs/applications/office/cb2bib/default.nix+2−2

This diff is too big to show here.

pkgs/applications/office/fava/default.nix+3−3

This diff is too big to show here.

pkgs/applications/office/gnucash/2.4.nixnew file+85

This diff is too big to show here.

pkgs/applications/office/gnucash/2.6.nix+1−1

This diff is too big to show here.

pkgs/applications/office/gnucash/default.nix+60−42

This diff is too big to show here.

pkgs/applications/office/gnumeric/default.nix+2−2

This diff is too big to show here.

pkgs/applications/office/homebank/default.nix+2−2

This diff is too big to show here.

pkgs/applications/office/kexi/default.nix+2−2

This diff is too big to show here.

pkgs/applications/office/kmymoney/default.nixnew file+70

This diff is too big to show here.

pkgs/applications/office/ledger/default.nix+2−2

This diff is too big to show here.

pkgs/applications/office/libreoffice/default-primary-src.nix+3−3

This diff is too big to show here.

pkgs/applications/office/libreoffice/default.nix+4−4

This diff is too big to show here.

pkgs/applications/office/libreoffice/libreoffice-srcs.nix+8−8

This diff is too big to show here.

pkgs/applications/office/libreoffice/still-primary-src.nix+3−3

This diff is too big to show here.

pkgs/applications/office/libreoffice/still.nix+10−5

This diff is too big to show here.

pkgs/applications/office/libreoffice/wrapper.nixnew file+16

This diff is too big to show here.

pkgs/applications/office/libreoffice/wrapper.shnew file+18

This diff is too big to show here.

pkgs/applications/office/marp/default.nix+2−2

This diff is too big to show here.

pkgs/applications/office/mendeley/default.nix+5−8

This diff is too big to show here.

pkgs/applications/office/mendeley/update.nix+2−2

This diff is too big to show here.

pkgs/applications/office/skrooge/default.nix+12−4

This diff is too big to show here.

pkgs/applications/office/spice-up/default.nix+2−6

This diff is too big to show here.

pkgs/applications/office/todo.txt-cli/default.nix+2−2

This diff is too big to show here.

pkgs/applications/office/wordgrinder/default.nix+1−1

This diff is too big to show here.

pkgs/applications/office/zim/default.nix+2−2

This diff is too big to show here.

pkgs/applications/office/zotero/default.nix+3−3

This diff is too big to show here.

pkgs/applications/science/astronomy/celestia/default.nix+5−7

This diff is too big to show here.

pkgs/applications/science/biology/EZminc/default.nixnew file+32

This diff is too big to show here.

pkgs/applications/science/biology/N3/default.nixnew file+38

This diff is too big to show here.

pkgs/applications/science/biology/bcftools/default.nix+4−6

This diff is too big to show here.

pkgs/applications/science/biology/conglomerate/default.nixnew file+34

This diff is too big to show here.

pkgs/applications/science/biology/igv/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/biology/inormalize/default.nixnew file+39

This diff is too big to show here.

pkgs/applications/science/biology/inormalize/lgmask-interp.patchnew file+10

This diff is too big to show here.

pkgs/applications/science/biology/inormalize/nu_correct_norm-interp.patchnew file+10

This diff is too big to show here.

pkgs/applications/science/biology/minc-tools/default.nix+17−10

This diff is too big to show here.

pkgs/applications/science/biology/minc-widgets/default.nixnew file+34

This diff is too big to show here.

pkgs/applications/science/biology/mni_autoreg/default.nixnew file+36

This diff is too big to show here.

pkgs/applications/science/biology/paml/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/biology/picard-tools/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/biology/samtools/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/biology/snpeff/default.nix+3−3

This diff is too big to show here.

pkgs/applications/science/chemistry/jmol/default.nixnew file+53

This diff is too big to show here.

pkgs/applications/science/chemistry/octopus/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/chemistry/pymol/default.nix+6−6

This diff is too big to show here.

pkgs/applications/science/electronics/gtkwave/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/electronics/kicad/unstable.nix+7−5

This diff is too big to show here.

pkgs/applications/science/electronics/ngspice/default.nix+8−7

This diff is too big to show here.

pkgs/applications/science/electronics/pulseview/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/electronics/verilator/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/logic/abella/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/logic/aspino/default.nix+19−7

This diff is too big to show here.

pkgs/applications/science/logic/beluga/default.nixnew file+34

This diff is too big to show here.

pkgs/applications/science/logic/coq/default.nix+7−6

This diff is too big to show here.

pkgs/applications/science/logic/elan/default.nixnew file+44

This diff is too big to show here.

pkgs/applications/science/logic/lean/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/logic/ltl2ba/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/logic/mcrl2/default.nix+1−1

This diff is too big to show here.

pkgs/applications/science/logic/ott/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/logic/picosat/default.nix+3

This diff is too big to show here.

pkgs/applications/science/logic/potassco/clingo.nix+8−5

This diff is too big to show here.

pkgs/applications/science/logic/symbiyosys/default.nix+5−5

This diff is too big to show here.

pkgs/applications/science/logic/tamarin-prover/default.nix+17−5

This diff is too big to show here.

pkgs/applications/science/logic/tlaplus/tlaps.nixnew file+56

This diff is too big to show here.

pkgs/applications/science/logic/tlaplus/toolbox.nixnew file+77

This diff is too big to show here.

pkgs/applications/science/logic/tptp/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/logic/verifast/default.nix+15−10

This diff is too big to show here.

pkgs/applications/science/logic/workcraft/default.nixnew file+33

This diff is too big to show here.

pkgs/applications/science/logic/z3/4.5.0.nixdeleted−31

This diff is too big to show here.

pkgs/applications/science/machine-learning/labelimg/default.nixnew file+23

This diff is too big to show here.

pkgs/applications/science/machine-learning/shogun/default.nix+15−7

This diff is too big to show here.

pkgs/applications/science/machine-learning/torch/torch-distro.nix+3−1

This diff is too big to show here.

pkgs/applications/science/math/R/default.nix+4−3

This diff is too big to show here.

pkgs/applications/science/math/bcal/default.nix+3−4

This diff is too big to show here.

pkgs/applications/science/math/calc/default.nix+34−32

This diff is too big to show here.

pkgs/applications/science/math/ecm/default.nix+3−3

This diff is too big to show here.

pkgs/applications/science/math/fricas/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/math/gap/default.nix+70−15

This diff is too big to show here.

pkgs/applications/science/math/geogebra/default.nix+4−8

This diff is too big to show here.

pkgs/applications/science/math/gfan/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/math/giac/default.nix+26−8

This diff is too big to show here.

pkgs/applications/science/math/ginac/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/math/gmsh/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/math/jags/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/math/lrcalc/default.nixnew file+41

This diff is too big to show here.

pkgs/applications/science/math/mathematica/default.nix+13−14

This diff is too big to show here.

pkgs/applications/science/math/mathematica/l10ns.nixnew file+33

This diff is too big to show here.

pkgs/applications/science/math/maxima/default.nix+44−10

This diff is too big to show here.

pkgs/applications/science/math/maxima/known-ecl-failures.patchnew file+21

This diff is too big to show here.

pkgs/applications/science/math/nasc/default.nixnew file+71

This diff is too big to show here.

pkgs/applications/science/math/palp/default.nixnew file+67

This diff is too big to show here.

pkgs/applications/science/math/pari/default.nix+16−4

This diff is too big to show here.

pkgs/applications/science/math/pari/gp2c.nix+2−2

This diff is too big to show here.

pkgs/applications/science/math/pari/unstable.nixdeleted−31

This diff is too big to show here.

pkgs/applications/science/math/pspp/default.nix+1−1

This diff is too big to show here.

pkgs/applications/science/math/pynac/default.nixnew file+47

This diff is too big to show here.

pkgs/applications/science/math/qalculate-gtk/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/math/sage/default.nix+1−1

This diff is too big to show here.

pkgs/applications/science/math/scilab-bin/default.nix+7−7

This diff is too big to show here.

pkgs/applications/science/math/singular/default.nix+67−23

This diff is too big to show here.

pkgs/applications/science/math/weka/default.nix+7−11

This diff is too big to show here.

pkgs/applications/science/math/yacas/default.nix+27−32

This diff is too big to show here.

pkgs/applications/science/math/yacas/gcc43.patchdeleted−17

This diff is too big to show here.

pkgs/applications/science/misc/cytoscape/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/misc/gephi/default.nix+54−27

This diff is too big to show here.

pkgs/applications/science/misc/megam/default.nix+1−1

This diff is too big to show here.

pkgs/applications/science/misc/motu-client/default.nix+3−3

This diff is too big to show here.

pkgs/applications/science/misc/openmvg/default.nix+1

This diff is too big to show here.

pkgs/applications/science/misc/openmvs/default.nix+3−4

This diff is too big to show here.

pkgs/applications/science/misc/sasview/default.nixnew file+75

This diff is too big to show here.

pkgs/applications/science/misc/sasview/local_config.patchnew file+22

This diff is too big to show here.

pkgs/applications/science/misc/sasview/pyparsing-fix.patchnew file+13

This diff is too big to show here.

pkgs/applications/science/misc/sasview/xhtml2pdf.nixnew file+32

This diff is too big to show here.

pkgs/applications/science/misc/tulip/default.nix+1−1

This diff is too big to show here.

pkgs/applications/science/molecular-dynamics/gromacs/default.nix+3−3

This diff is too big to show here.

pkgs/applications/science/physics/sacrifice/default.nix+9−1

This diff is too big to show here.

pkgs/applications/science/physics/sherpa/default.nix+2−5

This diff is too big to show here.

pkgs/applications/science/physics/sherpa/explicit_overloads.patchdeleted−119

This diff is too big to show here.

pkgs/applications/science/robotics/qgroundcontrol/default.nix+4−4

This diff is too big to show here.

pkgs/applications/science/robotics/yarp/default.nix+2−2

This diff is too big to show here.

pkgs/applications/science/spyder/default.nix+2−2

This diff is too big to show here.

pkgs/applications/search/catfish/default.nix+1−1

This diff is too big to show here.

pkgs/applications/search/grepcidr/default.nixnew file+21

This diff is too big to show here.

pkgs/applications/taxes/aangifte-2006/builder.shdeleted−17

This diff is too big to show here.

pkgs/applications/taxes/aangifte-2006/default.nixdeleted−21

This diff is too big to show here.

pkgs/applications/taxes/aangifte-2007/builder.shdeleted−19

This diff is too big to show here.

pkgs/applications/taxes/aangifte-2007/default.nixdeleted−24

This diff is too big to show here.

pkgs/applications/taxes/aangifte-2008/builder.shdeleted−19

This diff is too big to show here.

pkgs/applications/taxes/aangifte-2008/default.nixdeleted−25

This diff is too big to show here.

pkgs/applications/taxes/aangifte-2009/default.nixdeleted−40

This diff is too big to show here.

pkgs/applications/taxes/aangifte-2010/default.nixdeleted−40

This diff is too big to show here.

pkgs/applications/taxes/aangifte-2011/default.nixdeleted−40

This diff is too big to show here.

pkgs/applications/taxes/aangifte-2012/default.nixdeleted−41

This diff is too big to show here.

pkgs/applications/taxes/aangifte-2013-wa/default.nixdeleted−41

This diff is too big to show here.

pkgs/applications/taxes/aangifte-2013/default.nixdeleted−41

This diff is too big to show here.

pkgs/applications/taxes/aangifte-2014-wa/default.nixdeleted−41

This diff is too big to show here.

pkgs/applications/taxes/aangifte-2014/default.nixdeleted−41

This diff is too big to show here.

pkgs/applications/version-management/bazaar/default.nix+10−2

This diff is too big to show here.

pkgs/applications/version-management/bugseverywhere/default.nix+1−1

This diff is too big to show here.

pkgs/applications/version-management/cvs/default.nix+5−1

This diff is too big to show here.

pkgs/applications/version-management/fossil/default.nix+8−11

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/cgit/default.nix+5−1

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/default.nix+11−3

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/git-cola/default.nix+4−4

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/git-dit/default.nix+1−1

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/git-extras/default.nix+2−2

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/git-open/default.nix+2−2

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/git-radar/default.nix+2−2

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/git-recent/default.nix+5−11

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/git-remote-gcrypt/default.nix+2−2

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/git-secret/default.nix+2−2

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/git-secrets/default.nixnew file+40

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/git/default.nix+39−30

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/git/git-sh-i18n.patch+4−4

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/gitweb/default.nixnew file+37

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/hub/unstable.nixnew file+36

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/stgit/default.nix+4−3

This diff is too big to show here.

pkgs/applications/version-management/git-and-tools/svn-all-fast-export/default.nix+2−4

This diff is too big to show here.

pkgs/applications/version-management/git-review/default.nix+2−2

This diff is too big to show here.

pkgs/applications/version-management/git-sizer/default.nixnew file+23

This diff is too big to show here.

pkgs/applications/version-management/gitaly/Gemfile+16−3

This diff is too big to show here.

pkgs/applications/version-management/gitaly/Gemfile.lock+55−25

This diff is too big to show here.

pkgs/applications/version-management/gitaly/default.nix+2−2

This diff is too big to show here.

pkgs/applications/version-management/gitaly/gemset.nix+116−29

This diff is too big to show here.

pkgs/applications/version-management/gitea/default.nix+3−3

This diff is too big to show here.

pkgs/applications/version-management/gitkraken/default.nix+7−4

This diff is too big to show here.

pkgs/applications/version-management/gitlab-shell/default.nix+6−26

This diff is too big to show here.

pkgs/applications/version-management/gitlab-shell/fixes.patch+4−5

This diff is too big to show here.

pkgs/applications/version-management/gitlab-shell/remove-hardcoded-locations.patch+15−28

This diff is too big to show here.

pkgs/applications/version-management/gitlab-workhorse/default.nix+3−3

This diff is too big to show here.

pkgs/applications/version-management/gitlab/Gemfile+86−59

This diff is too big to show here.

pkgs/applications/version-management/gitlab/Gemfile.lock+217−191

This diff is too big to show here.

pkgs/applications/version-management/gitlab/default.nix+9−11

This diff is too big to show here.

pkgs/applications/version-management/gitlab/gemset.nix+312−234

This diff is too big to show here.

pkgs/applications/version-management/gitlab/nulladapter.patchdeleted−33

This diff is too big to show here.

pkgs/applications/version-management/gitlab/remove-hardcoded-locations.patch+29−33

This diff is too big to show here.

pkgs/applications/version-management/gitless/default.nix+2−2

This diff is too big to show here.

pkgs/applications/version-management/gogs/default.nix+2−2

This diff is too big to show here.

pkgs/applications/version-management/gource/default.nix+2−2

This diff is too big to show here.

pkgs/applications/version-management/meld/default.nix+2−2

This diff is too big to show here.

pkgs/applications/version-management/mercurial/default.nix+2−2

This diff is too big to show here.

pkgs/applications/version-management/nbstripout/default.nix+24−5

This diff is too big to show here.

pkgs/applications/version-management/p4v/default.nixnew file+48

This diff is too big to show here.

pkgs/applications/version-management/sit/aarch64-isel.patchnew file+9

This diff is too big to show here.

pkgs/applications/version-management/sit/default.nix+11−7

This diff is too big to show here.

pkgs/applications/version-management/src/default.nix+12−4

This diff is too big to show here.

pkgs/applications/version-management/tortoisehg/default.nix+2−2

This diff is too big to show here.

pkgs/applications/version-management/vcsh/default.nix+10−17

This diff is too big to show here.

pkgs/applications/video/avidemux/default.nix+12−3

This diff is too big to show here.

pkgs/applications/video/avxsynth/default.nix+1

This diff is too big to show here.

pkgs/applications/video/clipgrab/default.nix+2−2

This diff is too big to show here.

pkgs/applications/video/dvb-apps/default.nix+1

This diff is too big to show here.

pkgs/applications/video/handbrake/default.nix+35−29

This diff is too big to show here.

pkgs/applications/video/kazam/bug_1190693.patchdeleted−14

This diff is too big to show here.

pkgs/applications/video/kazam/datadir.patchdeleted−11

This diff is too big to show here.

pkgs/applications/video/kazam/default.nix+28−33

This diff is too big to show here.

pkgs/applications/video/kazam/fix-paths.patchnew file+22

This diff is too big to show here.

pkgs/applications/video/kodi/default.nix+2−2

This diff is too big to show here.

pkgs/applications/video/kodi/plugins.nix+25−1

This diff is too big to show here.

pkgs/applications/video/makemkv/default.nix+6−6

This diff is too big to show here.

pkgs/applications/video/minitube/default.nix+9−6

This diff is too big to show here.

pkgs/applications/video/mkcast/default.nixdeleted−37

This diff is too big to show here.

pkgs/applications/video/mkvtoolnix/default.nix+2−2

This diff is too big to show here.

pkgs/applications/video/mpc-qt/default.nix+2−2

This diff is too big to show here.

pkgs/applications/video/mpv/default.nix+13−20

This diff is too big to show here.

pkgs/applications/video/mythtv/default.nix+17−12

This diff is too big to show here.

pkgs/applications/video/obs-studio/default.nix+2−2

This diff is too big to show here.

pkgs/applications/video/openshot-qt/libopenshot-audio.nix+2−2

This diff is too big to show here.

pkgs/applications/video/openshot-qt/libopenshot.nix+2−2

This diff is too big to show here.

pkgs/applications/video/peek/default.nix+7−3

This diff is too big to show here.

pkgs/applications/video/pitivi/default.nix+40−21

This diff is too big to show here.

pkgs/applications/video/pitivi/prevent-closure-contamination.patchnew file+23

This diff is too big to show here.

pkgs/applications/video/qstopmotion/default.nix+5−8

This diff is too big to show here.

pkgs/applications/video/shotcut/default.nix+3−3

This diff is too big to show here.

pkgs/applications/video/simplescreenrecorder/default.nix+8−6

This diff is too big to show here.

pkgs/applications/video/smplayer/default.nix+2−2

This diff is too big to show here.

pkgs/applications/video/smtube/default.nix+2−2

This diff is too big to show here.

pkgs/applications/video/streamlink/default.nix+2−2

This diff is too big to show here.

pkgs/applications/video/vlc/default.nix+1−3

This diff is too big to show here.

pkgs/applications/video/w_scan/default.nix+2−2

This diff is too big to show here.

pkgs/applications/video/webtorrent_desktop/default.nix+3−3

This diff is too big to show here.

pkgs/applications/video/xine-ui/default.nix+2−2

This diff is too big to show here.

pkgs/applications/video/xscast/default.nixnew file+35

This diff is too big to show here.

pkgs/applications/virtualization/OVMF/default.nix+39−20

This diff is too big to show here.

pkgs/applications/virtualization/containerd/default.nix+2−2

This diff is too big to show here.

pkgs/applications/virtualization/docker/default.nix+18−18

This diff is too big to show here.

pkgs/applications/virtualization/docker-distribution/default.nix → pkgs/applications/virtualization/docker/distribution.nixrenamed

The content is the same.

pkgs/applications/virtualization/dynamips/default.nix+2−2

This diff is too big to show here.

pkgs/applications/virtualization/lkl/default.nix+5−4

This diff is too big to show here.

pkgs/applications/virtualization/qemu/default.nix+45−9

This diff is too big to show here.

pkgs/applications/virtualization/qemu/riscv-initrd.patchdeleted−98

This diff is too big to show here.

pkgs/applications/virtualization/qemu/riscv.nixdeleted−22

This diff is too big to show here.

pkgs/applications/virtualization/qemu/statfs-flags.patchdeleted−197

This diff is too big to show here.

pkgs/applications/virtualization/remotebox/default.nix+2−2

This diff is too big to show here.

pkgs/applications/virtualization/rkt/default.nix+2−2

This diff is too big to show here.

pkgs/applications/virtualization/runc/default.nix+2−2

This diff is too big to show here.

pkgs/applications/virtualization/singularity/default.nix+8−3

This diff is too big to show here.

pkgs/applications/virtualization/tini/default.nix+2−2

This diff is too big to show here.

pkgs/applications/virtualization/virt-manager/default.nix+3

This diff is too big to show here.

pkgs/applications/virtualization/virt-manager/qt.nix+4−6

This diff is too big to show here.

pkgs/applications/virtualization/virt-top/default.nix+7−5

This diff is too big to show here.

pkgs/applications/virtualization/virtualbox/HostServices-SharedClipboard-x11-stub.cpp-use-RT_NOR.patchdeleted−153

This diff is too big to show here.

pkgs/applications/virtualization/virtualbox/default.nix+4−6

This diff is too big to show here.

pkgs/applications/virtualization/virtualbox/guest-additions/default.nix+1−1

This diff is too big to show here.

pkgs/applications/virtualization/xen/4.10.nixnew file+185

This diff is too big to show here.

pkgs/applications/virtualization/xen/4.5.nix+4

This diff is too big to show here.

pkgs/applications/virtualization/xen/4.8.nix+33−23

This diff is too big to show here.

pkgs/applications/virtualization/xen/generic.nix+4−3

This diff is too big to show here.

pkgs/applications/virtualization/xen/packages.nix+50−4

This diff is too big to show here.

pkgs/applications/virtualization/xen/xsa-patches.nix+69

This diff is too big to show here.

pkgs/applications/window-managers/bspwm/default.nix+3−3

This diff is too big to show here.

pkgs/applications/window-managers/dwm/default.nix+1−1

This diff is too big to show here.

pkgs/applications/window-managers/i3/default.nix+4−4

This diff is too big to show here.

pkgs/applications/window-managers/i3/gaps.nix+3−3

This diff is too big to show here.

pkgs/applications/window-managers/i3/lock-color.nix+28−5

This diff is too big to show here.

pkgs/applications/window-managers/i3/lock.nix+5

This diff is too big to show here.

pkgs/applications/window-managers/i3/pystatus.nix+12−7

This diff is too big to show here.

pkgs/applications/window-managers/i3/status-rust.nix+3−3

This diff is too big to show here.

pkgs/applications/window-managers/i3/status.nix+4−4

This diff is too big to show here.

pkgs/applications/window-managers/i3/wk-switch.nixnew file+32

This diff is too big to show here.

pkgs/applications/window-managers/icewm/default.nix+6−1

This diff is too big to show here.

pkgs/applications/window-managers/icewm/fix-strlcat_strlcpy.patchnew file+236

This diff is too big to show here.

pkgs/applications/window-managers/icewm/musl.patchnew file+23

This diff is too big to show here.

pkgs/applications/window-managers/jwm/default.nix+2−2

This diff is too big to show here.

pkgs/applications/window-managers/sawfish/default.nix+2−2

This diff is too big to show here.

pkgs/applications/window-managers/stumpwm/default.nix+1

This diff is too big to show here.

pkgs/applications/window-managers/sway/default.nix+2−2

This diff is too big to show here.

pkgs/applications/window-managers/sxhkd/default.nix+2−2

This diff is too big to show here.

pkgs/applications/window-managers/tabbed/default.nix+2−2

This diff is too big to show here.

pkgs/applications/window-managers/trayer/default.nix+2−2

This diff is too big to show here.

pkgs/applications/window-managers/velox/dmenu.nix+1−1

This diff is too big to show here.

pkgs/applications/window-managers/velox/st.nix+1−1

This diff is too big to show here.

pkgs/applications/window-managers/way-cooler/default.nix+2−10

This diff is too big to show here.

pkgs/applications/window-managers/weston/default.nix+5−5

This diff is too big to show here.

pkgs/applications/window-managers/wtftw/default.nix+1−1

This diff is too big to show here.

pkgs/applications/window-managers/xmonad-log-applet/default.nix → pkgs/applications/window-managers/xmonad/log-applet/default.nixrenamed+2−2

This diff is too big to show here.

pkgs/applications/window-managers/xmonad-log-applet/fix-paths.patch → pkgs/applications/window-managers/xmonad/log-applet/fix-paths.patchrenamed

The content is the same.

pkgs/build-support/bintools-wrapper/default.nix+14−13

This diff is too big to show here.

pkgs/build-support/build-fhs-userenv/chrootenv/chrootenv.c+1

This diff is too big to show here.

pkgs/build-support/build-fhs-userenv/env.nix+4−1

This diff is too big to show here.

pkgs/build-support/build-setupcfg/default.nixnew file+25

This diff is too big to show here.

pkgs/build-support/cc-wrapper/add-flags.sh−5

This diff is too big to show here.

pkgs/build-support/cc-wrapper/default.nix+12−38

This diff is too big to show here.

pkgs/build-support/cc-wrapper/gnat-wrapper.shdeleted−122

This diff is too big to show here.

pkgs/build-support/cc-wrapper/gnatlink-wrapper.shdeleted−40

This diff is too big to show here.

pkgs/build-support/cc-wrapper/utils.sh+5−1

This diff is too big to show here.

pkgs/build-support/docker/default.nix+70−12

This diff is too big to show here.

pkgs/build-support/docker/examples.nix+11−3

This diff is too big to show here.

pkgs/build-support/docker/pull.nixdeleted−32

This diff is too big to show here.

pkgs/build-support/docker/pull.shdeleted−36

This diff is too big to show here.

pkgs/build-support/docker/tarsum.go+1−1

This diff is too big to show here.

pkgs/build-support/emacs/buffer.nix+2

This diff is too big to show here.

pkgs/build-support/fetchcvs/builder.sh+5

This diff is too big to show here.

pkgs/build-support/fetchcvs/default.nix+3−3

This diff is too big to show here.

pkgs/build-support/fetchgit/nix-prefetch-git+1−1

This diff is too big to show here.

pkgs/build-support/fetchs3/default.nix+13−5

This diff is too big to show here.

pkgs/build-support/fetchurl/mirrors.nix+1−1

This diff is too big to show here.

pkgs/build-support/gcc-wrapper-old/add-flagsdeleted−28

This diff is too big to show here.

pkgs/build-support/gcc-wrapper-old/builder.shdeleted−215

This diff is too big to show here.

pkgs/build-support/gcc-wrapper-old/default.nixdeleted−76

This diff is too big to show here.

pkgs/build-support/gcc-wrapper-old/gcc-wrapper-old.shdeleted−146

This diff is too big to show here.

pkgs/build-support/gcc-wrapper-old/gcc-wrapper.shdeleted−147

This diff is too big to show here.

pkgs/build-support/gcc-wrapper-old/gnat-wrapper.shdeleted−113

This diff is too big to show here.

pkgs/build-support/gcc-wrapper-old/gnatlink-wrapper.shdeleted−43

This diff is too big to show here.

pkgs/build-support/gcc-wrapper-old/ld-solaris-wrapper.shdeleted−40

This diff is too big to show here.

pkgs/build-support/gcc-wrapper-old/ld-wrapper.shdeleted−166

This diff is too big to show here.

pkgs/build-support/gcc-wrapper-old/setup-hook.shdeleted−33

This diff is too big to show here.

pkgs/build-support/gcc-wrapper-old/utils.shdeleted−26

This diff is too big to show here.

pkgs/build-support/kernel/modules-closure.nix+1−1

This diff is too big to show here.

pkgs/build-support/kernel/modules-closure.sh+14

This diff is too big to show here.

pkgs/build-support/rust/build-rust-crate.nix+29−22

This diff is too big to show here.

pkgs/build-support/rust/carnix.nix+865−808

This diff is too big to show here.

pkgs/build-support/rust/default.nix+2−2

This diff is too big to show here.

pkgs/build-support/singularity-tools/default.nix+1

This diff is too big to show here.

pkgs/build-support/trivial-builders.nix+1

This diff is too big to show here.

pkgs/build-support/vm/default.nix+10−10

This diff is too big to show here.

pkgs/common-updater/scripts/update-source-version+19−2

This diff is too big to show here.

pkgs/data/documentation/man-pages/default.nix+2−2

This diff is too big to show here.

pkgs/data/documentation/stdman/default.nix+2−2

This diff is too big to show here.

pkgs/data/fonts/babelstone-han/default.nix+4−4

This diff is too big to show here.

pkgs/data/fonts/dejavu-fonts/default.nix+2−2

This diff is too big to show here.

pkgs/data/fonts/emojione/default.nix+1−1

This diff is too big to show here.

pkgs/data/fonts/gentium-book-basic/default.nix+1−1

This diff is too big to show here.

pkgs/data/fonts/iosevka/default.nix+2−2

This diff is too big to show here.

pkgs/data/fonts/nerdfonts/default.nix+2−2

This diff is too big to show here.

pkgs/data/fonts/rounded-mgenplus/default.nixnew file+37

This diff is too big to show here.

pkgs/data/fonts/sarasa-gothic/default.nixnew file+32

This diff is too big to show here.

pkgs/data/fonts/scheherazade/default.nixnew file+43

This diff is too big to show here.

pkgs/data/fonts/tex-gyre-math/default.nix+37−34

This diff is too big to show here.

pkgs/data/fonts/twemoji-color-font/default.nix+5−1

This diff is too big to show here.

pkgs/data/icons/elementary-xfce-icon-theme/default.nix+3−3

This diff is too big to show here.

pkgs/data/icons/iconpack-obsidian/default.nixnew file+35

This diff is too big to show here.

pkgs/data/icons/papirus-icon-theme/default.nix+2−2

This diff is too big to show here.

pkgs/data/misc/brise/default.nix+1−1

This diff is too big to show here.

pkgs/data/misc/cacert/default.nix+8−2

This diff is too big to show here.

pkgs/data/misc/hackage/default.nix+2−2

This diff is too big to show here.

pkgs/data/misc/iana-etc/default.nix+2−2

This diff is too big to show here.

pkgs/data/misc/libkkc-data/default.nixnew file+22

This diff is too big to show here.

pkgs/data/misc/osinfo-db/default.nix+2−2

This diff is too big to show here.

pkgs/data/misc/poppler-data/default.nix+4−8

This diff is too big to show here.

pkgs/data/misc/scowl/default.nix+16−8

This diff is too big to show here.

pkgs/data/misc/tzdata/default.nix+26−7

This diff is too big to show here.

pkgs/data/misc/wireless-regdb/default.nix+2−2

This diff is too big to show here.

pkgs/data/sgml+xml/schemas/docbook-5.0/default.nix+1−1

This diff is too big to show here.

pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix+2−1

This diff is too big to show here.

pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/docbook-xsl-ns-infinite.patchnew file+30

This diff is too big to show here.

pkgs/desktops/deepin/deepin-gtk-theme/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/deepin/default.nix+4−7

This diff is too big to show here.

pkgs/desktops/enlightenment/econnman.nix+2−3

This diff is too big to show here.

pkgs/desktops/enlightenment/efl.nix+11−5

This diff is too big to show here.

pkgs/desktops/enlightenment/enlightenment.nix+4−3

This diff is too big to show here.

pkgs/desktops/enlightenment/enlightenment.suid-exes.patch+2−2

This diff is too big to show here.

pkgs/desktops/enlightenment/ephoto.nix+2−6

This diff is too big to show here.

pkgs/desktops/enlightenment/rage.nix+2−7

This diff is too big to show here.

pkgs/desktops/enlightenment/terminology.nix+8−12

This diff is too big to show here.

pkgs/desktops/gnome-2/default.nix+2−4

This diff is too big to show here.

pkgs/desktops/gnome-2/desktop/gnome-control-center/default.nix+3−3

This diff is too big to show here.

pkgs/desktops/gnome-2/desktop/gtksourceview/default.nix+2

This diff is too big to show here.

pkgs/desktops/gnome-2/desktop/libgweather/default.nix+1−1

This diff is too big to show here.

pkgs/desktops/gnome-2/desktop/rarian/default.nixdeleted−12

This diff is too big to show here.

pkgs/desktops/gnome-2/desktop/zenity/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-2/platform/ORBit2/default.nix+3−3

This diff is too big to show here.

pkgs/desktops/gnome-2/platform/gtkglext/default.nix+15−4

This diff is too big to show here.

pkgs/desktops/gnome-2/platform/libglade/default.nix−2

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/accerciser/default.nix+5−2

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/bijiben/default.nix+31−27

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/bijiben/no-update-icon-cache.patchdeleted−22

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/cheese/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/evolution/default.nix+3−3

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/file-roller/default.nix+21−12

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/gedit/default.nix+18−19

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/glade/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/gnome-boxes/default.nix+28−22

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/gnome-calendar/default.nix+13−10

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/gnome-characters/default.nix+18−9

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/gnome-clocks/default.nix+15−6

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/gnome-documents/default.nix+30−21

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/gnome-getting-started-docs/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/gnome-logs/default.nix+12−12

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/gnome-maps/default.nix+25−18

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/gnome-music/default.nix+34−23

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/gnome-photos/default.nix+30−25

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/gnome-power-manager/default.nix+12−11

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/gnome-weather/default.nix+11−8

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/nautilus-sendto/default.nix+13−4

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/polari/default.nix+20−19

This diff is too big to show here.

pkgs/desktops/gnome-3/apps/seahorse/default.nix+19−20

This diff is too big to show here.

pkgs/desktops/gnome-3/core/adwaita-icon-theme/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/baobab/default.nix+20−20

This diff is too big to show here.

pkgs/desktops/gnome-3/core/dconf-editor/default.nix+22−13

This diff is too big to show here.

pkgs/desktops/gnome-3/core/dconf/default.nix+10−10

This diff is too big to show here.

pkgs/desktops/gnome-3/core/empathy/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/eog/default.nix+28−16

This diff is too big to show here.

pkgs/desktops/gnome-3/core/epiphany/default.nix+20−25

This diff is too big to show here.

pkgs/desktops/gnome-3/core/evince/default.nix+5−5

This diff is too big to show here.

pkgs/desktops/gnome-3/core/evolution-data-server/default.nix+19−21

This diff is too big to show here.

pkgs/desktops/gnome-3/core/folks/default.nix+1−1

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gcr/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gdm/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gdm/sessions_dir.patch+34−5

This diff is too big to show here.

pkgs/desktops/gnome-3/core/geocode-glib/default.nix+23−9

This diff is too big to show here.

pkgs/desktops/gnome-3/core/geocode-glib/installed-tests-path.patchnew file+8

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gjs/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-backgrounds/default.nix+4−4

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-bluetooth/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-calculator/default.nix+26−16

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-color-manager/default.nixnew file+30

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-contacts/default.nix+8−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-control-center/default.nix+33−27

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-control-center/paths.patchnew file+82

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-desktop/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-dictionary/default.nix+11−9

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-disk-utility/default.nix+12−10

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-font-viewer/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-keyring/default.nix+5−6

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-menus/default.nix+1−1

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-online-accounts/default.nix+19−16

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-screenshot/default.nix+18−18

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-screenshot/prevent-cache-updates.patchdeleted−21

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-session/default.nix+32−17

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-settings-daemon/default.nix+37−18

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-settings-daemon/fix-paths.patchnew file+15

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-shell-extensions/default.nix+40−9

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-shell-extensions/fix_gmenu.patchnew file+24

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-shell/default.nix+45−30

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-shell/fix-paths.patch+20−16

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-software/default.nix+5−8

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-software/fix-paths.patch+1−1

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-system-log/default.nix+16−19

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-system-monitor/default.nix+19−21

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-terminal/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-themes-extra/default.nixnew file+28

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-themes-standard/default.nixdeleted−25

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-user-docs/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gnome-user-share/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gsettings-desktop-schemas/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gtksourceviewmm/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/gucharmap/default.nix+4−9

This diff is too big to show here.

pkgs/desktops/gnome-3/core/libgepub/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/libgweather/default.nix+33−18

This diff is too big to show here.

pkgs/desktops/gnome-3/core/libzapojit/default.nix+5−3

This diff is too big to show here.

pkgs/desktops/gnome-3/core/mutter/default.nix+2−11

This diff is too big to show here.

pkgs/desktops/gnome-3/core/nautilus/default.nix+23−19

This diff is too big to show here.

pkgs/desktops/gnome-3/core/simple-scan/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/sushi/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/totem-pl-parser/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/totem/default.nix+17−15

This diff is too big to show here.

pkgs/desktops/gnome-3/core/tracker-miners/default.nix+13−8

This diff is too big to show here.

pkgs/desktops/gnome-3/core/tracker-miners/fix-paths.patch+9

This diff is too big to show here.

pkgs/desktops/gnome-3/core/tracker/default.nix+16−9

This diff is too big to show here.

pkgs/desktops/gnome-3/core/vino/default.nix+16−22

This diff is too big to show here.

pkgs/desktops/gnome-3/core/vte/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/yelp-tools/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/yelp-xsl/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/core/yelp/default.nix+15−16

This diff is too big to show here.

pkgs/desktops/gnome-3/core/zenity/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/default.nix+18−19

This diff is too big to show here.

pkgs/desktops/gnome-3/devtools/anjuta/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/devtools/devhelp/default.nix+16−12

This diff is too big to show here.

pkgs/desktops/gnome-3/devtools/gdl/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/devtools/gnome-devel-docs/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/extensions/dash-to-dock/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/extensions/impatience.nix+6−5

This diff is too big to show here.

pkgs/desktops/gnome-3/extensions/system-monitor.nix → pkgs/desktops/gnome-3/extensions/system-monitor/default.nixrenamed+17−6

This diff is too big to show here.

pkgs/desktops/gnome-3/extensions/system-monitor/paths_and_nonexisting_dirs.patchnew file+23

This diff is too big to show here.

pkgs/desktops/gnome-3/extensions/timepp/default.nixnew file+26

This diff is too big to show here.

pkgs/desktops/gnome-3/games/aisleriot/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/games/five-or-more/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/games/four-in-a-row/default.nix+10−10

This diff is too big to show here.

pkgs/desktops/gnome-3/games/gnome-chess/default.nix+16−11

This diff is too big to show here.

pkgs/desktops/gnome-3/games/gnome-klotski/default.nix+16−14

This diff is too big to show here.

pkgs/desktops/gnome-3/games/gnome-mines/default.nix+17−11

This diff is too big to show here.

pkgs/desktops/gnome-3/games/gnome-robots/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/games/gnome-sudoku/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/games/gnome-taquin/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/games/iagno/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/games/lightsoff/default.nix+13−11

This diff is too big to show here.

pkgs/desktops/gnome-3/games/swell-foop/default.nix+19−12

This diff is too big to show here.

pkgs/desktops/gnome-3/misc/california/0002-Build-with-evolution-data-server-3.13.90.patchdeleted−39

This diff is too big to show here.

pkgs/desktops/gnome-3/misc/california/default.nix+23−21

This diff is too big to show here.

pkgs/desktops/gnome-3/misc/geary/default.nix+26−17

This diff is too big to show here.

pkgs/desktops/gnome-3/misc/gfbgraph/default.nix+6−2

This diff is too big to show here.

pkgs/desktops/gnome-3/misc/gitg/default.nix+26−14

This diff is too big to show here.

pkgs/desktops/gnome-3/misc/gnome-packagekit/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/misc/gnome-tweak-tool/default.nixdeleted−66

This diff is too big to show here.

pkgs/desktops/gnome-3/misc/gnome-tweaks/default.nixnew file+54

This diff is too big to show here.

pkgs/desktops/gnome-3/misc/gpaste/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnome-3/misc/gspell/default.nix+20−12

This diff is too big to show here.

pkgs/desktops/gnome-3/misc/libgames-support/default.nix → pkgs/desktops/gnome-3/misc/libgnome-games-support/default.nixrenamed+7−5

This diff is too big to show here.

pkgs/desktops/gnustep/back/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnustep/base/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnustep/gorm/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnustep/gui/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/gnustep/make/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/lumina/default.nix+1

This diff is too big to show here.

pkgs/desktops/lxde/core/lxmenu-data.nix+1−1

This diff is too big to show here.

pkgs/desktops/lxde/core/lxpanel/default.nix+1−1

This diff is too big to show here.

pkgs/desktops/lxde/core/lxtask/default.nix+4−2

This diff is too big to show here.

pkgs/desktops/lxqt/base/libqtxdg/default.nix+5−1

This diff is too big to show here.

pkgs/desktops/lxqt/core/lxqt-panel/default.nix+2−1

This diff is too big to show here.

pkgs/desktops/mate/caja/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/mate/libmatekbd/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/mate/marco/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/mate/mate-applets/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/mate/mate-calc/default.nix+3−3

This diff is too big to show here.

pkgs/desktops/mate/mate-control-center/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/mate/mate-desktop/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/mate/mate-icon-theme/default.nix+3−3

This diff is too big to show here.

pkgs/desktops/mate/mate-panel/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/mate/mate-power-manager/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/mate/mate-sensors-applet/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/mate/mate-settings-daemon/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/mate/mate-themes/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/mate/pluma/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/pantheon/apps/pantheon-terminal/default.nix+2−13

This diff is too big to show here.

pkgs/desktops/plasma-5/fetch.sh+1−1

This diff is too big to show here.

pkgs/desktops/plasma-5/kde-gtk-config/default.nix+7−3

This diff is too big to show here.

pkgs/desktops/plasma-5/kde-gtk-config/0001-follow-symlinks.patch → pkgs/desktops/plasma-5/kde-gtk-config/patches/follow-symlinks.patchrenamed+16−19

This diff is too big to show here.

pkgs/desktops/plasma-5/kde-gtk-config/patches/gsettings.patchnew file+21

This diff is too big to show here.

pkgs/desktops/plasma-5/kde-gtk-config/patches/seriesnew file+2

This diff is too big to show here.

pkgs/desktops/plasma-5/kgamma5.nix+2−2

This diff is too big to show here.

pkgs/desktops/plasma-5/srcs.nix+176−176

This diff is too big to show here.

pkgs/desktops/xfce/applications/orage.nix+1−1

This diff is too big to show here.

pkgs/desktops/xfce/applications/parole.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/applications/xfce4-mixer.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/applications/xfce4-screenshooter.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/core/thunar-build.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/core/thunar.nix+3−3

This diff is too big to show here.

pkgs/desktops/xfce/core/xfce4-panel.nix+4−4

This diff is too big to show here.

pkgs/desktops/xfce/core/xfce4-power-manager.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/core/xfce4-session.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/core/xfdesktop.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/core/xfwm4.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-battery-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-clipman-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-cpufreq-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-cpugraph-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-datetime-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-dict-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-dockbarx-plugin.nix+1−1

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-embed-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-eyes-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-fsguard-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-genmon-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-hardware-monitor-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-mailwatch-plugin.nix+3−3

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-mpc-plugin.nix+3−3

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-namebar-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-netload-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-notes-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-systemload-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-timer-plugin.nix+5−4

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-verve-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-weather-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-whiskermenu-plugin.nix+3−3

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-windowck-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/panel-plugins/xfce4-xkb-plugin.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce/thunar-plugins/archive/default.nix+2−2

This diff is too big to show here.

pkgs/desktops/xfce4-13/automakeAddFlags.shnew file+7

This diff is too big to show here.

pkgs/desktops/xfce4-13/default.nixnew file+80

This diff is too big to show here.

pkgs/desktops/xfce4-13/exo/default.nixnew file+23

This diff is too big to show here.

pkgs/desktops/xfce4-13/exo/gtk3-only.patchnew file+28

This diff is too big to show here.

pkgs/desktops/xfce4-13/garcon/12700.patchnew file+37

This diff is too big to show here.

pkgs/desktops/xfce4-13/garcon/13785.patchnew file+75

This diff is too big to show here.

pkgs/desktops/xfce4-13/garcon/default.nixnew file+12

This diff is too big to show here.

pkgs/desktops/xfce4-13/gigolo/default.nixnew file+11

This diff is too big to show here.

pkgs/desktops/xfce4-13/libxfce4ui/default.nixnew file+18

This diff is too big to show here.

pkgs/desktops/xfce4-13/libxfce4util/default.nixnew file+16

This diff is too big to show here.

pkgs/desktops/xfce4-13/mkXfceDerivation.nixnew file+40

This diff is too big to show here.

pkgs/desktops/xfce4-13/mousepad/default.nixnew file+12

This diff is too big to show here.

pkgs/desktops/xfce4-13/orage/default.nixnew file+18

This diff is too big to show here.

pkgs/desktops/xfce4-13/parole/default.nixnew file+36

This diff is too big to show here.

pkgs/desktops/xfce4-13/ristretto/default.nixnew file+18

This diff is too big to show here.

pkgs/desktops/xfce4-13/thunar-volman/default.nixnew file+11

This diff is too big to show here.

pkgs/desktops/xfce4-13/thunar/default.nixnew file+30

This diff is too big to show here.

pkgs/desktops/xfce4-13/tumbler/default.nixnew file+14

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfburn/default.nixnew file+18

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfce4-appfinder/default.nixnew file+12

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfce4-dev-tools/default.nixnew file+31

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfce4-dev-tools/setup-hook.shnew file+12

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfce4-dict/configure-gio.patchnew file+11

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfce4-dict/default.nixnew file+19

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfce4-mixer/default.nixnew file+30

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfce4-notifyd/default.nixnew file+13

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfce4-panel/default.nixnew file+15

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfce4-power-manager/default.nixnew file+19

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfce4-screenshooter/default.nixnew file+11

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfce4-settings/default.nixnew file+39

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfce4-taskmanager/default.nixnew file+18

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfce4-terminal/default.nixnew file+15

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfce4-volumed-pulse/default.nixnew file+15

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfconf/default.nixnew file+11

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfdesktop/default.nixnew file+22

This diff is too big to show here.

pkgs/desktops/xfce4-13/xfwm4/default.nixnew file+27

This diff is too big to show here.

pkgs/development/arduino/platformio/chrootenv.nix+30−12

This diff is too big to show here.

pkgs/development/python-modules/platformio/default.nix → pkgs/development/arduino/platformio/core.nixrenamed+5−8

This diff is too big to show here.

pkgs/development/python-modules/platformio/fix-searchpath.patch → pkgs/development/arduino/platformio/fix-searchpath.patchrenamed

The content is the same.

pkgs/development/compilers/adobe-flex-sdk/default.nix+1−1

This diff is too big to show here.

pkgs/development/compilers/arachne-pnr/default.nix+3−3

This diff is too big to show here.

pkgs/development/compilers/arm-frc-linux-gnueabi-gcc/default.nixdeleted−98

This diff is too big to show here.

pkgs/development/compilers/arm-frc-linux-gnueabi-gcc/minorSOname.patchdeleted−49

This diff is too big to show here.

pkgs/development/compilers/arm-frc-linux-gnueabi-gcc/no-nested-deprecated-warnings.patchdeleted−22

This diff is too big to show here.

pkgs/development/compilers/as31/default.nix+1−2

This diff is too big to show here.

pkgs/development/compilers/ats2/default.nix+3−3

This diff is too big to show here.

pkgs/development/compilers/avian/default.nix+11−5

This diff is too big to show here.

pkgs/development/compilers/binaryen/default.nix+21−4

This diff is too big to show here.

pkgs/development/compilers/ccl/default.nix+3−12

This diff is too big to show here.

pkgs/development/compilers/closure/default.nix+2−2

This diff is too big to show here.

pkgs/development/compilers/coreclr/default.nix+13−4

This diff is too big to show here.

pkgs/development/compilers/dtc/default.nix+1−1

This diff is too big to show here.

pkgs/development/compilers/ecl/16.1.2.nix+18−2

This diff is too big to show here.

pkgs/development/compilers/ecl/default.nix+6

This diff is too big to show here.

pkgs/development/compilers/edk2/default.nix+16−7

This diff is too big to show here.

pkgs/development/compilers/eli/default.nixnew file+91

This diff is too big to show here.

pkgs/development/compilers/elm/default.nix+12−9

This diff is too big to show here.

pkgs/development/compilers/elm/packages/elm-package.nix+5−1

This diff is too big to show here.

pkgs/development/compilers/emscripten/default.nix+22−5

This diff is too big to show here.

pkgs/development/compilers/emscripten-fastcomp/default.nix → pkgs/development/compilers/emscripten/fastcomp/default.nixrenamed+2−2

This diff is too big to show here.

pkgs/development/compilers/emscripten-fastcomp/emscripten-fastcomp.nix → pkgs/development/compilers/emscripten/fastcomp/emscripten-fastcomp.nixrenamed+9−8

This diff is too big to show here.

pkgs/development/compilers/fpc/lazarus.nix+2−2

This diff is too big to show here.

pkgs/development/compilers/gambit/bootstrap.nix+1−1

This diff is too big to show here.

pkgs/development/compilers/gambit/build.nixnew file+70

This diff is too big to show here.

pkgs/development/compilers/gambit/default.nix+5−67

This diff is too big to show here.

pkgs/development/compilers/gambit/unstable.nixnew file+11

This diff is too big to show here.

pkgs/development/compilers/gcc/4.5/ghdl-ortho-cflags.patchdeleted−111

This diff is too big to show here.

pkgs/development/compilers/gcc/4.5/no-sys-dirs.patchdeleted−54

This diff is too big to show here.

pkgs/development/compilers/gcc/4.5/sources.nixdeleted−26

This diff is too big to show here.

pkgs/development/compilers/gcc/4.8/default.nix+2−20

This diff is too big to show here.

pkgs/development/compilers/gcc/4.9/default.nix+18−23

This diff is too big to show here.

pkgs/development/compilers/gcc/5/default.nix+2−20

This diff is too big to show here.

pkgs/development/compilers/gcc/6/default.nix+2−20

This diff is too big to show here.

pkgs/development/compilers/gcc/7/default.nix+14−23

This diff is too big to show here.

pkgs/development/compilers/gcc/7/riscv-no-relax.patchnew file+109

This diff is too big to show here.

pkgs/development/compilers/gcc/7/riscv-pthread-reentrant.patchnew file+13

This diff is too big to show here.

pkgs/development/compilers/gcc/4.5/default.nix → pkgs/development/compilers/gcc/8/default.nixrenamed+168−185

This diff is too big to show here.

pkgs/development/compilers/gcc/builder.sh−2

This diff is too big to show here.

pkgs/development/compilers/gcc/gnat-cflags.patchdeleted−33

This diff is too big to show here.

pkgs/development/compilers/gcc/libstdc++-hook.sh+1−1

This diff is too big to show here.

pkgs/development/compilers/gcc/snapshot/default.nix+2−20

This diff is too big to show here.

pkgs/development/compilers/gerbil/build.nixnew file+88

This diff is too big to show here.

pkgs/development/compilers/gerbil/default.nix+7−87

This diff is too big to show here.

pkgs/development/compilers/gerbil/unstable.nixnew file+12

This diff is too big to show here.

pkgs/development/compilers/ghc/7.0.4-binary.nixdeleted−146

This diff is too big to show here.

pkgs/development/compilers/ghc/7.0.4.nixdeleted−67

This diff is too big to show here.

pkgs/development/compilers/ghc/7.4.2-binary.nixdeleted−148

This diff is too big to show here.

pkgs/development/compilers/ghc/7.4.2.nixdeleted−77

This diff is too big to show here.

pkgs/development/compilers/ghc/7.6.3.nixdeleted−103

This diff is too big to show here.

pkgs/development/compilers/ghc/7.8.4-binary.nixdeleted−156

This diff is too big to show here.

pkgs/development/compilers/ghc/7.8.4.nixdeleted−91

This diff is too big to show here.

pkgs/development/compilers/ghc/8.2.1-binary.nix+2−1

This diff is too big to show here.

pkgs/development/compilers/ghc/8.2.2.nix+2

This diff is too big to show here.

pkgs/development/compilers/ghc/8.4.1.nix → pkgs/development/compilers/ghc/8.4.2.nixrenamed+17−23

This diff is too big to show here.

pkgs/development/compilers/ghc/abi-depends-determinism.nixnew file+12

This diff is too big to show here.

pkgs/development/compilers/ghc/fix-7.0.4-clang.patchdeleted−74

This diff is too big to show here.

pkgs/development/compilers/ghc/fix-7.2.2-clang.patchdeleted−74

This diff is too big to show here.

pkgs/development/compilers/ghc/fix-7.4.2-clang.patchdeleted−57

This diff is too big to show here.

pkgs/development/compilers/ghc/fix-7.6.3-clang.patchdeleted−71

This diff is too big to show here.

pkgs/development/compilers/ghc/head.nix+3−1

This diff is too big to show here.

pkgs/development/compilers/ghc/hpc-7.8.4.patchdeleted−13

This diff is too big to show here.

pkgs/development/compilers/ghcjs/base.nix+1−1

This diff is too big to show here.

pkgs/development/compilers/ghcjs/default.nix−1

This diff is too big to show here.

pkgs/development/compilers/ghdl/default.nixdeleted−44

This diff is too big to show here.

pkgs/development/compilers/glslang/default.nix+19−5

This diff is too big to show here.

pkgs/development/compilers/gnatboot/default.nixdeleted−48

This diff is too big to show here.

pkgs/development/compilers/go/1.10.nix+7−4

This diff is too big to show here.

pkgs/development/compilers/go/1.9.nix+7−4

This diff is too big to show here.

pkgs/development/compilers/gprolog/default.nix+1−1

This diff is too big to show here.

pkgs/development/compilers/graalvm/default.nix+2

This diff is too big to show here.

pkgs/development/compilers/haxe/default.nix+19−1

This diff is too big to show here.

pkgs/development/compilers/hhvm/default.nix+1−1

This diff is too big to show here.

pkgs/development/compilers/iasl/default.nix+2−2

This diff is too big to show here.

pkgs/development/compilers/icedtea-web/default.nix+2−2

This diff is too big to show here.

pkgs/development/compilers/jetbrains-jdk/default.nix+2−2

This diff is too big to show here.

pkgs/development/compilers/jsonnet/default.nix+2−2

This diff is too big to show here.

pkgs/development/compilers/julia/0.5.nix+1−1

This diff is too big to show here.

pkgs/development/compilers/julia/0.6.nix+9−5

This diff is too big to show here.

pkgs/development/compilers/julia/default.nix+3−2

This diff is too big to show here.

pkgs/development/compilers/julia/git.nix+1−1

This diff is too big to show here.

pkgs/development/compilers/kotlin/default.nix+7−2

This diff is too big to show here.

pkgs/development/compilers/ldc/default.nix+12−14

This diff is too big to show here.

pkgs/development/compilers/llvm/3.4/llvm.nix+1−1

This diff is too big to show here.

pkgs/development/compilers/llvm/3.5/llvm.nix+1−1

This diff is too big to show here.

pkgs/development/compilers/llvm/4/cmdline-help.patchnew file+39

This diff is too big to show here.

pkgs/development/compilers/llvm/4/lldb.nix+5

This diff is too big to show here.

pkgs/development/compilers/llvm/4/llvm.nix+4−3

This diff is too big to show here.

pkgs/development/compilers/llvm/4/sanitizers-nongnu.patchnew file+368

This diff is too big to show here.

pkgs/development/compilers/llvm/5/llvm.nix+1−3

This diff is too big to show here.

pkgs/development/compilers/llvm/5/sanitizers-nongnu.patchnew file+370

This diff is too big to show here.

pkgs/development/compilers/llvm/6/clang/default.nixnew file+108

This diff is too big to show here.

pkgs/development/compilers/llvm/6/clang/purity.patchnew file+30

This diff is too big to show here.

pkgs/development/compilers/llvm/6/compiler-rt-codesign.patchnew file+155

This diff is too big to show here.

pkgs/development/compilers/llvm/6/default.nixnew file+78

This diff is too big to show here.

pkgs/development/compilers/llvm/6/libc++/default.nixnew file+51

This diff is too big to show here.

pkgs/development/compilers/llvm/6/libc++/setup-hook.shnew file+3

This diff is too big to show here.

pkgs/development/compilers/llvm/6/libc++abi.nixnew file+49

This diff is too big to show here.

pkgs/development/compilers/llvm/6/lld.nixnew file+33

This diff is too big to show here.

pkgs/development/compilers/llvm/6/lldb.nixnew file+56

This diff is too big to show here.

pkgs/development/compilers/llvm/6/llvm-outputs.patchnew file+26

This diff is too big to show here.

pkgs/development/compilers/llvm/6/llvm.nixnew file+185

This diff is too big to show here.

pkgs/development/compilers/llvm/6/openmp.nixnew file+26

This diff is too big to show here.

pkgs/development/compilers/llvm/6/sanitizers-nongnu.patchnew file+377

This diff is too big to show here.

pkgs/development/compilers/manticore/default.nix+6−6

This diff is too big to show here.

pkgs/development/compilers/mit-scheme/default.nix+1−1

This diff is too big to show here.

pkgs/development/compilers/mono/4.0.nix+3

This diff is too big to show here.

pkgs/development/compilers/mono/generic-cmake.nix+4−6

This diff is too big to show here.

pkgs/development/compilers/mono/generic.nix+5−3

This diff is too big to show here.

pkgs/development/compilers/nasm/default.nix+2−2

This diff is too big to show here.

pkgs/development/compilers/neko/default.nix+1−1

This diff is too big to show here.

pkgs/development/compilers/ocaml/4.07.nixnew file+9

This diff is too big to show here.

pkgs/development/compilers/ocaml/generic.nix+2−1

This diff is too big to show here.

pkgs/development/compilers/opendylan/bin.nix+2−2

This diff is too big to show here.

pkgs/development/compilers/opendylan/default.nix+4−4

This diff is too big to show here.

pkgs/development/compilers/openjdk/9.nix → pkgs/development/compilers/openjdk/10.nixrenamed+21−81

This diff is too big to show here.

pkgs/development/compilers/openjdk/7.nixdeleted−244

This diff is too big to show here.

pkgs/development/compilers/openjdk/8.nix+12−12

This diff is too big to show here.

pkgs/development/compilers/openjdk/bootstrap.nix+24−36

This diff is too big to show here.

pkgs/development/compilers/openjdk/cppflags-include-fix.patchdeleted−16

This diff is too big to show here.

pkgs/development/compilers/openjdk/currency-date-range.patch → pkgs/development/compilers/openjdk/currency-date-range-jdk10.patchrenamed+2−3

This diff is too big to show here.

pkgs/development/compilers/openjdk-darwin/8.nix → pkgs/development/compilers/openjdk/darwin/8.nixrenamed+5

This diff is too big to show here.

pkgs/development/compilers/openjdk-darwin/default.nix → pkgs/development/compilers/openjdk/darwin/default.nixrenamed+5

This diff is too big to show here.

pkgs/development/compilers/openjdk/fix-java-home-jdk9.patch → pkgs/development/compilers/openjdk/fix-java-home-jdk10.patchrenamed+5−5

This diff is too big to show here.

pkgs/development/compilers/openjdk/fix-java-home.patchdeleted−17

This diff is too big to show here.

pkgs/development/compilers/openjdk/paxctl.patchdeleted−28

This diff is too big to show here.

pkgs/development/compilers/openjdk/read-truststore-from-env-jdk9.patch → pkgs/development/compilers/openjdk/read-truststore-from-env-jdk10.patchrenamed+2−2

This diff is too big to show here.

pkgs/development/compilers/openjdk/read-truststore-from-env.patchdeleted−21

This diff is too big to show here.

pkgs/development/compilers/openjdk/swing-use-gtk-jdk9.patch → pkgs/development/compilers/openjdk/swing-use-gtk-jdk10.patchrenamed+2−4

This diff is too big to show here.

pkgs/development/compilers/openjdk/swing-use-gtk.patch → pkgs/development/compilers/openjdk/swing-use-gtk-jdk8.patchrenamed

The content is the same.

pkgs/development/compilers/oraclejdk/jdk9-linux.nix → pkgs/development/compilers/oraclejdk/jdk10-linux.nixrenamed+7−8

This diff is too big to show here.

pkgs/development/compilers/oraclejdk/jdk8cpu-linux.nix+5−5

This diff is too big to show here.

pkgs/development/compilers/oraclejdk/jdk8psu-linux.nix+5−5

This diff is too big to show here.

pkgs/development/compilers/owl-lisp/default.nix+6−4

This diff is too big to show here.

pkgs/development/compilers/polyml/default.nix+2−2

This diff is too big to show here.

pkgs/development/compilers/purescript/psc-package/default.nix+2−2

This diff is too big to show here.

pkgs/development/compilers/rust/bootstrap.nix+8−8

This diff is too big to show here.

pkgs/development/compilers/rust/default.nix+10−6

This diff is too big to show here.

pkgs/development/compilers/rust/patches/aarch64-disable-test_loading_cosine.patchdeleted−12

This diff is too big to show here.

pkgs/development/compilers/rust/rustc.nix+11−6

This diff is too big to show here.

pkgs/development/compilers/sbcl/default.nix+2−2

This diff is too big to show here.

pkgs/development/compilers/scala/default.nix+2−2

This diff is too big to show here.

pkgs/development/compilers/sdcc/default.nix+2−2

This diff is too big to show here.

pkgs/development/compilers/solc/default.nix+27−13

This diff is too big to show here.

pkgs/development/compilers/solc/patches/boost-shared-libs.patchnew file+24

This diff is too big to show here.

pkgs/development/compilers/solc/patches/shared-libs-install.patchnew file+64

This diff is too big to show here.

pkgs/development/compilers/souffle/default.nix+11−16

This diff is too big to show here.

pkgs/development/compilers/swi-prolog/default.nix+4−4

This diff is too big to show here.

pkgs/development/compilers/swift/default.nix+24−42

This diff is too big to show here.

pkgs/development/compilers/swift/patches/0003-build-presets-linux-disable-tests.patchdeleted−38

This diff is too big to show here.

pkgs/development/compilers/swift/patches/icu59.patchdeleted−113

This diff is too big to show here.

pkgs/development/compilers/swift/patches/remove_xlocale.patchdeleted−54

This diff is too big to show here.

pkgs/development/compilers/swift/patches/sigaltstack.patchdeleted−11

This diff is too big to show here.

pkgs/development/compilers/swift/patches/sigunused.patchdeleted−11

This diff is too big to show here.

pkgs/development/compilers/swift/purity.patch+17−3

This diff is too big to show here.

pkgs/development/compilers/teyjus/default.nix+7−3

This diff is too big to show here.

pkgs/development/compilers/teyjus/fix-lex-to-flex.patch+6−4

This diff is too big to show here.

pkgs/development/compilers/vala/default.nix+16−8

This diff is too big to show here.

pkgs/development/compilers/yosys/default.nix+14−10

This diff is too big to show here.

pkgs/development/compilers/zig/default.nix+6−5

This diff is too big to show here.

pkgs/development/compilers/zulu/8.nix+4−4

This diff is too big to show here.

pkgs/development/compilers/zulu/default.nix+4−4

This diff is too big to show here.

pkgs/development/coq-modules/CoLoR/default.nix+1−1

This diff is too big to show here.

pkgs/development/coq-modules/QuickChick/default.nix+12−7

This diff is too big to show here.

pkgs/development/coq-modules/autosubst/default.nix+5

This diff is too big to show here.

pkgs/development/coq-modules/bignums/default.nix+20−15

This diff is too big to show here.

pkgs/development/coq-modules/contribs/default.nix+17−5

This diff is too big to show here.

pkgs/development/coq-modules/coq-ext-lib/default.nix+6−2

This diff is too big to show here.

pkgs/development/coq-modules/coq-haskell/default.nix+7−4

This diff is too big to show here.

pkgs/development/coq-modules/coquelicot/default.nix+5

This diff is too big to show here.

pkgs/development/coq-modules/dpdgraph/default.nix+14−2

This diff is too big to show here.

pkgs/development/coq-modules/fiat/HEAD.nix+8−7

This diff is too big to show here.

pkgs/development/coq-modules/heq/default.nix+3

This diff is too big to show here.

pkgs/development/coq-modules/interval/default.nix+6

This diff is too big to show here.

pkgs/development/coq-modules/mathcomp/default.nix+13−13

This diff is too big to show here.

pkgs/development/coq-modules/mathcomp/generic.nix+5−1

This diff is too big to show here.

pkgs/development/coq-modules/paco/default.nix+4

This diff is too big to show here.

pkgs/development/coq-modules/ssreflect/default.nix+13−13

This diff is too big to show here.

pkgs/development/coq-modules/ssreflect/generic.nix+5−1

This diff is too big to show here.

pkgs/development/eclipse/ecj/default.nixdeleted−59

This diff is too big to show here.

pkgs/development/em-modules/generic/default.nix+12−5

This diff is too big to show here.

pkgs/development/go-modules/generic/default.nix+1−1

This diff is too big to show here.

pkgs/development/guile-modules/guile-fibers/default.nix+1−1

This diff is too big to show here.

pkgs/development/guile-modules/guile-lib/default.nix+1−1

This diff is too big to show here.

pkgs/development/guile-modules/guile-ncurses/default.nix+1−1

This diff is too big to show here.

pkgs/development/haskell-modules/configuration-common.nix+131−87

This diff is too big to show here.

pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix+16−5

This diff is too big to show here.

pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix+8−3

This diff is too big to show here.

pkgs/development/haskell-modules/configuration-ghc-8.2.x.nix+11−3

This diff is too big to show here.

pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix+105−383

This diff is too big to show here.

pkgs/development/haskell-modules/configuration-ghcjs.nix−13

This diff is too big to show here.

pkgs/development/haskell-modules/configuration-hackage2nix.yaml+1384−1185

This diff is too big to show here.

pkgs/development/haskell-modules/configuration-nix.nix+14−4

This diff is too big to show here.

pkgs/development/haskell-modules/default.nix+1−1

This diff is too big to show here.

pkgs/development/haskell-modules/generic-builder.nix+26−15

This diff is too big to show here.

pkgs/development/haskell-modules/generic-stack-builder.nix+16−4

This diff is too big to show here.

pkgs/development/haskell-modules/hackage-packages.nix+14293−9019

This diff is too big to show here.

pkgs/development/haskell-modules/hie-packages.nix−502

This diff is too big to show here.

pkgs/development/haskell-modules/initial-packages.nix+1−1

This diff is too big to show here.

pkgs/development/haskell-modules/lib.nix+4−3

This diff is too big to show here.

pkgs/development/haskell-modules/make-package-set.nix+63−6

This diff is too big to show here.

pkgs/development/haskell-modules/patches/encoding-Cabal-2.0.patch+67

This diff is too big to show here.

pkgs/development/haskell-modules/patches/lzma-tests.patch+8−10

This diff is too big to show here.

pkgs/development/haskell-modules/patches/xmonad-contrib-ghc-8.4.1-fix.patch+107

This diff is too big to show here.

pkgs/development/haskell-modules/with-packages-wrapper.nix+9

This diff is too big to show here.

pkgs/development/idris-modules/README.md+1−39

This diff is too big to show here.

pkgs/development/idris-modules/array.nix+30

This diff is too big to show here.

pkgs/development/idris-modules/bi.nix+29

This diff is too big to show here.

pkgs/development/idris-modules/bifunctors.nix+31

This diff is too big to show here.

pkgs/development/idris-modules/bytes.nix+29

This diff is too big to show here.

pkgs/development/idris-modules/canvas.nix+26

This diff is too big to show here.

pkgs/development/idris-modules/categories.nix+27

This diff is too big to show here.

pkgs/development/idris-modules/coda.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/comonad.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/composition.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/config.nix+31

This diff is too big to show here.

pkgs/development/idris-modules/console.nix+30

This diff is too big to show here.

pkgs/development/idris-modules/containers.nix+34

This diff is too big to show here.

pkgs/development/idris-modules/cube.nix+29

This diff is too big to show here.

pkgs/development/idris-modules/curses.nix+36

This diff is too big to show here.

pkgs/development/idris-modules/data.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/default.nix+159−6

This diff is too big to show here.

pkgs/development/idris-modules/derive.nix+29

This diff is too big to show here.

pkgs/development/idris-modules/descncrunch.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/dict.nix+32

This diff is too big to show here.

pkgs/development/idris-modules/dom.nix+30

This diff is too big to show here.

pkgs/development/idris-modules/electron.nix+36

This diff is too big to show here.

pkgs/development/idris-modules/eternal.nix+35

This diff is too big to show here.

pkgs/development/idris-modules/farrp.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/free.nix+27

This diff is too big to show here.

pkgs/development/idris-modules/fsm.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/glfw.nix+32

This diff is too big to show here.

pkgs/development/idris-modules/graphviz.nix+32

This diff is too big to show here.

pkgs/development/idris-modules/hamt.nix+29

This diff is too big to show here.

pkgs/development/idris-modules/heyting-algebra.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/hezarfen.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/hrtime.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/html.nix+34

This diff is too big to show here.

pkgs/development/idris-modules/http.nix+30

This diff is too big to show here.

pkgs/development/idris-modules/http4idris.nix+29

This diff is too big to show here.

pkgs/development/idris-modules/httpclient.nix−36

This diff is too big to show here.

pkgs/development/idris-modules/iaia.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/idrishighlighter.nix+29

This diff is too big to show here.

pkgs/development/idris-modules/idrisscript.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/ipkgparser.nix+29

This diff is too big to show here.

pkgs/development/idris-modules/jheiling-extras.nix+29

This diff is too big to show here.

pkgs/development/idris-modules/jheiling-js.nix+30

This diff is too big to show here.

pkgs/development/idris-modules/js.nix+29

This diff is too big to show here.

pkgs/development/idris-modules/lens.nix+29

This diff is too big to show here.

pkgs/development/idris-modules/lightyear.nix+2−5

This diff is too big to show here.

pkgs/development/idris-modules/logic.nix+31

This diff is too big to show here.

pkgs/development/idris-modules/mapping.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/mhd.nix+33

This diff is too big to show here.

pkgs/development/idris-modules/pacman.nix+32

This diff is too big to show here.

pkgs/development/idris-modules/patricia.nix+32

This diff is too big to show here.

pkgs/development/idris-modules/permutations.nix+32

This diff is too big to show here.

pkgs/development/idris-modules/pfds.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/pipes.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/posix.nix+30

This diff is too big to show here.

pkgs/development/idris-modules/protobuf.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/rationals.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/recursion_schemes.nix+36

This diff is too big to show here.

pkgs/development/idris-modules/refined.nix+32

This diff is too big to show here.

pkgs/development/idris-modules/sdl.nix+32

This diff is too big to show here.

pkgs/development/idris-modules/sdl2.nix+33

This diff is too big to show here.

pkgs/development/idris-modules/semidirect.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/setoids.nix+26

This diff is too big to show here.

pkgs/development/idris-modules/smproc.nix+29

This diff is too big to show here.

pkgs/development/idris-modules/snippets.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/software_foundations.nix+27

This diff is too big to show here.

pkgs/development/idris-modules/specdris.nix+4−7

This diff is too big to show here.

pkgs/development/idris-modules/tap.nix+32

This diff is too big to show here.

pkgs/development/idris-modules/test.nix+32

This diff is too big to show here.

pkgs/development/idris-modules/tlhydra.nix+30

This diff is too big to show here.

pkgs/development/idris-modules/tomladris.nix+30

This diff is too big to show here.

pkgs/development/idris-modules/tp.nix+31

This diff is too big to show here.

pkgs/development/idris-modules/tparsec.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/transducers.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/trees.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/union_type.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/vdom.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/vecspace.nix+27

This diff is too big to show here.

pkgs/development/idris-modules/webgl.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/wl-pprint.nix+4−8

This diff is too big to show here.

pkgs/development/idris-modules/wyvern.nix+33

This diff is too big to show here.

pkgs/development/idris-modules/xhr.nix+28

This diff is too big to show here.

pkgs/development/idris-modules/yaml.nix+29

This diff is too big to show here.

pkgs/development/idris-modules/yampa.nix+27

This diff is too big to show here.

pkgs/development/interpreters/clojure/default.nix+2−2

This diff is too big to show here.

pkgs/development/interpreters/duktape/default.nix+4−3

This diff is too big to show here.

pkgs/development/interpreters/eff/default.nix+12−11

This diff is too big to show here.

pkgs/development/interpreters/elixir/1.6.nix+2−2

This diff is too big to show here.

pkgs/development/interpreters/erlang/R18.nix+2−2

This diff is too big to show here.

pkgs/development/interpreters/erlang/R19.nix+2−2

This diff is too big to show here.

pkgs/development/interpreters/erlang/R20.nix+2−2

This diff is too big to show here.

pkgs/development/interpreters/erlang/generic-builder.nix+4−4

This diff is too big to show here.

pkgs/development/interpreters/gnu-apl/default.nix+4−4

This diff is too big to show here.

pkgs/development/interpreters/groovy/default.nix+2−2

This diff is too big to show here.

pkgs/development/interpreters/guile/1.8.nix+44−21

This diff is too big to show here.

pkgs/development/interpreters/guile/2.0.nix+19−21

This diff is too big to show here.

pkgs/development/interpreters/guile/default.nix+19−21

This diff is too big to show here.

pkgs/development/interpreters/guile/riscv.patch+13

This diff is too big to show here.

pkgs/development/interpreters/j/default.nix+2−2

This diff is too big to show here.

pkgs/development/interpreters/joker/default.nix+2−2

This diff is too big to show here.

pkgs/development/interpreters/jruby/default.nix+2−2

This diff is too big to show here.

pkgs/development/interpreters/love/11.1.nix+41

This diff is too big to show here.

pkgs/development/interpreters/lua-5/5.2.nix+3−28

This diff is too big to show here.

pkgs/development/interpreters/lua-5/5.3.nix+3−28

This diff is too big to show here.

pkgs/development/interpreters/octave/default.nix+2−2

This diff is too big to show here.

pkgs/development/interpreters/perl/MakeMaker-cross.patch+17

This diff is too big to show here.

pkgs/development/interpreters/perl/default.nix+35−4

This diff is too big to show here.

pkgs/development/interpreters/perl/setup-hook-cross.sh+12

This diff is too big to show here.

pkgs/development/interpreters/php/default.nix+8−8

This diff is too big to show here.

pkgs/development/interpreters/pure/default.nix+3−5

This diff is too big to show here.

pkgs/development/interpreters/python/build-python-package-flit.nix+1−1

This diff is too big to show here.

pkgs/development/interpreters/python/cpython/2.7/default.nix+4−1

This diff is too big to show here.

pkgs/development/interpreters/python/cpython/2.7/use-correct-tcl-tk-on-darwin.patch+48

This diff is too big to show here.

pkgs/development/interpreters/python/cpython/3.4/default.nix+5

This diff is too big to show here.

pkgs/development/interpreters/python/cpython/3.4/use-correct-tcl-tk-on-darwin.patch+48

This diff is too big to show here.

pkgs/development/interpreters/python/cpython/3.5/default.nix+5

This diff is too big to show here.

pkgs/development/interpreters/python/cpython/3.5/use-correct-tcl-tk-on-darwin.patch+48

This diff is too big to show here.

pkgs/development/interpreters/python/cpython/3.6/default.nix+7−2

This diff is too big to show here.

pkgs/development/interpreters/python/cpython/3.6/use-correct-tcl-tk-on-darwin.patch+48

This diff is too big to show here.

pkgs/development/interpreters/racket/default.nix+1−1

This diff is too big to show here.

pkgs/development/interpreters/renpy/default.nix+21−13

This diff is too big to show here.

pkgs/development/interpreters/renpy/launcherenv.patch+14

This diff is too big to show here.

pkgs/development/interpreters/ruby/default.nix+16−17

This diff is too big to show here.

pkgs/development/interpreters/ruby/patchsets.nix+3−3

This diff is too big to show here.

pkgs/development/interpreters/spidermonkey/52.nix+2−2

This diff is too big to show here.

pkgs/development/interpreters/supercollider/default.nix+2−2

This diff is too big to show here.

pkgs/development/java-modules/jogl/default.nix+60

This diff is too big to show here.

pkgs/development/java-modules/junit/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/AntTweakBar/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/CGAL/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/LASzip/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/SDL/default.nix+51−33

This diff is too big to show here.

pkgs/development/libraries/SDL2/default.nix+46−36

This diff is too big to show here.

pkgs/development/libraries/SDL2_gfx/default.nix+7−7

This diff is too big to show here.

pkgs/development/libraries/SDL2_image/default.nix+3−2

This diff is too big to show here.

pkgs/development/libraries/SDL_gfx/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/Xaw3d/default.nix+2−4

This diff is too big to show here.

pkgs/development/libraries/accounts-qt/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/accountsservice/default.nix+4−4

This diff is too big to show here.

pkgs/development/libraries/ace/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/acl/default.nix+2

This diff is too big to show here.

pkgs/development/libraries/agda/agda-stdlib/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/agda/pretty/default.nix+1

This diff is too big to show here.

pkgs/development/libraries/agg/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/alembic/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/alkimia/default.nix+31

This diff is too big to show here.

pkgs/development/libraries/allegro/5.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/apache-activemq/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/appstream-glib/default.nix+7−3

This diff is too big to show here.

pkgs/development/libraries/aqbanking/default.nix+5−4

This diff is too big to show here.

pkgs/development/libraries/aqbanking/gwenhywfar.nix+21−9

This diff is too big to show here.

pkgs/development/libraries/aqbanking/libchipcard.nix+4−3

This diff is too big to show here.

pkgs/development/libraries/aqbanking/sources.nix+6−6

This diff is too big to show here.

pkgs/development/libraries/arb/default.nix+9−3

This diff is too big to show here.

pkgs/development/libraries/arguments/default.nix+32

This diff is too big to show here.

pkgs/development/libraries/arm-frc-linux-gnueabi-eglibc/default.nix−65

This diff is too big to show here.

pkgs/development/libraries/arm-frc-linux-gnueabi-linux-api-headers/default.nix−43

This diff is too big to show here.

pkgs/development/libraries/armadillo/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/arrow-cpp/default.nix+44

This diff is too big to show here.

pkgs/development/libraries/asio/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/at-spi2-core/default.nix−3

This diff is too big to show here.

pkgs/development/libraries/atk/default.nix+17−6

This diff is too big to show here.

pkgs/development/libraries/attr/default.nix+6

This diff is too big to show here.

pkgs/development/libraries/audio/jamomacore/default.nix+1

This diff is too big to show here.

pkgs/development/libraries/audio/libgme/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/audio/rtaudio/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/audio/vamp/default.nix+8−5

This diff is too big to show here.

pkgs/development/libraries/aws-sdk-cpp/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/babl/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/bamf/default.nix+49

This diff is too big to show here.

pkgs/development/libraries/bobcat/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/boost/1.66.nix+2−1

This diff is too big to show here.

pkgs/development/libraries/botan/2.0.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/bwidget/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/caf/default.nix+2−10

This diff is too big to show here.

pkgs/development/libraries/cairo/default.nix+3−2

This diff is too big to show here.

pkgs/development/libraries/cddlib/default.nix+38−6

This diff is too big to show here.

pkgs/development/libraries/celt/0.5.1.nix+7

This diff is too big to show here.

pkgs/development/libraries/celt/generic.nix+3

This diff is too big to show here.

pkgs/development/libraries/ceres-solver/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/cfitsio/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/check/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/clipper/default.nix+27

This diff is too big to show here.

pkgs/development/libraries/cloog-ppl/default.nix−4

This diff is too big to show here.

pkgs/development/libraries/clutter-gst/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/clutter-gtk/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/cmark/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/cminpack/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/cogl/default.nix+5−7

This diff is too big to show here.

pkgs/development/libraries/confuse/default.nix+4−3

This diff is too big to show here.

pkgs/development/libraries/cpp-gsl/default.nix+1

This diff is too big to show here.

pkgs/development/libraries/cracklib/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/cyrus-sasl/default.nix+2−1

This diff is too big to show here.

pkgs/development/libraries/dbus/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/dbus/make-dbus-conf.nix+3−2

This diff is too big to show here.

pkgs/development/libraries/dbus/make-system-conf.xsl+1

This diff is too big to show here.

pkgs/development/libraries/dlib/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/double-conversion/default.nix+6−1

This diff is too big to show here.

pkgs/development/libraries/drumstick/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/easyloggingpp/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/eccodes/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/eclib/default.nix+31−8

This diff is too big to show here.

pkgs/development/libraries/eigen/3.3.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/enchant/2.x.nix+27

This diff is too big to show here.

pkgs/development/libraries/epoxy/default.nix+13−7

This diff is too big to show here.

pkgs/development/libraries/epoxy/libgl-path.patch+35

This diff is too big to show here.

pkgs/development/libraries/exempi/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/farbfeld/default.nix+8−4

This diff is too big to show here.

pkgs/development/libraries/farstream/default.nix+10−6

This diff is too big to show here.

pkgs/development/libraries/fcppt/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/fdk-aac/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/fflas-ffpack/default.nix+31−6

This diff is too big to show here.

pkgs/development/libraries/ffmpeg-full/default.nix+4−3

This diff is too big to show here.

pkgs/development/libraries/ffmpeg/4.nix+12

This diff is too big to show here.

pkgs/development/libraries/ffmpeg/generic.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/flint/default.nix+42−5

This diff is too big to show here.

pkgs/development/libraries/flite/default.nix+12−7

This diff is too big to show here.

pkgs/development/libraries/flite/fix-rpath.patch−5

This diff is too big to show here.

pkgs/development/libraries/folly/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/fontconfig/default.nix+5−14

This diff is too big to show here.

pkgs/development/libraries/fox/fox-1.6.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/fplll/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/freenect/default.nix+11−7

This diff is too big to show here.

pkgs/development/libraries/freetds/default.nix+4−6

This diff is too big to show here.

pkgs/development/libraries/freetype/cve-2017-8105.patch−27

This diff is too big to show here.

pkgs/development/libraries/freetype/cve-2017-8287.patch−22

This diff is too big to show here.

pkgs/development/libraries/freetype/default.nix+11−22

This diff is too big to show here.

pkgs/development/libraries/freetype/pcf-config-long-family-names.patch−553

This diff is too big to show here.

pkgs/development/libraries/freetype/pcf-introduce-driver.patch−68

This diff is too big to show here.

pkgs/development/libraries/fstrm/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/gamin/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/gdal/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/gdbm/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/gdcm/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/gdk-pixbuf/default.nix+5−3

This diff is too big to show here.

pkgs/development/libraries/gecode/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/gegl/3.0.nix+4−6

This diff is too big to show here.

pkgs/development/libraries/gegl/4.0.nix+38

This diff is too big to show here.

pkgs/development/libraries/gegl/default.nix+3−5

This diff is too big to show here.

pkgs/development/libraries/geoclue/2.0.nix+6−8

This diff is too big to show here.

pkgs/development/libraries/geos/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/getdns/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/gettext/default.nix+1

This diff is too big to show here.

pkgs/development/libraries/gettext/gettext-setup-hook.sh+21

This diff is too big to show here.

pkgs/development/libraries/gflags/default.nix−10

This diff is too big to show here.

pkgs/development/libraries/givaro/default.nix+21−3

This diff is too big to show here.

pkgs/development/libraries/glbinding/default.nix+22

This diff is too big to show here.

pkgs/development/libraries/glew/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/glib-networking/default.nix+16−13

This diff is too big to show here.

pkgs/development/libraries/glib/default.nix+7−13

This diff is too big to show here.

pkgs/development/libraries/glibc/2.27.nix−101

This diff is too big to show here.

pkgs/development/libraries/glibc/common-2.27.nix−207

This diff is too big to show here.

pkgs/development/libraries/glibc/common.nix+31−33

This diff is too big to show here.

pkgs/development/libraries/glibc/dont-use-system-ld-so-cache-2.27.patch−46

This diff is too big to show here.

pkgs/development/libraries/glibc/dont-use-system-ld-so-cache.patch+19−19

This diff is too big to show here.

pkgs/development/libraries/glibc/fix-rpc-types-musl-conflicts.patch+38

This diff is too big to show here.

pkgs/development/libraries/glibc/nix-locale-archive-2.27.patch−118

This diff is too big to show here.

pkgs/development/libraries/glibc/nix-locale-archive.patch+63−59

This diff is too big to show here.

pkgs/development/libraries/glibmm/default.nix+12−4

This diff is too big to show here.

pkgs/development/libraries/glm/default.nix+6−2

This diff is too big to show here.

pkgs/development/libraries/globalplatform/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/glpk/default.nix+24−4

This diff is too big to show here.

pkgs/development/libraries/gmime/3.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/gnu-efi/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/gnutls/3.6.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/gnutls/generic.nix+1−3

This diff is too big to show here.

pkgs/development/libraries/gobject-introspection/absolute_shlib_path.patch+32−41

This diff is too big to show here.

pkgs/development/libraries/gobject-introspection/default.nix+7−8

This diff is too big to show here.

pkgs/development/libraries/goffice/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/goocanvas/2.x.nix+3−1

This diff is too big to show here.

pkgs/development/libraries/google-gflags/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/gperftools/default.nix+5−3

This diff is too big to show here.

pkgs/development/libraries/gpgme/default.nix+18−5

This diff is too big to show here.

pkgs/development/libraries/grib-api/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/grpc/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/gsettings-qt/default.nix+58

This diff is too big to show here.

pkgs/development/libraries/gsl/default.nix+2−1

This diff is too big to show here.

pkgs/development/libraries/gsm/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/gssdp/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/gstreamer/bad/default.nix+22−30

This diff is too big to show here.

pkgs/development/libraries/gstreamer/bad/fix_pkgconfig_includedir.patch+15

This diff is too big to show here.

pkgs/development/libraries/gstreamer/base/default.nix+46−25

This diff is too big to show here.

pkgs/development/libraries/gstreamer/base/fix_pkgconfig_includedir.patch+15

This diff is too big to show here.

pkgs/development/libraries/gstreamer/core/default.nix+27−17

This diff is too big to show here.

pkgs/development/libraries/gstreamer/core/fix_pkgconfig_includedir.patch+15

This diff is too big to show here.

pkgs/development/libraries/gstreamer/default.nix+4−7

This diff is too big to show here.

pkgs/development/libraries/gstreamer/ges/default.nix+15−6

This diff is too big to show here.

pkgs/development/libraries/gstreamer/ges/fix_pkgconfig_includedir.patch+15

This diff is too big to show here.

pkgs/development/libraries/gstreamer/gnonlin/default.nix−30

This diff is too big to show here.

pkgs/development/libraries/gstreamer/good/default.nix+20−16

This diff is too big to show here.

pkgs/development/libraries/gstreamer/good/fix_pkgconfig_includedir.patch+15

This diff is too big to show here.

pkgs/development/libraries/gstreamer/gstreamermm/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix+2−5

This diff is too big to show here.

pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/default.nix+2−5

This diff is too big to show here.

pkgs/development/libraries/gstreamer/legacy/gst-plugins-ugly/default.nix+2−4

This diff is too big to show here.

pkgs/development/libraries/gstreamer/legacy/gstreamer/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/gstreamer/libav/default.nix+6−9

This diff is too big to show here.

pkgs/development/libraries/gstreamer/rtsp-server/default.nix+29

This diff is too big to show here.

pkgs/development/libraries/gstreamer/ugly/default.nix+13−11

This diff is too big to show here.

pkgs/development/libraries/gstreamer/vaapi/default.nix+6−7

This diff is too big to show here.

pkgs/development/libraries/gstreamer/validate/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/gtk+/2.x.nix+1−4

This diff is too big to show here.

pkgs/development/libraries/gtk+/3.x.nix+11−8

This diff is too big to show here.

pkgs/development/libraries/gtkdatabox/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/gtkmm/2.x.nix+3−1

This diff is too big to show here.

pkgs/development/libraries/gtksourceview/3.x-nix_share_path.patch

This diff is too big to show here.

pkgs/development/libraries/gtksourceview/3.x.nix+16−7

This diff is too big to show here.

pkgs/development/libraries/gtksourceview/4.x-nix_share_path.patch+11

This diff is too big to show here.

pkgs/development/libraries/gtksourceview/4.x.nix+54

This diff is too big to show here.

pkgs/development/libraries/gtkspell/3.nix+7−3

This diff is too big to show here.

pkgs/development/libraries/gts/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/gvfs/default.nix+50−12

This diff is too big to show here.

pkgs/development/libraries/hamlib/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/harfbuzz/default.nix+5−6

This diff is too big to show here.

pkgs/development/libraries/herqq/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/hivex/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/hpx/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/http-parser/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/hunspell/dictionaries.nix+60

This diff is too big to show here.

pkgs/development/libraries/hwloc/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/hyena/default.nix+1

This diff is too big to show here.

pkgs/development/libraries/idnkit/default.nix+4−3

This diff is too big to show here.

pkgs/development/libraries/ignition-transport/generic.nix+2−1

This diff is too big to show here.

pkgs/development/libraries/iml/default.nix+13−3

This diff is too big to show here.

pkgs/development/libraries/imlib2/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/iniparser/default.nix+5

This diff is too big to show here.

pkgs/development/libraries/isl/0.11.1.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/isl/0.12.2.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/isl/0.14.1.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/isl/0.15.0.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/isl/0.17.1.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/iso-codes/default.nix+4−3

This diff is too big to show here.

pkgs/development/libraries/itk/default.nix+5−10

This diff is too big to show here.

pkgs/development/libraries/jama/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/jansson/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/jasper/default.nix+9

This diff is too big to show here.

pkgs/development/libraries/java/classpath/default.nix−61

This diff is too big to show here.

pkgs/development/libraries/java/classpath/missing-casts.patch−80

This diff is too big to show here.

pkgs/development/libraries/java/commons/compress/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/java/commons/io/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/java/hsqldb/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/jemalloc/common.nix+35

This diff is too big to show here.

pkgs/development/libraries/jemalloc/default.nix+3−33

This diff is too big to show here.

pkgs/development/libraries/jemalloc/jemalloc450.nix+6

This diff is too big to show here.

pkgs/development/libraries/json-c/0.11.nix−25

This diff is too big to show here.

pkgs/development/libraries/json-c/default.nix+4−12

This diff is too big to show here.

pkgs/development/libraries/json-glib/default.nix+2−5

This diff is too big to show here.

pkgs/development/libraries/kdb/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/kde-frameworks/default.nix+2

This diff is too big to show here.

pkgs/development/libraries/kde-frameworks/fetch.sh+1−1

This diff is too big to show here.

pkgs/development/libraries/kde-frameworks/kdelibs4support/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/kde-frameworks/kdewebkit.nix+11

This diff is too big to show here.

pkgs/development/libraries/kde-frameworks/kholidays.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/kde-frameworks/ki18n.nix+7−1

This diff is too big to show here.

pkgs/development/libraries/kde-frameworks/srcs.nix+312−312

This diff is too big to show here.

pkgs/development/libraries/kerberos/heimdal-make-missing-headers.patch+10

This diff is too big to show here.

pkgs/development/libraries/kerberos/heimdal.nix+8−2

This diff is too big to show here.

pkgs/development/libraries/kirigami/default.nix−47

This diff is too big to show here.

pkgs/development/libraries/kpmcore/default.nix+6−4

This diff is too big to show here.

pkgs/development/libraries/kproperty/default.nix+5−4

This diff is too big to show here.

pkgs/development/libraries/kreport/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/languagemachines/frog.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/languagemachines/libfolia.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/languagemachines/mbt.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/languagemachines/timbl.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/languagemachines/timblserver.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/languagemachines/ucto.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/lcms2/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/ldb/default.nix+4−3

This diff is too big to show here.

pkgs/development/libraries/leatherman/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/leveldb/default.nix+6−1

This diff is too big to show here.

pkgs/development/libraries/libLAS/default.nix+14−4

This diff is too big to show here.

pkgs/development/libraries/libamqpcpp/default.nix+5−3

This diff is too big to show here.

pkgs/development/libraries/libaom/default.nix+25

This diff is too big to show here.

pkgs/development/libraries/libassuan/default.nix+1−2

This diff is too big to show here.

pkgs/development/libraries/libatomic_ops/default.nix+4−5

This diff is too big to show here.

pkgs/development/libraries/libatomic_ops/riscv.patch−40

This diff is too big to show here.

pkgs/development/libraries/libaudclient/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libav/default.nix+9−4

This diff is too big to show here.

pkgs/development/libraries/libb2/default.nix+17−8

This diff is too big to show here.

pkgs/development/libraries/libbfd/default.nix+3−5

This diff is too big to show here.

pkgs/development/libraries/libbsd/cdefs.patch+222

This diff is too big to show here.

pkgs/development/libraries/libbsd/default.nix+10−1

This diff is too big to show here.

pkgs/development/libraries/libbsd/features.patch+26

This diff is too big to show here.

pkgs/development/libraries/libbsd/non-glibc.patch+74

This diff is too big to show here.

pkgs/development/libraries/libbson/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libcanberra/default.nix+5−6

This diff is too big to show here.

pkgs/development/libraries/libcdio-paranoia/default.nix+10−2

This diff is too big to show here.

pkgs/development/libraries/libcdio/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libcec/platform.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libchamplain/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libchop/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libcloudproviders/default.nix+4

This diff is too big to show here.

pkgs/development/libraries/libcloudproviders/fix-include.patch+11

This diff is too big to show here.

pkgs/development/libraries/libconfuse/default.nix+3−1

This diff is too big to show here.

pkgs/development/libraries/libcouchbase/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libcue/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libdazzle/default.nix+55

This diff is too big to show here.

pkgs/development/libraries/libdbusmenu-qt/qt-5.5.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libdigidocpp/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/libdrm/default.nix+5−5

This diff is too big to show here.

pkgs/development/libraries/libdvdcss/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libdvdnav/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/libdvdread/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libdwarf/default.nix+5−3

This diff is too big to show here.

pkgs/development/libraries/libdynd/default.nix+7

This diff is too big to show here.

pkgs/development/libraries/libe-book/default.nix+6−6

This diff is too big to show here.

pkgs/development/libraries/libedit/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libesmtp/default.nix+18

This diff is too big to show here.

pkgs/development/libraries/libetpan/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libevdev/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libevent/default.nix+2−1

This diff is too big to show here.

pkgs/development/libraries/libf2c/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libfilezilla/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libfixposix/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libfm/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libftdi/1.x.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libftdi/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libgcrypt/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/libgdiplus/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libgksu/default.nix+6−2

This diff is too big to show here.

pkgs/development/libraries/libglvnd/default.nix+22−8

This diff is too big to show here.

pkgs/development/libraries/libgpg-error/default.nix+14−8

This diff is too big to show here.

pkgs/development/libraries/libgpg-error/riscv.patch−54

This diff is too big to show here.

pkgs/development/libraries/libgphoto2/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/libgpod/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libgringotts/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/libgroove/default.nix+3−1

This diff is too big to show here.

pkgs/development/libraries/libgroove/no-warnings-as-errors.patch+15

This diff is too big to show here.

pkgs/development/libraries/libgsf/default.nix+5−8

This diff is too big to show here.

pkgs/development/libraries/libgtop/default.nix+1−4

This diff is too big to show here.

pkgs/development/libraries/libguestfs/appliance.nix+7

This diff is too big to show here.

pkgs/development/libraries/libguestfs/default.nix+24−10

This diff is too big to show here.

pkgs/development/libraries/libhttpseverywhere/default.nix+7−5

This diff is too big to show here.

pkgs/development/libraries/libiconv/default.nix+2

This diff is too big to show here.

pkgs/development/libraries/libiconv/setup-hook.sh+18

This diff is too big to show here.

pkgs/development/libraries/libidn2/default.nix+4−3

This diff is too big to show here.

pkgs/development/libraries/libimobiledevice/default.nix+2−1

This diff is too big to show here.

pkgs/development/libraries/libinfinity/default.nix+8−5

This diff is too big to show here.

pkgs/development/libraries/libinput/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libkate/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libksba/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/liblangtag/default.nix+52

This diff is too big to show here.

pkgs/development/libraries/liblouis/default.nix+3−2

This diff is too big to show here.

pkgs/development/libraries/libmbim/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libmediainfo/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libmicrohttpd/default.nix+4−6

This diff is too big to show here.

pkgs/development/libraries/libminc/default.nix+22−11

This diff is too big to show here.

pkgs/development/libraries/libmng/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libmnl/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libmodplug/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libmowgli/default.nix+4−3

This diff is too big to show here.

pkgs/development/libraries/libmsgpack/generic.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libmtp/default.nix+5−4

This diff is too big to show here.

pkgs/development/libraries/libmwaw/default.nix+4−4

This diff is too big to show here.

pkgs/development/libraries/libmypaint/default.nix+9−1

This diff is too big to show here.

pkgs/development/libraries/libmysqlconnectorcpp/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libnatspec/default.nix−1

This diff is too big to show here.

pkgs/development/libraries/libnetfilter_conntrack/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libnetfilter_cttimeout/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libnetfilter_log/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libnfs/default.nix+2

This diff is too big to show here.

pkgs/development/libraries/libngspice/default.nix+25

This diff is too big to show here.

pkgs/development/libraries/libofx/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/liboil/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libopcodes/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/libpar2/default.nix+2

This diff is too big to show here.

pkgs/development/libraries/libpipeline/default.nix+4−4

This diff is too big to show here.

pkgs/development/libraries/libpng/12.nix−5

This diff is too big to show here.

pkgs/development/libraries/libpqxx/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libqalculate/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libqglviewer/default.nix+3−2

This diff is too big to show here.

pkgs/development/libraries/libqmatrixclient/default.nix+3−17

This diff is too big to show here.

pkgs/development/libraries/libqmi/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libqrencode/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libraw/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libraw1394/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/librdf/rasqal.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libre/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/librealsense/default.nix+33

This diff is too big to show here.

pkgs/development/libraries/librelp/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/librem/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libressl/default.nix+16−4

This diff is too big to show here.

pkgs/development/libraries/librime/default.nix+4−4

This diff is too big to show here.

pkgs/development/libraries/librsvg/default.nix+5−10

This diff is too big to show here.

pkgs/development/libraries/librsync/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libs3/default.nix+6−3

This diff is too big to show here.

pkgs/development/libraries/libsass/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libsearpc/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libseccomp/default.nix+3

This diff is too big to show here.

pkgs/development/libraries/libsecret/default.nix+2−4

This diff is too big to show here.

pkgs/development/libraries/libsolv/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libsoup/default.nix+16−26

This diff is too big to show here.

pkgs/development/libraries/libspatialindex/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libspatialite/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libssh2/default.nix+3−17

This diff is too big to show here.

pkgs/development/libraries/libstrophe/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libsvm/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libtar/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libtheora/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libtins/default.nix+43

This diff is too big to show here.

pkgs/development/libraries/libtorrent-rasterbar/default.nix+36−5

This diff is too big to show here.

pkgs/development/libraries/libtorrent-rasterbar/generic.nix−43

This diff is too big to show here.

pkgs/development/libraries/libtoxcore/default.nix+43−38

This diff is too big to show here.

pkgs/development/libraries/libu2f-host/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libu2f-server/default.nix+4−5

This diff is too big to show here.

pkgs/development/libraries/libui/default.nix+3−1

This diff is too big to show here.

pkgs/development/libraries/libunistring/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libunwind/default.nix+2

This diff is too big to show here.

pkgs/development/libraries/liburcu/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libusb1/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libusbmuxd/default.nix+2−1

This diff is too big to show here.

pkgs/development/libraries/libuv/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libva-utils/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libva/1.0.0.nix+37

This diff is too big to show here.

pkgs/development/libraries/libva/default.nix+9−7

This diff is too big to show here.

pkgs/development/libraries/libvdpau/default.nix+4−3

This diff is too big to show here.

pkgs/development/libraries/libvirt-glib/default.nix+4−2

This diff is too big to show here.

pkgs/development/libraries/libvirt/build-on-bsd.patch−58

This diff is too big to show here.

pkgs/development/libraries/libvirt/default.nix+36−25

This diff is too big to show here.

pkgs/development/libraries/libvisio/default.nix+14−15

This diff is too big to show here.

pkgs/development/libraries/libvorbis/default.nix+2−12

This diff is too big to show here.

pkgs/development/libraries/libvpx/git.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libwacom/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libwebsockets/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libwnck/3.x.nix+24−14

This diff is too big to show here.

pkgs/development/libraries/libwnck/install_introspection_to_prefix.patch−12

This diff is too big to show here.

pkgs/development/libraries/libwps/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libx86emu/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libxcomp/default.nix+5−4

This diff is too big to show here.

pkgs/development/libraries/libxkbcommon/default.nix+19−14

This diff is too big to show here.

pkgs/development/libraries/libxmi/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libyaml-cpp/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/libyubikey/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/libzdb/default.nix+4−4

This diff is too big to show here.

pkgs/development/libraries/lightstep-tracer-cpp/default.nix+1

This diff is too big to show here.

pkgs/development/libraries/linbox/default.nix+79

This diff is too big to show here.

pkgs/development/libraries/live555/default.nix+19−13

This diff is too big to show here.

pkgs/development/libraries/lmdb/default.nix+5−2

This diff is too big to show here.

pkgs/development/libraries/lmdb/hardcoded-compiler.patch+26

This diff is too big to show here.

pkgs/development/libraries/log4cxx/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/luaffi/darwin.patch+17

This diff is too big to show here.

pkgs/development/libraries/luaffi/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/mailcore2/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/matio/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/mbedtls/darwin_dylib.patch−28

This diff is too big to show here.

pkgs/development/libraries/mbedtls/default.nix+13−13

This diff is too big to show here.

pkgs/development/libraries/mdds/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/mesa-glu/default.nix+4−3

This diff is too big to show here.

pkgs/development/libraries/mesa/default.nix+71−19

This diff is too big to show here.

pkgs/development/libraries/mesa/missing-include.patch+11

This diff is too big to show here.

pkgs/development/libraries/mesa/musl-fixes.patch−22

This diff is too big to show here.

pkgs/development/libraries/movit/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/mpfr/upstream.patch−1699

This diff is too big to show here.

pkgs/development/libraries/mpir/default.nix+2

This diff is too big to show here.

pkgs/development/libraries/mps/default.nix+6

This diff is too big to show here.

pkgs/development/libraries/mypaint-brushes/default.nix+35

This diff is too big to show here.

pkgs/development/libraries/mysocketw/default.nix+7−4

This diff is too big to show here.

pkgs/development/libraries/ncurses/default.nix+5−9

This diff is too big to show here.

pkgs/development/libraries/ndn-cxx/default.nix+1

This diff is too big to show here.

pkgs/development/libraries/netcdf-fortran/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/netcdf/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/newt/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/nix-plugins/default.nix+4−4

This diff is too big to show here.

pkgs/development/libraries/nlohmann_json/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/nspr/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/nss/85_security_load.patch+4−4

This diff is too big to show here.

pkgs/development/libraries/nss/default.nix+11−3

This diff is too big to show here.

pkgs/development/libraries/ntbtls/default.nix+6−5

This diff is too big to show here.

pkgs/development/libraries/ocl-icd/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/ogre/1.9.x.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/oniguruma/default.nix+6−11

This diff is too big to show here.

pkgs/development/libraries/openbsm/bsm-add-audit_token_to_pid.patch+24

This diff is too big to show here.

pkgs/development/libraries/openbsm/default.nix+22

This diff is too big to show here.

pkgs/development/libraries/opencollada/default.nix+10−3

This diff is too big to show here.

pkgs/development/libraries/opencolorio/default.nix+5−3

This diff is too big to show here.

pkgs/development/libraries/opencv/3.x.nix+17−2

This diff is too big to show here.

pkgs/development/libraries/opencv/default.nix+3−2

This diff is too big to show here.

pkgs/development/libraries/opendht/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/openexrid-unstable/default.nix+6−1

This diff is too big to show here.

pkgs/development/libraries/openfst/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/openmpi/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/openpam/default.nix+18

This diff is too big to show here.

pkgs/development/libraries/openssl/default.nix+6−11

This diff is too big to show here.

pkgs/development/libraries/opensubdiv/default.nix+9−4

This diff is too big to show here.

pkgs/development/libraries/openvdb/default.nix+4−4

This diff is too big to show here.

pkgs/development/libraries/openzwave/default.nix+56

This diff is too big to show here.

pkgs/development/libraries/p11-kit/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/pango/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/parquet-cpp/default.nix+37

This diff is too big to show here.

pkgs/development/libraries/pcre/default.nix+4

This diff is too big to show here.

pkgs/development/libraries/physics/fastjet/default.nix+4−3

This diff is too big to show here.

pkgs/development/libraries/physics/geant4/datasets-hook.sh+5

This diff is too big to show here.

pkgs/development/libraries/physics/geant4/datasets.nix+103

This diff is too big to show here.

pkgs/development/libraries/physics/geant4/default.nix+33−55

This diff is too big to show here.

pkgs/development/libraries/physics/geant4/fetch.nix+11−1

This diff is too big to show here.

pkgs/development/libraries/physics/geant4/geant4-hook.sh

This diff is too big to show here.

pkgs/development/libraries/physics/pythia/default.nix+3−2

This diff is too big to show here.

pkgs/development/libraries/physics/rivet/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/pipewire/default.nix+5−7

This diff is too big to show here.

pkgs/development/libraries/pipewire/fix-paths.patch−8

This diff is too big to show here.

pkgs/development/libraries/pixman/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/poco/default.nix+5−2

This diff is too big to show here.

pkgs/development/libraries/poppler/0.61.nix+56

This diff is too big to show here.

pkgs/development/libraries/poppler/default.nix+16−32

This diff is too big to show here.

pkgs/development/libraries/postgis/2.3.nix−102

This diff is too big to show here.

pkgs/development/libraries/postgis/default.nix+18−2

This diff is too big to show here.

pkgs/development/libraries/postgis/pg_db_postgis_enable.sh−38

This diff is too big to show here.

pkgs/development/libraries/postgis/pg_db_postgis_fix_or_load_sql_dump.sh−52

This diff is too big to show here.

pkgs/development/libraries/protobuf/3.4.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/protobuf/3.5.nix+6

This diff is too big to show here.

pkgs/development/libraries/ptex/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/ptlib/default.nix+7−3

This diff is too big to show here.

pkgs/development/libraries/pugixml/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/qca-qt5/default.nix+5−1

This diff is too big to show here.

pkgs/development/libraries/qca-qt5/move-project.patch+19

This diff is too big to show here.

pkgs/development/libraries/qca2/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/qmlbox2d/default.nix+31

This diff is too big to show here.

pkgs/development/libraries/qpdf/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/qscintilla/default.nix+24−20

This diff is too big to show here.

pkgs/development/libraries/qt-4.x/4.8/default.nix+2−3

This diff is too big to show here.

pkgs/development/libraries/qt-4.x/4.8/dlopen-absolute-paths.diff−26

This diff is too big to show here.

pkgs/development/libraries/qt-5/5.10/default.nix+4−1

This diff is too big to show here.

pkgs/development/libraries/qt-5/5.10/restore-pc-files.patch+27

This diff is too big to show here.

pkgs/development/libraries/qt-5/mkDerivation.nix+2−3

This diff is too big to show here.

pkgs/development/libraries/qt-5/modules/qtbase.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/qt-5/modules/qtlocation.nix+8−1

This diff is too big to show here.

pkgs/development/libraries/qt-5/modules/qtspeech.nix+7

This diff is too big to show here.

pkgs/development/libraries/qt-5/modules/qtwebengine.nix+86−20

This diff is too big to show here.

pkgs/development/libraries/qt-5/modules/qtwebkit.nix+6−1

This diff is too big to show here.

pkgs/development/libraries/qtkeychain/default.nix+17−5

This diff is too big to show here.

pkgs/development/libraries/qtstyleplugin-kvantum/default.nix+8−7

This diff is too big to show here.

pkgs/development/libraries/quazip/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/qwt/6.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/qwt/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/rabbitmq-c/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/rapidjson/default.nix+6−1

This diff is too big to show here.

pkgs/development/libraries/rarian/default.nix

This diff is too big to show here.

pkgs/development/libraries/rdkafka/default.nix+4−6

This diff is too big to show here.

pkgs/development/libraries/rocksdb/default.nix+16−8

This diff is too big to show here.

pkgs/development/libraries/schroedinger/default.nix+11−3

This diff is too big to show here.

pkgs/development/libraries/science/biology/EBTKS/default.nix+28

This diff is too big to show here.

pkgs/development/libraries/science/biology/bicpl/default.nix+33

This diff is too big to show here.

pkgs/development/libraries/science/biology/elastix/default.nix+7−11

This diff is too big to show here.

pkgs/development/libraries/science/biology/oobicpl/default.nix+31

This diff is too big to show here.

pkgs/development/libraries/science/math/atlas/default.nix+4−2

This diff is too big to show here.

pkgs/development/libraries/science/math/brial/default.nix+46

This diff is too big to show here.

pkgs/development/libraries/science/math/caffe2/default.nix+7−3

This diff is too big to show here.

pkgs/development/libraries/science/math/caffe2/fix_compilation_on_gcc7.patch+46

This diff is too big to show here.

pkgs/development/libraries/science/math/clblas/default.nix+13−4

This diff is too big to show here.

pkgs/development/libraries/science/math/cliquer/default.nix+38

This diff is too big to show here.

pkgs/development/libraries/science/math/flintqs/default.nix+40

This diff is too big to show here.

pkgs/development/libraries/science/math/lcalc/default.nix+78

This diff is too big to show here.

pkgs/development/libraries/science/math/lcalc/makefile.patch+113

This diff is too big to show here.

pkgs/development/libraries/science/math/liblapack/3.5.0.nix−64

This diff is too big to show here.

pkgs/development/libraries/science/math/liblapack/default.nix+3−4

This diff is too big to show here.

pkgs/development/libraries/science/math/m4ri/default.nix+30

This diff is too big to show here.

pkgs/development/libraries/science/math/m4rie/default.nix+39

This diff is too big to show here.

pkgs/development/libraries/science/math/openblas/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/science/math/openlibm/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/science/math/petsc/default.nix+7−2

This diff is too big to show here.

pkgs/development/libraries/science/math/planarity/default.nix+40

This diff is too big to show here.

pkgs/development/libraries/science/math/rankwidth/default.nix+28

This diff is too big to show here.

pkgs/development/libraries/science/math/rubiks/default.nix+82

This diff is too big to show here.

pkgs/development/libraries/science/math/sympow/default.nix+91

This diff is too big to show here.

pkgs/development/libraries/science/math/zn_poly/default.nix+50

This diff is too big to show here.

pkgs/development/libraries/science/networking/ns3/default.nix+98

This diff is too big to show here.

pkgs/development/libraries/sfml/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/silgraphite/graphite2.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/simpleitk/default.nix+29

This diff is too big to show here.

pkgs/development/libraries/slang/default.nix+18−5

This diff is too big to show here.

pkgs/development/libraries/soxt/default.nix+21

This diff is too big to show here.

pkgs/development/libraries/speech-tools/default.nix+13−8

This diff is too big to show here.

pkgs/development/libraries/spice-gtk/default.nix+38−24

This diff is too big to show here.

pkgs/development/libraries/sqlite/default.nix+5−3

This diff is too big to show here.

pkgs/development/libraries/sqlite/sqlite3_analyzer.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/srtp/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/stfl/default.nix−3

This diff is too big to show here.

pkgs/development/libraries/sundials/default.nix+28

This diff is too big to show here.

pkgs/development/libraries/swiften/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/tachyon/default.nix+49−8

This diff is too big to show here.

pkgs/development/libraries/tachyon/make-archs.patch+37

This diff is too big to show here.

pkgs/development/libraries/tachyon/no-absolute-paths.patch+57

This diff is too big to show here.

pkgs/development/libraries/talloc/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/tevent/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/ti-rpc/default.nix+6−8

This diff is too big to show here.

pkgs/development/libraries/tnt/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/tokyo-tyrant/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/tremor/default.nix+6−6

This diff is too big to show here.

pkgs/development/libraries/umockdev/default.nix+3−2

This diff is too big to show here.

pkgs/development/libraries/unibilium/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/unixODBC/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/unixODBCDrivers/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/usbredir/default.nix+1−3

This diff is too big to show here.

pkgs/development/libraries/utf8proc/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/v8/default.nix+5−3

This diff is too big to show here.

pkgs/development/libraries/vaapi-intel/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/vapoursynth/default.nix+5−5

This diff is too big to show here.

pkgs/development/libraries/vcdimager/default.nix+5−3

This diff is too big to show here.

pkgs/development/libraries/virglrenderer/default.nix+7−2

This diff is too big to show here.

pkgs/development/libraries/vo-amrwbenc/default.nix+22

This diff is too big to show here.

pkgs/development/libraries/vulkan-loader/default.nix+14−9

This diff is too big to show here.

pkgs/development/libraries/vulkan-loader/rev-file.patch+21

This diff is too big to show here.

pkgs/development/libraries/wayland/protocols.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/wcslib/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/webkitgtk/2.18.nix−106

This diff is too big to show here.

pkgs/development/libraries/webkitgtk/2.20.nix+89

This diff is too big to show here.

pkgs/development/libraries/webkitgtk/2.4.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/webkitgtk/PR-152650-2.patch−62

This diff is too big to show here.

pkgs/development/libraries/webkitgtk/PR-153138.patch−26

This diff is too big to show here.

pkgs/development/libraries/webkitgtk/PR-157554.patch−33

This diff is too big to show here.

pkgs/development/libraries/webkitgtk/PR-157574.patch−62

This diff is too big to show here.

pkgs/development/libraries/webkitgtk/finding-harfbuzz-icu.patch−52

This diff is too big to show here.

pkgs/development/libraries/webkitgtk/gstreamergl-2.17.patch−13

This diff is too big to show here.

pkgs/development/libraries/wlc/default.nix+4−4

This diff is too big to show here.

pkgs/development/libraries/wlroots/default.nix+9−9

This diff is too big to show here.

pkgs/development/libraries/wlroots/libdrm.patch−9

This diff is too big to show here.

pkgs/development/libraries/wlroots/no-werror.patch−10

This diff is too big to show here.

pkgs/development/libraries/wt/default.nix+7−9

This diff is too big to show here.

pkgs/development/libraries/wxSVG/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/wxwidgets/3.0/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/xalanc/default.nix+2−3

This diff is too big to show here.

pkgs/development/libraries/xercesc/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/xgboost/default.nix+7−4

This diff is too big to show here.

pkgs/development/libraries/xine-lib/default.nix+2−2

This diff is too big to show here.

pkgs/development/libraries/xmlrpc-c/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/xxHash/default.nix+3−3

This diff is too big to show here.

pkgs/development/libraries/zlog/default.nix+1−1

This diff is too big to show here.

pkgs/development/libraries/zmqpp/default.nix+27

This diff is too big to show here.

pkgs/development/libraries/zziplib/default.nix+11−6

This diff is too big to show here.

pkgs/development/lisp-modules/asdf/default.nix+4−4

This diff is too big to show here.

pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix+5

This diff is too big to show here.

pkgs/development/misc/amdapp-sdk/default.nix+1−1

This diff is too big to show here.

pkgs/development/misc/avr/gcc/default.nix+4−4

This diff is too big to show here.

pkgs/development/misc/loc/default.nix+1−1

This diff is too big to show here.

pkgs/development/misc/rpiboot/unstable.nix+36

This diff is too big to show here.

pkgs/development/misc/stm32/betaflight/default.nix

This diff is too big to show here.

pkgs/development/mobile/abootimg/default.nix+43

This diff is too big to show here.

pkgs/development/mobile/androidenv/androidndk.nix−2

This diff is too big to show here.

pkgs/development/mobile/androidenv/androidndk_r8e.nix−2

This diff is too big to show here.

pkgs/development/mobile/androidenv/build-tools.nix+6−6

This diff is too big to show here.

pkgs/development/mobile/cocoapods/Gemfile+1−1

This diff is too big to show here.

pkgs/development/mobile/cocoapods/Gemfile.lock+76

This diff is too big to show here.

pkgs/development/mobile/cocoapods/default.nix+17

This diff is too big to show here.

pkgs/development/mobile/cocoapods/gemset.nix+242

This diff is too big to show here.

pkgs/development/mobile/cocoapods/update+10

This diff is too big to show here.

pkgs/development/mobile/flashtool/default.nix+1−3

This diff is too big to show here.

pkgs/development/mobile/genymotion/default.nix+2−2

This diff is too big to show here.

pkgs/development/mobile/titaniumenv/build-app.nix+11−33

This diff is too big to show here.

pkgs/development/mobile/titaniumenv/default.nix+2−1

This diff is too big to show here.

pkgs/development/mobile/titaniumenv/examples/default.nix+1−1

This diff is too big to show here.

pkgs/development/mobile/titaniumenv/examples/kitchensink/default.nix+4−5

This diff is too big to show here.

pkgs/development/mobile/titaniumenv/titaniumsdk-7.1.nix+102

This diff is too big to show here.

pkgs/development/mobile/xcodeenv/build-app.nix+30−4

This diff is too big to show here.

pkgs/development/mobile/xcodeenv/simulate-app.nix+1−1

This diff is too big to show here.

pkgs/development/node-packages/README.md+1−51

This diff is too big to show here.

pkgs/development/node-packages/composition-v6.nix+2−1

This diff is too big to show here.

pkgs/development/node-packages/composition-v8.nix+2−1

This diff is too big to show here.

pkgs/development/node-packages/default-v6.nix+10−3

This diff is too big to show here.

pkgs/development/node-packages/node-env.nix+9−3

This diff is too big to show here.

pkgs/development/node-packages/node-packages-v6.json+7−1

This diff is too big to show here.

pkgs/development/node-packages/node-packages-v6.nix+6100−4013

This diff is too big to show here.

pkgs/development/node-packages/node-packages-v8.json+5

This diff is too big to show here.

pkgs/development/node-packages/node-packages-v8.nix+6414−1134

This diff is too big to show here.

pkgs/development/ocaml-modules/alcotest/default.nix+2−2

This diff is too big to show here.

pkgs/development/ocaml-modules/bitstring/camlp4-git.patch−44

This diff is too big to show here.

pkgs/development/ocaml-modules/bitstring/default.nix+18−13

This diff is too big to show here.

pkgs/development/ocaml-modules/bitstring/srcdir.patch−11

This diff is too big to show here.

pkgs/development/ocaml-modules/camlimages/default.nix+20

This diff is too big to show here.

pkgs/development/ocaml-modules/comparelib/default.nix+2−2

This diff is too big to show here.

pkgs/development/ocaml-modules/containers/default.nix+2−2

This diff is too big to show here.

pkgs/development/ocaml-modules/cstruct/default.nix+2−2

This diff is too big to show here.

pkgs/development/ocaml-modules/eliom/default.nix+26−14

This diff is too big to show here.

pkgs/development/ocaml-modules/expat/default.nix+2−2

This diff is too big to show here.

pkgs/development/ocaml-modules/extlib/default.nix+3−3

This diff is too big to show here.

pkgs/development/ocaml-modules/gapi-ocaml/default.nix+10−7

This diff is too big to show here.

pkgs/development/ocaml-modules/git-http/default.nix+7−2

This diff is too big to show here.

pkgs/development/ocaml-modules/git/default.nix+7−3

This diff is too big to show here.

pkgs/development/ocaml-modules/herelib/default.nix+2−2

This diff is too big to show here.

pkgs/development/ocaml-modules/http/default.nix+4

This diff is too big to show here.

pkgs/development/ocaml-modules/janestreet/default.nix+107−116

This diff is too big to show here.

pkgs/development/ocaml-modules/janestreet/janePackage.nix+3−3

This diff is too big to show here.

pkgs/development/ocaml-modules/janestreet/old.nix+615

This diff is too big to show here.

pkgs/development/ocaml-modules/lwt/default.nix+26−47

This diff is too big to show here.

pkgs/development/ocaml-modules/lwt/legacy.nix+57

This diff is too big to show here.

pkgs/development/ocaml-modules/lwt/ppx.nix+19

This diff is too big to show here.

pkgs/development/ocaml-modules/ocaml-libvirt/default.nix+3−3

This diff is too big to show here.

pkgs/development/ocaml-modules/ocamlnet/default.nix+4−3

This diff is too big to show here.

pkgs/development/ocaml-modules/ocp-ocamlres/default.nix+8−4

This diff is too big to show here.

pkgs/development/ocaml-modules/ocsigen-deriving/default.nix+20−5

This diff is too big to show here.

pkgs/development/ocaml-modules/ocsigen-server/default.nix+24−9

This diff is too big to show here.

pkgs/development/ocaml-modules/ocsigen-start/default.nix+7−5

This diff is too big to show here.

pkgs/development/ocaml-modules/ocsigen-toolkit/default.nix+6−6

This diff is too big to show here.

pkgs/development/ocaml-modules/optcomp/META+12

This diff is too big to show here.

pkgs/development/ocaml-modules/optcomp/default.nix+23−1

This diff is too big to show here.

pkgs/development/ocaml-modules/pa_bench/default.nix+2−2

This diff is too big to show here.

pkgs/development/ocaml-modules/pa_ounit/default.nix+2−2

This diff is too big to show here.

pkgs/development/ocaml-modules/pcre/default.nix+5−7

This diff is too big to show here.

pkgs/development/ocaml-modules/pipebang/default.nix+2−2

This diff is too big to show here.

pkgs/development/ocaml-modules/ppx_derivers/default.nix+2−2

This diff is too big to show here.

pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix+2−2

This diff is too big to show here.

pkgs/development/ocaml-modules/sawja/default.nix+3−3

This diff is too big to show here.

pkgs/development/ocaml-modules/ssl/default.nix+2−2

This diff is too big to show here.

pkgs/development/ocaml-modules/stdint/default.nix+2−2

This diff is too big to show here.

pkgs/development/ocaml-modules/type_conv/112.01.01.nix+2−2

This diff is too big to show here.

pkgs/development/ocaml-modules/uchar/default.nix+3−3

This diff is too big to show here.

pkgs/development/ocaml-modules/yojson/default.nix+2−2

This diff is too big to show here.

pkgs/development/perl-modules/MNI/default.nix+21

This diff is too big to show here.

pkgs/development/perl-modules/MNI/no-stdin.patch+13

This diff is too big to show here.

pkgs/development/perl-modules/Paranoid-blessed-path.patch+23

This diff is too big to show here.

pkgs/development/perl-modules/Socket6-sv_undef.patch+18

This diff is too big to show here.

pkgs/development/perl-modules/generic/builder.sh+1−1

This diff is too big to show here.

pkgs/development/perl-modules/generic/default.nix+3−2

This diff is too big to show here.

pkgs/development/perl-modules/perl-POE-1.367-pod_linkcheck.patch+40

This diff is too big to show here.

pkgs/development/perl-modules/perl-POE-1.367-pod_no404s.patch+46

This diff is too big to show here.

pkgs/development/python-modules/Babel/default.nix+22

This diff is too big to show here.

pkgs/development/python-modules/Cython/default.nix+4−17

This diff is too big to show here.

pkgs/development/python-modules/GeoIP/default.nix+1−1

This diff is too big to show here.

pkgs/development/python-modules/IPy/default.nix+24

This diff is too big to show here.

pkgs/development/python-modules/JPype1/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/MechanicalSoup/default.nix+2−4

This diff is too big to show here.

pkgs/development/python-modules/Nikola/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/Rtree/default.nix+29

This diff is too big to show here.

pkgs/development/python-modules/Theano/default.nix+8−1

This diff is too big to show here.

pkgs/development/python-modules/WSME/default.nix+49

This diff is too big to show here.

pkgs/development/python-modules/absl-py/default.nix+2−3

This diff is too big to show here.

pkgs/development/python-modules/acme/default.nix+16−4

This diff is too big to show here.

pkgs/development/python-modules/adal/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/affinity/default.nix+6−2

This diff is too big to show here.

pkgs/development/python-modules/agate/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/aiohttp-jinja2/default.nix+26

This diff is too big to show here.

pkgs/development/python-modules/aiohttp/cors.nix+9−5

This diff is too big to show here.

pkgs/development/python-modules/aiohttp/default.nix+5−4

This diff is too big to show here.

pkgs/development/python-modules/aiohue/default.nix+19

This diff is too big to show here.

pkgs/development/python-modules/ajpy/default.nix+21

This diff is too big to show here.

pkgs/development/python-modules/alembic/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/allpairspy/default.nix+25

This diff is too big to show here.

pkgs/development/python-modules/alot/default.nix+60

This diff is too big to show here.

pkgs/development/python-modules/altair/default.nix+6−5

This diff is too big to show here.

pkgs/development/python-modules/amqp/default.nix+20

This diff is too big to show here.

pkgs/development/python-modules/aniso8601/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/antlr4-python3-runtime/default.nix+18

This diff is too big to show here.

pkgs/development/python-modules/anyjson/default.nix+21

This diff is too big to show here.

pkgs/development/python-modules/application/default.nix+15

This diff is too big to show here.

pkgs/development/python-modules/apsw/default.nix+9−10

This diff is too big to show here.

pkgs/development/python-modules/asana/default.nix+13−15

This diff is too big to show here.

pkgs/development/python-modules/asgi_ipc/default.nix−21

This diff is too big to show here.

pkgs/development/python-modules/asgi_redis/default.nix−24

This diff is too big to show here.

pkgs/development/python-modules/asgiref/default.nix+15−7

This diff is too big to show here.

pkgs/development/python-modules/astral/default.nix+7−5

This diff is too big to show here.

pkgs/development/python-modules/astroid/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/astropy/default.nix+6−5

This diff is too big to show here.

pkgs/development/python-modules/async_generator/default.nix+25

This diff is too big to show here.

pkgs/development/python-modules/async_timeout/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/asyncio/default.nix+18

This diff is too big to show here.

pkgs/development/python-modules/asynctest/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/atomiclong/default.nix+21

This diff is too big to show here.

pkgs/development/python-modules/atomicwrites/default.nix+17

This diff is too big to show here.

pkgs/development/python-modules/attrdict/default.nix+19

This diff is too big to show here.

pkgs/development/python-modules/autobahn/default.nix+3−3

This diff is too big to show here.

pkgs/development/python-modules/autopep8/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/avro/default.nix+17

This diff is too big to show here.

pkgs/development/python-modules/avro3k/default.nix+19

This diff is too big to show here.

pkgs/development/python-modules/aws-xray-sdk/default.nix+4−3

This diff is too big to show here.

pkgs/development/python-modules/babelfish/default.nix+17

This diff is too big to show here.

pkgs/development/python-modules/backcall/default.nix+28

This diff is too big to show here.

pkgs/development/python-modules/batinfo/default.nix+22

This diff is too big to show here.

pkgs/development/python-modules/bayespy/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/bcdoc/default.nix+22

This diff is too big to show here.

pkgs/development/python-modules/beancount/default.nix+15−11

This diff is too big to show here.

pkgs/development/python-modules/behave/default.nix+8−9

This diff is too big to show here.

pkgs/development/python-modules/betamax/default.nix+22

This diff is too big to show here.

pkgs/development/python-modules/bibtexparser/default.nix+16−8

This diff is too big to show here.

pkgs/development/python-modules/billiard/default.nix+20

This diff is too big to show here.

pkgs/development/python-modules/binaryornot/default.nix+27

This diff is too big to show here.

pkgs/development/python-modules/biopython/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/bitbucket-api/default.nix+23

This diff is too big to show here.

pkgs/development/python-modules/bitbucket-cli/default.nix+23

This diff is too big to show here.

pkgs/development/python-modules/bitmath/default.nix+20

This diff is too big to show here.

pkgs/development/python-modules/black/default.nix+23

This diff is too big to show here.

pkgs/development/python-modules/blaze/default.nix+6−4

This diff is too big to show here.

pkgs/development/python-modules/bleach/default.nix+3−3

This diff is too big to show here.

pkgs/development/python-modules/blinker/default.nix+18

This diff is too big to show here.

pkgs/development/python-modules/blinkstick/default.nix+31

This diff is too big to show here.

pkgs/development/python-modules/bokeh/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/bootstrapped-pip/default.nix+6−6

This diff is too big to show here.

pkgs/development/python-modules/boto3/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/botocore/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/bottle/default.nix+21

This diff is too big to show here.

pkgs/development/python-modules/bugwarrior/default.nix+31

This diff is too big to show here.

pkgs/development/python-modules/bugzilla/default.nix+30

This diff is too big to show here.

pkgs/development/python-modules/buildout-nix/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/buildout/default.nix+18

This diff is too big to show here.

pkgs/development/python-modules/bumps/default.nix+24

This diff is too big to show here.

pkgs/development/python-modules/bunch/default.nix+17

This diff is too big to show here.

pkgs/development/python-modules/buttersink/default.nix+28

This diff is too big to show here.

pkgs/development/python-modules/cached-property/default.nix+15−7

This diff is too big to show here.

pkgs/development/python-modules/cachetools/1.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/cairosvg/default.nix+25

This diff is too big to show here.

pkgs/development/python-modules/can/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/canonicaljson/default.nix+23

This diff is too big to show here.

pkgs/development/python-modules/carrot/default.nix+22

This diff is too big to show here.

pkgs/development/python-modules/case/default.nix+20

This diff is too big to show here.

pkgs/development/python-modules/celery/default.nix+4−3

This diff is too big to show here.

pkgs/development/python-modules/cerberus/default.nix+19

This diff is too big to show here.

pkgs/development/python-modules/cffi/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/chainer/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/check-manifest/default.nix+20

This diff is too big to show here.

pkgs/development/python-modules/cheroot/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/cherrypy/default.nix+4−5

This diff is too big to show here.

pkgs/development/python-modules/circus/default.nix+16

This diff is too big to show here.

pkgs/development/python-modules/cjson/default.nix+18

This diff is too big to show here.

pkgs/development/python-modules/clf/default.nix+29

This diff is too big to show here.

pkgs/development/python-modules/click-log/default.nix+20

This diff is too big to show here.

pkgs/development/python-modules/click/default.nix+30

This diff is too big to show here.

pkgs/development/python-modules/cloudpickle/default.nix+27

This diff is too big to show here.

pkgs/development/python-modules/cmarkgfm/default.nix+25

This diff is too big to show here.

pkgs/development/python-modules/cmdline/default.nix+21

This diff is too big to show here.

pkgs/development/python-modules/codecov/default.nix+6−4

This diff is too big to show here.

pkgs/development/python-modules/cogapp/default.nix+21

This diff is too big to show here.

pkgs/development/python-modules/coilmq/default.nix+25

This diff is too big to show here.

pkgs/development/python-modules/coinmarketcap/default.nix+19

This diff is too big to show here.

pkgs/development/python-modules/colander/default.nix+21

This diff is too big to show here.

pkgs/development/python-modules/colorclass/default.nix+20

This diff is too big to show here.

pkgs/development/python-modules/colour/default.nix+19

This diff is too big to show here.

pkgs/development/python-modules/commonmark/default.nix+27

This diff is too big to show here.

pkgs/development/python-modules/configobj/default.nix+34

This diff is too big to show here.

pkgs/development/python-modules/configparser/default.nix+23

This diff is too big to show here.

pkgs/development/python-modules/construct/default.nix+6−5

This diff is too big to show here.

pkgs/development/python-modules/consul/default.nix+24

This diff is too big to show here.

pkgs/development/python-modules/contexter/default.nix+14

This diff is too big to show here.

pkgs/development/python-modules/contextvars/default.nix+21

This diff is too big to show here.

pkgs/development/python-modules/cookiecutter/default.nix+34

This diff is too big to show here.

pkgs/development/python-modules/cookies/default.nix+19

This diff is too big to show here.

pkgs/development/python-modules/cov-core/default.nix+17

This diff is too big to show here.

pkgs/development/python-modules/coveralls/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/cram/default.nix+4−12

This diff is too big to show here.

pkgs/development/python-modules/crcmod/default.nix+17

This diff is too big to show here.

pkgs/development/python-modules/credstash/default.nix+8−3

This diff is too big to show here.

pkgs/development/python-modules/cryptacular/default.nix+22

This diff is too big to show here.

pkgs/development/python-modules/cryptography/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/cryptography_vectors/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/cssselect/default.nix+17

This diff is too big to show here.

pkgs/development/python-modules/cssselect2/default.nix+23

This diff is too big to show here.

pkgs/development/python-modules/cssutils/default.nix+22

This diff is too big to show here.

pkgs/development/python-modules/csvkit/default.nix+31−21

This diff is too big to show here.

pkgs/development/python-modules/cupy/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/curtsies/default.nix+4−4

This diff is too big to show here.

pkgs/development/python-modules/cvxopt/default.nix+69

This diff is too big to show here.

pkgs/development/python-modules/cx_oracle/default.nix+25

This diff is too big to show here.

pkgs/development/python-modules/cypari2/default.nix+55

This diff is too big to show here.

pkgs/development/python-modules/cysignals/default.nix+41

This diff is too big to show here.

pkgs/development/python-modules/cytoolz/default.nix+3−10

This diff is too big to show here.

pkgs/development/python-modules/daphne/default.nix+20−8

This diff is too big to show here.

pkgs/development/python-modules/darcsver/default.nix+29

This diff is too big to show here.

pkgs/development/python-modules/dask/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/dataclasses/default.nix+21

This diff is too big to show here.

pkgs/development/python-modules/datadog/default.nix+27

This diff is too big to show here.

pkgs/development/python-modules/datashape/default.nix+3−1

This diff is too big to show here.

pkgs/development/python-modules/dateutil/1_5.nix+20

This diff is too big to show here.

pkgs/development/python-modules/datrie/default.nix+21

This diff is too big to show here.

pkgs/development/python-modules/dbf/default.nix+8−5

This diff is too big to show here.

pkgs/development/python-modules/debian/default.nix+14

This diff is too big to show here.

pkgs/development/python-modules/deform/default.nix+41

This diff is too big to show here.

pkgs/development/python-modules/defusedxml/default.nix+11

This diff is too big to show here.

pkgs/development/python-modules/deluge-client/default.nix+21

This diff is too big to show here.

pkgs/development/python-modules/derpconf/default.nix+19

This diff is too big to show here.

pkgs/development/python-modules/detox/default.nix+27

This diff is too big to show here.

pkgs/development/python-modules/diff_cover/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/digitalocean/default.nix+23

This diff is too big to show here.

pkgs/development/python-modules/discid/default.nix+7−5

This diff is too big to show here.

pkgs/development/python-modules/distro/default.nix−1

This diff is too big to show here.

pkgs/development/python-modules/dj-database-url/default.nix+20

This diff is too big to show here.

pkgs/development/python-modules/django-pipeline/default.nix+36

This diff is too big to show here.

pkgs/development/python-modules/django-polymorphic/default.nix+12−6

This diff is too big to show here.

pkgs/development/python-modules/django/1_11.nix+3−4

This diff is too big to show here.

pkgs/development/python-modules/django/2_0.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/django_redis/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/djangorestframework/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/docker-pycreds/default.nix+22

This diff is too big to show here.

pkgs/development/python-modules/docker-registry-core/default.nix+26

This diff is too big to show here.

pkgs/development/python-modules/docker/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/docker_compose/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/dockerpty/default.nix+19

This diff is too big to show here.

pkgs/development/python-modules/docopt/default.nix+17

This diff is too big to show here.

pkgs/development/python-modules/doctest-ignore-unicode/default.nix+19

This diff is too big to show here.

pkgs/development/python-modules/dogpile.cache/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/dogpile.core/default.nix+19

This diff is too big to show here.

pkgs/development/python-modules/dropbox/default.nix+24

This diff is too big to show here.

pkgs/development/python-modules/dugong/default.nix+13

This diff is too big to show here.

pkgs/development/python-modules/dulwich/default.nix+9−7

This diff is too big to show here.

pkgs/development/python-modules/easyprocess/default.nix+21

This diff is too big to show here.

pkgs/development/python-modules/ecpy/default.nix+5−4

This diff is too big to show here.

pkgs/development/python-modules/elasticsearch-curator/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/elasticsearch/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/emoji/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/entrypoints/default.nix+4−4

This diff is too big to show here.

pkgs/development/python-modules/envs/default.nix+24

This diff is too big to show here.

pkgs/development/python-modules/evdev/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/ewmh/default.nix+23

This diff is too big to show here.

pkgs/development/python-modules/face_recognition/default.nix+33

This diff is too big to show here.

pkgs/development/python-modules/face_recognition_models/default.nix+21

This diff is too big to show here.

pkgs/development/python-modules/faker/default.nix+4−4

This diff is too big to show here.

pkgs/development/python-modules/faulthandler/default.nix+2−13

This diff is too big to show here.

pkgs/development/python-modules/flake8-debugger/default.nix+15−6

This diff is too big to show here.

pkgs/development/python-modules/flake8-import-order/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/flask-assets/default.nix+1−1

This diff is too big to show here.

pkgs/development/python-modules/flask-autoindex/default.nix+44

This diff is too big to show here.

pkgs/development/python-modules/flask-babel/default.nix+44

This diff is too big to show here.

pkgs/development/python-modules/flask-script/default.nix+8−5

This diff is too big to show here.

pkgs/development/python-modules/flask-silk/default.nix+26

This diff is too big to show here.

pkgs/development/python-modules/flit/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/fonttools/default.nix+8−3

This diff is too big to show here.

pkgs/development/python-modules/fpylll/default.nix+55

This diff is too big to show here.

pkgs/development/python-modules/frozendict/default.nix+20

This diff is too big to show here.

pkgs/development/python-modules/ftfy/default.nix+12−10

This diff is too big to show here.

pkgs/development/python-modules/ftputil/default.nix+27

This diff is too big to show here.

pkgs/development/python-modules/futures/default.nix+25

This diff is too big to show here.

pkgs/development/python-modules/gensim/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/git-annex-adapter/default.nix+4−5

This diff is too big to show here.

pkgs/development/python-modules/google-api-python-client/default.nix+23

This diff is too big to show here.

pkgs/development/python-modules/google_api_core/default.nix+10−7

This diff is too big to show here.

pkgs/development/python-modules/google_cloud_core/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/google_cloud_speech/default.nix+4−5

This diff is too big to show here.

pkgs/development/python-modules/google_gax/default.nix+4−3

This diff is too big to show here.

pkgs/development/python-modules/gpapi/default.nix+20

This diff is too big to show here.

pkgs/development/python-modules/gplaycli/default.nix+26

This diff is too big to show here.

pkgs/development/python-modules/gpy/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/graph-tool/2.x.x.nix+11−6

This diff is too big to show here.

pkgs/development/python-modules/green/default.nix+21

This diff is too big to show here.

pkgs/development/python-modules/gst-python/default.nix+11−8

This diff is too big to show here.

pkgs/development/python-modules/guessit/2.0.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/ha-ffmpeg/default.nix+28

This diff is too big to show here.

pkgs/development/python-modules/hbmqtt/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/hdbscan/default.nix+30

This diff is too big to show here.

pkgs/development/python-modules/heapdict/default.nix+20

This diff is too big to show here.

pkgs/development/python-modules/howdoi/default.nix+20

This diff is too big to show here.

pkgs/development/python-modules/html5-parser/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/htmltreediff/default.nix+26

This diff is too big to show here.

pkgs/development/python-modules/httplib2/default.nix+18

This diff is too big to show here.

pkgs/development/python-modules/hupper/default.nix+2−2

This diff is too big to show here.

pkgs/development/python-modules/hvac/default.nix+22

This diff is too big to show here.

pkgs/development/python-modules/hyperlink/default.nix+7−6

This diff is too big to show here.

pkgs/development/python-modules/idna-ssl/default.nix+3−3

This diff is too big to show here.

pkgs/development/python-modules/idna/default.nix+1−1

This diff is too big to show here.

pkgs/development/python-modules/imbalanced-learn/default.nix+26

This diff is too big to show here.

pkgs/development/python-modules/immutables/default.nix+19

This diff is too big to show here.