···11+{ config, lib, pkgs, ... }:
22+33+with lib;
44+55+let
66+ cfg = config.programs.vim;
77+in {
88+ options.programs.vim = {
99+ defaultEditor = mkOption {
1010+ type = types.bool;
1111+ default = false;
1212+ example = true;
1313+ description = ''
1414+ When enabled, installs vim and configures vim to be the default editor
1515+ using the EDITOR environment variable.
1616+ '';
1717+ };
1818+ };
1919+2020+ config = mkIf cfg.defaultEditor {
2121+ environment.systemPackages = [ pkgs.vim ];
2222+ environment.variables = { EDITOR = mkOverride 900 "vim"; };
2323+ };
2424+}
-2
nixos/modules/rename.nix
···156156 "See the 16.09 release notes for more information.")
157157 (mkRemovedOptionModule [ "services" "phpfpm" "phpIni" ] "")
158158 (mkRemovedOptionModule [ "services" "dovecot2" "package" ] "")
159159- (mkRemovedOptionModule [ "services" "dockerRegistry" ]
160160- "docker-registry has been deprecated upstream since a long time.")
161159 ];
162160}
···11-WGET_ARGS=( http://download.kde.org/stable/plasma/5.8.0/ -A '*.tar.xz' )
11+WGET_ARGS=( http://download.kde.org/stable/plasma/5.8.1/ -A '*.tar.xz' )
···176176 license = stdenv.lib.licenses.bsd3;
177177 platforms = ghc.meta.platforms;
178178 maintainers = with stdenv.lib.maintainers; [ jwiegley cstrahan ];
179179- broken = true; # See http://hydra.nixos.org/build/41499439, for example.
180179})
+12
pkgs/development/compilers/llvm/3.7/llvm.nix
···35353636 propagatedBuildInputs = [ ncurses zlib ];
37373838+ # The goal here is to disable LLVM bindings (currently go and ocaml) regardless
3939+ # of whether the impure CMake search sheananigans find the compilers in global
4040+ # paths. This mostly exists because sandbox builds don't work very well on Darwin
4141+ # and sometimes you get weird behavior if CMake finds go in your system path.
4242+ # This would be far prettier if there were a CMake option to just disable bindings
4343+ # but from what I can tell, there isn't such a thing. The file in question only
4444+ # contains `if(WIN32)` conditions to check whether to disable bindings, so making
4545+ # those always succeed has the net effect of disabling all bindings.
4646+ prePatch = ''
4747+ substituteInPlace cmake/config-ix.cmake --replace "if(WIN32)" "if(1)"
4848+ '';
4949+3850 # hacky fix: created binaries need to be run before installation
3951 preBuild = ''
4052 mkdir -p $out/
···5656 # The startup object files
5757 cp ${Csu}/lib/* $out/lib
58585959- # OMG impurity
6060- ln -s /usr/lib/libSystem.B.dylib $out/lib/libSystem.B.dylib
6161- ln -s /usr/lib/libSystem.dylib $out/lib/libSystem.dylib
5959+ # Narrowly speaking, these would work if we re-exported libsystem_c and libsystem_kernel,
6060+ # but we also need to run the original central libsystem constructor (which initializes
6161+ # a ton of crap for its consitutent libraries) so we link against the central library here.
6262+ mkdir -p $out/lib/system
6363+ ld -macosx_version_min 10.7 -arch x86_64 -dylib \
6464+ -o $out/lib/system/libsystem_c.dylib \
6565+ /usr/lib/libSystem.dylib \
6666+ -reexported_symbols_list ${./system_c_symbols}
6767+6868+ ld -macosx_version_min 10.7 -arch x86_64 -dylib \
6969+ -o $out/lib/system/libsystem_kernel.dylib \
7070+ /usr/lib/libSystem.dylib \
7171+ -reexported_symbols_list ${./system_kernel_symbols}
7272+7373+ libs=$(otool -arch x86_64 -L /usr/lib/libSystem.dylib | tail -n +3 | awk '{ print $1 }')
7474+7575+7676+ for i in $libs; do
7777+ if [ "$i" != "/usr/lib/system/libsystem_kernel.dylib" ] && [ "$i" != "/usr/lib/system/libsystem_c.dylib" ]; then
7878+ args="$args -reexport_library $i"
7979+ fi
8080+ done
8181+8282+ ld -macosx_version_min 10.7 \
8383+ -arch x86_64 \
8484+ -dylib \
8585+ -o $out/lib/libSystem.B.dylib \
8686+ -compatibility_version 1.0 \
8787+ -current_version 1226.10.1 \
8888+ -reexport_library $out/lib/system/libsystem_c.dylib \
8989+ -reexport_library $out/lib/system/libsystem_kernel.dylib \
9090+ $args
9191+9292+ ln -s libSystem.B.dylib $out/lib/libSystem.dylib
62936394 # Set up links to pretend we work like a conventional unix (Apple's design, not mine!)
6495 for name in c dbm dl info m mx poll proc pthread rpcsvc util gcc_s.10.4 gcc_s.10.5; do
···6363 fi
64646565 # Check that all-packages.nix evaluates on a number of platforms without any warnings.
6666+ # Filter out MD5 warnings for now
6667 for platform in i686-linux x86_64-linux x86_64-darwin; do
6768 header "checking Nixpkgs on $platform"
68696970 NIXPKGS_ALLOW_BROKEN=1 nix-env -f . \
7071 --show-trace --argstr system "$platform" \
7171- -qa --drv-path --system-filter \* --system 2>&1 >/dev/null | tee eval-warnings.log
7272+ -qa --drv-path --system-filter \* --system 2>&1 >/dev/null |
7373+ (grep -v '^trace: INFO: Deprecated use of MD5 hash in fetch' || true) |
7474+ tee eval-warnings.log
72757376 if [ -s eval-warnings.log ]; then
7477 echo "Nixpkgs on $platform evaluated with warnings, aborting"
+24-6
pkgs/top-level/python-packages.nix
···2888288828892889 boto = buildPythonPackage rec {
28902890 name = "boto-${version}";
28912891- version = "2.41.0";
28912891+ version = "2.42.0";
2892289228932893 src = pkgs.fetchurl {
28942894 url = "https://github.com/boto/boto/archive/${version}.tar.gz";
28952895- sha256 = "1n33bfbkpijyy6awjq7a8lrw4hw2lmwv5l7j0am6d34gpa8my75l";
28952895+ sha256 = "04ywn8xszk57s87jnkv4j1hswc6ra7z811y9lawfvhvnfshrpx5d";
28962896 };
2897289728982898 checkPhase = ''
···5315531553165316 libtmux = buildPythonPackage rec {
53175317 name = "libtmux-${version}";
53185318- version = "0.5.0";
53185318+ version = "0.6.0";
5319531953205320 src = pkgs.fetchurl {
53215321 url = "mirror://pypi/l/libtmux/${name}.tar.gz";
53225322- sha256 = "0fwydaahgflz9w753v1cmkfzrlfq1vb8zp4i20m2d3lvkm4crv93";
53225322+ sha256 = "117savw47c2givq9vxr5m02nyxmsk34l2ihxyy5axlaiqyxyf20s";
53235323 };
5324532453255325 buildInputs = with self; [ pytest ];
53265326 patchPhase = ''
53275327- sed -i 's/==2.9.1//' requirements/test.txt
53275327+ sed -i 's/==.*$//' requirements/test.txt
53285328 '';
5329532953305330 meta = with stdenv.lib; {
···28828288282882928829 propagatedBuildInputs = with self; [ msgpack ]
2883028830 ++ optional (!isPyPy) greenlet
2883128831- ++ optional (!isPy34) trollius;
2883128831+ ++ optional (pythonOlder "3.4") trollius;
28832288322883328833 meta = {
2883428834 description = "Python client for Neovim";
···3067330673 };
3067430674 };
30675306753067630676+ packet-python = buildPythonPackage rec {
3067730677+ name = "${pname}-${version}";
3067830678+ pname = "packet-python";
3067930679+ version = "1.31";
3068030680+ src = pkgs.fetchurl {
3068130681+ url = "https://pypi.python.org/packages/c3/1b/ea71ec9d6eeab92b783d23dd62e71e9296f9699bc7d457450859803929f0/${name}.tar.gz";
3068230682+ sha256 = "1z1zmrajfw01jr3mafimq7dvsb1rs978zln9xfd6fbqkp3vm9hc0";
3068330683+ };
3068430684+ propagatedBuildInputs = with self; [ requests ];
3068530685+3068630686+ meta = {
3068730687+ description = "A Python client for the Packet API.";
3068830688+ homepage = "https://github.com/packethost/packet-python";
3068930689+ license = licenses.lgpl3;
3069030690+ maintainers = with maintainers; [ dipinhora ];
3069130691+ platforms = platforms.all;
3069230692+ };
3069330693+ };
3067630694}
+38-36
pkgs/top-level/release.nix
···21212222let
23232424+ unstable = pkgs.releaseTools.aggregate
2525+ { name = "nixpkgs-${jobs.tarball.version}";
2626+ meta.description = "Release-critical builds for the Nixpkgs unstable channel";
2727+ constituents =
2828+ [ jobs.tarball
2929+ jobs.metrics
3030+ jobs.manual
3131+ jobs.lib-tests
3232+ jobs.stdenv.x86_64-linux
3333+ jobs.stdenv.i686-linux
3434+ jobs.stdenv.x86_64-darwin
3535+ jobs.linux.x86_64-linux
3636+ jobs.linux.i686-linux
3737+ jobs.python.x86_64-linux
3838+ jobs.python.i686-linux
3939+ jobs.python.x86_64-darwin
4040+ jobs.python3.x86_64-linux
4141+ jobs.python3.i686-linux
4242+ jobs.python3.x86_64-darwin
4343+ # Many developers use nix-repl
4444+ jobs.nix-repl.x86_64-linux
4545+ jobs.nix-repl.i686-linux
4646+ jobs.nix-repl.x86_64-darwin
4747+ # Needed by travis-ci to test PRs
4848+ jobs.nox.i686-linux
4949+ jobs.nox.x86_64-linux
5050+ jobs.nox.x86_64-darwin
5151+ # Ensure that X11/GTK+ are in order.
5252+ jobs.thunderbird.x86_64-linux
5353+ jobs.thunderbird.i686-linux
5454+ # Ensure that basic stuff works on darwin
5555+ jobs.git.x86_64-darwin
5656+ jobs.mysql.x86_64-darwin
5757+ jobs.vim.x86_64-darwin
5858+ ] ++ lib.collect lib.isDerivation jobs.stdenvBootstrapTools;
5959+ };
6060+2461 lib = pkgs.lib;
25622663 jobs =
···33703471 # for consistency with NixOS tested job
3572 tested = unstable;
7373+ inherit unstable;
36743737- unstable = pkgs.releaseTools.aggregate
3838- { name = "nixpkgs-${jobs.tarball.version}";
3939- meta.description = "Release-critical builds for the Nixpkgs unstable channel";
4040- constituents =
4141- [ jobs.tarball
4242- jobs.metrics
4343- jobs.manual
4444- jobs.lib-tests
4545- jobs.stdenv.x86_64-linux
4646- jobs.stdenv.i686-linux
4747- jobs.stdenv.x86_64-darwin
4848- jobs.linux.x86_64-linux
4949- jobs.linux.i686-linux
5050- jobs.python.x86_64-linux
5151- jobs.python.i686-linux
5252- jobs.python.x86_64-darwin
5353- jobs.python3.x86_64-linux
5454- jobs.python3.i686-linux
5555- jobs.python3.x86_64-darwin
5656- # Many developers use nix-repl
5757- jobs.nix-repl.x86_64-linux
5858- jobs.nix-repl.i686-linux
5959- jobs.nix-repl.x86_64-darwin
6060- # Needed by travis-ci to test PRs
6161- jobs.nox.i686-linux
6262- jobs.nox.x86_64-linux
6363- jobs.nox.x86_64-darwin
6464- # Ensure that X11/GTK+ are in order.
6565- jobs.thunderbird.x86_64-linux
6666- jobs.thunderbird.i686-linux
6767- # Ensure that basic stuff works on darwin
6868- jobs.git.x86_64-darwin
6969- jobs.mysql.x86_64-darwin
7070- jobs.vim.x86_64-darwin
7171- ] ++ lib.collect lib.isDerivation jobs.stdenvBootstrapTools;
7272- };
73757476 stdenvBootstrapTools.i686-linux =
7577 { inherit (import ../stdenv/linux/make-bootstrap-tools.nix { system = "i686-linux"; }) dist test; };