Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fd9cfc4db512
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4b2735fd9fe2
Choose a head ref

Commits on May 17, 2018

  1. nixpkgs module: Fix defaulting of localSystem and system

    My c6f7d43 made the mistake of not
    having enough defaults. Now both variables are default as the *explicit*
    value of the other, or a fallback. The fallback of `system` is the
    default of `localSystem.system`. The fallback of `localSystem` is not
    the other default (projected), as that would cause a cycle, but `{
    system = builtins.currentTime; }` just as nixpkgs itself does it.
    Ericson2314 committed May 17, 2018
    Copy the full SHA
    4fe2898 View commit details

Commits on May 26, 2018

  1. grub2: compile grub-mount as well

    It is a dependency of os-prober >= 1.75
    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860833#23
    symphorien committed May 26, 2018
    Copy the full SHA
    3e09239 View commit details
  2. os-prober: switch to a non-transient url

    pool urls get removed after some time
    symphorien committed May 26, 2018
    Copy the full SHA
    b04f9b7 View commit details
  3. os-prober: fix dependencies

    busybox seems to have never been needed
    systemd was meant to provide udevadm; use libudev instead
    devicemapper is now uneeded, replaced by grub-mount and grub-info
    dmraid does not appear in the current code
    symphorien committed May 26, 2018
    Copy the full SHA
    f8d08ec View commit details
  4. Copy the full SHA
    b8ea160 View commit details

Commits on May 27, 2018

  1. ivan: init at 052

    Grigory Chereshnev committed May 27, 2018
    Copy the full SHA
    3d9cd5d View commit details

Commits on May 29, 2018

  1. Copy the full SHA
    0f51d1f View commit details
  2. Copy the full SHA
    b0102f5 View commit details
  3. nixos/gitea: fix pre start script

    The hooks directory contains now one level deep subdirectories which
    need to be updated as well.
    If you use gitea via ssh, ~/.ssh/authorized_keys also needs to be
    updated because of the hardcoded path to gitea in the "command" option.
    Gerschtli committed May 29, 2018
    Copy the full SHA
    28c20a4 View commit details

Commits on May 30, 2018

  1. vim_configurable: restore ability to override python for modules

    It seems as Python will be fetched from $PATH in Vim 8.1:
    
    ```
    stat("/home/ma27/bin/python", 0x7ffe57a317b0) = -1 ENOENT (No such file or directory)
    stat("/run/wrappers/bin/python", 0x7ffe57a317b0) = -1 ENOENT (No such file or directory)
    stat("/home/ma27/.nix-profile/bin/python", 0x7ffe57a317b0) = -1 ENOENT (No such file or directory)
    stat("/nix/var/nix/profiles/default/bin/python", 0x7ffe57a317b0) = -1 ENOENT (No such file or directory)
    stat("/run/current-system/sw/bin/python", {st_mode=S_IFREG|0555, st_size=291, ...}) = 0
    readlink("/run/current-system/sw/bin/python", "/nix/store/ggjkqbvwnv7dflkmdgmmp"..., 4096) = 72
    ```
    
    This breaks in cases where you want to use a modified Python derivation
    for the VIM plugins you use in `vim_configurable`:
    
    ```
    let
      vim_configurable' = vim_configurable.override {
        # python with modules for ensime
        python = python.withPackages (ps: with ps; [ sexpdata websocket_client ]);
      };
    in
      vim_configurable'.customize {
        # ...
      }
    ```
    
    With VIM 8.0 this worked perfectly fine, now it's necessary to install
    the modified `python` in $PATH to actually use it, otherwise an error
    like this arises:
    
    ```
    [ensime] A dependency is missing, please `pip2 install sexpdata websocket-client` and restart Vim.
    Press ENTER or type command to continue
    ```
    
    However it should be possible to pass the modified Python to the
    modules, the easiest workaround is to write a wrapper which prefixes
    $PATH to have the Python derivation available.
    Ma27 committed May 30, 2018
    Copy the full SHA
    f43446c View commit details
  2. hub: 2.2.9 -> 2.3.0

    Hooray!
    dtzWill committed May 30, 2018
    Copy the full SHA
    b4b65b2 View commit details
  3. librarian-puppet-go: update license

    Issue closed and upstream notes it's under MIT.
    Casey Ransom committed May 30, 2018
    Copy the full SHA
    3088bdd View commit details
  4. Copy the full SHA
    eee16f8 View commit details
  5. Copy the full SHA
    0979373 View commit details
  6. Docs: improve Python section

    Explain `toPythonApplication` and `toPythonModule` as well as some minor improvements.
    FRidh committed May 30, 2018
    2
    Copy the full SHA
    39e9de1 View commit details
  7. 2
    Copy the full SHA
    a4867b3 View commit details
  8. Update GCE image for 18.03

    (cherry picked from commit 8aa3850)
    rbvermaa committed May 30, 2018
    Copy the full SHA
    a8ed1fc View commit details
  9. consul-ui: fix build

    Update the dependencies used for building consul-ui. therubyracer
    is no longer required and fails to build. Instead, a nodejs
    binary is required to build the assets. Patch out unnecessary
    executions of `bundle` which can cause failures.
    jbboehr committed May 30, 2018
    Copy the full SHA
    711f96e View commit details
  10. checkstyle: 8.10 -> 8.10.1

    pSub committed May 30, 2018
    Copy the full SHA
    6bced69 View commit details
  11. Merge pull request #40920 from Ma27/vim-configurable-python-override

    vim_configurable: restore ability to override python for modules
    LnL7 authored May 30, 2018
    Copy the full SHA
    3010d99 View commit details
  12. tryton: 4.8.0 -> 4.8.2

    udono committed May 30, 2018
    Copy the full SHA
    5f70642 View commit details
  13. trytond: 4.8.0 -> 4.8.1

    udono committed May 30, 2018
    Copy the full SHA
    93555b0 View commit details
  14. Copy the full SHA
    cd213ee View commit details
  15. shadowsocks-libev: 3.1.3 -> 3.2.0

    Fixes build with CMake 3.11.
    orivej committed May 30, 2018
    Copy the full SHA
    e62bf6d View commit details
  16. Copy the full SHA
    b503e76 View commit details
  17. Merge pull request #41150 from nonfreeblob/ivan-052-init

    ivan: init at 052
    pSub authored May 30, 2018
    Copy the full SHA
    eff23c0 View commit details
  18. thepeg: fix rivet backend

    veprbl committed May 30, 2018
    Copy the full SHA
    57bbe41 View commit details
  19. herwig: 7.1.2 -> 7.1.3

    thepeg: 2.1.2 -> 2.1.3
    veprbl committed May 30, 2018
    Copy the full SHA
    4342d99 View commit details
  20. nix-plugins: 4.0.4 -> 4.0.5.

    Allows building against nix stable.
    shlevy committed May 30, 2018
    Copy the full SHA
    e2126df View commit details
  21. chromium: fix crashpad build

    YorikSar committed May 30, 2018
    Copy the full SHA
    584006a View commit details
  22. Copy the full SHA
    72d7b5d View commit details
  23. chromium: 66.0.3359.181 -> 67.0.3396.62

    New stable version, with 34 security fixes and site isolation. See
    https://chromereleases.googleblog.com/2018/05/stable-channel-update-for-desktop_58.html
    YorikSar committed May 30, 2018
    Copy the full SHA
    7acec16 View commit details
  24. Copy the full SHA
    88007f8 View commit details
  25. chromium: fix build for 67

    YorikSar committed May 30, 2018
    Copy the full SHA
    e481096 View commit details
  26. Merge pull request #41281 from bobvanderlinden/patch-2

    PR template: use sandbox instead of build-use-sandbox
    matthewbauer authored May 30, 2018
    Copy the full SHA
    18d5e0d View commit details
  27. Copy the full SHA
    129dfed View commit details
  28. gitAndTools.transcrypt: 1.0.3 -> 1.1.0 (#41231)

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/transcrypt/versions.
    
    These checks were done:
    
    - built on NixOS
    - /nix/store/rnqjmp32pr8zq5y7bn9n0qcrnwg5qi82-transcrypt-1.1.0/bin/transcrypt passed the binary check.
    - /nix/store/rnqjmp32pr8zq5y7bn9n0qcrnwg5qi82-transcrypt-1.1.0/bin/.transcrypt-wrapped passed the binary check.
    - 2 of 2 passed binary check by having a zero exit code.
    - 1 of 2 passed binary check by having the new version present in output.
    - found 1.1.0 with grep in /nix/store/rnqjmp32pr8zq5y7bn9n0qcrnwg5qi82-transcrypt-1.1.0
    - directory tree listing: https://gist.github.com/74399ed2dc0f5e79c6face443cf11691
    - du listing: https://gist.github.com/6c7f5baa546117396d7b51993bf84dba
    r-ryantm authored and xeji committed May 30, 2018
    Copy the full SHA
    a4e7324 View commit details
  29. Copy the full SHA
    cd7bfa6 View commit details
  30. git-lfs: 2.3.4 -> 2.4.2 (#41249)

    dywedir authored and xeji committed May 30, 2018
    Copy the full SHA
    5c16e62 View commit details
  31. strongswan: 5.6.2 -> 5.6.3 (#41237)

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/strongswan/versions.
    
    These checks were done:
    
    - built on NixOS
    - /nix/store/9qicaqwg2cvmahh3hqwig5bcqpd41k9a-strongswan-5.6.3/bin/pki passed the binary check.
    - /nix/store/9qicaqwg2cvmahh3hqwig5bcqpd41k9a-strongswan-5.6.3/bin/charon-cmd passed the binary check.
    - Warning: no invocation of /nix/store/9qicaqwg2cvmahh3hqwig5bcqpd41k9a-strongswan-5.6.3/bin/charon-systemd had a zero exit code or showed the expected version
    - /nix/store/9qicaqwg2cvmahh3hqwig5bcqpd41k9a-strongswan-5.6.3/bin/ipsec passed the binary check.
    - /nix/store/9qicaqwg2cvmahh3hqwig5bcqpd41k9a-strongswan-5.6.3/bin/swanctl passed the binary check.
    - 4 of 5 passed binary check by having a zero exit code.
    - 1 of 5 passed binary check by having the new version present in output.
    - found 5.6.3 with grep in /nix/store/9qicaqwg2cvmahh3hqwig5bcqpd41k9a-strongswan-5.6.3
    - directory tree listing: https://gist.github.com/258736889db4e822d054b65e7035147b
    - du listing: https://gist.github.com/478dbb4f44b4ed18b112076b17451a4e
    r-ryantm authored and xeji committed May 30, 2018
    Copy the full SHA
    30c3a7f View commit details
  32. libcouchbase: 2.8.7 -> 2.9.0 (#41113)

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/libcouchbase/versions.
    
    These checks were done:
    
    - built on NixOS
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-cat passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-create passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-observe passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-observe-seqno passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-incr passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-decr passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-mcflush passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-hash passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-lock passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-unlock passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-rm passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-stats passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-version passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-verbosity passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-view passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-n1ql passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-admin passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-ping passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-bucket-create passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-bucket-delete passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-bucket-flush passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-connstr passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-write-config passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-strerror passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-touch passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-role-list passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-user-list passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-user-upsert passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-user-delete passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-watch passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-pillowfight passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-n1qlback passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-subdoc passed the binary check.
    - /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0/bin/cbc-proxy passed the binary check.
    - 35 of 35 passed binary check by having a zero exit code.
    - 0 of 35 passed binary check by having the new version present in output.
    - found 2.9.0 with grep in /nix/store/zj8j91qlmkqy5bzhzgmmhjzynxxl5isd-libcouchbase-2.9.0
    - directory tree listing: https://gist.github.com/615a7ba10ca91c94d08d74c5a200cef6
    - du listing: https://gist.github.com/9991135c2e307e906da31f66df3aa79c
    r-ryantm authored and xeji committed May 30, 2018
    Copy the full SHA
    4d2cd98 View commit details
  33. povray: 3.7.0.7 -> 3.7.0.8 (#41269)

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/povray/versions.
    
    These checks were done:
    
    - built on NixOS
    - /nix/store/hl6rn2fjd9h2g4vks7hrm3yv2f1zh3yc-povray-3.7.0.8/bin/povray passed the binary check.
    - 1 of 1 passed binary check by having a zero exit code.
    - 0 of 1 passed binary check by having the new version present in output.
    - found 3.7.0.8 with grep in /nix/store/hl6rn2fjd9h2g4vks7hrm3yv2f1zh3yc-povray-3.7.0.8
    - directory tree listing: https://gist.github.com/d35bed4b147aefbe2b8c6e42bdf56ccb
    - du listing: https://gist.github.com/75bee836a81741aa901a3677fb40aa16
    r-ryantm authored and xeji committed May 30, 2018
    Copy the full SHA
    ea3769e View commit details
  34. chromium: bump dev version

    YorikSar committed May 30, 2018
    Copy the full SHA
    a3efa24 View commit details
  35. khal: 0.9.8 -> 0.9.9 (#41267)

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/khal/versions.
    
    These checks were done:
    
    - built on NixOS
    - Warning: no invocation of /nix/store/wkssgwwqyffwnf7c8p1zi180xjm256il-khal-0.9.9/bin/.ikhal-wrapped had a zero exit code or showed the expected version
    - Warning: no invocation of /nix/store/wkssgwwqyffwnf7c8p1zi180xjm256il-khal-0.9.9/bin/ikhal had a zero exit code or showed the expected version
    - Warning: no invocation of /nix/store/wkssgwwqyffwnf7c8p1zi180xjm256il-khal-0.9.9/bin/.khal-wrapped had a zero exit code or showed the expected version
    - Warning: no invocation of /nix/store/wkssgwwqyffwnf7c8p1zi180xjm256il-khal-0.9.9/bin/khal had a zero exit code or showed the expected version
    - 0 of 4 passed binary check by having a zero exit code.
    - 0 of 4 passed binary check by having the new version present in output.
    - found 0.9.9 with grep in /nix/store/wkssgwwqyffwnf7c8p1zi180xjm256il-khal-0.9.9
    - directory tree listing: https://gist.github.com/a146a88f248f45c280a17c50a0d46b79
    - du listing: https://gist.github.com/72d0555178317dce9c07ab814f13f512
    r-ryantm authored and xeji committed May 30, 2018
    Copy the full SHA
    21155d5 View commit details
  36. Merge pull request #41265 from worldofpeace/fetchfromgitlab-domain

    fetchFromGitlab: domain can be specified
    matthewbauer authored May 30, 2018
    Copy the full SHA
    04bd841 View commit details
  37. Copy the full SHA
    4fc23d2 View commit details
  38. linux: 4.4.134 -> 4.4.135

    NeQuissimus committed May 30, 2018
    Copy the full SHA
    e055b76 View commit details
  39. linux: 4.9.104 -> 4.9.105

    NeQuissimus committed May 30, 2018
    Copy the full SHA
    943d2fc View commit details
  40. linux: 4.14.46 -> 4.14.47

    NeQuissimus committed May 30, 2018
    Copy the full SHA
    4afe59c View commit details

Commits on May 31, 2018

  1. iperf2: 2.0.10 -> 2.0.11

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/iperf/versions.
    
    These checks were done:
    
    - built on NixOS
    - /nix/store/96cfq6l9jpw5jb2xfmyqsqvpx9khvaff-iperf-2.0.11/bin/iperf passed the binary check.
    - 1 of 1 passed binary check by having a zero exit code.
    - 0 of 1 passed binary check by having the new version present in output.
    - found 2.0.11 with grep in /nix/store/96cfq6l9jpw5jb2xfmyqsqvpx9khvaff-iperf-2.0.11
    - directory tree listing: https://gist.github.com/9e979b025f65af2cc7e8ffe313002b2f
    - du listing: https://gist.github.com/68cf597a93df8e798cb97551f8303fa4
    R. RyanTM committed May 31, 2018
    Copy the full SHA
    98463f7 View commit details
Showing with 5,193 additions and 3,747 deletions.
  1. +1 −1 .github/PULL_REQUEST_TEMPLATE.md
  2. +51 −19 doc/languages-frameworks/python.section.md
  3. +7 −150 lib/systems/platforms.nix
  4. +5 −0 maintainers/maintainer-list.nix
  5. +2 −2 nixos/lib/qemu-flags.nix
  6. +19 −6 nixos/modules/installer/cd-dvd/sd-image-raspberrypi.nix
  7. +4 −4 nixos/modules/installer/tools/nix-fallback-paths.nix
  8. +3 −1 nixos/modules/programs/zsh/zsh.nix
  9. +6 −3 nixos/modules/services/audio/mpd.nix
  10. +6 −1 nixos/modules/services/misc/gitea.nix
  11. +3 −0 nixos/modules/services/networking/dnscrypt-proxy.nix
  12. +2 −1 nixos/modules/virtualisation/gce-images.nix
  13. +4 −1 nixos/tests/containers-imperative.nix
  14. +2 −2 pkgs/applications/audio/yoshimi/default.nix
  15. +3 −3 pkgs/applications/editors/android-studio/default.nix
  16. +4 −4 pkgs/applications/editors/atom/default.nix
  17. +7 −7 pkgs/applications/editors/emacs/macport.nix
  18. +3 −3 pkgs/applications/editors/scite/default.nix
  19. +8 −0 pkgs/applications/editors/vim/configurable.nix
  20. +2 −2 pkgs/applications/gis/qgis/default.nix
  21. +14 −28 pkgs/applications/graphics/inkscape/default.nix
  22. +2 −2 pkgs/applications/misc/khal/default.nix
  23. +9 −16 pkgs/applications/networking/browsers/chromium/common.nix
  24. +15 −0 pkgs/applications/networking/browsers/chromium/patches/fix-freetype.patch
  25. +10 −0 pkgs/applications/networking/browsers/chromium/patches/fix-openh264.patch
  26. +0 −21 pkgs/applications/networking/browsers/chromium/patches/neon_buildfix.patch
  27. +70 −0 pkgs/applications/networking/browsers/chromium/patches/nix_plugin_paths_68.patch
  28. +0 −22 pkgs/applications/networking/browsers/chromium/patches/skia_buildfix.patch
  29. +9 −9 pkgs/applications/networking/browsers/chromium/upstream-info.nix
  30. +393 −393 pkgs/applications/networking/browsers/firefox-bin/beta_sources.nix
  31. +393 −393 pkgs/applications/networking/browsers/firefox-bin/devedition_sources.nix
  32. +1 −1 pkgs/applications/networking/cluster/openshift/default.nix
  33. +51 −47 pkgs/applications/networking/instant-messengers/signal-desktop/default.nix
  34. +2 −2 pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix
  35. +12 −5 pkgs/applications/networking/p2p/frostwire/default.nix
  36. +2 −2 pkgs/applications/networking/p2p/frostwire/frostwire-bin.nix
  37. +18 −15 pkgs/applications/networking/p2p/qbittorrent/default.nix
  38. +9 −11 pkgs/applications/networking/sniffers/etherape/default.nix
  39. +2 −2 pkgs/applications/office/tryton/default.nix
  40. +2 −2 pkgs/applications/office/trytond/default.nix
  41. +1 −3 pkgs/applications/version-management/git-and-tools/default.nix
  42. +2 −2 pkgs/applications/version-management/git-and-tools/git-hub/default.nix
  43. +12 −14 pkgs/applications/version-management/git-and-tools/hub/default.nix
  44. +0 −36 pkgs/applications/version-management/git-and-tools/hub/unstable.nix
  45. +2 −2 pkgs/applications/version-management/git-and-tools/transcrypt/default.nix
  46. +2 −2 pkgs/applications/version-management/git-lfs/default.nix
  47. +29 −23 pkgs/applications/version-management/gitkraken/default.nix
  48. +8 −7 pkgs/applications/window-managers/compton/git.nix
  49. +1 −1 pkgs/desktops/gnome-3/core/libpeas/default.nix
  50. +18 −12 pkgs/development/compilers/graalvm/default.nix
  51. +12 −5 pkgs/development/coq-modules/contribs/default.nix
  52. +3 −1 pkgs/development/haskell-modules/configuration-common.nix
  53. +3 −1 pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix
  54. +1 −1 pkgs/development/haskell-modules/configuration-ghcjs.nix
  55. +10 −6 pkgs/development/haskell-modules/generic-builder.nix
  56. +1 −1 pkgs/development/haskell-modules/make-package-set.nix
  57. +3 −3 pkgs/development/interpreters/groovy/default.nix
  58. +72 −0 pkgs/development/libraries/bulletml/default.nix
  59. +9 −1 pkgs/development/libraries/flann/default.nix
  60. +2 −2 pkgs/development/libraries/folly/default.nix
  61. +1 −1 pkgs/development/libraries/gdk-pixbuf/default.nix
  62. +0 −222 pkgs/development/libraries/libbsd/cdefs.patch
  63. +0 −703 pkgs/development/libraries/libbsd/darwin.patch
  64. +0 −34 pkgs/development/libraries/libbsd/default.nix
  65. +0 −26 pkgs/development/libraries/libbsd/features.patch
  66. +0 −74 pkgs/development/libraries/libbsd/non-glibc.patch
  67. +2 −2 pkgs/development/libraries/libcouchbase/default.nix
  68. +2 −2 pkgs/development/libraries/nix-plugins/default.nix
  69. +2 −2 pkgs/development/libraries/physics/herwig/default.nix
  70. +3 −2 pkgs/development/libraries/physics/thepeg/default.nix
  71. +2 −13 pkgs/development/libraries/postgis/default.nix
  72. +2 −2 pkgs/development/lisp-modules/lisp-packages.nix
  73. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/anaphora.nix
  74. +37 −16 pkgs/development/lisp-modules/quicklisp-to-nix-output/caveman.nix
  75. +2 −2 pkgs/development/lisp-modules/quicklisp-to-nix-output/cffi-grovel.nix
  76. +2 −2 pkgs/development/lisp-modules/quicklisp-to-nix-output/cffi-toolchain.nix
  77. +2 −2 pkgs/development/lisp-modules/quicklisp-to-nix-output/cffi.nix
  78. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/chipz.nix
  79. +4 −3 pkgs/development/lisp-modules/quicklisp-to-nix-output/circular-streams.nix
  80. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-aa.nix
  81. +5 −4 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-async-repl.nix
  82. +5 −4 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-async-ssl.nix
  83. +5 −3 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-async.nix
  84. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-colors.nix
  85. +9 −9 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-csv.nix
  86. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-dbi.nix
  87. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-emb.nix
  88. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-fad.nix
  89. +4 −3 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-fuse-meta-fs.nix
  90. +4 −3 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-fuse.nix
  91. +11 −9 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-libuv.nix
  92. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-paths-ttf.nix
  93. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-paths.nix
  94. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-postgres.nix
  95. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-protobufs.nix
  96. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-store.nix
  97. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-unicode.nix
  98. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-vectors.nix
  99. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/cl_plus_ssl.nix
  100. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/clack-socket.nix
  101. +50 −13 pkgs/development/lisp-modules/quicklisp-to-nix-output/clack-test.nix
  102. +43 −18 pkgs/development/lisp-modules/quicklisp-to-nix-output/clack-v1-compat.nix
  103. +14 −11 pkgs/development/lisp-modules/quicklisp-to-nix-output/clack.nix
  104. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/closer-mop.nix
  105. +4 −3 pkgs/development/lisp-modules/quicklisp-to-nix-output/clx-truetype.nix
  106. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/clx.nix
  107. +53 −0 pkgs/development/lisp-modules/quicklisp-to-nix-output/css-selectors-simple-tree.nix
  108. +52 −0 pkgs/development/lisp-modules/quicklisp-to-nix-output/css-selectors-stp.nix
  109. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/dbd-mysql.nix
  110. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/dbd-postgres.nix
  111. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/dbd-sqlite3.nix
  112. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/dbi.nix
  113. +16 −15 pkgs/development/lisp-modules/quicklisp-to-nix-output/dexador.nix
  114. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/documentation-utils.nix
  115. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/esrap.nix
  116. +4 −3 pkgs/development/lisp-modules/quicklisp-to-nix-output/fast-io.nix
  117. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/fiasco.nix
  118. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/fiveam.nix
  119. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/flexi-streams.nix
  120. +15 −6 pkgs/development/lisp-modules/quicklisp-to-nix-output/http-body.nix
  121. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/hu_dot_dwim_dot_asdf.nix
  122. +6 −4 pkgs/development/lisp-modules/quicklisp-to-nix-output/iolib.nix
  123. +2 −2 pkgs/development/lisp-modules/quicklisp-to-nix-output/iolib_dot_asdf.nix
  124. +2 −2 pkgs/development/lisp-modules/quicklisp-to-nix-output/iolib_dot_base.nix
  125. +2 −2 pkgs/development/lisp-modules/quicklisp-to-nix-output/iolib_dot_common-lisp.nix
  126. +2 −2 pkgs/development/lisp-modules/quicklisp-to-nix-output/iolib_dot_conf.nix
  127. +11 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/iolib_dot_grovel.nix
  128. +10 −9 pkgs/development/lisp-modules/quicklisp-to-nix-output/ironclad.nix
  129. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/iterate.nix
  130. +15 −11 pkgs/development/lisp-modules/quicklisp-to-nix-output/ixf.nix
  131. +22 −13 pkgs/development/lisp-modules/quicklisp-to-nix-output/jonathan.nix
  132. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/lack-component.nix
  133. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/lack-middleware-backtrace.nix
  134. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/lack-util.nix
  135. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/lack.nix
  136. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/local-time.nix
  137. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/marshal.nix
  138. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/md5.nix
  139. +14 −11 pkgs/development/lisp-modules/quicklisp-to-nix-output/mssql.nix
  140. +9 −9 pkgs/development/lisp-modules/quicklisp-to-nix-output/nibbles.nix
  141. +9 −9 pkgs/development/lisp-modules/quicklisp-to-nix-output/parse-number.nix
  142. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/plump.nix
  143. +11 −10 pkgs/development/lisp-modules/quicklisp-to-nix-output/postmodern.nix
  144. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/puri.nix
  145. +5 −4 pkgs/development/lisp-modules/quicklisp-to-nix-output/query-fs.nix
  146. +19 −11 pkgs/development/lisp-modules/quicklisp-to-nix-output/s-sql.nix
  147. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/simple-date.nix
  148. +8 −8 pkgs/development/lisp-modules/quicklisp-to-nix-output/split-sequence.nix
  149. +4 −2 pkgs/development/lisp-modules/quicklisp-to-nix-output/static-vectors.nix
  150. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/stumpwm.nix
  151. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/trivial-gray-streams.nix
  152. +7 −7 pkgs/development/lisp-modules/quicklisp-to-nix-output/uffi.nix
  153. +6 −5 pkgs/development/lisp-modules/quicklisp-to-nix-output/woo.nix
  154. +32 −15 pkgs/development/lisp-modules/quicklisp-to-nix-output/wookie.nix
  155. +12 −9 pkgs/development/lisp-modules/quicklisp-to-nix-output/xmls.nix
  156. +3 −1 pkgs/development/lisp-modules/quicklisp-to-nix-systems.txt
  157. +380 −443 pkgs/development/lisp-modules/quicklisp-to-nix.nix
  158. +12 −3 pkgs/development/node-packages/default-v8.nix
  159. +2 −4 pkgs/development/ocaml-modules/gapi-ocaml/default.nix
  160. +0 −1 pkgs/development/ocaml-modules/janestreet/async_ssl.nix
  161. +3 −0 pkgs/development/perl-modules/DBD-Pg/default.nix
  162. +34 −0 pkgs/development/python-modules/amazon_kclpy/default.nix
  163. +2 −2 pkgs/development/python-modules/raven/default.nix
  164. +2 −2 pkgs/development/tools/analysis/checkstyle/default.nix
  165. +3 −3 pkgs/development/tools/flyway/default.nix
  166. +2 −2 pkgs/development/tools/galen/default.nix
  167. +2 −2 pkgs/development/tools/haskell/multi-ghc-travis/default.nix
  168. +2 −2 pkgs/development/tools/jl/default.nix
  169. +1 −1 pkgs/development/tools/librarian-puppet-go/default.nix
  170. +2 −2 pkgs/development/tools/parsing/byacc/default.nix
  171. +1 −1 pkgs/development/web/woff2/default.nix
  172. +44 −0 pkgs/games/ivan/default.nix
  173. +75 −0 pkgs/games/ivan/homedir.patch
  174. +80 −0 pkgs/games/rrootage/default.nix
  175. +4 −2 pkgs/games/wesnoth/default.nix
  176. +15 −10 pkgs/misc/uboot/default.nix
  177. +18 −0 pkgs/os-specific/bsd/netbsd/compat.patch
  178. +9 −1 pkgs/os-specific/bsd/netbsd/default.nix
  179. +11 −0 pkgs/os-specific/bsd/netbsd/libbsd-overlay.pc
  180. +9 −0 pkgs/os-specific/darwin/apple-source-releases/PowerManagement/default.nix
  181. +8 −2 pkgs/os-specific/darwin/apple-source-releases/default.nix
  182. +1 −1 pkgs/os-specific/darwin/xcode/default.nix
  183. +2 −2 pkgs/os-specific/linux/firmware/raspberrypi/default.nix
  184. +4 −1 pkgs/os-specific/linux/kernel/generic.nix
  185. +2 −2 pkgs/os-specific/linux/kernel/linux-4.14.nix
  186. +2 −2 pkgs/os-specific/linux/kernel/linux-4.4.nix
  187. +2 −2 pkgs/os-specific/linux/kernel/linux-4.9.nix
  188. +16 −11 pkgs/os-specific/linux/kernel/linux-rpi.nix
  189. +3 −4 pkgs/os-specific/linux/libselinux/default.nix
  190. +0 −4 pkgs/os-specific/linux/musl/fts-setup-hook.sh
  191. +0 −19 pkgs/os-specific/linux/musl/fts.nix
  192. +0 −19 pkgs/os-specific/linux/musl/getconf.nix
  193. +0 −18 pkgs/os-specific/linux/musl/getent.nix
  194. +2 −1 pkgs/servers/amqp/qpid-cpp/default.nix
  195. +1 −0 pkgs/servers/apache-kafka/default.nix
  196. +0 −1 pkgs/servers/consul/Gemfile
  197. +15 −12 pkgs/servers/consul/Gemfile.lock
  198. +30 −27 pkgs/servers/consul/gemset.nix
  199. +17 −0 pkgs/servers/consul/ui-no-bundle-exec.patch
  200. +5 −3 pkgs/servers/consul/ui.nix
  201. +2 −2 pkgs/servers/monitoring/prometheus/snmp-exporter.nix
  202. +3 −3 pkgs/servers/nosql/neo4j/default.nix
  203. +3 −3 pkgs/servers/traefik/default.nix
  204. +2 −2 pkgs/servers/uftp/default.nix
  205. +13 −7 pkgs/test/cc-wrapper/default.nix
  206. +2 −3 pkgs/tools/compression/xar/default.nix
  207. +2 −2 pkgs/tools/graphics/povray/default.nix
  208. +5 −5 pkgs/tools/misc/bat/default.nix
  209. +4 −2 pkgs/tools/misc/grub/2.0x.nix
  210. +2 −2 pkgs/tools/misc/opentsdb/default.nix
  211. +17 −29 pkgs/tools/misc/os-prober/default.nix
  212. +30 −0 pkgs/tools/networking/dd-agent/40103-iostat-fix.patch
  213. +3 −0 pkgs/tools/networking/dd-agent/default.nix
  214. +2 −2 pkgs/tools/networking/iperf/2.nix
  215. +2 −2 pkgs/tools/networking/shadowsocks-libev/default.nix
  216. +2 −2 pkgs/tools/networking/strongswan/default.nix
  217. +1,912 −0 pkgs/tools/package-management/cargo-edit/cargo-edit.nix
  218. +21 −22 pkgs/tools/package-management/cargo-edit/default.nix
  219. +2 −2 pkgs/tools/package-management/nix/default.nix
  220. +2 −2 pkgs/tools/package-management/pacman/default.nix
  221. +31 −0 pkgs/tools/typesetting/scdoc/default.nix
  222. +87 −78 pkgs/top-level/all-packages.nix
  223. +14 −0 pkgs/top-level/perl-packages.nix
  224. +2 −0 pkgs/top-level/python-packages.nix
  225. +0 −4 pkgs/top-level/release.nix
  226. +5 −5 pkgs/top-level/unix-tools.nix
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@

<!-- Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers. -->

- [ ] Tested using sandboxing ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `build-use-sandbox` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file) on non-NixOS)
- [ ] Tested using sandboxing ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `sandbox` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file) on non-NixOS)
- Built on platform(s)
- [ ] NixOS
- [ ] macOS
70 changes: 51 additions & 19 deletions doc/languages-frameworks/python.section.md
Original file line number Diff line number Diff line change
@@ -587,30 +587,32 @@ The `buildPythonPackage` mainly does four things:

As in Perl, dependencies on other Python packages can be specified in the
`buildInputs` and `propagatedBuildInputs` attributes. If something is
exclusively a build-time dependency, use `buildInputs`; if it’s (also) a runtime
exclusively a build-time dependency, use `buildInputs`; if it is (also) a runtime
dependency, use `propagatedBuildInputs`.

By default tests are run because `doCheck = true`. Test dependencies, like
e.g. the test runner, should be added to `buildInputs`.
e.g. the test runner, should be added to `checkInputs`.

By default `meta.platforms` is set to the same value
as the interpreter unless overridden otherwise.

##### `buildPythonPackage` parameters

All parameters from `mkDerivation` function are still supported.

* `namePrefix`: Prepended text to `${name}` parameter. Defaults to `"python3.3-"` for Python 3.3, etc. Set it to `""` if you're packaging an application or a command line tool.
* `disabled`: If `true`, package is not build for particular python interpreter version. Grep around `pkgs/top-level/python-packages.nix` for examples.
* `setupPyBuildFlags`: List of flags passed to `setup.py build_ext` command.
* `pythonPath`: List of packages to be added into `$PYTHONPATH`. Packages in `pythonPath` are not propagated (contrary to `propagatedBuildInputs`).
All parameters from `stdenv.mkDerivation` function are still supported. The following are specific to `buildPythonPackage`:

* `catchConflicts ? true`: If `true`, abort package build if a package name appears more than once in dependency tree. Default is `true`.
* `checkInputs ? []`: Dependencies needed for running the `checkPhase`. These are added to `buildInputs` when `doCheck = true`.
* `disabled` ? false: If `true`, package is not build for the particular Python interpreter version.
* `dontWrapPythonPrograms ? false`: Skip wrapping of python programs.
* `installFlags ? []`: A list of strings. Arguments to be passed to `pip install`. To pass options to `python setup.py install`, use `--install-option`. E.g., `installFlags=["--install-option='--cpp_implementation'"].
* `format ? "setuptools"`: Format of the source. Valid options are `"setuptools"`, `"flit"`, `"wheel"`, and `"other"`. `"setuptools"` is for when the source has a `setup.py` and `setuptools` is used to build a wheel, `flit`, in case `flit` should be used to build a wheel, and `wheel` in case a wheel is provided. Use `other` when a custom `buildPhase` and/or `installPhase` is needed.
* `makeWrapperArgs ? []`: A list of strings. Arguments to be passed to `makeWrapper`, which wraps generated binaries. By default, the arguments to `makeWrapper` set `PATH` and `PYTHONPATH` environment variables before calling the binary. Additional arguments here can allow a developer to set environment variables which will be available when the binary is run. For example, `makeWrapperArgs = ["--set FOO BAR" "--set BAZ QUX"]`.
* `namePrefix`: Prepends text to `${name}` parameter. In case of libraries, this defaults to `"python3.5-"` for Python 3.5, etc., and in case of applications to `""`.
* `pythonPath ? []`: List of packages to be added into `$PYTHONPATH`. Packages in `pythonPath` are not propagated (contrary to `propagatedBuildInputs`).
* `preShellHook`: Hook to execute commands before `shellHook`.
* `postShellHook`: Hook to execute commands after `shellHook`.
* `makeWrapperArgs`: A list of strings. Arguments to be passed to `makeWrapper`, which wraps generated binaries. By default, the arguments to `makeWrapper` set `PATH` and `PYTHONPATH` environment variables before calling the binary. Additional arguments here can allow a developer to set environment variables which will be available when the binary is run. For example, `makeWrapperArgs = ["--set FOO BAR" "--set BAZ QUX"]`.
* `installFlags`: A list of strings. Arguments to be passed to `pip install`. To pass options to `python setup.py install`, use `--install-option`. E.g., `installFlags=["--install-option='--cpp_implementation'"].
* `format`: Format of the source. Valid options are `setuptools` (default), `flit`, `wheel`, and `other`. `setuptools` is for when the source has a `setup.py` and `setuptools` is used to build a wheel, `flit`, in case `flit` should be used to build a wheel, and `wheel` in case a wheel is provided. In case you need to provide your own `buildPhase` and `installPhase` you can use `other`.
* `catchConflicts` If `true`, abort package build if a package name appears more than once in dependency tree. Default is `true`.
* `checkInputs` Dependencies needed for running the `checkPhase`. These are added to `buildInputs` when `doCheck = true`.
* `removeBinByteCode ? true`: Remove bytecode from `/bin`. Bytecode is only created when the filenames end with `.py`.
* `setupPyBuildFlags ? []`: List of flags passed to `setup.py build_ext` command.

##### Overriding Python packages

@@ -646,7 +648,37 @@ The `buildPythonApplication` function is practically the same as `buildPythonPac
The difference is that `buildPythonPackage` by default prefixes the names of the packages with the version of the interpreter.
Because with an application we're not interested in multiple version the prefix is dropped.

#### python.buildEnv function
#### `toPythonApplication` function

A distinction is made between applications and libraries, however, sometimes a
package is used as both. In this case the package is added as a library to
`python-packages.nix` and as an application to `all-packages.nix`. To reduce
duplication the `toPythonApplication` can be used to convert a library to an
application.

The Nix expression shall use `buildPythonPackage` and be called from
`python-packages.nix`. A reference shall be created from `all-packages.nix` to
the attribute in `python-packages.nix`, and the `toPythonApplication` shall be
applied to the reference:
```nix
youtube-dl = with pythonPackages; toPythonApplication youtube-dl;
```

#### `toPythonModule` function

In some cases, such as bindings, a package is created using
`stdenv.mkDerivation` and added as attribute in `all-packages.nix`.
The Python bindings should be made available from `python-packages.nix`.
The `toPythonModule` function takes a derivation and makes certain Python-specific modifications.
```nix
opencv = toPythonModule (pkgs.opencv.override {
enablePython = true;
pythonPackages = self;
});
```
Do pay attention to passing in the right Python version!

#### `python.buildEnv` function

Python environments can be created using the low-level `pkgs.buildEnv` function.
This example shows how to create an environment that has the Pyramid Web Framework.
@@ -688,7 +720,7 @@ specified packages in its path.
* `postBuild`: Shell command executed after the build of environment.
* `ignoreCollisions`: Ignore file collisions inside the environment (default is `false`).

#### python.withPackages function
#### `python.withPackages` function

The `python.withPackages` function provides a simpler interface to the `python.buildEnv` functionality.
It takes a function as an argument that is passed the set of python packages and returns the list
@@ -722,7 +754,7 @@ with import <nixpkgs> {};
In contrast to `python.buildEnv`, `python.withPackages` does not support the more advanced options
such as `ignoreCollisions = true` or `postBuild`. If you need them, you have to use `python.buildEnv`.

Python 2 namespace packages may provide `__init__.py` that collide. In that case `python.buildEnv`
Python 2 namespace packages may provide `__init__.py` that collide. In that case `python.buildEnv`
should be used with `ignoreCollisions = true`.

### Development mode
@@ -790,8 +822,8 @@ example of such a situation is when `py.test` is used.

- Non-working tests can often be deselected. By default `buildPythonPackage` runs `python setup.py test`.
Most python modules follows the standard test protocol where the pytest runner can be used instead.
`py.test` supports a `-k` parameter to ignore test methods or classes:
`py.test` supports a `-k` parameter to ignore test methods or classes:

```nix
buildPythonPackage {
# ...
@@ -988,7 +1020,7 @@ If you need to change a package's attribute(s) from `configuration.nix` you coul
};
```

If you are using the `bepasty-server` package somewhere, for example in `systemPackages` or indirectly from `services.bepasty`, then a `nixos-rebuild switch` will rebuild the system but with the `bepasty-server` package using a different `src` attribute. This way one can modify `python` based software/libraries easily. Using `self` and `super` one can also alter dependencies (`buildInputs`) between the old state (`self`) and new state (`super`).
If you are using the `bepasty-server` package somewhere, for example in `systemPackages` or indirectly from `services.bepasty`, then a `nixos-rebuild switch` will rebuild the system but with the `bepasty-server` package using a different `src` attribute. This way one can modify `python` based software/libraries easily. Using `self` and `super` one can also alter dependencies (`buildInputs`) between the old state (`self`) and new state (`super`).

### How to override a Python package using overlays?

157 changes: 7 additions & 150 deletions lib/systems/platforms.nix
Original file line number Diff line number Diff line change
@@ -167,171 +167,24 @@ rec {
raspberrypi = {
name = "raspberrypi";
kernelMajor = "2.6";
kernelBaseConfig = "bcmrpi_defconfig";
kernelBaseConfig = "bcm2835_defconfig";
kernelDTB = true;
kernelArch = "arm";
kernelAutoModules = false;
kernelExtraConfig = ''
BLK_DEV_RAM y
BLK_DEV_INITRD y
BLK_DEV_CRYPTOLOOP m
BLK_DEV_DM m
DM_CRYPT m
MD y
REISERFS_FS m
BTRFS_FS y
XFS_FS m
JFS_FS y
EXT4_FS y
IP_PNP y
IP_PNP_DHCP y
NFS_FS y
ROOT_NFS y
TUN m
NFS_V4 y
NFS_V4_1 y
NFS_FSCACHE y
NFSD m
NFSD_V2_ACL y
NFSD_V3 y
NFSD_V3_ACL y
NFSD_V4 y
NETFILTER y
IP_NF_IPTABLES y
IP_NF_FILTER y
IP_NF_MATCH_ADDRTYPE y
IP_NF_TARGET_LOG y
IP_NF_MANGLE y
IPV6 m
VLAN_8021Q m
CIFS y
CIFS_XATTR y
CIFS_POSIX y
CIFS_FSCACHE y
CIFS_ACL y
ZRAM m
# Disable OABI to have seccomp_filter (required for systemd)
# https://github.com/raspberrypi/firmware/issues/651
OABI_COMPAT n
# Fail to build
DRM n
SCSI_ADVANSYS n
USB_ISP1362_HCD n
SND_SOC n
SND_ALI5451 n
FB_SAVAGE n
SCSI_NSP32 n
ATA_SFF n
SUNGEM n
IRDA n
ATM_HE n
SCSI_ACARD n
BLK_DEV_CMD640_ENHANCED n
FUSE_FS m
# nixos mounts some cgroup
CGROUPS y
# Latencytop
LATENCYTOP y
'';
kernelTarget = "zImage";
gcc = {
arch = "armv6";
fpu = "vfp";
# TODO(@Ericson2314) what is this and is it a good idea? It was
# used in some cross compilation examples but not others.
#
# abi = "aapcs-linux";
};
};

raspberrypi2 = armv7l-hf-multiplatform // {
name = "raspberrypi2";
kernelBaseConfig = "bcm2709_defconfig";
kernelDTB = true;
kernelAutoModules = false;
kernelExtraConfig = ''
BLK_DEV_RAM y
BLK_DEV_INITRD y
BLK_DEV_CRYPTOLOOP m
BLK_DEV_DM m
DM_CRYPT m
MD y
REISERFS_FS m
BTRFS_FS y
XFS_FS m
JFS_FS y
EXT4_FS y
IP_PNP y
IP_PNP_DHCP y
NFS_FS y
ROOT_NFS y
TUN m
NFS_V4 y
NFS_V4_1 y
NFS_FSCACHE y
NFSD m
NFSD_V2_ACL y
NFSD_V3 y
NFSD_V3_ACL y
NFSD_V4 y
NETFILTER y
IP_NF_IPTABLES y
IP_NF_FILTER y
IP_NF_MATCH_ADDRTYPE y
IP_NF_TARGET_LOG y
IP_NF_MANGLE y
IPV6 m
VLAN_8021Q m
CIFS y
CIFS_XATTR y
CIFS_POSIX y
CIFS_FSCACHE y
CIFS_ACL y
ZRAM m
# Disable OABI to have seccomp_filter (required for systemd)
# https://github.com/raspberrypi/firmware/issues/651
OABI_COMPAT n
# Fail to build
DRM n
SCSI_ADVANSYS n
USB_ISP1362_HCD n
SND_SOC n
SND_ALI5451 n
FB_SAVAGE n
SCSI_NSP32 n
ATA_SFF n
SUNGEM n
IRDA n
ATM_HE n
SCSI_ACARD n
BLK_DEV_CMD640_ENHANCED n
FUSE_FS m
# nixos mounts some cgroup
CGROUPS y
# Latencytop
LATENCYTOP y
# Disable the common config Xen, it doesn't build on ARM
XEN? n
'';
kernelTarget = "zImage";
};
# Legacy attribute, for compatibility with existing configs only.
raspberrypi2 = armv7l-hf-multiplatform;

scaleway-c1 = armv7l-hf-multiplatform // {
gcc = {
@@ -424,6 +277,10 @@ rec {
# Hangs ODROID-XU4
ARM_BIG_LITTLE_CPUIDLE n
# Disable OABI to have seccomp_filter (required for systemd)
# https://github.com/raspberrypi/firmware/issues/651
OABI_COMPAT n
'';
gcc = {
# Some table about fpu flags:
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -2770,6 +2770,11 @@
github = "nocoolnametom";
name = "Tom Doggett";
};
nonfreeblob = {
email = "nonfreeblob@yandex.com";
github = "nonfreeblob";
name ="nonfreeblob";
};
notthemessiah = {
email = "brian.cohen.88@gmail.com";
github = "notthemessiah";
4 changes: 2 additions & 2 deletions nixos/lib/qemu-flags.nix
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@
else throw "Unknown QEMU serial device for system '${pkgs.stdenv.system}'";

qemuBinary = qemuPkg: {
"i686-linux" = "${qemuPkg}/bin/qemu-kvm";
"x86_64-linux" = "${qemuPkg}/bin/qemu-kvm -cpu kvm64";
"armv7l-linux" = "${qemuPkg}/bin/qemu-system-arm -enable-kvm -machine virt -cpu host";
"aarch64-linux" = "${qemuPkg}/bin/qemu-system-aarch64 -enable-kvm -machine virt,gic-version=host -cpu host";
}.${pkgs.stdenv.system} or (throw "Unknown QEMU binary for '${pkgs.stdenv.system}'");
"x86_64-darwin" = "${qemuPkg}/bin/qemu-kvm -cpu kvm64";
}.${pkgs.stdenv.system} or "${qemuPkg}/bin/qemu-kvm";
}
25 changes: 19 additions & 6 deletions nixos/modules/installer/cd-dvd/sd-image-raspberrypi.nix
Original file line number Diff line number Diff line change
@@ -31,11 +31,24 @@ in
users.extraUsers.root.initialHashedPassword = "";

sdImage = {
populateBootCommands = ''
(cd ${pkgs.raspberrypifw}/share/raspberrypi/boot && cp bootcode.bin fixup*.dat start*.elf $NIX_BUILD_TOP/boot/)
cp ${pkgs.ubootRaspberryPi}/u-boot.bin boot/u-boot-rpi.bin
echo 'kernel u-boot-rpi.bin' > boot/config.txt
${extlinux-conf-builder} -t 3 -c ${config.system.build.toplevel} -d ./boot
'';
populateBootCommands = let
configTxt = pkgs.writeText "config.txt" ''
# Prevent the firmware from smashing the framebuffer setup done by the mainline kernel
# when attempting to show low-voltage or overtemperature warnings.
avoid_warnings=1
[pi0]
kernel=u-boot-rpi0.bin
[pi1]
kernel=u-boot-rpi1.bin
'';
in ''
(cd ${pkgs.raspberrypifw}/share/raspberrypi/boot && cp bootcode.bin fixup*.dat start*.elf $NIX_BUILD_TOP/boot/)
cp ${pkgs.ubootRaspberryPiZero}/u-boot.bin boot/u-boot-rpi0.bin
cp ${pkgs.ubootRaspberryPi}/u-boot.bin boot/u-boot-rpi1.bin
cp ${configTxt} boot/config.txt
${extlinux-conf-builder} -t 3 -c ${config.system.build.toplevel} -d ./boot
'';
};
}
8 changes: 4 additions & 4 deletions nixos/modules/installer/tools/nix-fallback-paths.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
x86_64-linux = "/nix/store/8d9zsq17v8f7lgbc5ca6gv438gk1ydqm-nix-2.0.3";
i686-linux = "/nix/store/7k7ca4ck24yqinbr9nyl5z2wmcx4l81g-nix-2.0.3";
aarch64-linux = "/nix/store/ckmrh426n1swlq9h4d53hvrxjc72avzp-nix-2.0.3";
x86_64-darwin = "/nix/store/2jp9d9qns3372hkx4k523hc1bbzkr4yp-nix-2.0.3";
x86_64-linux = "/nix/store/0d60i73mcv8z1m8d2m74yfn84980gfsa-nix-2.0.4";
i686-linux = "/nix/store/6ssafj2s5a2g9x28yld7b70vwd6vw6lb-nix-2.0.4";
aarch64-linux = "/nix/store/3wwch7bp7n7xsl8apgy2a4b16yzyij1z-nix-2.0.4";
x86_64-darwin = "/nix/store/771l8i0mz4c8kry8cz3sz8rr3alalckg-nix-2.0.4";
}
4 changes: 3 additions & 1 deletion nixos/modules/programs/zsh/zsh.nix
Original file line number Diff line number Diff line change
@@ -69,7 +69,9 @@ in

promptInit = mkOption {
default = ''
autoload -U promptinit && promptinit && prompt walters
if [ "$TERM" != dumb ]; then
autoload -U promptinit && promptinit && prompt walters
fi
'';
description = ''
Shell script code used to initialise the zsh prompt.
Loading