From 7bd3a3bd55dbb1792aa3ad5b773b73f2826c450f Mon Sep 17 00:00:00 2001 From: Symphorien Gibol Date: Fri, 23 Nov 2018 17:45:33 +0100 Subject: [PATCH 001/120] rustfmt: 0.9.0 -> 0.99.5 rustfmt 1.0 has been released, but requires a more recent rustc. --- pkgs/development/tools/rust/rustfmt/default.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/rust/rustfmt/default.nix b/pkgs/development/tools/rust/rustfmt/default.nix index b8585dace54..3fddba5d08e 100644 --- a/pkgs/development/tools/rust/rustfmt/default.nix +++ b/pkgs/development/tools/rust/rustfmt/default.nix @@ -2,16 +2,25 @@ rustPlatform.buildRustPackage rec { name = "rustfmt-${version}"; - version = "0.9.0"; + version = "0.99.5"; src = fetchFromGitHub { - owner = "rust-lang-nursery"; + owner = "rust-lang"; repo = "rustfmt"; rev = "${version}"; - sha256 = "12l3ff0s0pzhcf5jbs8wqawjk4jghhhz8j6dq1n5201yvny12jlr"; + sha256 = "1gx1bsyb0f94r3f88f1j3b4rcm2x6zppcfab1c5vgpsr2dr6ch28"; }; - cargoSha256 = "0gppki9mgx99xipapg36ydwk1bplygnz6sbyzbg46vhn10iggfwm"; + cargoSha256 = "1rs6jjm75ixxhrf8b3zn991xa5kfayxlf0b70zdx6wd4r6by7w2y"; + + # As of 1.0.0 and rustc 1.30 rustfmt requires a nightly compiler + RUSTC_BOOTSTRAP = 1; + + # we run tests in debug mode so tests look for a debug build of + # rustfmt. Anyway this adds nearly no compilation time. + preCheck = '' + cargo build + ''; meta = with stdenv.lib; { description = "A tool for formatting Rust code according to style guidelines"; From c73f75dc5ef9875aa2832c74b05d067fdcc17985 Mon Sep 17 00:00:00 2001 From: Symphorien Gibol Date: Fri, 23 Nov 2018 17:52:25 +0100 Subject: [PATCH 002/120] rust-bindgen: enable tests now that we have a recent enough rustfmt --- pkgs/development/tools/rust/bindgen/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/rust/bindgen/default.nix b/pkgs/development/tools/rust/bindgen/default.nix index 836003eeb73..5a1c2364a77 100644 --- a/pkgs/development/tools/rust/bindgen/default.nix +++ b/pkgs/development/tools/rust/bindgen/default.nix @@ -29,7 +29,7 @@ rustPlatform.buildRustPackage rec { chmod +x $out/bin/bindgen ''; - doCheck = false; # half the tests fail because our rustfmt is not nightly enough + doCheck = true; checkInputs = let fakeRustup = writeScriptBin "rustup" '' #!${stdenv.shell} @@ -42,6 +42,10 @@ rustPlatform.buildRustPackage rec { fakeRustup # the test suite insists in calling `rustup run nightly rustfmt` clang ]; + preCheck = '' + # for the ci folder, notably + patchShebangs . + ''; meta = with stdenv.lib; { description = "C and C++ binding generator"; From 1d63496e5d1eb4eab5dfa6b462afb227ebfdcb47 Mon Sep 17 00:00:00 2001 From: Symphorien Gibol Date: Sat, 24 Nov 2018 00:43:52 +0100 Subject: [PATCH 003/120] rustfmt: fix build on darwin --- pkgs/development/tools/rust/rustfmt/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/rust/rustfmt/default.nix b/pkgs/development/tools/rust/rustfmt/default.nix index 3fddba5d08e..06a3862adae 100644 --- a/pkgs/development/tools/rust/rustfmt/default.nix +++ b/pkgs/development/tools/rust/rustfmt/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, rustPlatform }: +{ stdenv, fetchFromGitHub, rustPlatform, darwin }: rustPlatform.buildRustPackage rec { name = "rustfmt-${version}"; @@ -13,6 +13,9 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "1rs6jjm75ixxhrf8b3zn991xa5kfayxlf0b70zdx6wd4r6by7w2y"; + buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; + + # As of 1.0.0 and rustc 1.30 rustfmt requires a nightly compiler RUSTC_BOOTSTRAP = 1; From 17ddcccb56fb42e03337c02a214c212955cd2c9d Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 20 Dec 2018 14:25:24 +0100 Subject: [PATCH 004/120] containerd: migrate to using buildGoPackage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … and add man pages, which means `containerd` becomes a multi-output derivation : `containerd.bin` and `containerd.man`. Signed-off-by: Vincent Demeester --- .../virtualization/containerd/default.nix | 40 ++++++++++--------- .../virtualization/docker/default.nix | 4 +- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/pkgs/applications/virtualization/containerd/default.nix b/pkgs/applications/virtualization/containerd/default.nix index d9056c4111d..8babf2acd7e 100644 --- a/pkgs/applications/virtualization/containerd/default.nix +++ b/pkgs/applications/virtualization/containerd/default.nix @@ -1,9 +1,8 @@ -{ stdenv, lib, fetchFromGitHub, removeReferencesTo -, go, btrfs-progs }: +{ stdenv, lib, fetchFromGitHub, buildGoPackage, btrfs-progs, go-md2man, utillinux }: with lib; -stdenv.mkDerivation rec { +buildGoPackage rec { name = "containerd-${version}"; version = "1.2.1"; @@ -14,34 +13,37 @@ stdenv.mkDerivation rec { sha256 = "16zn6p1ky3yrgn53z8h9wza53ch91fj47wj5xgz6w4c57j30f66p"; }; + goPackagePath = "github.com/containerd/containerd"; + outputs = [ "bin" "out" "man" ]; + hardeningDisable = [ "fortify" ]; - buildInputs = [ removeReferencesTo go btrfs-progs ]; + buildInputs = [ btrfs-progs go-md2man utillinux ]; buildFlags = "VERSION=v${version}"; BUILDTAGS = [] ++ optional (btrfs-progs == null) "no_btrfs"; - preConfigure = '' - # Extract the source - cd "$NIX_BUILD_TOP" - mkdir -p "go/src/github.com/containerd" - mv "$sourceRoot" "go/src/github.com/containerd/containerd" - export GOPATH=$NIX_BUILD_TOP/go:$GOPATH -''; - - preBuild = '' - cd go/src/github.com/containerd/containerd + buildPhase = '' + cd go/src/${goPackagePath} patchShebangs . + make binaries ''; installPhase = '' - mkdir -p $out/bin - cp bin/* $out/bin - ''; + for b in bin/*; do + install -Dm555 $b $bin/$b + done - preFixup = '' - find $out -type f -exec remove-references-to -t ${go} '{}' + + make man + manRoot="$man/share/man" + mkdir -p "$manRoot" + for manFile in man/*; do + manName="$(basename "$manFile")" # "docker-build.1" + number="$(echo $manName | rev | cut -d'.' -f1 | rev)" + mkdir -p "$manRoot/man$number" + gzip -c "$manFile" > "$manRoot/man$number/$manName.gz" + done ''; meta = { diff --git a/pkgs/applications/virtualization/docker/default.nix b/pkgs/applications/virtualization/docker/default.nix index 729ba9eae18..28c43debcab 100644 --- a/pkgs/applications/virtualization/docker/default.nix +++ b/pkgs/applications/virtualization/docker/default.nix @@ -28,7 +28,7 @@ rec { patches = []; }); - docker-containerd = (containerd.override { inherit go; }).overrideAttrs (oldAttrs: rec { + docker-containerd = containerd.overrideAttrs (oldAttrs: rec { name = "docker-containerd-${version}"; inherit version; src = fetchFromGitHub { @@ -39,8 +39,6 @@ rec { }; hardeningDisable = [ "fortify" ]; - - buildInputs = [ removeReferencesTo go btrfs-progs ]; }); docker-tini = tini.overrideAttrs (oldAttrs: rec { From e4bc05f46044f36ab10e10e269e5609f1274b67f Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 20 Dec 2018 18:45:54 +0100 Subject: [PATCH 005/120] openshift: migrate to using buildGoPackage This means `openshift` becomes a multi-output derivation : `openshift.bin` and `openshift` Signed-off-by: Vincent Demeester --- .../networking/cluster/openshift/default.nix | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/pkgs/applications/networking/cluster/openshift/default.nix b/pkgs/applications/networking/cluster/openshift/default.nix index a34c728da16..f730329d072 100644 --- a/pkgs/applications/networking/cluster/openshift/default.nix +++ b/pkgs/applications/networking/cluster/openshift/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchFromGitHub, removeReferencesTo, which, go, go-bindata, makeWrapper, rsync, utillinux +{ stdenv, lib, fetchFromGitHub, buildGoPackage, which, go-bindata, rsync, utillinux , coreutils, kerberos, clang , components ? [ "cmd/oc" @@ -20,7 +20,7 @@ let k8sgitcommit = "b1b2997"; k8sgitMajor = "0"; k8sgitMinor = "1"; -in stdenv.mkDerivation rec { +in buildGoPackage rec { name = "openshift-origin-${version}"; inherit version; @@ -29,13 +29,13 @@ in stdenv.mkDerivation rec { repo = "origin"; rev = "v${version}"; sha256 = "06q4v2a1mm6c659ab0rzkqz6b66vx4avqfg0s9xckwhq420lzgka"; -}; + }; + + goPackagePath = "github.com/openshift/origin"; # go > 1.10 # [FATAL] [14:44:02+0000] Please install Go version go or use PERMISSIVE_GO=y to bypass this check. - buildInputs = [ removeReferencesTo makeWrapper which go rsync go-bindata kerberos clang ]; - - outputs = [ "out" ]; + buildInputs = [ which rsync go-bindata kerberos clang ]; patchPhase = '' patchShebangs ./hack @@ -54,6 +54,7 @@ in stdenv.mkDerivation rec { ''; buildPhase = '' + cd go/src/${goPackagePath} # Openshift build require this variables to be set # unless there is a .git folder which is not the case with fetchFromGitHub echo "OS_GIT_VERSION=v${version}" >> os-version-defs @@ -71,14 +72,10 @@ in stdenv.mkDerivation rec { ''; installPhase = '' - mkdir -p "$out/bin" - cp -a "_output/local/bin/$(go env GOOS)/$(go env GOARCH)/"* "$out/bin/" - install -D -t "$out/etc/bash_completion.d" contrib/completions/bash/* - install -D -t "$out/share/zsh/site-functions" contrib/completions/zsh/* - ''; - - preFixup = '' - find $out/bin -type f -exec remove-references-to -t ${go} '{}' + + mkdir -p $bin/bin + cp -a "_output/local/bin/$(go env GOOS)/$(go env GOARCH)/"* "$bin/bin/" + install -D -t "$bin/etc/bash_completion.d" contrib/completions/bash/* + install -D -t "$bin/share/zsh/site-functions" contrib/completions/zsh/* ''; meta = with stdenv.lib; { From 3f222747bfbf7e6e53c02a5d6e27e8475db6649b Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Mon, 17 Dec 2018 23:47:07 +0200 Subject: [PATCH 006/120] handbrake: 1.1.2 -> 1.2.0 --- pkgs/applications/video/handbrake/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/handbrake/default.nix b/pkgs/applications/video/handbrake/default.nix index abd4973bbdf..b251bfeabc6 100644 --- a/pkgs/applications/video/handbrake/default.nix +++ b/pkgs/applications/video/handbrake/default.nix @@ -20,12 +20,12 @@ stdenv.mkDerivation rec { # TODO: Release 1.2.0 would switch LibAV to FFmpeg. - version = "1.1.2"; + version = "1.2.0"; name = "handbrake-${version}"; src = fetchurl { url = ''https://download2.handbrake.fr/${version}/HandBrake-${version}-source.tar.bz2''; - sha256 = "0bny0hwlr55g2c69rsamv0xvwmfh1s4a582b9vq20xv5ly84m6ms"; + sha256 = "03clkknaq3mz84p85cvr21gsy9b8vv2g4vvyfz44hz8la253jfqi"; }; patched_libav_12 = libav_12.overrideAttrs (super: { From 0f83cff8a2c27fb31357ea860ecca6dc99d96fd1 Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Thu, 27 Dec 2018 17:05:57 +0200 Subject: [PATCH 007/120] handbrake: 1.2.0: switch to FFMpeg, deps sort --- pkgs/applications/video/handbrake/default.nix | 69 ++++++++----------- 1 file changed, 27 insertions(+), 42 deletions(-) diff --git a/pkgs/applications/video/handbrake/default.nix b/pkgs/applications/video/handbrake/default.nix index b251bfeabc6..63034b09af7 100644 --- a/pkgs/applications/video/handbrake/default.nix +++ b/pkgs/applications/video/handbrake/default.nix @@ -1,25 +1,31 @@ # Upstream distributes HandBrake with bundle of according versions of libraries and patches to them. # -# Derivation patches HandBrake to use our closure. +# Derivation patches HandBrake to use Nix closure dependencies. # { stdenv, lib, fetchurl, - python2, pkgconfig, yasm, zlib, - autoconf, automake, libtool, m4, jansson, - libass, libiconv, libsamplerate, fribidi, libxml2, bzip2, - libogg, libopus, libtheora, libvorbis, libdvdcss, a52dec, - lame, libdvdread, libdvdnav, libbluray, - mp4v2, mpeg2dec, x264, x265, libmkv, - fontconfig, freetype, hicolor-icon-theme, - glib, gtk3, intltool, libnotify, - gst_all_1, dbus-glib, udev, libgudev, libvpx, - useGtk ? true, wrapGAppsHook ? null, libappindicator-gtk3 ? null, - useFfmpeg ? false, libav_12 ? null, ffmpeg ? null, + python2, pkgconfig, autoconf, automake, yasm, libtool, m4, + fribidi, fontconfig, freetype, jansson, zlib, + libass, libiconv, libsamplerate, libxml2, bzip2, + ffmpeg_4, libtheora, x264, x265, libvpx, mpeg2dec, + libopus, lame, libvorbis, a52dec, + libogg, libmkv, mp4v2, + libdvdread, libdvdnav, libdvdcss, libbluray, + useGtk ? true, wrapGAppsHook ? null, + intltool ? null, + glib ? null, + gtk3 ? null, + libappindicator-gtk3 ? null, + libnotify ? null, + gst_all_1 ? null, + dbus-glib ? null, + udev ? null, + libgudev ? null, + hicolor-icon-theme ? null, useFdk ? false, fdk_aac ? null }: stdenv.mkDerivation rec { - # TODO: Release 1.2.0 would switch LibAV to FFmpeg. version = "1.2.0"; name = "handbrake-${version}"; @@ -28,44 +34,22 @@ stdenv.mkDerivation rec { sha256 = "03clkknaq3mz84p85cvr21gsy9b8vv2g4vvyfz44hz8la253jfqi"; }; - patched_libav_12 = libav_12.overrideAttrs (super: { - patches = (super.patches or []) ++ [( - # NOTE: 2018-04-26: HandBrake compilation (1.1.0) requires - # a patch of LibAV (12.3) from HandBrake team. This patch - # not went LibAV upstream. - fetchurl { - url = ''https://raw.githubusercontent.com/HandBrake/HandBrake/9e1f245708a157231c427c0ef9b91729d59a30e1/contrib/ffmpeg/A21-mp4-sdtp.patch''; - sha256 = "14grzyvb1qbb90k31ibabnwmwnrc48ml6h2z0rjamdv83q45jq4g"; - }) - # NOTE: 2018-11-11: Transcoding to MP4 can fail with: - # - # Tag avc1/0x31637661 incompatible with output codec id '28' - # muxavformat: avformat_write_header failed! - # - # Fix using Handbrake patch that is not upstream in libav. - ( - fetchurl { - url = ''https://raw.githubusercontent.com/HandBrake/HandBrake/df6c26fa261423237ee2bec0bf784c32cbfda3fa/contrib/ffmpeg/A20-avc3-hvc1-override.patch''; - sha256 = "1vijd7bmkzp3sb6zhpcpdni8fz4h13wgglnml6cz9f44j41w2c3v"; - }) - ]; - }); - nativeBuildInputs = [ - python2 pkgconfig yasm autoconf automake libtool m4 - ] ++ lib.optionals useGtk [ intltool wrapGAppsHook ]; + python2 pkgconfig autoconf automake yasm libtool m4 + ] ++ lib.optionals useGtk [ wrapGAppsHook intltool ]; buildInputs = [ fribidi fontconfig freetype jansson zlib libass libiconv libsamplerate libxml2 bzip2 - libogg libopus libtheora libvorbis libdvdcss a52dec libmkv - lame libdvdread libdvdnav libbluray mp4v2 mpeg2dec x264 x265 libvpx + ffmpeg_4 libtheora x264 x265 libvpx mpeg2dec + libopus lame libvorbis a52dec + libogg libmkv mp4v2 + libdvdread libdvdnav libdvdcss libbluray ] ++ lib.optionals useGtk [ glib gtk3 libappindicator-gtk3 libnotify gst_all_1.gstreamer gst_all_1.gst-plugins-base dbus-glib udev libgudev hicolor-icon-theme - ] ++ (if useFfmpeg then [ ffmpeg ] else [ patched_libav_12 ]) - ++ lib.optional useFdk fdk_aac; + ] ++ lib.optional useFdk fdk_aac; enableParallelBuilding = true; @@ -87,6 +71,7 @@ stdenv.mkDerivation rec { (if useFdk then "--enable-fdk-aac" else "") ]; + # NOTE: 2018-12-27: Check NixOS HandBrake test if changing NIX_LDFLAGS = [ "-lx265" ]; From 42f660a3a069b77f06d0f379c499b9f470a6d768 Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Thu, 27 Dec 2018 17:14:59 +0200 Subject: [PATCH 008/120] handbrake: 1.2.0: add cmake, no cmake conf --- pkgs/applications/video/handbrake/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/video/handbrake/default.nix b/pkgs/applications/video/handbrake/default.nix index 63034b09af7..9d43104364e 100644 --- a/pkgs/applications/video/handbrake/default.nix +++ b/pkgs/applications/video/handbrake/default.nix @@ -4,7 +4,7 @@ # { stdenv, lib, fetchurl, - python2, pkgconfig, autoconf, automake, yasm, libtool, m4, + python2, pkgconfig, autoconf, automake, cmake, yasm, libtool, m4, fribidi, fontconfig, freetype, jansson, zlib, libass, libiconv, libsamplerate, libxml2, bzip2, ffmpeg_4, libtheora, x264, x265, libvpx, mpeg2dec, @@ -35,8 +35,8 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ - python2 pkgconfig autoconf automake yasm libtool m4 - ] ++ lib.optionals useGtk [ wrapGAppsHook intltool ]; + python2 pkgconfig autoconf automake cmake yasm libtool m4 + ] ++ lib.optionals useGtk [ intltool wrapGAppsHook ]; buildInputs = [ fribidi fontconfig freetype jansson zlib @@ -51,6 +51,10 @@ stdenv.mkDerivation rec { libgudev hicolor-icon-theme ] ++ lib.optional useFdk fdk_aac; + # NOTE: 2018-12-25: v1.2.0 now requires cmake dep + # (default distribution bundles&builds 3rd party libs), + # don't trigger cmake build + dontUseCmakeConfigure = true; enableParallelBuilding = true; preConfigure = '' From fd8a90f5cae34bf52afcb5774a0c31c60c107727 Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Thu, 27 Dec 2018 17:40:07 +0200 Subject: [PATCH 009/120] handbrake: 1.2.0: updating deps rm yasm - dropped rm bzip2, zlib - no needed for build rm mp4v2, libmkv, mpeg2dec - drop abandonware, HandBrake now uses FFMpeg for that add nasm, speex, nv-codec-headers - new required deps --- pkgs/applications/video/handbrake/default.nix | 38 ++++++++++++------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/pkgs/applications/video/handbrake/default.nix b/pkgs/applications/video/handbrake/default.nix index 9d43104364e..15bef1046f0 100644 --- a/pkgs/applications/video/handbrake/default.nix +++ b/pkgs/applications/video/handbrake/default.nix @@ -3,13 +3,16 @@ # Derivation patches HandBrake to use Nix closure dependencies. # -{ stdenv, lib, fetchurl, - python2, pkgconfig, autoconf, automake, cmake, yasm, libtool, m4, - fribidi, fontconfig, freetype, jansson, zlib, - libass, libiconv, libsamplerate, libxml2, bzip2, - ffmpeg_4, libtheora, x264, x265, libvpx, mpeg2dec, - libopus, lame, libvorbis, a52dec, - libogg, libmkv, mp4v2, +{ stdenv, lib, fetchurl, callPackage, + # Main build tools + python2, pkgconfig, autoconf, automake, cmake, nasm, libtool, m4, + # Processing, video codecs, containers + ffmpeg_4, libogg, x264, x265, libvpx, libtheora, + # Codecs, audio + libopus, lame, libvorbis, a52dec, speex, libsamplerate, + # Text processing + libiconv, fribidi, fontconfig, freetype, libass, jansson, libxml2, + # Optical media libdvdread, libdvdnav, libdvdcss, libbluray, useGtk ? true, wrapGAppsHook ? null, intltool ? null, @@ -25,6 +28,12 @@ useFdk ? false, fdk_aac ? null }: +let + + nv-codec-headers = callPackage ../../../development/libraries/ffmpeg-full/nv-codec-headers.nix { }; + +in + stdenv.mkDerivation rec { version = "1.2.0"; name = "handbrake-${version}"; @@ -35,21 +44,22 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ - python2 pkgconfig autoconf automake cmake yasm libtool m4 + python2 pkgconfig autoconf automake cmake nasm libtool m4 ] ++ lib.optionals useGtk [ intltool wrapGAppsHook ]; buildInputs = [ - fribidi fontconfig freetype jansson zlib - libass libiconv libsamplerate libxml2 bzip2 - ffmpeg_4 libtheora x264 x265 libvpx mpeg2dec - libopus lame libvorbis a52dec - libogg libmkv mp4v2 + ffmpeg_4 libogg libtheora x264 x265 libvpx + libopus lame libvorbis a52dec speex libsamplerate + libiconv fribidi fontconfig freetype libass jansson libxml2 libdvdread libdvdnav libdvdcss libbluray ] ++ lib.optionals useGtk [ glib gtk3 libappindicator-gtk3 libnotify gst_all_1.gstreamer gst_all_1.gst-plugins-base dbus-glib udev libgudev hicolor-icon-theme - ] ++ lib.optional useFdk fdk_aac; + ] ++ lib.optional useFdk fdk_aac + # NOTE: 2018-12-27: Handbrake supports nv-codec-headers for Linux only, + # look at ./make/configure.py search "enable_nvenc" + ++ lib.optional stdenv.isLinux nv-codec-headers; # NOTE: 2018-12-25: v1.2.0 now requires cmake dep # (default distribution bundles&builds 3rd party libs), From 6ebcbd0c97ba696a90fcf25db8c8bdfccc6fc64f Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Fri, 28 Dec 2018 20:05:20 +0200 Subject: [PATCH 010/120] handbrake: 1.2.0: ffmpeg_4 -> ffmpeg-full --- pkgs/applications/video/handbrake/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/handbrake/default.nix b/pkgs/applications/video/handbrake/default.nix index 15bef1046f0..bdb8630241e 100644 --- a/pkgs/applications/video/handbrake/default.nix +++ b/pkgs/applications/video/handbrake/default.nix @@ -7,7 +7,7 @@ # Main build tools python2, pkgconfig, autoconf, automake, cmake, nasm, libtool, m4, # Processing, video codecs, containers - ffmpeg_4, libogg, x264, x265, libvpx, libtheora, + ffmpeg-full, libogg, x264, x265, libvpx, libtheora, # Codecs, audio libopus, lame, libvorbis, a52dec, speex, libsamplerate, # Text processing @@ -48,7 +48,7 @@ stdenv.mkDerivation rec { ] ++ lib.optionals useGtk [ intltool wrapGAppsHook ]; buildInputs = [ - ffmpeg_4 libogg libtheora x264 x265 libvpx + ffmpeg-full libogg libtheora x264 x265 libvpx libopus lame libvorbis a52dec speex libsamplerate libiconv fribidi fontconfig freetype libass jansson libxml2 libdvdread libdvdnav libdvdcss libbluray From 537b0ac9be8109cb9c586d636f89359c46ed5b4f Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 3 Jan 2019 16:16:51 -0500 Subject: [PATCH 011/120] ngspice: 29 -> 30 Just a simple bump. --- .../applications/science/electronics/ngspice/default.nix | 9 +++++---- pkgs/development/libraries/libngspice/default.nix | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/science/electronics/ngspice/default.nix b/pkgs/applications/science/electronics/ngspice/default.nix index 4777c89e876..194804a21a6 100644 --- a/pkgs/applications/science/electronics/ngspice/default.nix +++ b/pkgs/applications/science/electronics/ngspice/default.nix @@ -1,12 +1,13 @@ {stdenv, fetchurl, bison, flex , readline, libX11, libICE, libXaw, libXmu, libXext, libXt, fftw }: -stdenv.mkDerivation { - name = "ngspice-29"; +stdenv.mkDerivation rec { + name = "ngspice-${version}"; + version = "30"; src = fetchurl { - url = "mirror://sourceforge/ngspice/ngspice-29.tar.gz"; - sha256 = "0jjwz73naq7l9yhwdqbpnrfckywp2ffkppivxjv8w92zq7xhyvcd"; + url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz"; + sha256 = "15v0jdfy2a2zxp8dmy04fdp7w7a4vwvffcwa688r81b86wphxzh8"; }; nativeBuildInputs = [ flex bison ]; diff --git a/pkgs/development/libraries/libngspice/default.nix b/pkgs/development/libraries/libngspice/default.nix index 87382bd1ae2..c6348b7b2e6 100644 --- a/pkgs/development/libraries/libngspice/default.nix +++ b/pkgs/development/libraries/libngspice/default.nix @@ -2,12 +2,13 @@ # Note that this does not provide the ngspice command-line utility. For that see # the ngspice derivation. -stdenv.mkDerivation { - name = "libngspice-29"; +stdenv.mkDerivation rec { + name = "libngspice-${version}"; + version = "30"; src = fetchurl { - url = "mirror://sourceforge/ngspice/ngspice-29.tar.gz"; - sha256 = "0jjwz73naq7l9yhwdqbpnrfckywp2ffkppivxjv8w92zq7xhyvcd"; + url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz"; + sha256 = "15v0jdfy2a2zxp8dmy04fdp7w7a4vwvffcwa688r81b86wphxzh8"; }; nativeBuildInputs = [ flex bison ]; From 9f6e6f9b31e1e97f090678623a67f858d51108b3 Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Sat, 5 Jan 2019 03:31:43 +0200 Subject: [PATCH 012/120] nv-codec-headers: bring package to top-level --- pkgs/applications/video/handbrake/default.nix | 8 +------- pkgs/development/libraries/ffmpeg-full/default.nix | 4 +--- .../nv-codec-headers.nix => nv-codec-headers/default.nix} | 0 pkgs/top-level/all-packages.nix | 2 ++ 4 files changed, 4 insertions(+), 10 deletions(-) rename pkgs/development/libraries/{ffmpeg-full/nv-codec-headers.nix => nv-codec-headers/default.nix} (100%) diff --git a/pkgs/applications/video/handbrake/default.nix b/pkgs/applications/video/handbrake/default.nix index bdb8630241e..07474c5e52c 100644 --- a/pkgs/applications/video/handbrake/default.nix +++ b/pkgs/applications/video/handbrake/default.nix @@ -7,7 +7,7 @@ # Main build tools python2, pkgconfig, autoconf, automake, cmake, nasm, libtool, m4, # Processing, video codecs, containers - ffmpeg-full, libogg, x264, x265, libvpx, libtheora, + ffmpeg-full, nv-codec-headers, libogg, x264, x265, libvpx, libtheora, # Codecs, audio libopus, lame, libvorbis, a52dec, speex, libsamplerate, # Text processing @@ -28,12 +28,6 @@ useFdk ? false, fdk_aac ? null }: -let - - nv-codec-headers = callPackage ../../../development/libraries/ffmpeg-full/nv-codec-headers.nix { }; - -in - stdenv.mkDerivation rec { version = "1.2.0"; name = "handbrake-${version}"; diff --git a/pkgs/development/libraries/ffmpeg-full/default.nix b/pkgs/development/libraries/ffmpeg-full/default.nix index 4c1ad34f6da..2cfa4b1d3cd 100644 --- a/pkgs/development/libraries/ffmpeg-full/default.nix +++ b/pkgs/development/libraries/ffmpeg-full/default.nix @@ -96,7 +96,7 @@ , libxcbshapeExtlib ? true # X11 grabbing shape rendering , libXv ? null # Xlib support , lzma ? null # xz-utils -, nvenc ? false, nvidia-video-sdk ? null # NVIDIA NVENC support +, nvenc ? false, nvidia-video-sdk ? null, nv-codec-headers ? null # NVIDIA NVENC support , callPackage # needed for NVENC to access external ffmpeg nvidia headers , openal ? null # OpenAL 1.1 capture support #, opencl ? null # OpenCL code @@ -176,8 +176,6 @@ let inherit (stdenv) isCygwin isFreeBSD isLinux; inherit (stdenv.lib) optional optionals optionalString enableFeature; - - nv-codec-headers = callPackage ./nv-codec-headers.nix { }; in /* diff --git a/pkgs/development/libraries/ffmpeg-full/nv-codec-headers.nix b/pkgs/development/libraries/nv-codec-headers/default.nix similarity index 100% rename from pkgs/development/libraries/ffmpeg-full/nv-codec-headers.nix rename to pkgs/development/libraries/nv-codec-headers/default.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eba2c979b42..cbc3ef44173 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11774,6 +11774,8 @@ in ntrack = callPackage ../development/libraries/ntrack { }; + nv-codec-headers = callPackage ../development/libraries/nv-codec-headers { }; + nvidia-texture-tools = callPackage ../development/libraries/nvidia-texture-tools { }; nvidia-video-sdk = callPackage ../development/libraries/nvidia-video-sdk { }; From 25f9129f86da831d443b8a7f28a086afed80009f Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Sat, 5 Jan 2019 03:20:00 +0200 Subject: [PATCH 013/120] nv-codec-headers: 8.1.24.2 -> 8.2.15.6 --- pkgs/development/libraries/nv-codec-headers/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/nv-codec-headers/default.nix b/pkgs/development/libraries/nv-codec-headers/default.nix index 03599c91bf0..07ec502cd12 100644 --- a/pkgs/development/libraries/nv-codec-headers/default.nix +++ b/pkgs/development/libraries/nv-codec-headers/default.nix @@ -2,18 +2,18 @@ stdenv.mkDerivation rec { name = "nv-codec-headers-${version}"; - version = "n8.1.24.2"; + version = "8.2.15.6"; src = fetchgit { url = "https://git.videolan.org/git/ffmpeg/nv-codec-headers.git"; - rev = "${version}"; - sha256 = "122i3f6whiz5yp44dhk73ifr1973z8vvfbg4216vb782bl8b5bam"; + rev = "n${version}"; + sha256 = "0216ww8byjxz639kagyw0mr9vxxwj89xdnj448d579vjr54jychv"; }; makeFlags = [ "PREFIX=$(out)" ]; meta = { - description = "ffmpeg nvidia headers for NVENC"; + description = "FFmpeg version of headers for NVENC"; homepage = http://ffmpeg.org/; license = stdenv.lib.licenses.gpl3Plus; maintainers = [ stdenv.lib.maintainers.MP2E ]; From 7200eff86890d9ffc9ffa42dcbab7be918be7c35 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sat, 5 Jan 2019 00:37:56 -0600 Subject: [PATCH 014/120] powertop: 2.9 -> 2.10 musl patch still needed :) --- pkgs/os-specific/linux/powertop/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/powertop/default.nix b/pkgs/os-specific/linux/powertop/default.nix index 5ec708dd69f..f24f5a5d06f 100644 --- a/pkgs/os-specific/linux/powertop/default.nix +++ b/pkgs/os-specific/linux/powertop/default.nix @@ -1,12 +1,12 @@ { stdenv, fetchurl, fetchpatch, gettext, libnl, ncurses, pciutils, pkgconfig, zlib }: stdenv.mkDerivation rec { - name = "powertop-${version}"; - version = "2.9"; + pname = "powertop"; + version = "2.10"; src = fetchurl { - url = "https://01.org/sites/default/files/downloads/powertop/powertop-v${version}.tar.gz"; - sha256 = "0l4jjlf05li2mc6g8nrss3h435wjhmnqd8m7v3kha3x0x7cbfzxa"; + url = "https://01.org/sites/default/files/downloads/${pname}-v${version}.tar.gz"; + sha256 = "0xaazqccyd42v2q532dxx40nqhb9sfsa6cyx8641rl57mfg4bdyk"; }; outputs = [ "out" "man" ]; From 38d9d76d61c55219dbc3f31fb15afa43fe98ebbf Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Mon, 7 Jan 2019 15:18:56 +0100 Subject: [PATCH 015/120] gringo: Switch to the default SCons version Version 3.0.2 works fine and 2.5.1 is therefore no longer required. --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7559303bcba..4c9773b159e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1482,7 +1482,7 @@ in pythonPackages = python3Packages; }; - gringo = callPackage ../tools/misc/gringo { scons = scons_2_5_1; }; + gringo = callPackage ../tools/misc/gringo { }; grobi = callPackage ../tools/X11/grobi { }; From 2f80d662a8ff649f8bf9c6b3f42b2251c948a5e7 Mon Sep 17 00:00:00 2001 From: Ivan Kozik Date: Fri, 4 Jan 2019 20:48:21 +0000 Subject: [PATCH 016/120] wine{Unstable,Staging}: 4.0-rc2 -> 4.0-rc5 --- pkgs/misc/emulators/wine/sources.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/misc/emulators/wine/sources.nix b/pkgs/misc/emulators/wine/sources.nix index 8b80dd838ae..2fcb38c0a1e 100644 --- a/pkgs/misc/emulators/wine/sources.nix +++ b/pkgs/misc/emulators/wine/sources.nix @@ -39,16 +39,16 @@ in rec { unstable = fetchurl rec { # NOTE: Don't forget to change the SHA256 for staging as well. - version = "4.0-rc2"; + version = "4.0-rc5"; url = "https://dl.winehq.org/wine/source/4.0/wine-${version}.tar.xz"; - sha256 = "0apqavsk1y56b6c4zkjpi014xwgn6gjg6pzjx94qy4nfr1gz63n4"; + sha256 = "0nx5ahahfnmimd2b7zh2wx36b877vad10i2kr2zib9m9b2w8wyfd"; inherit (stable) mono gecko32 gecko64; }; staging = fetchFromGitHub rec { # https://github.com/wine-staging/wine-staging/releases inherit (unstable) version; - sha256 = "1vqvy44h9rwfx32pad831kdyhazn68s8r14w8765ly42rixc6dgj"; + sha256 = "0smp6ngs77vk1yg0saavhhn7kmi9ri8y8gc3vcgg837ycwg5i5qb"; owner = "wine-staging"; repo = "wine-staging"; rev = "v${version}"; From a2db494f6cec2bfbb4b517ccdcb28cd41ae18d40 Mon Sep 17 00:00:00 2001 From: Rommel MARTINEZ Date: Tue, 8 Jan 2019 09:05:38 +0800 Subject: [PATCH 017/120] tinyscheme: init at 1.41 --- .../interpreters/tinyscheme/default.nix | 33 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/interpreters/tinyscheme/default.nix diff --git a/pkgs/development/interpreters/tinyscheme/default.nix b/pkgs/development/interpreters/tinyscheme/default.nix new file mode 100644 index 00000000000..f2c5fd938ce --- /dev/null +++ b/pkgs/development/interpreters/tinyscheme/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "tinyscheme-${version}"; + version = "1.41"; + + src = fetchurl { + url = "mirror://sourceforge/tinyscheme/${name}.tar.gz"; + sha256 = "168rk4zrlhsknbvldq2jsgabpwlqkx6la44gkqmijmf7jhs11h7a"; + }; + + patchPhase = '' + substituteInPlace scheme.c --replace "init.scm" "$out/lib/init.scm" + ''; + + installPhase = '' + mkdir -p $out/bin $out/lib + cp init.scm $out/lib + cp scheme $out/bin/tinyscheme + ''; + + meta = with stdenv.lib; { + description = "Lightweight Scheme implementation"; + longDescription = '' + TinyScheme is a lightweight Scheme interpreter that implements as large a + subset of R5RS as was possible without getting very large and complicated. + ''; + homepage = http://tinyscheme.sourceforge.net/; + license = licenses.bsdOriginal; + maintainers = [ maintainers.ebzzry ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7961a049a9a..2b0fb4e741e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7566,6 +7566,8 @@ in tinycc = callPackage ../development/compilers/tinycc { }; + tinyscheme = callPackage ../development/interpreters/tinyscheme { }; + inherit (ocaml-ng.ocamlPackages_4_02) trv; bupc = callPackage ../development/compilers/bupc { }; From 92236be735796b887b3a39cd5432f9ddb31023e0 Mon Sep 17 00:00:00 2001 From: Thomas Mader Date: Sat, 5 Jan 2019 19:54:26 +0100 Subject: [PATCH 018/120] dmd: 2.083.1 -> 2.084.0 --- pkgs/development/compilers/dmd/default.nix | 64 ++++++---------------- 1 file changed, 18 insertions(+), 46 deletions(-) diff --git a/pkgs/development/compilers/dmd/default.nix b/pkgs/development/compilers/dmd/default.nix index 8d68a6d4d3f..875472a2fb6 100644 --- a/pkgs/development/compilers/dmd/default.nix +++ b/pkgs/development/compilers/dmd/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchFromGitHub , makeWrapper, unzip, which -, curl, tzdata, gdb, darwin +, curl, tzdata, gdb, darwin, git , callPackage, targetPackages, ldc -, version ? "2.083.1" -, dmdSha256 ? "0b52yq7slgbrawb22kib9bk2x9xjiy6axwz1317fck5axl093d90" -, druntimeSha256 ? "1hm9p59ih21yv8x7cqjhkyy94677q4f8wk9fs9i1rybx8x19njyn" -, phobosSha256 ? "1zmz0f1wj0dgxy2cy63ljjc1sl2sgb7ij8bamlxw9nxrchwi3l43" +, version ? "2.084.0" +, dmdSha256 ? "1v61spdamncl8c1bzjc19b03p4jl0ih5zq9b7cqsy9ix7qaxmikf" +, druntimeSha256 ? "0vp414j6s11l9s54v81np49mv60ywmd7nnk41idkbwrq0nz4sfrq" +, phobosSha256 ? "1wp7z1x299b0w9ny1ah2wrfhrs05vc4bk51csgw9774l3dqcnv53" }: let @@ -42,50 +42,22 @@ let sourceRoot = "."; + # https://issues.dlang.org/show_bug.cgi?id=19553 + hardeningDisable = [ "fortify" ]; + postUnpack = '' patchShebangs . - - # Remove cppa test for now because it doesn't work. - rm dmd/test/runnable/cppa.d - rm dmd/test/runnable/extra-files/cppb.cpp - '' - - + stdenv.lib.optionalString (stdenv.hostPlatform.isDarwin) '' - rm dmd/test/runnable/test16096.sh - ''; - - # Compile with PIC to prevent colliding modules with binutils 2.28. - # https://issues.dlang.org/show_bug.cgi?id=17375 - usePIC = "-fPIC"; - - phobosPatches = '' - # Ugly hack so the dlopen call has a chance to succeed. - # https://issues.dlang.org/show_bug.cgi?id=15391 - substituteInPlace phobos/std/net/curl.d \ - --replace libcurl.so ${curl.out}/lib/libcurl.so - - # phobos uses curl, so we need to patch the path to the lib. - substituteInPlace phobos/posix.mak \ - --replace "-soname=libcurl.so.4" "-soname=${curl.out}/lib/libcurl.so.4" - ''; postPatch = '' - substituteInPlace druntime/test/common.mak \ - --replace "DFLAGS:=" "DFLAGS:=${usePIC} " + substituteInPlace dmd/test/compilable/extra-files/ddocYear.html \ + --replace "2018" "__YEAR__" - substituteInPlace dmd/src/posix.mak \ - --replace "DFLAGS :=" "DFLAGS += -link-defaultlib-shared=false" - '' - - + phobosPatches - - + stdenv.lib.optionalString stdenv.hostPlatform.isDarwin '' - substituteInPlace dmd/posix.mak \ - --replace MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET_ + substituteInPlace dmd/test/runnable/test16096.sh \ + --replace "{EXT}" "{EXE}" ''; - nativeBuildInputs = [ ldc makeWrapper unzip which gdb ] + nativeBuildInputs = [ ldc makeWrapper unzip which gdb git ] ++ stdenv.lib.optional stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [ Foundation @@ -109,7 +81,8 @@ let make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd} cd ../phobos echo ${tzdata}/share/zoneinfo/ > TZDatabaseDirFile - make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd} DFLAGS="-version=TZDatabaseDir -J$(pwd)" + echo ${curl.out}/lib/libcurl.so > LibcurlPathFile + make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd} DFLAGS="-version=TZDatabaseDir -version=LibcurlPath -J$(pwd)" cd .. ''; @@ -119,7 +92,7 @@ let checkPhase = '' cd dmd - make -j$NIX_BUILD_CORES -C test -f Makefile PIC=1 DMD=${pathToDmd} BUILD=release SHARED=0 SHELL=$SHELL + make -j$NIX_BUILD_CORES -C test -f Makefile PIC=1 CC=$CXX DMD=${pathToDmd} BUILD=release SHARED=0 SHELL=$SHELL cd ../druntime make -j$NIX_BUILD_CORES -f posix.mak unittest PIC=1 DMD=${pathToDmd} BUILD=release cd .. @@ -194,15 +167,14 @@ let sourceRoot = "."; - postPatch = dmdBuild.phobosPatches; - nativeBuildInputs = dmdBuild.nativeBuildInputs; buildInputs = dmdBuild.buildInputs; buildPhase = '' cd phobos echo ${tzdata}/share/zoneinfo/ > TZDatabaseDirFile - make -j$NIX_BUILD_CORES -f posix.mak unittest BUILD=release ENABLE_RELEASE=1 PIC=1 DMD=${dmdBuild}/bin/dmd DFLAGS="-version=TZDatabaseDir -J$(pwd)" + echo ${curl.out}/lib/libcurl.so > LibcurlPathFile + make -j$NIX_BUILD_CORES -f posix.mak unittest BUILD=release ENABLE_RELEASE=1 PIC=1 DMD=${dmdBuild}/bin/dmd DFLAGS="-version=TZDatabaseDir -version=LibcurlPath -J$(pwd)" ''; installPhase = '' From 91859c0504718d7734231e90cd8d605af9cde167 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Tue, 8 Jan 2019 21:00:22 -0600 Subject: [PATCH 019/120] tor: 0.3.4.9 -> 0.3.4.10 https://lists.torproject.org/pipermail/tor-announce/2019-January/000171.html FWIW, in the ChangeLog (in the source, sorry) it mentions: As a reminder, the Tor 0.3.4 series will be supported until 10 June 2019. Some time between now and then, users should switch to the Tor 0.3.5 series, which will receive long-term support until at least 1 Feb 2022. So we should consider moving to 0.3.5 "soon" :). --- pkgs/tools/security/tor/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/tor/default.nix b/pkgs/tools/security/tor/default.nix index d43b8598c18..d78424355da 100644 --- a/pkgs/tools/security/tor/default.nix +++ b/pkgs/tools/security/tor/default.nix @@ -14,11 +14,11 @@ }: stdenv.mkDerivation rec { - name = "tor-0.3.4.9"; + name = "tor-0.3.4.10"; src = fetchurl { url = "https://dist.torproject.org/${name}.tar.gz"; - sha256 = "0jhnvnp08hsfrzgsvg5xnfxyaw3nzgg9h24cwbwnz6iby20i05qs"; + sha256 = "12i51i6swkdpnbcpa6f1csc00q177sbjnw2x31j53glxshmwpv5d"; }; outputs = [ "out" "geoip" ]; From 5db46cf3f1a02ba833b16791346cbd7824a9477b Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Tue, 8 Jan 2019 21:20:24 -0600 Subject: [PATCH 020/120] tor: lzma, zstd, scrypt deps --- pkgs/tools/security/tor/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/tor/default.nix b/pkgs/tools/security/tor/default.nix index d78424355da..a4f57380307 100644 --- a/pkgs/tools/security/tor/default.nix +++ b/pkgs/tools/security/tor/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, pkgconfig, libevent, openssl, zlib, torsocks -, libseccomp, systemd, libcap +, libseccomp, systemd, libcap, lzma, zstd, scrypt # for update.nix , writeScript @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { outputs = [ "out" "geoip" ]; nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ libevent openssl zlib ] ++ + buildInputs = [ libevent openssl zlib lzma zstd scrypt ] ++ stdenv.lib.optionals stdenv.isLinux [ libseccomp systemd libcap ]; NIX_CFLAGS_LINK = stdenv.lib.optionalString stdenv.cc.isGNU "-lgcc_s"; From 6b3943d07d49a3b2b5170a11cbe7500ea692d8f0 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Tue, 8 Jan 2019 21:24:56 -0600 Subject: [PATCH 021/120] tor: 0.3.4.10 -> 0.3.5.7 (thank you, update script!) --- pkgs/tools/security/tor/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/tor/default.nix b/pkgs/tools/security/tor/default.nix index a4f57380307..1bda80dab45 100644 --- a/pkgs/tools/security/tor/default.nix +++ b/pkgs/tools/security/tor/default.nix @@ -14,11 +14,11 @@ }: stdenv.mkDerivation rec { - name = "tor-0.3.4.10"; + name = "tor-0.3.5.7"; src = fetchurl { url = "https://dist.torproject.org/${name}.tar.gz"; - sha256 = "12i51i6swkdpnbcpa6f1csc00q177sbjnw2x31j53glxshmwpv5d"; + sha256 = "17l31p58rsd30w4b6r4d8pbr84z3y7awahvjxbpmnlxc47y8f20v"; }; outputs = [ "out" "geoip" ]; From 5041439421c86f933be749590d519928f8f9025c Mon Sep 17 00:00:00 2001 From: Thomas Mader Date: Wed, 9 Jan 2019 08:05:51 +0100 Subject: [PATCH 022/120] dub: 1.12.1 -> 1.13.0 --- pkgs/development/tools/build-managers/dub/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/build-managers/dub/default.nix b/pkgs/development/tools/build-managers/dub/default.nix index cce34b17040..18c6eff76e1 100644 --- a/pkgs/development/tools/build-managers/dub/default.nix +++ b/pkgs/development/tools/build-managers/dub/default.nix @@ -4,7 +4,7 @@ let dubBuild = stdenv.mkDerivation rec { name = "dubBuild-${version}"; - version = "1.12.1"; + version = "1.13.0"; enableParallelBuilding = true; @@ -12,7 +12,7 @@ let owner = "dlang"; repo = "dub"; rev = "v${version}"; - sha256 = "0q4968vxgfxhq6ywhdvj6sqddwf7aadqmmpfqc6nl65r7jyga52a"; + sha256 = "1wd5pdnbaafj33bbg188w0iz28ps4cyjangb12g2s9dyic29zjqv"; }; postUnpack = '' From 08ca4ce27c174cfb7616a8d9a34c91d7c3ba2361 Mon Sep 17 00:00:00 2001 From: Thomas Mader Date: Wed, 9 Jan 2019 08:06:37 +0100 Subject: [PATCH 023/120] dtools: 2.083.1 -> 2.084.0 --- pkgs/development/tools/dtools/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/dtools/default.nix b/pkgs/development/tools/dtools/default.nix index 9fc1a682c60..ccfcfaace01 100644 --- a/pkgs/development/tools/dtools/default.nix +++ b/pkgs/development/tools/dtools/default.nix @@ -2,14 +2,14 @@ stdenv.mkDerivation rec { name = "dtools-${version}"; - version = "2.083.1"; + version = "2.084.0"; srcs = [ (fetchFromGitHub { owner = "dlang"; repo = "dmd"; rev = "v${version}"; - sha256 = "0b52yq7slgbrawb22kib9bk2x9xjiy6axwz1317fck5axl093d90"; + sha256 = "1v61spdamncl8c1bzjc19b03p4jl0ih5zq9b7cqsy9ix7qaxmikf"; name = "dmd"; }) (fetchFromGitHub { From 205dd437ec6a11d48dcb1889cea8f42fca346d4f Mon Sep 17 00:00:00 2001 From: Thomas Mader Date: Wed, 9 Jan 2019 08:07:34 +0100 Subject: [PATCH 024/120] Literate: 2018-12-23 -> 2019-01-08 --- .../tools/literate-programming/Literate/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/literate-programming/Literate/default.nix b/pkgs/development/tools/literate-programming/Literate/default.nix index d8afdf54a93..035374d3e90 100644 --- a/pkgs/development/tools/literate-programming/Literate/default.nix +++ b/pkgs/development/tools/literate-programming/Literate/default.nix @@ -1,12 +1,12 @@ { stdenv, fetchgit, dmd, dub }: stdenv.mkDerivation { - name = "Literate-2018-12-23"; + name = "Literate-2019-01-08"; src = fetchgit { url = "https://github.com/zyedidia/Literate.git"; - rev = "99a0b7dd1ac451c2386094be06364df9386c3862"; - sha256 = "0jvciajr33iz049m0yal41mz9p8nxmwkpq2mrfhg1ysx2zv3q3pm"; + rev = "e20c5c86713701d4d17fd2881779d758a27a3e5a"; + sha256 = "1pr7iipcnp6jxi13341p5b3szdrvs7aixpfbwifj6lgbb45vg9sm"; }; buildInputs = [ dmd dub ]; From 1ae7384ddb3419330ab134da548dd8769b9f3d11 Mon Sep 17 00:00:00 2001 From: Matthijs Steen Date: Wed, 2 Jan 2019 01:05:51 +0100 Subject: [PATCH 025/120] openra with extra mods --- pkgs/games/openra/common.nix | 87 +++++++ pkgs/games/openra/default.nix | 129 +++++----- pkgs/games/openra/engine.nix | 60 +++++ pkgs/games/openra/engines.nix | 41 ++++ pkgs/games/openra/mkdirp.sh | 4 + pkgs/games/openra/mod-launch-game.sh | 25 ++ pkgs/games/openra/mod.nix | 104 ++++++++ pkgs/games/openra/mods.nix | 339 +++++++++++++++++++++++++++ pkgs/games/openra/openra-mod.desktop | 11 + pkgs/games/openra/packages.nix | 60 +++++ pkgs/top-level/all-packages.nix | 4 +- 11 files changed, 795 insertions(+), 69 deletions(-) create mode 100644 pkgs/games/openra/common.nix create mode 100644 pkgs/games/openra/engine.nix create mode 100644 pkgs/games/openra/engines.nix create mode 100644 pkgs/games/openra/mkdirp.sh create mode 100644 pkgs/games/openra/mod-launch-game.sh create mode 100644 pkgs/games/openra/mod.nix create mode 100644 pkgs/games/openra/mods.nix create mode 100644 pkgs/games/openra/openra-mod.desktop create mode 100644 pkgs/games/openra/packages.nix diff --git a/pkgs/games/openra/common.nix b/pkgs/games/openra/common.nix new file mode 100644 index 00000000000..e90f8170e18 --- /dev/null +++ b/pkgs/games/openra/common.nix @@ -0,0 +1,87 @@ +/* The reusable code, and package attributes, between OpenRA engine packages (engine.nix) + and out-of-tree mod packages (mod.nix). +*/ +{ stdenv, makeSetupHook, curl, unzip, dos2unix, pkgconfig, makeWrapper +, lua, mono, dotnetPackages, python +, libGL, openal, SDL2 +, zenity +}: + +with stdenv.lib; + +let + path = makeBinPath ([ mono python ] ++ optional (zenity != null) zenity); + rpath = makeLibraryPath [ lua openal SDL2 ]; + mkdirp = makeSetupHook { } ./mkdirp.sh; + +in { + patchEngine = dir: version: '' + sed -i \ + -e 's/^VERSION.*/VERSION = ${version}/g' \ + -e '/fetch-geoip-db/d' \ + -e '/GeoLite2-Country.mmdb.gz/d' \ + ${dir}/Makefile + + sed -i 's|locations=.*|locations=${lua}/lib|' ${dir}/thirdparty/configure-native-deps.sh + ''; + + wrapLaunchGame = openraSuffix: '' + # Setting TERM=xterm fixes an issue with terminfo in mono: System.Exception: Magic number is wrong: 542 + # https://github.com/mono/mono/issues/6752#issuecomment-365212655 + wrapProgram $out/lib/openra${openraSuffix}/launch-game.sh \ + --prefix PATH : "${path}" \ + --prefix LD_LIBRARY_PATH : "${rpath}" \ + --set TERM xterm + + makeWrapper $out/lib/openra${openraSuffix}/launch-game.sh $(mkdirp $out/bin)/openra${openraSuffix} \ + --run "cd $out/lib/openra${openraSuffix}" + ''; + + packageAttrs = { + buildInputs = with dotnetPackages; [ + FuzzyLogicLibrary + MaxMindDb + MaxMindGeoIP2 + MonoNat + NewtonsoftJson + NUnit3 + NUnitConsole + OpenNAT + RestSharp + SharpFont + SharpZipLib + SmartIrc4net + StyleCopMSBuild + StyleCopPlusMSBuild + ] ++ [ + lua + libGL + openal + SDL2 + ]; + + # TODO: Test if this is correct. + nativeBuildInputs = [ + curl + unzip + dos2unix + pkgconfig + makeWrapper + mkdirp + mono + python + ]; + + makeFlags = "prefix=$(out)"; + + doCheck = true; + + dontStrip = true; + + meta = { + maintainers = with maintainers; [ msteen rardiol ]; + license = licenses.gpl3; + platforms = platforms.linux; + }; + }; +} diff --git a/pkgs/games/openra/default.nix b/pkgs/games/openra/default.nix index 922d4f4762c..bf243e610bd 100644 --- a/pkgs/games/openra/default.nix +++ b/pkgs/games/openra/default.nix @@ -1,79 +1,72 @@ -{ stdenv, fetchFromGitHub, mono, makeWrapper, lua -, SDL2, freetype, openal, systemd, pkgconfig, - dotnetPackages, gnome3, curl, unzip, which, python -}: +/* This file defines all OpenRA packages under `openraPackages`, + e.g. the OpenRA release engine can be found at `openraPackages.engines.release` (see `engines.nix`), + or the out-of-tree mod "Combined Arms" can be found at `openraPackages.mods.ca` (see `mods.nix`). + The `openra` package is just an alias to `openraPackages.engines.release`, + and just provides the mods included in the source code of the engine. + Additional engines or mods can be added with `openraPackages.buildOpenRAEngine` (function around `engine.nix`) + and `openraPackages.buildOpenRAMod` (function around `mod.nix`), respectively. +*/ +pkgs: -stdenv.mkDerivation rec { - pname = "openra"; - version = "20181215"; +with pkgs.lib; - meta = with stdenv.lib; { - description = "Real Time Strategy game engine recreating the C&C titles"; - homepage = "http://www.openra.net/"; - maintainers = [ maintainers.rardiol ]; - license = licenses.gpl3; - platforms = platforms.linux; - }; +let + /* Building an engine or out-of-tree mod is very similar, + but different enough not to be able to build them with the same package definition, + so instaed we define what is common between them in a seperate file. - src = fetchFromGitHub { - owner = "OpenRA"; - repo = "OpenRA"; - rev = "release-${version}"; - sha256 = "0p0izykjnz7pz02g2khp7msqa00jhjsrzk9y0g29dirmdv75qa4r"; + Although `callPackage` could be used, it would require undoing `makeOverridable`, + because `common.nix` does not define a package, but just an attribute set, + which is directly passed as part of the argument to the engines and mods `callPackage`, + so either the attributes added by `makeOverridable` have to be removed + or the engine and mod package definitions will need to add `...` to the argument list. + */ + common = let f = import ./common.nix; in f (builtins.intersectAttrs (functionArgs f) pkgs // { + lua = pkgs.lua5_1; + # It is not necessary to run the game, but it is nicer to be given an error dialog in the case of failure, + # rather than having to look to the logs why it is not starting. + inherit (pkgs.gnome3) zenity; + }); + /* Building a set of engines or mods requires some dependencies as well, + so the sets will actually be defined as a function instead, + requiring the dependencies and returning the actual set. + + Not all dependencies for defining a engine or mod set are shared, + so additional arguments can be passed as well. + + The builders for engines and mods allow to delay specifying the name, + by returning a function that expects a name, which we use, in this case, + to base the name on the attribute name instead, preventing the need to specify the name twice + if the attribute name and engine/mod name are equal. + */ + callWithName = name: value: if isFunction value then value name else value; + buildOpenRASet = f: args: pkgs.recurseIntoAttrs (mapAttrs callWithName (f ({ + inherit (pkgs) fetchFromGitHub; + abbrevCommit = commit: substring 0 7 commit; extraPostFetch = '' - sed -i 's,curl,curl --insecure,g' $out/thirdparty/{fetch-thirdparty-deps,noget}.sh + sed -i 's/curl/curl --insecure/g' $out/thirdparty/{fetch-thirdparty-deps,noget}.sh $out/thirdparty/fetch-thirdparty-deps.sh ''; - }; + } // args))); - dontStrip = true; +in pkgs.recurseIntoAttrs rec { + # The whole attribute set is destructered to ensure those (and only those) attributes are given + # and to provide defaults for those that are optional. + buildOpenRAEngine = { name ? null, version, description, homepage, mods, src }@engine: + # Allow specifying the name at a later point if no name has been given. + let builder = name: pkgs.callPackage ./engine.nix (common // { + engine = engine // { inherit name; }; + }); in if name == null then builder else builder name; - buildInputs = (with dotnetPackages; - [ NUnit3 NewtonsoftJson MonoNat FuzzyLogicLibrary SmartIrc4net SharpZipLib MaxMindGeoIP2 MaxMindDb SharpFont StyleCopMSBuild StyleCopPlusMSBuild RestSharp NUnitConsole OpenNAT ]) - ++ [ curl unzip lua gnome3.zenity ]; - nativeBuildInputs = [ curl unzip mono makeWrapper lua pkgconfig ]; + # See `buildOpenRAEngine`. + buildOpenRAMod = { name ? null, version, title, description, homepage, src, engine, assetsError ? "" }@mod: ({ version, mods ? [], src }@engine: + let builder = name: pkgs.callPackage ./mod.nix (common // { + mod = mod // { inherit name assetsError; }; + engine = engine // { inherit mods; }; + }); in if name == null then builder else builder name) engine; - postPatch = '' - mkdir Support - sed -i \ - -e 's/^VERSION.*/VERSION = release-${version}/g' \ - -e '/GeoLite2-Country.mmdb.gz/d' \ - -e '/fetch-geoip-db.sh/d' \ - Makefile - substituteInPlace thirdparty/configure-native-deps.sh --replace "locations=\"" "locations=\"${lua}/lib " - ''; - - preConfigure = '' - makeFlags="prefix=$out" - make version - ''; - - buildFlags = [ "DEBUG=false" "default" "man-page" ]; - - doCheck = true; - - #TODO: check - checkTarget = "nunit test"; - - installTargets = [ "install" "install-linux-icons" "install-linux-desktop" "install-linux-appdata" "install-linux-mime" "install-man-page" ]; - - postInstall = with stdenv.lib; let - runtime = makeLibraryPath [ SDL2 freetype openal systemd lua ]; - binaries= makeBinPath [ which mono gnome3.zenity python ]; - in '' - wrapProgram $out/lib/openra/launch-game.sh \ - --prefix PATH : "${binaries}" \ - --prefix LD_LIBRARY_PATH : "${runtime}" \ - --set TERM "xterm" - - mkdir -p $out/bin - makeWrapper $out/lib/openra/launch-game.sh $out/bin/openra --run "cd $out/lib/openra" - printf "#!/bin/sh\nexec $out/bin/openra Game.Mod=ra" > $out/bin/openra-ra - chmod +x $out/bin/openra-ra - printf "#!/bin/sh\nexec $out/bin/openra Game.Mod=cnc" > $out/bin/openra-cnc - chmod +x $out/bin/openra-cnc - printf "#!/bin/sh\nexec $out/bin/openra Game.Mod=d2k" > $out/bin/openra-d2k - chmod +x $out/bin/openra-d2k - ''; + # See `buildOpenRASet`. + engines = buildOpenRASet (import ./engines.nix) { inherit buildOpenRAEngine; }; + mods = buildOpenRASet (import ./mods.nix) { inherit buildOpenRAMod; }; } diff --git a/pkgs/games/openra/engine.nix b/pkgs/games/openra/engine.nix new file mode 100644 index 00000000000..7d2d007d075 --- /dev/null +++ b/pkgs/games/openra/engine.nix @@ -0,0 +1,60 @@ +/* The package defintion for an OpenRA engine. + It shares code with `mod.nix` by what is defined in `common.nix`. + Similar to `mod.nix` it is a generic package definition, + in order to make it easy to define multiple variants of the OpenRA engine. + For each mod provided by the engine, a wrapper script is created, + matching the naming convention used by `mod.nix`. + This package could be seen as providing a set of in-tree mods, + while the `mod.nix` pacakges provide a single out-of-tree mod. +*/ +{ stdenv +, packageAttrs +, patchEngine +, wrapLaunchGame +, engine +}: + +with stdenv.lib; + +stdenv.mkDerivation (recursiveUpdate packageAttrs rec { + name = "${pname}-${version}"; + pname = "openra"; + version = "${engine.name}-${engine.version}"; + + src = engine.src; + + postPatch = patchEngine "." version; + + configurePhase = '' + runHook preConfigure + + make version VERSION=${escapeShellArg version} + + runHook postConfigure + ''; + + buildFlags = [ "DEBUG=false" "default" "man-page" ]; + + checkTarget = "nunit test"; + + installTargets = [ + "install" + "install-linux-icons" + "install-linux-desktop" + "install-linux-appdata" + "install-linux-mime" + "install-man-page" + ]; + + postInstall = '' + ${wrapLaunchGame ""} + + ${concatStrings (map (mod: '' + makeWrapper $out/bin/openra $out/bin/openra-${mod} --add-flags Game.Mod=${mod} + '') engine.mods)} + ''; + + meta = { + inherit (engine) description homepage; + }; +}) diff --git a/pkgs/games/openra/engines.nix b/pkgs/games/openra/engines.nix new file mode 100644 index 00000000000..e0d97f3c548 --- /dev/null +++ b/pkgs/games/openra/engines.nix @@ -0,0 +1,41 @@ +{ buildOpenRAEngine, fetchFromGitHub, abbrevCommit, extraPostFetch }: + +let + buildUpstreamOpenRAEngine = { version, rev, sha256 }: name: (buildOpenRAEngine { + inherit version; + description = "Open-source re-implementation of Westwood Studios' 2D Command and Conquer games"; + homepage = https://www.openra.net/; + mods = [ "cnc" "d2k" "ra" "ts" ]; + src = fetchFromGitHub { + owner = "OpenRA"; + repo = "OpenRA" ; + inherit rev sha256 extraPostFetch; + }; + } name).overrideAttrs (oldAttrs: { + postInstall = '' + ${oldAttrs.postInstall} + cp -r mods/ts $out/lib/openra/mods/ + cp mods/ts/icon.png $(mkdirp $out/share/pixmaps)/openra-ts.png + ( cd $out/share/applications; sed -e 's/Dawn/Sun/g' -e 's/cnc/ts/g' openra-cnc.desktop > openra-ts.desktop ) + ''; + }); + +in { + release = buildUpstreamOpenRAEngine rec { + version = "20181215"; + rev = "release-${version}"; + sha256 = "0p0izykjnz7pz02g2khp7msqa00jhjsrzk9y0g29dirmdv75qa4r"; + }; + + playtest = buildUpstreamOpenRAEngine rec { + version = "20190106"; + rev = "playtest-${version}"; + sha256 = "0ps9x379plrrj1hnj4fpr26lc46mzgxknv5imxi0bmrh5y4781ql"; + }; + + bleed = let commit = "6de92de8d982094a766eab97a92225c240d85493"; in buildUpstreamOpenRAEngine { + version = abbrevCommit commit; + rev = commit; + sha256 = "0p0izykjnz7pz02g2khp7msqa00jhjsrzk9y0g29dirmdv75qa4r"; + }; +} diff --git a/pkgs/games/openra/mkdirp.sh b/pkgs/games/openra/mkdirp.sh new file mode 100644 index 00000000000..7b2cf0b89c0 --- /dev/null +++ b/pkgs/games/openra/mkdirp.sh @@ -0,0 +1,4 @@ +mkdirp() { + mkdir -p "$@" + echo "$@" +} diff --git a/pkgs/games/openra/mod-launch-game.sh b/pkgs/games/openra/mod-launch-game.sh new file mode 100644 index 00000000000..ec03353bee5 --- /dev/null +++ b/pkgs/games/openra/mod-launch-game.sh @@ -0,0 +1,25 @@ +#!/bin/sh +show_error() { + if command -v zenity > /dev/null; then + zenity --no-wrap --no-markup --error --title "OpenRA - @title@" --text "$1" 2>/dev/null + else + printf "$1\n" >&2 + fi + exit 1 +} + +cd "@out@/lib/openra-@name@" + +# Check for missing assets +assetsError='@assetsError@' +if [ -n "$assetsError" -a ! -d "$HOME/.openra/Content/@name@" ]; then + show_error "$assetsError" +fi + +# Run the game +mono --debug OpenRA.Game.exe Game.Mod=@name@ Engine.LaunchPath="@out@/bin/openra-@name@" Engine.ModSearchPaths="@out@/lib/openra-@name@/mods" "$@" + +# Show a crash dialog if something went wrong +if [ $? -ne 0 -a $? -ne 1 ]; then + show_error "OpenRA - @title@ has encountered a fatal error.\nPlease refer to the crash logs for more information.\n\nLog files are located in ~/.openra/Logs" +fi diff --git a/pkgs/games/openra/mod.nix b/pkgs/games/openra/mod.nix new file mode 100644 index 00000000000..ebc65b2f5c4 --- /dev/null +++ b/pkgs/games/openra/mod.nix @@ -0,0 +1,104 @@ +/* The package defintion for an OpenRA out-of-tree mod. + It shares code with `engine.nix` by what is defined in `common.nix`. + To build an out-of-tree mod it needs the source code of the engine available, + and they each need to be build with a specific version or fork of the engine, + so the engine needs to be supplied as an argument as well. + The engine is relatively small and quick to build, so this is not much of a problem. + Building a mod will result in a wrapper script that starts the mod inside the specified engine. +*/ +{ stdenv +, packageAttrs +, patchEngine +, wrapLaunchGame +, mod +, engine +}: + +with stdenv.lib; + +let + engineSourceName = engine.src.name or "engine"; + modSourceName = mod.src.name or "mod"; + +# Based on: https://build.opensuse.org/package/show/home:fusion809/openra-ura +in stdenv.mkDerivation (recursiveUpdate packageAttrs rec { + name = "${pname}-${version}"; + pname = "openra-${mod.name}"; + inherit (mod) version; + + srcs = [ + mod.src + engine.src + ]; + + sourceRoot = "."; + + postUnpack = '' + mv ${engineSourceName} ${modSourceName} + cd ${modSourceName} + ''; + + postPatch = '' + cat <<'EOF' > fetch-engine.sh + #!/bin/sh + exit 0 + EOF + + sed -i 's/^VERSION.*/VERSION = ${version}/g' Makefile + + dos2unix *.md + + ${patchEngine engineSourceName engine.version} + ''; + + configurePhase = '' + runHook preConfigure + + make version VERSION=${escapeShellArg version} + make -C ${engineSourceName} version VERSION=${escapeShellArg engine.version} + + runHook postConfigure + ''; + + checkTarget = "test"; + + installPhase = '' + runHook preInstall + + make -C ${engineSourceName} install-engine install-common-mod-files DATA_INSTALL_DIR=$out/lib/${pname} + + cp -r ${engineSourceName}/mods/{${concatStringsSep "," ([ "common" "modcontent" ] ++ engine.mods)}} mods/${mod.name} \ + $out/lib/${pname}/mods/ + + substitute ${./mod-launch-game.sh} $out/lib/${pname}/launch-game.sh \ + --subst-var out \ + --subst-var-by name ${escapeShellArg mod.name} \ + --subst-var-by title ${escapeShellArg mod.title} \ + --subst-var-by assetsError ${escapeShellArg mod.assetsError} + chmod +x $out/lib/${pname}/launch-game.sh + + ${wrapLaunchGame "-${mod.name}"} + + substitute ${./openra-mod.desktop} $(mkdirp $out/share/applications)/${pname}.desktop \ + --subst-var-by name ${escapeShellArg mod.name} \ + --subst-var-by title ${escapeShellArg mod.title} + + cp README.md $(mkdirp $out/share/doc/packages/${pname})/README.md + + [[ -e mods/${mod.name}/icon.png ]] && mod_icon=mods/${mod.name}/icon.png || { + [[ -e mods/${mod.name}/logo.png ]] && mod_icon=mods/${mod.name}/logo.png || mod_icon=packaging/linux/mod_256x256.png + } + cp "$mod_icon" $(mkdirp $out/share/pixmaps)/${pname}.png + + for size in 16 32 48 64 128 256; do + size=''${size}x''${size} + cp packaging/linux/mod_''${size}.png $(mkdirp $out/share/icons/hicolor/''${size}/apps)/${pname}.png + done + + runHook postInstall + ''; + + meta = { + inherit (mod) description homepage; + }; +}) diff --git a/pkgs/games/openra/mods.nix b/pkgs/games/openra/mods.nix new file mode 100644 index 00000000000..5bfc5a224a5 --- /dev/null +++ b/pkgs/games/openra/mods.nix @@ -0,0 +1,339 @@ +{ buildOpenRAMod, fetchFromGitHub, abbrevCommit, extraPostFetch }: + +let + unsafeBuildOpenRAMod = attrs: name: (buildOpenRAMod attrs name).overrideAttrs (_: { + doCheck = false; + }); + +in { + ca = buildOpenRAMod { + version = "93"; + title = "Combined Arms"; + description = "A game that combines units from the official OpenRA Red Alert and Tiberian Dawn mods"; + homepage = https://github.com/Inq8/CAmod; + src = fetchFromGitHub { + owner = "Inq8"; + repo = "CAmod"; + rev = "16fb77d037be7005c3805382712c33cec1a2788c"; + sha256 = "11fjyr3692cy2a09bqzk5ya1hf6plh8hmdrgzds581r9xbj0q4pr"; + }; + engine = let commit = "b8a7dd52ff893ed8225726d4ed4e14ecad748404"; in { + version = abbrevCommit commit; + src = fetchFromGitHub { + owner = "Inq8"; + repo = "CAengine" ; + rev = commit; + sha256 = "0dyk861qagibx8ldshz7d2nrki9q550f6f0wy8pvayvf1gv1dbxj"; + name = "engine"; + inherit extraPostFetch; + }; + }; + }; + + d2 = unsafeBuildOpenRAMod rec { + version = "128"; + title = "Dune II"; + description = "A modernization of the original ${title} game"; + homepage = https://github.com/OpenRA/d2; + src = fetchFromGitHub { + owner = "OpenRA"; + repo = "d2"; + rev = "bc969207b532a2def69e0d6ac09a4e8fb5d4e946"; + sha256 = "18v154kf1fmfk2gnymb3ggsfy73ql8rr7jvbhiw60yhzwx89cdk8"; + }; + engine = rec { + version = "20181215"; + mods = [ "cnc" "d2k" "ra" ]; + src = fetchFromGitHub { + owner = "OpenRA"; + repo = "OpenRA" ; + rev = "release-${version}"; + sha256 = "0p0izykjnz7pz02g2khp7msqa00jhjsrzk9y0g29dirmdv75qa4r"; + name = "engine"; + inherit extraPostFetch; + }; + }; + assetsError = '' + The mod expects the original ${title} game assets in place: + https://github.com/OpenRA/d2/wiki + ''; + }; + + dr = buildOpenRAMod rec { + version = "244"; + title = "Dark Reign"; + description = "A re-imagination of the original Command & Conquer: ${title} game"; + homepage = https://github.com/drogoganor/DarkReign; + src = fetchFromGitHub { + owner = "drogoganor"; + repo = "DarkReign"; + rev = "e21db398f4d995c91b9e1a0f31ffaa7d54f43742"; + sha256 = "1gzvdf6idmx0rr8afaxd9dsbnxljif2kic6znkd9vcrwnqmp1fjr"; + }; + engine = let commit = "7fcfb1dcb2bd472fa6680ffa37bd3bbedb2c44c5"; in { + version = abbrevCommit commit; + src = fetchFromGitHub { + owner = "drogoganor"; + repo = "OpenRA" ; + rev = commit; + sha256 = "0x7k96j3q16dgay4jjlyv9kcgn4sc4v9ksw6ijnjws7q1r2rjs0m"; + name = "engine"; + inherit extraPostFetch; + }; + }; + }; + + gen = buildOpenRAMod { + version = "1133"; + title = "Generals Alpha"; + description = "Re-imagination of the original Command & Conquer: Generals game"; + homepage = https://github.com/MustaphaTR/Generals-Alpha; + src = fetchFromGitHub { + owner = "MustaphaTR"; + repo = "Generals-Alpha"; + rev = "277d20d5a8b5e11eac9443031af133dc110c653f"; + sha256 = "1k37545l99q7zphnh1ykvimsyp5daykannps07d4dgr2w9l7bmhg"; + }; + engine = rec { + version = "gen-20180905"; + src = fetchFromGitHub { + owner = "MustaphaTR"; + repo = "OpenRA" ; + rev = version; + sha256 = "0wy1h7fg0n8dpy6y91md7x0qnr9rk4xf6155jali4bi8gghw2g5v"; + name = "generals-alpha-engine"; + inherit extraPostFetch; + }; + }; + }; + + kknd = buildOpenRAMod rec { + version = "142"; + title = "Krush, Kill 'n' Destroy"; + description = "Re-imagination of the original ${title} game"; + homepage = https://kknd-game.com/; + src = fetchFromGitHub { + owner = "IceReaper"; + repo = "KKnD"; + rev = "54d34292168d5c47529688c8d5ca7693c4001ef3"; + sha256 = "1rsdig282cfr8b4iamr9ri6sshgppp8gllfyib6c2hvqqr301720"; + }; + engine = let commit = "4e8eab4ca00d1910203c8a103dfd2c002714daa8"; in { + version = abbrevCommit commit; + src = fetchFromGitHub { + owner = "OpenRA"; + repo = "OpenRA" ; + rev = commit; + sha256 = "1yyqparf93x8yzy1f46gsymgkj5jls25v2yc7ighr3f7mi3igdvq"; + name = "engine"; + inherit extraPostFetch; + }; + }; + }; + + mw = buildOpenRAMod rec { + version = "235"; + title = "Medieval Warfare"; + description = "A re-imagination of the original Command & Conquer: ${title} game"; + homepage = https://github.com/CombinE88/Medieval-Warfare; + src = fetchFromGitHub { + owner = "CombinE88"; + repo = "Medieval-Warfare"; + rev = "1e4fc7ea24d0806c5a7cd753490e967d804a3567"; + sha256 = "0swa66mzb6wr8vf1yivrss54dl98jzzwh9b8qrjfwmfrq2i356iq"; + }; + engine = let commit = "9f9617aa359ebc1923252b7a4a79def73ecfa8a2"; in { + version = abbrevCommit commit; + src = fetchFromGitHub { + owner = "CombinE88"; + repo = "OpenRA" ; + rev = commit; + sha256 = "02h29xnc1cb5zr001cnmaww5qnfnfaza4v28251jgzkby593r32q"; + name = "engine"; + inherit extraPostFetch; + }; + }; + }; + + ra2 = buildOpenRAMod rec { + version = "876"; + title = "Red Alert 2"; + description = "Re-imagination of the original Command & Conquer: ${title} game"; + homepage = https://github.com/OpenRA/ra2; + src = fetchFromGitHub { + owner = "OpenRA"; + repo = "ra2"; + rev = "6a864b2a5887ae42291768fb3dec73082fee44ee"; + sha256 = "19m4z9r00dj67746ps2f9a8i1icq8nm0iiww6dl975yl6gaxp5qy"; + }; + engine = rec { + version = "20180923"; + src = fetchFromGitHub { + owner = "OpenRA"; + repo = "OpenRA" ; + rev = "release-${version}"; + sha256 = "1pgi3zaq9fwwdq6yh19bwxscslqgabjxkvl9bcn1a5agy4bfbqk5"; + name = "engine"; + inherit extraPostFetch; + }; + }; + assetsError = '' + The mod expects the original ${title} game assets in place: + https://github.com/OpenRA/ra2/wiki + ''; + }; + + raclassic = buildOpenRAMod { + version = "171"; + title = "Red Alert Classic"; + description = "A modernization of the original Command & Conquer: Red Alert game"; + homepage = https://github.com/OpenRA/raclassic; + src = fetchFromGitHub { + owner = "OpenRA"; + repo = "raclassic"; + rev = "a2319b3dfb367a8d4278bf7baf55a10abf615fbc"; + sha256 = "1k67fx4d9hg8mckzp7pp8lxa6ngqxnnrnbqyfls99dqc4df1iw0a"; + }; + engine = rec { + version = "20181215"; + src = fetchFromGitHub { + owner = "OpenRA"; + repo = "OpenRA" ; + rev = "release-${version}"; + sha256 = "0p0izykjnz7pz02g2khp7msqa00jhjsrzk9y0g29dirmdv75qa4r"; + name = "engine"; + inherit extraPostFetch; + }; + }; + }; + + rv = unsafeBuildOpenRAMod { + version = "1294"; + title = "Romanov's Vengeance"; + description = "Re-imagination of the original Command & Conquer: Red Alert 2 game"; + homepage = https://github.com/MustaphaTR/Romanovs-Vengeance; + src = fetchFromGitHub { + owner = "MustaphaTR"; + repo = "Romanovs-Vengeance"; + rev = "c21cb11579d7e12354c5ccb5c3c47e567c6b3d4f"; + sha256 = "1vmc5b9awx8q0mahwv11fzgplw9w7m8kzvnx5cl7xr1w5wk87428"; + }; + engine = let commit = "e9e99074b294c32fbe88dd8727581cb8c512c2e2"; in { + version = abbrevCommit commit; + mods = [ "as" ]; + src = fetchFromGitHub { + owner = "GraionDilach"; + repo = "OpenRA" ; + rev = commit; + sha256 = "0bibnakpmbxwglf2dka6g04xp8dzwyms1zk5kqlbm8gpdp0aqmxp"; + name = "engine"; + inherit extraPostFetch; + }; + }; + assetsError = '' + The mod expects the Command & Conquer: The Ultimate Collection assets in place: + https://github.com/OpenRA/ra2/wiki + ''; + }; + + sp = unsafeBuildOpenRAMod { + version = "153"; + title = "Shattered Paradise"; + description = "Re-imagination of the original Command & Conquer: Tiberian Sun game"; + homepage = https://github.com/ABrandau/OpenRAModSDK; + src = fetchFromGitHub { + owner = "ABrandau"; + repo = "OpenRAModSDK"; + rev = "89148b8cf89bf13911fafb74a1aa2b4cacf027e0"; + sha256 = "1bb8hzd3mhnn76iqiah1161qz98f0yvyryhmrghq03xlbin3mhbi"; + }; + engine = let commit = "82a2f234bdf3b768cea06408e3de30f9fbbe9412"; in { + version = abbrevCommit commit; + mods = [ "as" "ts" ]; + src = fetchFromGitHub { + owner = "ABrandau"; + repo = "OpenRA" ; + rev = commit; + sha256 = "1nl3brvx1bikxm5rmpc7xmd32n722jiyjh86pnar6b6idr1zj2ws"; + name = "engine"; + inherit extraPostFetch; + }; + }; + }; + + ss = buildOpenRAMod rec { + version = "72"; + title = "Sole Survivor"; + description = "A re-imagination of the original Command & Conquer: ${title} game"; + homepage = https://github.com/MustaphaTR/sole-survivor; + src = fetchFromGitHub { + owner = "MustaphaTR"; + repo = "sole-survivor"; + rev = "fad65579c8b487cef9a8145e872390ed77c16c69"; + sha256 = "0h7is7x2qyvq7vqp0jgw5zrdkw8g7ndd82d843ldhnb0a3vyrk34"; + }; + engine = let commit = "becfc154c5cd3891d695339ff86883db8b5790a5"; in { + version = abbrevCommit commit; + src = fetchFromGitHub { + owner = "OpenRA"; + repo = "OpenRA" ; + rev = commit; + sha256 = "0id8vf3cjr7h5pz4sw8pdaz3sc45lxr21k1fk4309kixsrpa7i0y"; + name = "engine"; + inherit extraPostFetch; + }; + }; + }; + + ura = buildOpenRAMod { + version = "431"; + title = "Red Alert Unplugged"; + description = "Re-imagination of the original Command & Conquer: Red Alert game"; + homepage = http://redalertunplugged.com/; + src = fetchFromGitHub { + owner = "RAunplugged"; + repo = "uRA"; + rev = "128dc53741fae923f4af556f2293ceaa0cf571f0"; + sha256 = "1mhr8kyh313z52gdrqv31d6z7jvdldiajalca5mcr8gzg6mph66p"; + }; + engine = rec { + version = "unplugged-cd82382"; + src = fetchFromGitHub { + owner = "RAunplugged"; + repo = "OpenRA" ; + rev = version; + sha256 = "1p5hgxxvxlz8480vj0qkmnxjh7zj3hahk312m0zljxfdb40652w1"; + name = "engine"; + inherit extraPostFetch; + }; + }; + }; + + yr = unsafeBuildOpenRAMod rec { + version = "117"; + homepage = https://github.com/cookgreen/yr; + title = "Yuri's Revenge"; + description = "Re-imagination of the original Command & Conquer: ${title} game"; + src = fetchFromGitHub { + owner = "cookgreen"; + repo = "yr"; + rev = "1d4beeb0687fe4b39b01ec31f3702cfb90a7f4f7"; + sha256 = "1rd962ja1x72rz68kbmp19yiip3iif50hzlj3v8k1f5l94r2x2pn"; + }; + engine = rec { + version = "20180923"; + src = fetchFromGitHub { + owner = "OpenRA"; + repo = "OpenRA" ; + rev = "release-${version}"; + sha256 = "1pgi3zaq9fwwdq6yh19bwxscslqgabjxkvl9bcn1a5agy4bfbqk5"; + name = "engine"; + inherit extraPostFetch; + }; + }; + assetsError = '' + The mod expects the Command & Conquer: The Ultimate Collection assets in place: + https://github.com/OpenRA/ra2/wiki + ''; + }; +} diff --git a/pkgs/games/openra/openra-mod.desktop b/pkgs/games/openra/openra-mod.desktop new file mode 100644 index 00000000000..090b6c1325d --- /dev/null +++ b/pkgs/games/openra/openra-mod.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=OpenRA - @title@ +GenericName=Real Time Strategy Game +GenericName[de]=Echtzeit-Strategiespiel +Comment=@description@ +Icon=openra-@name@ +Exec=openra-@name@ +Terminal=false +Categories=Game;StrategyGame;X-RTS;X-RealTimeStrategy;X-RealTimeStrategyGame; diff --git a/pkgs/games/openra/packages.nix b/pkgs/games/openra/packages.nix new file mode 100644 index 00000000000..c09b697771a --- /dev/null +++ b/pkgs/games/openra/packages.nix @@ -0,0 +1,60 @@ +pkgs: + +let + /* Building an engine or out-of-tree mod is very similar, + but different enough not to be able to build them with the same package definition, + so instaed we define what is common between them in a seperate file. + + Although `callPackage` could be used, it would require undoing `makeOverridable`, + because `common.nix` does not define a package, but just an attribute set, + which is directly passed as part of the argument to the engines and mods `callPackage`, + so either the attributes added by `makeOverridable` have to be removed + or the engine and mod package definitions will need to add `...` to the argument list. + */ + common = let f = import ./common.nix; in f (builtins.intersectAttrs (builtins.functionArgs f) pkgs // { + lua = pkgs.lua5_1; + # It is not necessary to run the game, but it is nicer to be given an error dialog in the case of failure, + # rather than having to look to the logs why it is not starting. + inherit (pkgs.gnome3) zenity; + }); + + /* Building a set of engines or mods requires some dependencies as well, + so the sets will actually be defined as a function instead, + requiring the dependencies and returning the actual set. + + Not all dependencies for defining a engine or mod set are shared, + so additional arguments can be passed as well. + + The builders for engines and mods allow to delay specifying the name, + by returning a function that expects a name, which we use, in this case, + to base the name on the attribute name instead, preventing the need to specify the name twice + if the attribute name and engine/mod name are equal. + */ + buildOpenRASet = f: args: builtins.mapAttrs (name: value: if builtins.isFunction value then value name else value) (f ({ + inherit (pkgs) fetchFromGitHub; + extraPostFetch = '' + sed -i 's/curl/curl --insecure/g' $out/thirdparty/{fetch-thirdparty-deps,noget}.sh + $out/thirdparty/fetch-thirdparty-deps.sh + ''; + } // args)); + +in rec { + # The whole attribute set is destructered to ensure those (and only those) attributes are given + # and to provide defaults for those that are optional. + buildOpenRAEngine = { name ? null, version, description, homepage, mods, src, installExperimental ? "" }@engine: + # Allow specifying the name at a later point if no name has been given. + let builder = name: pkgs.callPackage ./engine.nix (common // { + engine = engine // { inherit name installExperimental; }; + }); in if name == null then builder else builder name; + + # See `buildOpenRAEngine`. + buildOpenRAMod = { name ? null, version, title, description, homepage, src, engine }@mod: ({ version, mods ? [], src }@engine: + let builder = name: pkgs.callPackage ./mod.nix (common // { + mod = mod // { inherit name; }; + engine = engine // { inherit mods; }; + }); in if name == null then builder else builder name) engine; + + # See `buildOpenRASet`. + engines = buildOpenRASet (import ./engines.nix) { inherit buildOpenRAEngine; }; + mods = buildOpenRASet (import ./mods.nix) { inherit buildOpenRAMod; }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 992f578c211..d6be2053728 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20805,7 +20805,9 @@ in openmw-tes3mp = libsForQt5.callPackage ../games/openmw/tes3mp.nix { }; - openra = callPackage ../games/openra { lua = lua5_1; }; + openraPackages = import ../games/openra pkgs; + + openra = openraPackages.engines.release; openrw = callPackage ../games/openrw { }; From e82f51cded8bbe92150f7667001d6801b769d85c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Lafuente?= Date: Wed, 9 Jan 2019 23:38:18 +0100 Subject: [PATCH 026/120] clojure: 1.10.0.403 -> 1.10.0.411 --- pkgs/development/interpreters/clojure/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/clojure/default.nix b/pkgs/development/interpreters/clojure/default.nix index 001f7c9abee..6018d92bbca 100644 --- a/pkgs/development/interpreters/clojure/default.nix +++ b/pkgs/development/interpreters/clojure/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "clojure-${version}"; - version = "1.10.0.403"; + version = "1.10.0.411"; src = fetchurl { url = "https://download.clojure.org/install/clojure-tools-${version}.tar.gz"; - sha256 = "0jsyd0vr1qfqs0dz560hyfya553jhr4m4msf5x0n610yzvbqym4c"; + sha256 = "00bhn6w9iwhgmyx89lk97q19phpm9vh45m3m1pi7d31gldb6v0zh"; }; buildInputs = [ makeWrapper ]; From 53380970e7d074e595f3e9db9dcbbb70f45f79fc Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 10 Jan 2019 02:42:21 +0100 Subject: [PATCH 027/120] pythonPackages.thrift: fix build Adds missing `six` dependency to the build inputs. See also https://hydra.nixos.org/build/86094652 --- pkgs/development/python-modules/thrift/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/thrift/default.nix b/pkgs/development/python-modules/thrift/default.nix index 6897a5bbba8..d5a83832cb2 100644 --- a/pkgs/development/python-modules/thrift/default.nix +++ b/pkgs/development/python-modules/thrift/default.nix @@ -1,6 +1,7 @@ { stdenv , buildPythonPackage , fetchPypi +, six }: buildPythonPackage rec { @@ -12,6 +13,8 @@ buildPythonPackage rec { sha256 = "7d59ac4fdcb2c58037ebd4a9da5f9a49e3e034bf75b3f26d9fe48ba3d8806e6b"; }; + propagatedBuildInputs = [ six ]; + # No tests. Breaks when not disabling. doCheck = false; From d6f355f7004dc412a9747cff249869ce0385f1ff Mon Sep 17 00:00:00 2001 From: Tadeo Kondrak Date: Wed, 9 Jan 2019 20:50:21 -0700 Subject: [PATCH 028/120] neofetch: 5.0.0 -> 6.0.0 --- pkgs/tools/misc/neofetch/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/neofetch/default.nix b/pkgs/tools/misc/neofetch/default.nix index a076a405ce7..18ae88547a0 100644 --- a/pkgs/tools/misc/neofetch/default.nix +++ b/pkgs/tools/misc/neofetch/default.nix @@ -2,12 +2,12 @@ stdenv.mkDerivation rec { name = "neofetch-${version}"; - version = "5.0.0"; + version = "6.0.0"; src = fetchFromGitHub { owner = "dylanaraps"; repo = "neofetch"; rev = version; - sha256 = "0yzyi2p0d8xp576lxyv5m9h60dl1d5dmrn40aad307872835b9rr"; + sha256 = "0j0r40llyry1sgc6p9wd7jrpydps2lnj4rwajjp37697g2bik89i"; }; dontBuild = true; From 7c19fba9f61366319428d0a5f4ba2ee1684af5ae Mon Sep 17 00:00:00 2001 From: dpetranek Date: Thu, 10 Jan 2019 01:04:21 -0600 Subject: [PATCH 029/120] leiningen: 2.8.1 -> 2.8.3 --- pkgs/development/tools/build-managers/leiningen/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/build-managers/leiningen/default.nix b/pkgs/development/tools/build-managers/leiningen/default.nix index 4faf524af11..30422c353af 100644 --- a/pkgs/development/tools/build-managers/leiningen/default.nix +++ b/pkgs/development/tools/build-managers/leiningen/default.nix @@ -3,18 +3,18 @@ stdenv.mkDerivation rec { pname = "leiningen"; - version = "2.8.1"; + version = "2.8.3"; name = "${pname}-${version}"; src = fetchurl { url = "https://raw.github.com/technomancy/leiningen/${version}/bin/lein-pkg"; - sha256 = "0wk4m7m66xxx7i3nis08mc8qna7acgcmpim562vdyyrpbxdhj24i"; + sha256 = "1jbrm4vdvwskbi9sxvn6i7h2ih9c3nfld63nx58nblghvlcb9vwx"; }; jarsrc = fetchurl { # NOTE: This is actually a .jar, Github has issues url = "https://github.com/technomancy/leiningen/releases/download/${version}/${name}-standalone.zip"; - sha256 = "0n3wkb0a9g25r1xq93lskay2lw210qymz2qakjnl5vr5zz3vnjgw"; + sha256 = "07kb7d84llp24l959gndnfmislnnvgpsxghmgfdy8chy7g4sy2kz"; }; JARNAME = "${name}-standalone.jar"; From ed788516887fb7371f1b80b8b5907e688bd29661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Thu, 10 Jan 2019 08:06:55 +0100 Subject: [PATCH 030/120] libmediaart: turn off broken tests until fixed --- pkgs/development/libraries/libmediaart/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libmediaart/default.nix b/pkgs/development/libraries/libmediaart/default.nix index 48bd959009a..64d2cc7577c 100644 --- a/pkgs/development/libraries/libmediaart/default.nix +++ b/pkgs/development/libraries/libmediaart/default.nix @@ -14,7 +14,9 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ meson ninja pkgconfig vala gtk-doc docbook_xsl docbook_xml_dtd_412 gobject-introspection ]; buildInputs = [ glib gdk_pixbuf ]; - doCheck = true; + # FIXME: Turn on again when https://github.com/NixOS/nixpkgs/issues/53701 + # is fixed on master. + doCheck = false; passthru = { updateScript = gnome3.updateScript { From d50dacbf80f420f1f52ab73e2812e0304cfe1f59 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 10 Jan 2019 01:59:44 +0100 Subject: [PATCH 031/120] termbox: fix build Applies a patch which fixes the `waf` build on Python 3.7. See also https://hydra.nixos.org/build/86295267 --- pkgs/development/libraries/termbox/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/termbox/default.nix b/pkgs/development/libraries/termbox/default.nix index 469a6a4c96f..eefc976a62b 100644 --- a/pkgs/development/libraries/termbox/default.nix +++ b/pkgs/development/libraries/termbox/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, python3, wafHook }: +{ stdenv, fetchFromGitHub, python3, wafHook, fetchpatch }: stdenv.mkDerivation rec { name = "termbox-${version}"; @@ -9,7 +9,18 @@ stdenv.mkDerivation rec { rev = "v${version}"; sha256 = "08yqxzb8fny8806p7x8a6f3phhlbfqdd7dhkv25calswj7w1ssvs"; }; + + # patch which updates the `waf` version used to build + # to make the package buildable on Python 3.7 + patches = [ + (fetchpatch { + url = https://github.com/nsf/termbox/commit/6fe63ac3ad63dc2c3ac45b770541cc8b7a1d2db7.patch; + sha256 = "1s5747v51sdwvpsg6k9y1j60yn9f63qnylkgy8zrsifjzzd5fzl6"; + }) + ]; + nativeBuildInputs = [ python3 wafHook ]; + meta = with stdenv.lib; { description = "Library for writing text-based user interfaces"; license = licenses.mit; From 8eb031786c269741639991b0ef414bb57ca5033a Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 10 Jan 2019 12:30:42 +0100 Subject: [PATCH 032/120] gcc-arm-embedded: 7-2018-q2-update -> 8-2018-q4-major --- .../compilers/gcc-arm-embedded/8/default.nix | 39 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 3 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/compilers/gcc-arm-embedded/8/default.nix diff --git a/pkgs/development/compilers/gcc-arm-embedded/8/default.nix b/pkgs/development/compilers/gcc-arm-embedded/8/default.nix new file mode 100644 index 00000000000..4e0caf18361 --- /dev/null +++ b/pkgs/development/compilers/gcc-arm-embedded/8/default.nix @@ -0,0 +1,39 @@ +{ stdenv, lib, fetchurl, ncurses5, python27 }: + +with lib; + +stdenv.mkDerivation rec { + name = "gcc-arm-embedded-${version}"; + version = "8-2018-q4-major"; + subdir = "8-2018q4"; + + urlString = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${subdir}/gcc-arm-none-eabi-${version}-linux.tar.bz2"; + + src = fetchurl { url=urlString; sha256="fb31fbdfe08406ece43eef5df623c0b2deb8b53e405e2c878300f7a1f303ee52"; }; + + phases = [ "unpackPhase" "installPhase" "fixupPhase" ]; + + installPhase = '' + mkdir -p $out + cp -r * $out + ''; + + dontPatchELF = true; + dontStrip = true; + + preFixup = '' + find $out -type f | while read f; do + patchelf $f > /dev/null 2>&1 || continue + patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true + patchelf --set-rpath ${stdenv.lib.makeLibraryPath [ "$out" stdenv.cc.cc ncurses5 python27 ]} "$f" || true + done + ''; + + meta = { + description = "Pre-built GNU toolchain from ARM Cortex-M & Cortex-R processors (Cortex-M0/M0+/M3/M4/M7, Cortex-R4/R5/R7/R8)"; + homepage = https://developer.arm.com/open-source/gnu-toolchain/gnu-rm; + license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ]; + maintainers = with maintainers; [ prusnak ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8adf17f8e4d..37052e491cd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7008,7 +7008,8 @@ in }; gcc-arm-embedded-6 = callPackage ../development/compilers/gcc-arm-embedded/6 {}; gcc-arm-embedded-7 = callPackage ../development/compilers/gcc-arm-embedded/7 {}; - gcc-arm-embedded = gcc-arm-embedded-7; + gcc-arm-embedded-8 = callPackage ../development/compilers/gcc-arm-embedded/8 {}; + gcc-arm-embedded = gcc-arm-embedded-8; gforth = callPackage ../development/compilers/gforth {}; From 27132c35df7b50ccbbf14f21bfd99aa9a96b9805 Mon Sep 17 00:00:00 2001 From: Francesco Zanini Date: Thu, 10 Jan 2019 12:56:33 +0100 Subject: [PATCH 033/120] nexus: 3.12.1 -> 3.14.0-04 --- .../development/tools/repository-managers/nexus/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/repository-managers/nexus/default.nix b/pkgs/development/tools/repository-managers/nexus/default.nix index 39e37b217cf..8b42ed12436 100644 --- a/pkgs/development/tools/repository-managers/nexus/default.nix +++ b/pkgs/development/tools/repository-managers/nexus/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "nexus-${version}"; - version = "3.12.1-01"; + version = "3.14.0-04"; src = fetchurl { url = "https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-${version}-unix.tar.gz"; - sha256 = "1vv50zv3cr42rq1g16gdl2d1hrxna2jjynlr7kivzlbyfq89ic3f"; + sha256 = "1ql707672xhybmfajjmli9w0wcf1f26skq8i5kqirms2364wg35f"; }; sourceRoot = name; @@ -41,6 +41,6 @@ stdenv.mkDerivation rec { homepage = http://www.sonatype.org/nexus; license = licenses.epl10; platforms = platforms.all; - maintainers = with maintainers; [ aespinosa ironpinguin ma27 ]; + maintainers = with maintainers; [ aespinosa ironpinguin ma27 zaninime ]; }; } From 2712f12244b78e05eddd37770478a84e929ef19b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Thu, 10 Jan 2019 07:58:20 +0100 Subject: [PATCH 034/120] gtk3: fix segfaults when opening dialogs Fixes https://github.com/NixOS/nixpkgs/issues/53697 Closes https://github.com/NixOS/nixpkgs/pull/53736 --- pkgs/development/libraries/gtk+/3.x.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/gtk+/3.x.nix b/pkgs/development/libraries/gtk+/3.x.nix index 5c6cd2c7eda..01133b92ee1 100644 --- a/pkgs/development/libraries/gtk+/3.x.nix +++ b/pkgs/development/libraries/gtk+/3.x.nix @@ -35,11 +35,16 @@ stdenv.mkDerivation rec { url = "https://bug757142.bugzilla-attachments.gnome.org/attachment.cgi?id=344123"; sha256 = "0g6fhqcv8spfy3mfmxpyji93k8d4p4q4fz1v9a1c1cgcwkz41d7p"; }) - # https://gitlab.gnome.org/GNOME/gtk/issues/1521 + # 3.24.2: https://gitlab.gnome.org/GNOME/gtk/issues/1521 (fetchpatch { url = https://gitlab.gnome.org/GNOME/gtk/commit/2905fc861acda3d134a198e56ef2f6c962ad3061.patch; sha256 = "0y8ljny59kgdhrcfpimi2r082bax60d5kflw1qj9k1mnzjcvjjwl"; }) + # 3.24.2: https://gitlab.gnome.org/GNOME/gtk/issues/1523 + (fetchpatch { + url = https://gitlab.gnome.org/GNOME/gtk/commit/e3a1593a0984cc0156ec1892a46af8f256a64878.patch; + sha256 = "0akvp1r8xlzf5amk9gmk7b5sabr1wbmg3ak15rppsid7nf9f5dqf"; + }) ]; buildInputs = [ libxkbcommon epoxy json-glib isocodes ] From 954cda5c9d05b105cdc7bc7871c7d124736545c6 Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Tue, 25 Dec 2018 23:04:16 +0100 Subject: [PATCH 035/120] dockerTools: allow to pass extraCommands, uid and gid to buildLayeredImage --- nixos/tests/docker-tools.nix | 1 + pkgs/build-support/docker/default.nix | 13 ++++++++++--- pkgs/build-support/docker/examples.nix | 1 + 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/nixos/tests/docker-tools.nix b/nixos/tests/docker-tools.nix index ecd14b274eb..58f106314ab 100644 --- a/nixos/tests/docker-tools.nix +++ b/nixos/tests/docker-tools.nix @@ -62,6 +62,7 @@ import ./make-test.nix ({ pkgs, ... }: { # Ensure Layered Docker images work $docker->succeed("docker load --input='${pkgs.dockerTools.examples.layered-image}'"); $docker->succeed("docker run --rm ${pkgs.dockerTools.examples.layered-image.imageName}"); + $docker->succeed("docker run --rm ${pkgs.dockerTools.examples.layered-image.imageName} cat extraCommands"); # Ensure building an image on top of a layered Docker images work $docker->succeed("docker load --input='${pkgs.dockerTools.examples.layered-on-top}'"); diff --git a/pkgs/build-support/docker/default.nix b/pkgs/build-support/docker/default.nix index f16cb7cec13..b6347f031f9 100644 --- a/pkgs/build-support/docker/default.nix +++ b/pkgs/build-support/docker/default.nix @@ -316,14 +316,21 @@ rec { # Files to add to the layer. contents, baseJson, + extraCommands, uid ? 0, gid ? 0, }: runCommand "${name}-customisation-layer" { buildInputs = [ jshon rsync tarsum ]; + inherit extraCommands; } '' cp -r ${contents}/ ./layer + if [[ -n $extraCommands ]]; then + chmod ug+w layer + (cd layer; eval "$extraCommands") + fi + # Tar up the layer and throw it into 'layer.tar'. echo "Packing layer..." mkdir $out @@ -494,6 +501,8 @@ rec { # Time of creation of the image. Passing "now" will make the # created date be the time of building. created ? "1970-01-01T00:00:01Z", + # Optional bash script to run on the files prior to fixturizing the layer. + extraCommands ? "", uid ? 0, gid ? 0, # Docker's lowest maximum layer limit is 42-layers for an old # version of the AUFS graph driver. We pick 24 to ensure there is # plenty of room for extension. I believe the actual maximum is @@ -501,8 +510,6 @@ rec { maxLayers ? 24 }: let - uid = 0; - gid = 0; baseName = baseNameOf name; contentsEnv = symlinkJoin { name = "bulk-layers"; paths = (if builtins.isList contents then contents else [ contents ]); }; @@ -531,7 +538,7 @@ rec { name = baseName; contents = contentsEnv; baseJson = configJson; - inherit uid gid; + inherit uid gid extraCommands; }; result = runCommand "docker-image-${baseName}.tar.gz" { buildInputs = [ jshon pigz coreutils findutils jq ]; diff --git a/pkgs/build-support/docker/examples.nix b/pkgs/build-support/docker/examples.nix index 090bfafa085..41eddefe32b 100644 --- a/pkgs/build-support/docker/examples.nix +++ b/pkgs/build-support/docker/examples.nix @@ -155,6 +155,7 @@ rec { layered-image = pkgs.dockerTools.buildLayeredImage { name = "layered-image"; tag = "latest"; + extraCommands = ''echo "(extraCommand)" > extraCommands''; config.Cmd = [ "${pkgs.hello}/bin/hello" ]; contents = [ pkgs.hello pkgs.bash pkgs.coreutils ]; }; From 4d68e82dbc3d01977e3d1afb22ace731a4b5998c Mon Sep 17 00:00:00 2001 From: Yorick Date: Thu, 10 Jan 2019 16:34:02 +0100 Subject: [PATCH 036/120] nixos/borgbackup: use coercedTo instead of apply on `paths` (#53756) so multiple declarations merge properly --- nixos/modules/services/backup/borgbackup.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/services/backup/borgbackup.nix b/nixos/modules/services/backup/borgbackup.nix index bf41aee8fe0..2ad116a7872 100644 --- a/nixos/modules/services/backup/borgbackup.nix +++ b/nixos/modules/services/backup/borgbackup.nix @@ -191,10 +191,9 @@ in { options = { paths = mkOption { - type = with types; either path (listOf str); + type = with types; coercedTo str lib.singleton (listOf str); description = "Path(s) to back up."; example = "/home/user"; - apply = x: if isList x then x else [ x ]; }; repo = mkOption { From c703e835b2dfc553af464eaccbf36e26ef56a5a6 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Tue, 8 Jan 2019 00:38:13 -0800 Subject: [PATCH 037/120] claws-mail: 3.17.2 -> 3.17.3 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/claws-mail/versions --- .../networking/mailreaders/claws-mail/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/mailreaders/claws-mail/default.nix b/pkgs/applications/networking/mailreaders/claws-mail/default.nix index a783cb2af3f..47a104b252c 100644 --- a/pkgs/applications/networking/mailreaders/claws-mail/default.nix +++ b/pkgs/applications/networking/mailreaders/claws-mail/default.nix @@ -31,11 +31,11 @@ with stdenv.lib; stdenv.mkDerivation rec { name = "claws-mail-${version}"; - version = "3.17.2"; + version = "3.17.3"; src = fetchurl { url = "http://www.claws-mail.org/download.php?file=releases/claws-mail-${version}.tar.xz"; - sha256 = "1hb17kpvfl8f1y49zan0wvf4awapxg13bqbqwrbhq2n4xp445kr5"; + sha256 = "1wnj6c9cbmhphs2l6wfvndkk2g08rmxw0sl2c8k1k008dxd1ykjh"; }; outputs = [ "out" "dev" ]; From 79229ca8633b58d72e864dd0d0a13937e3bb5a87 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 10 Jan 2019 16:43:43 +0100 Subject: [PATCH 038/120] rustfmt: 0.99.5 -> 1.0.0 Note: there is a 1.0.1, but it doesn't compile with our stable Rust. --- pkgs/development/tools/rust/rustfmt/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/rust/rustfmt/default.nix b/pkgs/development/tools/rust/rustfmt/default.nix index 06a3862adae..4684841cf47 100644 --- a/pkgs/development/tools/rust/rustfmt/default.nix +++ b/pkgs/development/tools/rust/rustfmt/default.nix @@ -2,20 +2,19 @@ rustPlatform.buildRustPackage rec { name = "rustfmt-${version}"; - version = "0.99.5"; + version = "1.0.0"; src = fetchFromGitHub { owner = "rust-lang"; repo = "rustfmt"; rev = "${version}"; - sha256 = "1gx1bsyb0f94r3f88f1j3b4rcm2x6zppcfab1c5vgpsr2dr6ch28"; + sha256 = "17ady2zq4jcbgawgpfszrkp6kxabb2f261g82y2az7nfax1h1pwy"; }; - cargoSha256 = "1rs6jjm75ixxhrf8b3zn991xa5kfayxlf0b70zdx6wd4r6by7w2y"; + cargoSha256 = "0v8iq50h9368kai3m710br5cxc3p6mpbwz1v6gaf5802n48liqs8"; buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; - # As of 1.0.0 and rustc 1.30 rustfmt requires a nightly compiler RUSTC_BOOTSTRAP = 1; From 6da71c7abc36cf97bf57f4d9c5d06a8f849cc98f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 10 Jan 2019 16:38:58 +0100 Subject: [PATCH 039/120] python.pkgs.hpack: fix build --- pkgs/development/python-modules/hpack/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/hpack/default.nix b/pkgs/development/python-modules/hpack/default.nix index a10882417fc..7e7db13aaec 100644 --- a/pkgs/development/python-modules/hpack/default.nix +++ b/pkgs/development/python-modules/hpack/default.nix @@ -1,6 +1,7 @@ { stdenv , buildPythonPackage , fetchPypi +, glibcLocales }: buildPythonPackage rec { @@ -12,6 +13,10 @@ buildPythonPackage rec { sha256 = "8eec9c1f4bfae3408a3f30500261f7e6a65912dc138526ea054f9ad98892e9d2"; }; + buildInputs = [ glibcLocales ]; + + LANG = "en_US.UTF-8"; + meta = with stdenv.lib; { description = "Pure-Python HPACK header compression"; homepage = "http://hyper.rtfd.org"; From bd3695090e67ba76c2273cf34d6aa9db68948b87 Mon Sep 17 00:00:00 2001 From: Herwig Hochleitner Date: Mon, 31 Dec 2018 03:10:31 +0100 Subject: [PATCH 040/120] systemtap: 3.3 -> 4.0 --- pkgs/development/tools/profiling/systemtap/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/profiling/systemtap/default.nix b/pkgs/development/tools/profiling/systemtap/default.nix index ecc86d51a06..6b1918a5d98 100644 --- a/pkgs/development/tools/profiling/systemtap/default.nix +++ b/pkgs/development/tools/profiling/systemtap/default.nix @@ -6,8 +6,8 @@ let ## fetchgit info url = git://sourceware.org/git/systemtap.git; rev = "release-${version}"; - sha256 = "0hckbmrlcz5nj438409fmdjjaaqzf68r2242v10lkssw5daia1gj"; - version = "3.3"; + sha256 = "075p45ndr4pzrf5679hcsw1ws4x0xqvx3m037v04545762hki6la"; + version = "4.0"; inherit (kernel) stdenv; inherit (stdenv) lib; From cc70439e110153b52a067624ebc113412850a9e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 10 Jan 2019 15:11:46 +0100 Subject: [PATCH 041/120] python3.pkgs.aiohttp: 3.4.4 -> 3.5.2 --- .../python-modules/aiohttp/default.nix | 26 +++++++++++-------- pkgs/servers/home-assistant/appdaemon.nix | 3 ++- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/aiohttp/default.nix b/pkgs/development/python-modules/aiohttp/default.nix index 14fca8dfe82..eaa8651a6c5 100644 --- a/pkgs/development/python-modules/aiohttp/default.nix +++ b/pkgs/development/python-modules/aiohttp/default.nix @@ -8,33 +8,37 @@ , async-timeout , yarl , idna-ssl +, typing-extensions +, pytestrunner , pytest , gunicorn -, pytest-mock -, async_generator -, pytestrunner , pytest-timeout +, async_generator +, pytest_xdist +, pytestcov +, pytest-mock +, trustme +, brotlipy }: buildPythonPackage rec { pname = "aiohttp"; - version = "3.4.4"; + version = "3.5.2"; src = fetchPypi { inherit pname version; - sha256 = "1ykm6kdjkrg556j0zd7dx2l1rsrbh0d9g27ivr6dmaahz9pyrbsi"; + sha256 = "3d851b15e615c0ad619de0990ab94c9721c335aebb58d160bf77a4af963c6b50"; }; disabled = pythonOlder "3.5"; - checkInputs = [ pytest gunicorn pytest-mock async_generator pytestrunner pytest-timeout ]; + checkInputs = [ + pytestrunner pytest gunicorn pytest-timeout async_generator pytest_xdist + pytest-mock pytestcov trustme brotlipy + ]; propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ] - ++ lib.optional (pythonOlder "3.7") idna-ssl; - - - # Several test failures. Need to be looked into. - doCheck = false; + ++ lib.optionals (pythonOlder "3.7") [ idna-ssl typing-extensions ]; meta = with lib; { description = "Asynchronous HTTP Client/Server for Python and asyncio"; diff --git a/pkgs/servers/home-assistant/appdaemon.nix b/pkgs/servers/home-assistant/appdaemon.nix index 15ebccbc0da..42faa01db48 100644 --- a/pkgs/servers/home-assistant/appdaemon.nix +++ b/pkgs/servers/home-assistant/appdaemon.nix @@ -11,7 +11,8 @@ let sha256 = "8adda6583ba438a4c70693374e10b60168663ffa6564c5c75d3c7a9055290964"; }; # TODO: remove after pinning aiohttp to a newer version - propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ self.idna-ssl ]; + propagatedBuildInputs = with self; [ chardet multidict async-timeout yarl idna-ssl ]; + doCheck = false; }); yarl = super.yarl.overridePythonAttrs (oldAttrs: rec { From e56f76f81b8a4db1dff7890c49a5776043a03cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 10 Jan 2019 16:31:01 +0100 Subject: [PATCH 042/120] gns3-server: improve expression --- pkgs/applications/networking/gns3/server.nix | 64 +++++++++----------- 1 file changed, 28 insertions(+), 36 deletions(-) diff --git a/pkgs/applications/networking/gns3/server.nix b/pkgs/applications/networking/gns3/server.nix index 24e641abc82..4d3a8ca87e5 100644 --- a/pkgs/applications/networking/gns3/server.nix +++ b/pkgs/applications/networking/gns3/server.nix @@ -1,63 +1,54 @@ { stable, branch, version, sha256Hash }: -{ stdenv, python36Packages, fetchFromGitHub, fetchurl }: +{ stdenv, python36, fetchFromGitHub }: let - pythonPackages = python36Packages; - async-timeout = pythonPackages.async-timeout.overrideAttrs - (oldAttrs: - rec { - pname = "async-timeout"; + python = python36.override { + packageOverrides = self: super: { + async-timeout = super.async-timeout.overridePythonAttrs (oldAttrs: rec { version = "2.0.1"; - src = pythonPackages.fetchPypi { - inherit pname version; + src = oldAttrs.src.override { + inherit version; sha256 = "1l3kg062m02mph6rf9rdv8r5c5n356clxa6b6mrn0i77vk9g9kq0"; }; }); - aiohttp = pythonPackages.aiohttp.overrideAttrs - (oldAttrs: - rec { - pname = "aiohttp"; + aiohttp = super.aiohttp.overridePythonAttrs (oldAttrs: rec { version = "2.3.10"; - src = pythonPackages.fetchPypi { - inherit pname version; + src = oldAttrs.src.override { + inherit version; sha256 = "8adda6583ba438a4c70693374e10b60168663ffa6564c5c75d3c7a9055290964"; }; - propagatedBuildInputs = [ async-timeout ] - ++ (with pythonPackages; [ attrs chardet multidict yarl idna-ssl ]); + propagatedBuildInputs = with self; [ async-timeout attrs chardet multidict yarl idna-ssl ]; + doCheck = false; }); - aiohttp-cors = pythonPackages.aiohttp-cors.overrideAttrs - (oldAttrs: - rec { - pname = "aiohttp-cors"; + aiohttp-cors = super.aiohttp-cors.overridePythonAttrs (oldAttrs: rec { version = "0.5.3"; - name = "${pname}-${version}"; - src = pythonPackages.fetchPypi { - inherit pname version; + src = oldAttrs.src.override { + inherit version; sha256 = "11b51mhr7wjfiikvj3nc5s8c7miin2zdhl3yrzcga4mbpkj892in"; }; - propagatedBuildInputs = [ aiohttp ] - ++ stdenv.lib.optional - (pythonPackages.pythonOlder "3.5") - pythonPackages.typing; + propagatedBuildInputs = with self; [ aiohttp ] + ++ stdenv.lib.optional (pythonOlder "3.5") typing; }); -in pythonPackages.buildPythonPackage rec { - name = "${pname}-${version}"; + }; + }; + +in python.pkgs.buildPythonPackage { pname = "gns3-server"; + inherit version; src = fetchFromGitHub { owner = "GNS3"; - repo = pname; + repo = "gns3-server"; rev = "v${version}"; sha256 = sha256Hash; }; - propagatedBuildInputs = [ aiohttp-cors ] - ++ (with pythonPackages; [ - yarl aiohttp multidict - jinja2 psutil zipstream raven jsonschema typing - (pythonPackages.callPackage ../../../development/python-modules/prompt_toolkit/1.nix {}) - ]); + propagatedBuildInputs = with python.pkgs; [ + aiohttp-cors yarl aiohttp multidict + jinja2 psutil zipstream raven jsonschema typing + (python.pkgs.callPackage ../../../development/python-modules/prompt_toolkit/1.nix {}) + ]; # Requires network access doCheck = false; @@ -65,6 +56,7 @@ in pythonPackages.buildPythonPackage rec { postInstall = '' rm $out/bin/gns3loopback # For Windows only ''; + meta = with stdenv.lib; { description = "Graphical Network Simulator 3 server (${branch} release)"; longDescription = '' From 2ac775a0845e28956b481c67f4fda3a019d4c5f9 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Thu, 10 Jan 2019 16:16:04 +0000 Subject: [PATCH 043/120] emacsPackagesNg.forge: Add git as build input --- pkgs/applications/editors/emacs-modes/melpa-packages.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/editors/emacs-modes/melpa-packages.nix b/pkgs/applications/editors/emacs-modes/melpa-packages.nix index b95a944e612..7c153168496 100644 --- a/pkgs/applications/editors/emacs-modes/melpa-packages.nix +++ b/pkgs/applications/editors/emacs-modes/melpa-packages.nix @@ -89,6 +89,12 @@ self: # Expects bash to be at /bin/bash flycheck-rtags = markBroken super.flycheck-rtags; + forge = super.forge.overrideAttrs (attrs: { + # searches for Git at build time + nativeBuildInputs = + (attrs.nativeBuildInputs or []) ++ [ external.git ]; + }); + # build timeout graphene = markBroken super.graphene; From a36c2d9c548ad7d3ace1eb8b0bd02760ee45224d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 10 Jan 2019 17:19:55 +0100 Subject: [PATCH 044/120] python.pkgs.multidict: 4.4.2 -> 4.5.2 --- pkgs/development/python-modules/multidict/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/multidict/default.nix b/pkgs/development/python-modules/multidict/default.nix index eb5ef396a4f..76a49423006 100644 --- a/pkgs/development/python-modules/multidict/default.nix +++ b/pkgs/development/python-modules/multidict/default.nix @@ -7,11 +7,11 @@ buildPythonPackage rec { pname = "multidict"; - version = "4.4.2"; + version = "4.5.2"; src = fetchPypi { inherit pname version; - sha256 = "3c11e92c3dfc321014e22fb442bc9eb70e01af30d6ce442026b0c35723448c66"; + sha256 = "024b8129695a952ebd93373e45b5d341dbb87c17ce49637b34000093f243dd4f"; }; checkInputs = [ pytest pytestrunner pytestcov ]; From 77ec7d75a9effb1d45dc3c01fb1261be43bcc1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 10 Jan 2019 17:38:53 +0100 Subject: [PATCH 045/120] python.pkgs.py3status: 3.14 -> 3.15 --- pkgs/development/python-modules/py3status/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/py3status/default.nix b/pkgs/development/python-modules/py3status/default.nix index edd98020f06..412b3b2342a 100644 --- a/pkgs/development/python-modules/py3status/default.nix +++ b/pkgs/development/python-modules/py3status/default.nix @@ -19,11 +19,11 @@ buildPythonPackage rec { pname = "py3status"; - version = "3.14"; + version = "3.15"; src = fetchPypi { inherit pname version; - sha256 = "8775fb3903458a519593fc22b712ccac598464e319a12b9fdf04803fa60a1583"; + sha256 = "78aa7fa0af707641e215ea93bfd4bb5fd47f18a7193d84ed60bb9e6cccb75b7f"; }; doCheck = false; From 0af5ce1c8b61e6852793d536abb22672af5c160a Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Thu, 10 Jan 2019 17:43:14 +0100 Subject: [PATCH 046/120] php73: 7.3.0 -> 7.3.1 --- pkgs/development/interpreters/php/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix index 2757b9bd4ba..d890b1862d3 100644 --- a/pkgs/development/interpreters/php/default.nix +++ b/pkgs/development/interpreters/php/default.nix @@ -263,12 +263,10 @@ in { }; php73 = generic { - version = "7.3.0"; - sha256 = "0rvwx37dsmxivgrf4wfc1y778iln498c6a40biy9k6lnr6p7s9ks"; + version = "7.3.1"; + sha256 = "13iqfkz9rmx9vy106lvw1nbk88qgwdkvxam0l5s14r7jsw62pvxg"; - # https://bugs.php.net/bug.php?id=71041 # https://bugs.php.net/bug.php?id=76826 - extraPatches = [ ./fix-bug-71041.patch ] - ++ optional stdenv.isDarwin ./php73-darwin-isfinite.patch; + extraPatches = optional stdenv.isDarwin ./php73-darwin-isfinite.patch; }; } From 0e5c70eb76c0b34d257c4bf9fe9ba0fd3dc1b2eb Mon Sep 17 00:00:00 2001 From: Herwig Hochleitner Date: Thu, 10 Jan 2019 17:44:49 +0100 Subject: [PATCH 047/120] nixops: add checkPhase with a smoke test This can detect (python) import errors introduced by dependency updates. --- pkgs/tools/package-management/nixops/generic.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/package-management/nixops/generic.nix b/pkgs/tools/package-management/nixops/generic.nix index bc55f99aa81..2ce7f9858a5 100644 --- a/pkgs/tools/package-management/nixops/generic.nix +++ b/pkgs/tools/package-management/nixops/generic.nix @@ -1,4 +1,4 @@ -{ lib, python2Packages, libxslt, docbook_xsl_ns, openssh +{ lib, python2Packages, libxslt, docbook_xsl_ns, openssh, cacert # version args , src, version }: @@ -29,7 +29,13 @@ python2Packages.buildPythonApplication { typing ]; - doCheck = false; + checkPhase = + # Ensure, that there are no (python) import errors + '' + SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt \ + HOME=$(pwd) \ + $out/bin/nixops --version + ''; postInstall = '' make -C doc/manual install nixops.1 docbookxsl=${docbook_xsl_ns}/xml/xsl/docbook \ From fb7acdec80e946c0a45231a1147a99e7c76a54b7 Mon Sep 17 00:00:00 2001 From: Jake Waksbaum Date: Tue, 8 Jan 2019 21:29:33 +0000 Subject: [PATCH 048/120] Add jakewaksbaum as a maintainer --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index c76210d86a4..03753ca93f8 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -1953,6 +1953,11 @@ github = "jakelogemann"; name = "Jake Logemann"; }; + jakewaksbaum = { + email = "jake.waksbaum@gmail.com"; + github = "jbaum98"; + name = "Jake Waksbaum"; + }; jammerful = { email = "jammerful@gmail.com"; github = "jammerful"; From e77c10db63af32fc1217b6931f55f2395039bdea Mon Sep 17 00:00:00 2001 From: Jake Waksbaum Date: Mon, 7 Jan 2019 16:41:26 +0000 Subject: [PATCH 049/120] pythonPackages.pylev: init at 1.3.0 --- .../python-modules/pylev/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/python-modules/pylev/default.nix diff --git a/pkgs/development/python-modules/pylev/default.nix b/pkgs/development/python-modules/pylev/default.nix new file mode 100644 index 00000000000..895171ff713 --- /dev/null +++ b/pkgs/development/python-modules/pylev/default.nix @@ -0,0 +1,24 @@ +{ lib, buildPythonPackage, fetchFromGitHub }: + +buildPythonPackage rec { + pname = "pylev"; + version = "1.3.0"; + + # No tests in PyPi tarball + src = fetchFromGitHub { + owner = "toastdriven"; + repo = "pylev"; + # Can't use a tag because it's missing + # https://github.com/toastdriven/pylev/issues/10 + # rev = "v${version}; + rev = "72e3d490515c3188e2acac9c15ea1b466f9ff938"; + sha256 = "18dg1rfnqgfl6x4vafiq4la9d7f65xak19gcvngslq0bm1z6hyd8"; + }; + + meta = with lib; { + homepage = https://github.com/toastdriven/pylev; + description = "A pure Python Levenshtein implementation that's not freaking GPL'd"; + license = licenses.bsd3; + maintainers = with maintainers; [ jakewaksbaum ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d0d12d2ca72..7e7caa6d179 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -595,6 +595,8 @@ in { pykeepass = callPackage ../development/python-modules/pykeepass { }; + pylev = callPackage ../development/python-modules/pylev { }; + pymatgen = callPackage ../development/python-modules/pymatgen { }; pymatgen-lammps = callPackage ../development/python-modules/pymatgen-lammps { }; From 1b221099042d18d454649ca74838858d5d5a8f42 Mon Sep 17 00:00:00 2001 From: Jake Waksbaum Date: Mon, 7 Jan 2019 16:57:30 +0000 Subject: [PATCH 050/120] pythonPackages.pastel: init at 0.1.0 --- .../python-modules/pastel/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/pastel/default.nix diff --git a/pkgs/development/python-modules/pastel/default.nix b/pkgs/development/python-modules/pastel/default.nix new file mode 100644 index 00000000000..2d99447f724 --- /dev/null +++ b/pkgs/development/python-modules/pastel/default.nix @@ -0,0 +1,26 @@ +{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, pytest }: + +buildPythonPackage rec { + pname = "pastel"; + version = "0.1.0"; + + # No tests in PyPi tarball + src = fetchFromGitHub { + owner = "sdispater"; + repo = "pastel"; + rev = version; + sha256 = "1b4ag7jr7j0sxly5g29imdq8g0d4ixhbck55dblr45mlsidydx0s"; + }; + + checkInputs = [ pytest ]; + checkPhase = '' + pytest tests -sq + ''; + + meta = with lib; { + homepage = https://github.com/sdispater/pastel; + description = "Bring colors to your terminal"; + license = licenses.mit; + maintainers = with maintainers; [ jakewaksbaum ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7e7caa6d179..ff81e9bc5b6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -488,6 +488,8 @@ in { palettable = callPackage ../development/python-modules/palettable { }; + pastel = callPackage ../development/python-modules/pastel { }; + pathlib = callPackage ../development/python-modules/pathlib { }; pdf2image = callPackage ../development/python-modules/pdf2image { }; From 8aa6c116f21c7c815e32f3ce0a55fddd3c638fd6 Mon Sep 17 00:00:00 2001 From: Jake Waksbaum Date: Mon, 7 Jan 2019 17:06:48 +0000 Subject: [PATCH 051/120] pythonPackages.clikit: init at 0.2.3 --- .../python-modules/clikit/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/clikit/default.nix diff --git a/pkgs/development/python-modules/clikit/default.nix b/pkgs/development/python-modules/clikit/default.nix new file mode 100644 index 00000000000..0d5247c02e0 --- /dev/null +++ b/pkgs/development/python-modules/clikit/default.nix @@ -0,0 +1,30 @@ +{ lib, buildPythonPackage, fetchPypi +, isPy27, isPy34 +, pylev, pastel, typing, enum34 }: + +buildPythonPackage rec { + pname = "clikit"; + version = "0.2.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "0zr1s0xhk62p9a6zcp5whvsb27lddyk8gx03k9l8q18jp7y3igbv"; + }; + + propagatedBuildInputs = [ + pylev pastel + ] ++ lib.optional (isPy27 || isPy34) typing + ++ lib.optional isPy27 enum34; + + # The Pypi tarball doesn't include tests, and the GitHub source isn't + # buildable until we bootstrap poetry, see + # https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665 + doCheck = false; + + meta = with lib; { + homepage = https://github.com/sdispater/clikit; + description = "A group of utilities to build beautiful and testable command line interfaces"; + license = licenses.mit; + maintainers = with maintainers; [ jakewaksbaum ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ff81e9bc5b6..86603b5ebc7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -290,6 +290,8 @@ in { chalice = callPackage ../development/python-modules/chalice { }; + clikit = callPackage ../development/python-modules/clikit { }; + clustershell = callPackage ../development/python-modules/clustershell { }; cozy = callPackage ../development/python-modules/cozy { }; From 9f6a76b95bbcfecf0e162a0ea9bac9663d10e44f Mon Sep 17 00:00:00 2001 From: Jake Waksbaum Date: Mon, 7 Jan 2019 17:13:19 +0000 Subject: [PATCH 052/120] pythonPackages.cleo: init at 0.7.2 --- .../python-modules/cleo/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/cleo/default.nix diff --git a/pkgs/development/python-modules/cleo/default.nix b/pkgs/development/python-modules/cleo/default.nix new file mode 100644 index 00000000000..31a33b73c2b --- /dev/null +++ b/pkgs/development/python-modules/cleo/default.nix @@ -0,0 +1,30 @@ +{ lib, buildPythonPackage, fetchPypi +, pylev, pastel, clikit }: + +buildPythonPackage rec { + pname = "cleo"; + version = "0.7.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "091nzpfp5incd2fzqych78rvyx4i3djr50cnizbjzr3dc7g00l3s"; + }; + + propagatedBuildInputs = [ + pylev + pastel + clikit + ]; + + # The Pypi tarball doesn't include tests, and the GitHub source isn't + # buildable until we bootstrap poetry, see + # https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665 + doCheck = false; + + meta = with lib; { + homepage = https://github.com/sdispater/cleo; + description = "Allows you to create beautiful and testable command-line interfaces"; + license = licenses.mit; + maintainers = with maintainers; [ jakewaksbaum ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 86603b5ebc7..d8703b35ca2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -290,6 +290,8 @@ in { chalice = callPackage ../development/python-modules/chalice { }; + cleo = callPackage ../development/python-modules/cleo { }; + clikit = callPackage ../development/python-modules/clikit { }; clustershell = callPackage ../development/python-modules/clustershell { }; From a9ced39e88335b7318b2297cacf61e88508365e5 Mon Sep 17 00:00:00 2001 From: Jake Waksbaum Date: Mon, 7 Jan 2019 17:27:11 +0000 Subject: [PATCH 053/120] pythonPackages.cachy: init at 0.2.0 --- .../python-modules/cachy/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/cachy/default.nix diff --git a/pkgs/development/python-modules/cachy/default.nix b/pkgs/development/python-modules/cachy/default.nix new file mode 100644 index 00000000000..029a1864484 --- /dev/null +++ b/pkgs/development/python-modules/cachy/default.nix @@ -0,0 +1,33 @@ +{ lib, buildPythonPackage, fetchPypi +, redis +, memcached +, msgpack-python +}: + +buildPythonPackage rec { + pname = "cachy"; + version = "0.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0v6mjyhgx6j7ya20bk69cr3gdzdkdf6psay0h090rscclgji65dp"; + }; + + propagatedBuildInputs = [ + redis + memcached + msgpack-python + ]; + + # The Pypi tarball doesn't include tests, and the GitHub source isn't + # buildable until we bootstrap poetry, see + # https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665 + doCheck = false; + + meta = with lib; { + homepage = https://github.com/sdispater/cachy; + description = "Cachy provides a simple yet effective caching library"; + license = licenses.mit; + maintainers = with maintainers; [ jakewaksbaum ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d8703b35ca2..78997b6536b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -286,6 +286,8 @@ in { cachecontrol = callPackage ../development/python-modules/cachecontrol { }; + cachy = callPackage ../development/python-modules/cachy { }; + cdecimal = callPackage ../development/python-modules/cdecimal { }; chalice = callPackage ../development/python-modules/chalice { }; From 33f486f456ab6675cbe0436f71309d4d5ce67f64 Mon Sep 17 00:00:00 2001 From: Jake Waksbaum Date: Mon, 7 Jan 2019 19:13:42 +0000 Subject: [PATCH 054/120] pythonPackages.tomlkit: init at 0.5.3 --- .../python-modules/tomlkit/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/tomlkit/default.nix diff --git a/pkgs/development/python-modules/tomlkit/default.nix b/pkgs/development/python-modules/tomlkit/default.nix new file mode 100644 index 00000000000..47cf737f188 --- /dev/null +++ b/pkgs/development/python-modules/tomlkit/default.nix @@ -0,0 +1,29 @@ +{ lib, buildPythonPackage, fetchPypi, isPy27, isPy34 +, enum34, functools32, typing +}: + +buildPythonPackage rec { + pname = "tomlkit"; + version = "0.5.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "1hjfzlb6y694pkadygcaq1n63di97pxgq2zpc74in1axc5166l6n"; + }; + + propagatedBuildInputs = + lib.optionals isPy27 [ enum34 functools32 ] + ++ lib.optional (isPy27 || isPy34) typing; + + # The Pypi tarball doesn't include tests, and the GitHub source isn't + # buildable until we bootstrap poetry, see + # https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665 + doCheck = false; + + meta = with lib; { + homepage = https://github.com/sdispater/tomlkit; + description = "Style-preserving TOML library for Python"; + license = licenses.mit; + maintainers = with maintainers; [ jakewaksbaum ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 78997b6536b..5bab0ace12b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -774,6 +774,8 @@ in { toml = callPackage ../development/python-modules/toml { }; + tomlkit = callPackage ../development/python-modules/tomlkit { }; + unifi = callPackage ../development/python-modules/unifi { }; vidstab = callPackage ../development/python-modules/vidstab { }; From 0756066b1b5d9d4d7a4da2fcc157a07ef4bc3c6d Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Tue, 8 Jan 2019 00:02:12 -0500 Subject: [PATCH 055/120] pythonPackages.pyristent: add pytestrunner, fix build --- .../python-modules/pyrsistent/default.nix | 9 +++++---- .../no-setup-requires-pytestrunner.patch | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 pkgs/development/python-modules/pyrsistent/no-setup-requires-pytestrunner.patch diff --git a/pkgs/development/python-modules/pyrsistent/default.nix b/pkgs/development/python-modules/pyrsistent/default.nix index 0c32c4ef386..ceb0d718a40 100644 --- a/pkgs/development/python-modules/pyrsistent/default.nix +++ b/pkgs/development/python-modules/pyrsistent/default.nix @@ -4,6 +4,7 @@ , six , pytest , hypothesis +, pytestrunner }: buildPythonPackage rec { @@ -16,11 +17,11 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ six ]; - buildInputs = [ pytest hypothesis ]; - checkPhase = '' - py.test - ''; + checkInputs = [ pytestrunner pytest hypothesis ]; + + # pytestrunner is only needed to run tests + patches = [ ./no-setup-requires-pytestrunner.patch ]; meta = with stdenv.lib; { homepage = https://github.com/tobgu/pyrsistent/; diff --git a/pkgs/development/python-modules/pyrsistent/no-setup-requires-pytestrunner.patch b/pkgs/development/python-modules/pyrsistent/no-setup-requires-pytestrunner.patch new file mode 100644 index 00000000000..74d85dc4293 --- /dev/null +++ b/pkgs/development/python-modules/pyrsistent/no-setup-requires-pytestrunner.patch @@ -0,0 +1,15 @@ +diff --git a/setup.py b/setup.py +index 90a39a5..7bf444f 100644 +--- a/setup.py ++++ b/setup.py +@@ -77,9 +77,8 @@ setup( + 'Programming Language :: Python :: Implementation :: PyPy', + ], + test_suite='tests', +- tests_require=['pytest','hypothesis'], ++ tests_require=['pytest-runner', 'pytest','hypothesis'], + scripts=[], +- setup_requires=['pytest-runner'], + ext_modules=extensions, + cmdclass={'build_ext': custom_build_ext}, + install_requires=['six'], From 53b996a62a4d192c873084b6a604db72bd733a38 Mon Sep 17 00:00:00 2001 From: Jake Waksbaum Date: Mon, 7 Jan 2019 18:25:57 +0000 Subject: [PATCH 056/120] pythonPackages.poetry: init at 0.12.10 --- .../python-modules/poetry/default.nix | 76 +++++++++++++++++++ .../python-modules/poetry/jsonschema.nix | 37 +++++++++ pkgs/top-level/python-packages.nix | 2 + 3 files changed, 115 insertions(+) create mode 100644 pkgs/development/python-modules/poetry/default.nix create mode 100644 pkgs/development/python-modules/poetry/jsonschema.nix diff --git a/pkgs/development/python-modules/poetry/default.nix b/pkgs/development/python-modules/poetry/default.nix new file mode 100644 index 00000000000..6f7ebc4cbc9 --- /dev/null +++ b/pkgs/development/python-modules/poetry/default.nix @@ -0,0 +1,76 @@ +{ lib, buildPythonPackage, fetchPypi, callPackage +, isPy27, isPy34 +, cleo +, requests +, cachy +, requests-toolbelt +, pyrsistent +, pyparsing +, cachecontrol +, pkginfo +, html5lib +, shellingham +, tomlkit +, typing +, pathlib2 +, virtualenv +, functools32 +, pytest +}: + +let + cleo6 = cleo.overrideAttrs (oldAttrs: rec { + version = "0.6.8"; + src = fetchPypi { + inherit (oldAttrs) pname; + inherit version; + sha256 = "06zp695hq835rkaq6irr1ds1dp2qfzyf32v60vxpd8rcnxv319l5"; + }; + }); + + jsonschema3 = callPackage ./jsonschema.nix { }; + +in buildPythonPackage rec { + pname = "poetry"; + version = "0.12.10"; + + src = fetchPypi { + inherit pname version; + sha256 = "00npb0jlimnk4r01zkhfmns4843j1hfhd388s326da5pd8n0dq7l"; + }; + + postPatch = '' + substituteInPlace pyproject.toml --replace "3.0a3" "3.0.0a3" + substituteInPlace setup.py --replace "3.0a3" "3.0.0a3" + ''; + + propagatedBuildInputs = [ + cleo6 + requests + cachy + requests-toolbelt + jsonschema3 + pyrsistent + pyparsing + cachecontrol + pkginfo + html5lib + shellingham + tomlkit + ] ++ lib.optionals (isPy27 || isPy34) [ typing pathlib2 ] + ++ lib.optionals isPy27 [ virtualenv functools32 ]; + + # No tests in Pypi tarball + doCheck = false; + checkInputs = [ pytest ]; + checkPhase = '' + pytest tests + ''; + + meta = with lib; { + homepage = https://github.com/sdispater/poetry; + description = "Python dependency management and packaging made easy"; + license = licenses.mit; + maintainers = with maintainers; [ jakewaksbaum ]; + }; +} diff --git a/pkgs/development/python-modules/poetry/jsonschema.nix b/pkgs/development/python-modules/poetry/jsonschema.nix new file mode 100644 index 00000000000..9f7cf34b941 --- /dev/null +++ b/pkgs/development/python-modules/poetry/jsonschema.nix @@ -0,0 +1,37 @@ +{ lib, buildPythonPackage, fetchPypi, isPy27, callPackage +, attrs +, pyrsistent +, six +, functools32 +, lockfile +, setuptools_scm +}: + +buildPythonPackage rec { + pname = "jsonschema"; + version = "3.0.0a3"; + + src = fetchPypi { + inherit pname version; + sha256 = "0pkhsq91rhk6384p0jxjkhc9yml2ya2l0mysyq78sb4981h45n6z"; + }; + + nativeBuildInputs = [ setuptools_scm ]; + propagatedBuildInputs = [ + attrs + pyrsistent + six + lockfile + ] ++ lib.optional isPy27 functools32; + + # tests for latest version rely on custom version of betterpaths that is + # difficult to deal with and isn't used on master + doCheck = false; + + meta = with lib; { + homepage = https://github.com/Julian/jsonschema; + description = "An implementation of JSON Schema validation for Python"; + license = licenses.mit; + maintainers = with maintainers; [ jakewaksbaum ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5bab0ace12b..6e846e1f308 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -512,6 +512,8 @@ in { plantuml = callPackage ../tools/misc/plantuml { }; + poetry = callPackage ../development/python-modules/poetry { }; + progress = callPackage ../development/python-modules/progress { }; pymysql = callPackage ../development/python-modules/pymysql { }; From 7ca9db080b364f0b024c11c2b4c93fe9530c25ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 10 Jan 2019 18:03:55 +0100 Subject: [PATCH 057/120] python.pkgs.fido2: run tests --- pkgs/development/python-modules/fido2/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/fido2/default.nix b/pkgs/development/python-modules/fido2/default.nix index 26cb12db721..96ba82f6d98 100644 --- a/pkgs/development/python-modules/fido2/default.nix +++ b/pkgs/development/python-modules/fido2/default.nix @@ -1,4 +1,7 @@ -{ lib, buildPythonPackage, fetchPypi, six, cryptography }: +{ lib, buildPythonPackage, fetchPypi +, six, cryptography +, mock, pyfakefs +}: buildPythonPackage rec { pname = "fido2"; @@ -9,12 +12,10 @@ buildPythonPackage rec { sha256 = "1pl8d2pr6jzqj4y9qiaddhjgnl92kikjxy0bgzm2jshkzzic8mp3"; }; - # The pypi package does not include tests - # Check https://github.com/Yubico/python-fido2/pull/8 - doCheck = false; - propagatedBuildInputs = [ six cryptography ]; + checkInputs = [ mock pyfakefs ]; + meta = with lib; { description = "Provides library functionality for FIDO 2.0, including communication with a device over USB."; homepage = https://github.com/Yubico/python-fido2; From 28ba2d3379ebbc6db13993e7e012be6381cfdf66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 10 Jan 2019 18:20:15 +0100 Subject: [PATCH 058/120] qmediathekview: 2017-04-16 -> 2019-01-06 --- pkgs/applications/video/qmediathekview/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/video/qmediathekview/default.nix b/pkgs/applications/video/qmediathekview/default.nix index 13f93800f6e..16006668846 100644 --- a/pkgs/applications/video/qmediathekview/default.nix +++ b/pkgs/applications/video/qmediathekview/default.nix @@ -2,14 +2,13 @@ stdenv.mkDerivation rec { pname = "QMediathekView"; - version = "2017-04-16"; - name = "${pname}-${version}"; + version = "2019-01-06"; src = fetchFromGitHub { owner = "adamreichold"; repo = pname; - rev = "8c69892b95bf6825bd06a8c594168a98fe7cb2d1"; - sha256 = "1wca1w4iywd3hmiwcqx6fv79p3x5n1cgbw2liw3hs24ch3z54ckm"; + rev = "e098aaec552ec4e367078bf19953a08067316b4b"; + sha256 = "0i9hac9alaajbra3lx23m0iiq6ww4is00lpbzg5x70agjrwj0nd6"; }; postPatch = '' From 5d4f0de6891df5d211481bc9d3322aa675d615ed Mon Sep 17 00:00:00 2001 From: Herwig Hochleitner Date: Wed, 24 Oct 2018 22:18:27 +0200 Subject: [PATCH 059/120] mps: 1.116.0 -> 1.117.0 --- pkgs/development/libraries/mps/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/mps/default.nix b/pkgs/development/libraries/mps/default.nix index aac9dc7f727..1430a3dfca1 100644 --- a/pkgs/development/libraries/mps/default.nix +++ b/pkgs/development/libraries/mps/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "mps-${version}"; - version = "1.116.0"; + version = "1.117.0"; src = fetchurl { url = "https://www.ravenbrook.com/project/mps/release/${version}/mps-kit-${version}.tar.gz"; - sha256 = "1k7vnanpgawnj84x2xs6md57pfib9p7c3acngqzkl3c2aqw8qay0"; + sha256 = "04ix4l7lk6nxxk9sawpnxbybvqb82lks5606ym10bc1qbc2kqdcz"; }; nativeBuildInputs = [ autoreconfHook ]; @@ -15,6 +15,7 @@ stdenv.mkDerivation rec { # needed for 1.116.0 to build with gcc7 NIX_CFLAGS_COMPILE = [ "-Wno-implicit-fallthrough" + "-Wno-error=clobbered" ]; From 68a6b47b8cdbcef4cab3a1f5fae7667a792c27eb Mon Sep 17 00:00:00 2001 From: danbst Date: Thu, 10 Jan 2019 15:08:50 +0200 Subject: [PATCH 060/120] lib: add shortcuts for fake hashes (fakeSha256, fakeSha512) Fake hashes can be used as placeholders for all the places, where Nix expression requires a hash, but we don't yet have one. This should be more convenient than following: - echo|sha256sum, copy into clipboard, go to editor, paste into previously edited place - search nixpkgs for a random package, copy it's hash to cliboard, go to editor, paste into previously edited place Nix can add support for these fake hashes. In that case printed error should contain only 1 hash, so no more problem "which of two hashes from error should I use?" Idea by irc:Synthetica --- lib/default.nix | 1 + lib/deprecated.nix | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib/default.nix b/lib/default.nix index 916f6e05190..7e0311f6d1f 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -132,6 +132,7 @@ let mergeAttrsWithFunc mergeAttrsConcatenateValues mergeAttrsNoOverride mergeAttrByFunc mergeAttrsByFuncDefaults mergeAttrsByFuncDefaultsClean mergeAttrBy + fakeSha256 fakeSha512 nixType imap; }); in lib diff --git a/lib/deprecated.nix b/lib/deprecated.nix index 5a3a97c476d..15de5045661 100644 --- a/lib/deprecated.nix +++ b/lib/deprecated.nix @@ -270,4 +270,8 @@ rec { starting at zero. */ imap = imap1; + + # Fake hashes. Can be used as hash placeholders, when computing hash ahead isn't trivial + fakeSha256 = "0000000000000000000000000000000000000000000000000000000000000000"; + fakeSha512 = "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"; } From 7e3140688664fb8d83c802673c36075c1d1d8db1 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Fri, 4 Jan 2019 18:05:03 +0100 Subject: [PATCH 061/120] bazel: greatly reduce time spent substituting, be smart which files Files inspected: 2756 -> 40 Total size of inspected files: 20M -> 1016K --- pkgs/development/tools/build-managers/bazel/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/build-managers/bazel/default.nix b/pkgs/development/tools/build-managers/bazel/default.nix index 9aff59f3497..e91c8e7f962 100644 --- a/pkgs/development/tools/build-managers/bazel/default.nix +++ b/pkgs/development/tools/build-managers/bazel/default.nix @@ -116,7 +116,10 @@ stdenv.mkDerivation rec { done ''; genericPatches = '' - find src/main/java/com/google/devtools -type f -print0 | while IFS="" read -r -d "" path; do + # substituteInPlace is rather slow, so prefilter the files with grep + grep -rlZ /bin src/main/java/com/google/devtools | while IFS="" read -r -d "" path; do + # If you add more replacements here, you must change the grep above! + # Only files containing /bin are taken into account. substituteInPlace "$path" \ --replace /bin/bash ${customBash}/bin/bash \ --replace /usr/bin/env ${coreutils}/bin/env \ From 9e9fec640edab8b92e84b6dfd8ea01c585715cea Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 4 Jan 2019 18:06:39 +0100 Subject: [PATCH 062/120] bazel: 0.20.0 -> 0.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 0.21 removed the bundled openjdk-distribution. Instead, tries to fetch the “right” distribution on-the-fly when building. So we need to provide our own openjdk. According to https://github.com/bazelbuild/bazel/issues/6865#issuecomment-447261288 we should set `--host_javabase="@local_jdk//:jdk` if we want to do that. This uses the jdk that is currently in the environment, which is openjdk 8 in our case. 0.21 defaulted to a toolchain for JDK9, which we don’t package in nixpkgs, so we use the JDK8 toolchain. This commit also replaces the line-number-based sed invocations with something more stable. --- .../tools/build-managers/bazel/default.nix | 48 +++++++++++++------ 1 file changed, 33 insertions(+), 15 deletions(-) diff --git a/pkgs/development/tools/build-managers/bazel/default.nix b/pkgs/development/tools/build-managers/bazel/default.nix index e91c8e7f962..510ad3956b6 100644 --- a/pkgs/development/tools/build-managers/bazel/default.nix +++ b/pkgs/development/tools/build-managers/bazel/default.nix @@ -13,8 +13,8 @@ let srcDeps = lib.singleton ( fetchurl { - url = "https://github.com/google/desugar_jdk_libs/archive/fd937f4180c1b557805219af4482f1a27eb0ff2b.zip"; - sha256 = "04hs399340xfwcdajbbcpywnb2syp6z5ydwg966if3hqdb2zrf23"; + url = "https://github.com/google/desugar_jdk_libs/archive/915f566d1dc23bc5a8975320cd2ff71be108eb9c.zip"; + sha256 = "0b926df7yxyyyiwm9cmdijy6kplf0sghm23sf163zh8wrk87wfi7"; } ); @@ -23,12 +23,12 @@ let for i in ${builtins.toString srcDeps}; do cp $i $out/$(stripHash $i); done ''; - defaultShellPath = lib.makeBinPath [ bash coreutils findutils gnugrep gnused which ]; + defaultShellPath = lib.makeBinPath [ bash coreutils findutils gnugrep gnused which unzip ]; in stdenv.mkDerivation rec { - version = "0.20.0"; + version = "0.21.0"; meta = with lib; { homepage = "https://github.com/bazelbuild/bazel/"; @@ -42,7 +42,7 @@ stdenv.mkDerivation rec { src = fetchurl { url = "https://github.com/bazelbuild/bazel/releases/download/${version}/bazel-${version}-dist.zip"; - sha256 = "1g9hglly5199gcw929fzc5f0d0dwlharkh387h58p1fq9ylayi8r"; + sha256 = "1d3x0f1hzaiqq00pd65bks7v8kbv57m13jsing7y0y9id0g87jvc"; }; sourceRoot = "."; @@ -78,6 +78,7 @@ stdenv.mkDerivation rec { ''; postPatch = let + darwinPatches = '' # Disable Bazel's Xcode toolchain detection which would configure compilers # and linkers from Xcode instead of from PATH @@ -115,6 +116,7 @@ stdenv.mkDerivation rec { sed -i -e "s,/usr/bin/install_name_tool,${cctools}/bin/install_name_tool,g" $wrapper done ''; + genericPatches = '' # substituteInPlace is rather slow, so prefilter the files with grep grep -rlZ /bin src/main/java/com/google/devtools | while IFS="" read -r -d "" path; do @@ -125,20 +127,34 @@ stdenv.mkDerivation rec { --replace /usr/bin/env ${coreutils}/bin/env \ --replace /bin/true ${coreutils}/bin/true done + # Fixup scripts that generate scripts. Not fixed up by patchShebangs below. substituteInPlace scripts/bootstrap/compile.sh \ --replace /bin/sh ${customBash}/bin/bash - echo "build --experimental_distdir=${distDir}" >> .bazelrc - echo "fetch --experimental_distdir=${distDir}" >> .bazelrc - echo "build --copt=\"$(echo $NIX_CFLAGS_COMPILE | sed -e 's/ /" --copt=\"/g')\"" >> .bazelrc - echo "build --host_copt=\"$(echo $NIX_CFLAGS_COMPILE | sed -e 's/ /" --host_copt=\"/g')\"" >> .bazelrc - echo "build --linkopt=\"-Wl,$(echo $NIX_LDFLAGS | sed -e 's/ /" --linkopt=\"-Wl,/g')\"" >> .bazelrc - echo "build --host_linkopt=\"-Wl,$(echo $NIX_LDFLAGS | sed -e 's/ /" --host_linkopt=\"-Wl,/g')\"" >> .bazelrc - sed -i -e "420 a --copt=\"$(echo $NIX_CFLAGS_COMPILE | sed -e 's/ /" --copt=\"/g')\" \\\\" scripts/bootstrap/compile.sh - sed -i -e "420 a --host_copt=\"$(echo $NIX_CFLAGS_COMPILE | sed -e 's/ /" --host_copt=\"/g')\" \\\\" scripts/bootstrap/compile.sh - sed -i -e "420 a --linkopt=\"-Wl,$(echo $NIX_LDFLAGS | sed -e 's/ /" --linkopt=\"-Wl,/g')\" \\\\" scripts/bootstrap/compile.sh - sed -i -e "420 a --host_linkopt=\"-Wl,$(echo $NIX_LDFLAGS | sed -e 's/ /" --host_linkopt=\"-Wl,/g')\" \\\\" scripts/bootstrap/compile.sh + # We only build with JDK8 for now, since JDK11 does not compile bazel + substituteInPlace tools/jdk/default_java_toolchain.bzl \ + --replace '"jvm_opts": JDK9_JVM_OPTS' \ + '"jvm_opts": JDK8_JVM_OPTS' + + # add nix environment vars to .bazelrc + cat >> .bazelrc < Date: Thu, 10 Jan 2019 19:41:38 +0100 Subject: [PATCH 063/120] ubridge: init at 0.9.14 --- pkgs/tools/networking/ubridge/default.nix | 40 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 pkgs/tools/networking/ubridge/default.nix diff --git a/pkgs/tools/networking/ubridge/default.nix b/pkgs/tools/networking/ubridge/default.nix new file mode 100644 index 00000000000..91ab22a3c5a --- /dev/null +++ b/pkgs/tools/networking/ubridge/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchFromGitHub +, libpcap +}: + +stdenv.mkDerivation rec { + name = "ubridge-${version}"; + version = "0.9.14"; + + src = fetchFromGitHub { + owner = "GNS3"; + repo = "ubridge"; + rev = "v${version}"; + sha256 = "1m3j9jfj8fm0532jhaagqgsyr241j6z9wn8lgrl7q3973rhiahfs"; + }; + + postPatch = '' + substituteInPlace Makefile \ + --replace "/usr/local/bin" "$out/bin" \ + --replace "setcap" "#setcap" + ''; + + buildInputs = [ libpcap ]; + + preInstall = '' + mkdir -p $out/bin + ''; + + meta = with stdenv.lib; { + description = "Bridge for UDP tunnels, Ethernet, TAP, and VMnet interfaces"; + longDescription = '' + uBridge is a simple application to create user-land bridges between + various technologies. Currently bridging between UDP tunnels, Ethernet + and TAP interfaces is supported. Packet capture is also supported. + ''; + inherit (src.meta) homepage; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ primeos ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8adf17f8e4d..8519eda71dd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5911,6 +5911,8 @@ in ua = callPackage ../tools/networking/ua { }; + ubridge = callPackage ../tools/networking/ubridge { }; + ucl = callPackage ../development/libraries/ucl { }; ucspi-tcp = callPackage ../tools/networking/ucspi-tcp { }; From a083a56c151a35b600244476ed5710a06a45f997 Mon Sep 17 00:00:00 2001 From: Vladyslav Mykhailichenko Date: Thu, 10 Jan 2019 20:53:17 +0200 Subject: [PATCH 064/120] hexyl: 0.3.0 -> 0.3.1 --- pkgs/tools/misc/hexyl/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/misc/hexyl/default.nix b/pkgs/tools/misc/hexyl/default.nix index 6787549e053..27dfdae3281 100644 --- a/pkgs/tools/misc/hexyl/default.nix +++ b/pkgs/tools/misc/hexyl/default.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { name = "hexyl-${version}"; - version = "0.3.0"; + version = "0.3.1"; src = fetchFromGitHub { owner = "sharkdp"; repo = "hexyl"; rev = "v${version}"; - sha256 = "138w6czi62dpw6gcd3yqpk7lns7m89kwbgm1d1i5lnzsqck3wb4s"; + sha256 = "1q4klph45a7zjzwajrccb51yc3k1p16mjlnqislpm43h653f728q"; }; - cargoSha256 = "01m8n7yl3yqr8kj0dl1wfaz724da17hs3sb1fbncv64l6qpvdka1"; + cargoSha256 = "17mp6amib58akh175qprqsz3qkffgdacfm3dhkbysiqmw5m2p2p7"; meta = with stdenv.lib; { description = "A command-line hex viewer"; @@ -23,7 +23,7 @@ rustPlatform.buildRustPackage rec { ''; homepage = https://github.com/sharkdp/hexyl; license = with licenses; [ asl20 /* or */ mit ]; - maintainers = []; + maintainers = with maintainers; [ dywedir ]; platforms = platforms.linux ++ platforms.darwin; }; } From 539d62be3aa24d20d266187b8cbe59aaf74244cc Mon Sep 17 00:00:00 2001 From: Elmar Athmer Date: Tue, 8 Jan 2019 18:35:12 +0100 Subject: [PATCH 065/120] hcloud: 1.9.1 -> 1.11.0 --- pkgs/development/tools/hcloud/default.nix | 4 ++-- pkgs/development/tools/hcloud/deps.nix | 24 +++++++++++------------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/pkgs/development/tools/hcloud/default.nix b/pkgs/development/tools/hcloud/default.nix index 527737855bd..fd05e12b4d5 100644 --- a/pkgs/development/tools/hcloud/default.nix +++ b/pkgs/development/tools/hcloud/default.nix @@ -2,7 +2,7 @@ buildGoPackage rec { name = "hcloud-${version}"; - version = "1.9.1"; + version = "1.11.0"; goPackagePath = "github.com/hetznercloud/cli"; @@ -10,7 +10,7 @@ buildGoPackage rec { owner = "hetznercloud"; repo = "cli"; rev = "v${version}"; - sha256 = "0qc4mzjd1q3xv1j0dxv5qvk443bdhh5hlbv3i3444v36wycj3171"; + sha256 = "0iknw14728l2mynrvb3fiqm7y893ppp22gbb3mppi6iy3as94f1f"; }; goDeps = ./deps.nix; diff --git a/pkgs/development/tools/hcloud/deps.nix b/pkgs/development/tools/hcloud/deps.nix index 66612d54daf..b0b54470128 100644 --- a/pkgs/development/tools/hcloud/deps.nix +++ b/pkgs/development/tools/hcloud/deps.nix @@ -41,8 +41,8 @@ fetch = { type = "git"; url = "https://github.com/hetznercloud/hcloud-go"; - rev = "eaf050e4f37028d2ca5f99a2fb38ead2c9b293d3"; - sha256 = "0ki4vk02da4dj6prx3gz8cvrfkj6xb72sjkwqcrbdp4n4klasngi"; + rev = "ecee721a51a772254d0104bf4d796358e40d6bbd"; + sha256 = "0bwym7f8am14yfh584p28d8lnj4f9mhqi05l1mlrl315xn0c78v3"; }; } { @@ -50,8 +50,8 @@ fetch = { type = "git"; url = "https://github.com/pelletier/go-toml"; - rev = "81a861c69d25a841d0c4394f0e6f84bc8c5afae0"; - sha256 = "1sk301rm7rm5hfcx7z7vgask5i80wx3mhyxjr3xnm5q1rvdj6vsl"; + rev = "27c6b39a135b7dc87a14afb068809132fb7a9a8f"; + sha256 = "13ldxh43xf4prmcrjzriz3gxpnijpqlzrgyhh7bnkj7lkhryfpk9"; }; } { @@ -59,8 +59,8 @@ fetch = { type = "git"; url = "https://github.com/spf13/cobra"; - rev = "8d114be902bc9f08717804830a55c48378108a28"; - sha256 = "1ipmdjwqxyvj6cv33xm1m4ngyx49jsnp8n9jd8fjbkng8aw3q4al"; + rev = "d2d81d9a96e23f0255397222bb0b4e3165e492dc"; + sha256 = "14nhpiyhz2lm468y5sm1vyxks5aky12kmbhmqq319s92lkm494cy"; }; } { @@ -68,8 +68,8 @@ fetch = { type = "git"; url = "https://github.com/spf13/pflag"; - rev = "298182f68c66c05229eb03ac171abe6e309ee79a"; - sha256 = "1cj3cjm7d3zk0mf1xdybh0jywkbbw7a6yr3y22x9sis31scprswd"; + rev = "24fa6976df40757dce6aea913e7b81ade90530e1"; + sha256 = "0rf6prz6gl0l1b3wijzdgq887cdwigvzxvz6gqbm5l8pkq3fx1m9"; }; } { @@ -86,8 +86,8 @@ fetch = { type = "git"; url = "https://go.googlesource.com/crypto"; - rev = "0c41d7ab0a0ee717d4590a44bcb987dfd9e183eb"; - sha256 = "1mff9l49dffsak7vxg3dzxlzkgm5nqfksh9cbsjpmngpc5pk0fbc"; + rev = "ff983b9c42bc9fbf91556e191cc8efb585c16908"; + sha256 = "1hpr06kzn8jnn3gvzp0p9zn4fz4l9h69f7x66idx142w4xdlaanz"; }; } { @@ -95,8 +95,8 @@ fetch = { type = "git"; url = "https://go.googlesource.com/sys"; - rev = "fa43e7bc11baaae89f3f902b2b4d832b68234844"; - sha256 = "1z96xhgw930jpd53g1sy9x6wiijgz751czbvr2zzgc55y0md1mfw"; + rev = "7fbe1cd0fcc20051e1fcb87fbabec4a1bacaaeba"; + sha256 = "0y49s4kazign9nsw2x3h39cgs14lqi57m4hrka26w49z8a1xdyc6"; }; } ] From 0be693a8dfe1fc367d24706a3e145bb54e809c2d Mon Sep 17 00:00:00 2001 From: Notkea Date: Thu, 10 Jan 2019 20:22:01 +0100 Subject: [PATCH 066/120] matrix-synapse: 0.34.0 -> 0.34.0.1 (CVE-2019-5885) --- pkgs/servers/matrix-synapse/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/matrix-synapse/default.nix b/pkgs/servers/matrix-synapse/default.nix index 5db09284874..85794d2b6ee 100644 --- a/pkgs/servers/matrix-synapse/default.nix +++ b/pkgs/servers/matrix-synapse/default.nix @@ -37,11 +37,11 @@ let in buildPythonApplication rec { pname = "matrix-synapse"; - version = "0.34.0"; + version = "0.34.0.1"; src = fetchPypi { inherit pname version; - sha256 = "1bqwivzfx3kikzjmn4mng829ll8y62pd08hvsx99arr7cyzp6gri"; + sha256 = "00mj8gb8yx43frzni7xqxr52xix0vizydbmcnhjb6mnr5w6jafb7"; }; patches = [ From 74a64a8a616a613cf8918954091cbaa2bfdc75ed Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Thu, 10 Jan 2019 18:03:40 +0100 Subject: [PATCH 067/120] systemd: 239 -> 239.20190110 Fixes CVE-2018-16864 & CVE-2018-16865 (journald stack clash). Fixes #53755. Also updates the debian patches to fix CVE-2018-15686. Fixes #52250. --- pkgs/os-specific/linux/systemd/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index 1d45109ac85..d4623ccd633 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -18,7 +18,7 @@ let pythonLxmlEnv = buildPackages.python3Packages.python.withPackages ( ps: with ps; [ python3Packages.lxml ]); in stdenv.mkDerivation rec { - version = "239"; + version = "239.20190110"; name = "systemd-${version}"; # When updating, use https://github.com/systemd/systemd-stable tree, not the development one! @@ -26,8 +26,8 @@ in stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "NixOS"; repo = "systemd"; - rev = "31859ddd35fc3fa82a583744caa836d356c31d7f"; - sha256 = "1xci0491j95vdjgs397n618zii3sgwnvanirkblqqw6bcvcjvir1"; + rev = "nixos-v${version}"; + sha256 = "1m9mhv7b4kfa43z79106gpgxx51zlhvvfjrlmimdsvsiw72nzldj"; }; prePatch = let @@ -37,8 +37,8 @@ in stdenv.mkDerivation rec { # When the URL disappears, it typically means that Debian has new patches # (probably security) and updating to new tarball will apply them as well. name = "systemd-debian-patches.tar.xz"; - url = mirror://debian/pool/main/s/systemd/systemd_239-11~bpo9+1.debian.tar.xz; - sha256 = "136f6p4jbi4z94mf4g099dfcacwka8jwhza0wxxw2q5l5q3xiysh"; + url = mirror://debian/pool/main/s/systemd/systemd_239-12~bpo9+1.debian.tar.xz; + sha256 = "0v9f62gyfiw5icdrdlcvjcipsqrsm49w6n8bqp9nb8s2ih6rsfhg"; }; # Note that we skip debian-specific patches, i.e. ./debian/patches/debian/* in '' From 22043d4614a704060a63d79314c9bf32cac6c82b Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Thu, 10 Jan 2019 14:47:02 +0100 Subject: [PATCH 068/120] pythonPackages.scapy: 2.4.1 -> 2.4.2 --- pkgs/development/python-modules/scapy/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/scapy/default.nix b/pkgs/development/python-modules/scapy/default.nix index 29dd4638b23..18dd6e58f5c 100644 --- a/pkgs/development/python-modules/scapy/default.nix +++ b/pkgs/development/python-modules/scapy/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "scapy"; - version = "2.4.1"; + version = "2.4.2"; disabled = isPyPy; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "secdev"; repo = "scapy"; rev = "v${version}"; - sha256 = "1k5hfhgq87b99x854s50ffyzh6jqv263n1lnr4y3pm6as9r7iff5"; + sha256 = "03xzjklvc6y4d87k0rqpx5h112ld5nvgfldrbd8c4mx6f9mmd11n"; }; # TODO: Temporary workaround From a4fa9e8a1d48f4118f3795408bf2bd73758d7480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Thu, 10 Jan 2019 21:16:25 +0100 Subject: [PATCH 069/120] gnome3.gnome-system-log: remove, broken and obsolete (#53768) It doesn't run, and it has been supplanted by `gnome-logs`: https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/46 If it actually worked it would be fine to keep, but I don't consider it worth it to fix. --- .../gnome-3/core/gnome-system-log/default.nix | 35 ------------------- pkgs/desktops/gnome-3/default.nix | 4 +-- 2 files changed, 1 insertion(+), 38 deletions(-) delete mode 100644 pkgs/desktops/gnome-3/core/gnome-system-log/default.nix diff --git a/pkgs/desktops/gnome-3/core/gnome-system-log/default.nix b/pkgs/desktops/gnome-3/core/gnome-system-log/default.nix deleted file mode 100644 index f31fbc3d3f4..00000000000 --- a/pkgs/desktops/gnome-3/core/gnome-system-log/default.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ stdenv, intltool, fetchurl, pkgconfig -, gtk3, glib, wrapGAppsHook -, itstool, gnome3, libxml2 }: - -let - pname = "gnome-system-log"; - version = "3.9.90"; -in stdenv.mkDerivation rec { - name = "${pname}-${version}"; - - src = fetchurl { - url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz"; - sha256 = "9eeb51982d347aa7b33703031e2c1d8084201374665425cd62199649b29a5411"; - }; - - doCheck = true; - - nativeBuildInputs = [ pkgconfig intltool itstool wrapGAppsHook libxml2 ]; - buildInputs = [ gtk3 glib gnome3.gsettings-desktop-schemas gnome3.defaultIconTheme ]; - - passthru = { - updateScript = gnome3.updateScript { - packageName = pname; - attrPath = "gnome3.${pname}"; - versionPolicy = "none"; - }; - }; - - meta = with stdenv.lib; { - description = "Graphical, menu-driven viewer that you can use to view and monitor your system logs"; - maintainers = gnome3.maintainers; - license = licenses.gpl2; - platforms = platforms.linux; - }; -} diff --git a/pkgs/desktops/gnome-3/default.nix b/pkgs/desktops/gnome-3/default.nix index e79ca7c3af8..75c474faea0 100644 --- a/pkgs/desktops/gnome-3/default.nix +++ b/pkgs/desktops/gnome-3/default.nix @@ -19,7 +19,7 @@ lib.makeScope pkgs.newScope (self: with self; { optionalPackages = with gnome3; [ baobab eog epiphany evince gucharmap nautilus totem vino yelp gnome-bluetooth gnome-calculator gnome-contacts gnome-font-viewer gnome-screenshot - gnome-system-log gnome-system-monitor simple-scan + gnome-system-monitor simple-scan gnome-terminal gnome-user-docs evolution file-roller gedit gnome-clocks gnome-music gnome-tweaks gnome-photos nautilus-sendto dconf-editor vinagre gnome-weather gnome-logs @@ -126,8 +126,6 @@ lib.makeScope pkgs.newScope (self: with self; { gnome-software = callPackage ./core/gnome-software { }; - gnome-system-log = callPackage ./core/gnome-system-log { }; - gnome-system-monitor = callPackage ./core/gnome-system-monitor { }; gnome-terminal = callPackage ./core/gnome-terminal { }; From 0d028c3beecc3a0696835cee5cb6c9784ffd18b7 Mon Sep 17 00:00:00 2001 From: Timo Kaufmann Date: Thu, 10 Jan 2019 22:18:04 +0100 Subject: [PATCH 070/120] neovim-qt: add desktop file to wrapper (#53777) My recent change in #53447 caused neovim-qt to no longer be recognized as a desktop application. --- pkgs/applications/editors/neovim/qt.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/editors/neovim/qt.nix b/pkgs/applications/editors/neovim/qt.nix index d562557ae00..3004bf544c4 100644 --- a/pkgs/applications/editors/neovim/qt.nix +++ b/pkgs/applications/editors/neovim/qt.nix @@ -58,6 +58,10 @@ in '' else '' makeWrapper '${unwrapped}/bin/nvim-qt' "$out/bin/nvim-qt" \ --prefix PATH : "${neovim}/bin" + + # link .desktop file + mkdir -p "$out/share" + ln -s '${unwrapped}/share/applications' "$out/share/applications" ''; preferLocalBuild = true; From edcd1494f7b905cf6b70d62ef227efd6a91953b3 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 10 Jan 2019 22:39:43 +0100 Subject: [PATCH 071/120] nixos/nexus: increase disk size of VM test to 8GB Nexus increased their default minimum disk space requirement to 4GB: ``` com.orientechnologies.orient.core.exception.OLowDiskSpaceException: Error occurred while executing a write operation to database 'OSystem' due to limited free space on the disk (1823 MB). The database is now working in read-only mode. Please close the database (or stop OrientDB), make room on your hard drive and then reopen the database. The minimal required space is 4096 MB. Required space is now set to 4096MB (you can change it by setting parameter storage.diskCache.diskFreeSpaceLimit) . server# [ 72.560866] zqnav3mg7m6ixvdcacgj7p5ibijpibx5-unit-script-nexus-start[627]: DB name="OSystem" ``` Including the rest on the VM 8GB should be the most suitable solution. As the installer test also takes 8GB of disk size this should still be in an acceptable range. --- nixos/tests/nexus.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/nexus.nix b/nixos/tests/nexus.nix index bf49d2247bd..783c9f5c019 100644 --- a/nixos/tests/nexus.nix +++ b/nixos/tests/nexus.nix @@ -14,7 +14,7 @@ import ./make-test.nix ({ pkgs, ...} : { server = { ... }: { virtualisation.memorySize = 2047; # qemu-system-i386 has a 2047M limit - virtualisation.diskSize = 2048; + virtualisation.diskSize = 8192; services.nexus.enable = true; }; From 26f7df6b6a0e4dfd2f13036d598aece17f760e6b Mon Sep 17 00:00:00 2001 From: Christoph Neidahl Date: Thu, 10 Jan 2019 22:58:20 +0100 Subject: [PATCH 072/120] obs-studio: add new optional dependencies This commit adds a new set of optional dependencies introduced with version 21.0 of OBS to allow Lua and Python 3 scripts to be run. If this batch of new dependencies is not desired by the user, then they may set `scriptingSupport` to false to disable it. --- pkgs/applications/video/obs-studio/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/video/obs-studio/default.nix b/pkgs/applications/video/obs-studio/default.nix index c98acda9eea..579d5566f13 100644 --- a/pkgs/applications/video/obs-studio/default.nix +++ b/pkgs/applications/video/obs-studio/default.nix @@ -21,6 +21,11 @@ , vlc , mbedtls +, scriptingSupport ? true +, luajit +, swig +, python3 + , alsaSupport ? false , alsaLib , pulseaudioSupport ? false @@ -68,6 +73,7 @@ in stdenv.mkDerivation rec { makeWrapper mbedtls ] + ++ optional scriptingSupport [ luajit swig python3 ] ++ optional alsaSupport alsaLib ++ optional pulseaudioSupport libpulseaudio; From b58e41ebadab86d5a1bec0dd821af1b4b75e8dd4 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 10 Jan 2019 02:24:03 +0100 Subject: [PATCH 073/120] pythonPackages.google-i18n-address: init at 2.3.4 --- .../google-i18n-address/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/python-modules/google-i18n-address/default.nix diff --git a/pkgs/development/python-modules/google-i18n-address/default.nix b/pkgs/development/python-modules/google-i18n-address/default.nix new file mode 100644 index 00000000000..720d8695c2c --- /dev/null +++ b/pkgs/development/python-modules/google-i18n-address/default.nix @@ -0,0 +1,22 @@ +{ buildPythonPackage, fetchPypi, lib, requests, pytest, pytestcov, mock }: + +buildPythonPackage rec { + pname = "google-i18n-address"; + version = "2.3.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "0f1j1lp9bmllkzhciw0lxi7ipm8w461n0p97mz9714br0cs9glm1"; + }; + + propagatedBuildInputs = [ requests ]; + + checkInputs = [ pytest pytestcov mock ]; + + meta = with lib; { + description = "Google's i18n address data packaged for Python"; + homepage = https://pypi.org/project/google-i18n-address/; + maintainers = with maintainers; [ ma27 ]; + license = licenses.bsd3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3caecc9cbea..b32fed54f27 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2621,6 +2621,8 @@ in { google_cloud_websecurityscanner = callPackage ../development/python-modules/google_cloud_websecurityscanner { }; + google-i18n-address = callPackage ../development/python-modules/google-i18n-address { }; + google_resumable_media = callPackage ../development/python-modules/google_resumable_media { }; gpgme = toPythonModule (pkgs.gpgme.override { From 338a5c3ca755bd525c4af79e95c2a096d32d0708 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 10 Jan 2019 02:24:42 +0100 Subject: [PATCH 074/120] pythonPackages.xml2rfc: fix build Adds the missing dependencies `google-i18n-address`, `pycountry` and `html5lib` from the `pythonPackages` subtree. See also https://hydra.nixos.org/build/86535305 --- .../python-modules/xml2rfc/default.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/xml2rfc/default.nix b/pkgs/development/python-modules/xml2rfc/default.nix index ae8867b3ddd..91933c5f95e 100644 --- a/pkgs/development/python-modules/xml2rfc/default.nix +++ b/pkgs/development/python-modules/xml2rfc/default.nix @@ -1,4 +1,6 @@ -{ lib, fetchPypi, buildPythonPackage, intervaltree, pyflakes, requests, lxml }: +{ lib, fetchPypi, buildPythonPackage, intervaltree, pyflakes, requests, lxml, google-i18n-address +, pycountry, html5lib, six +}: buildPythonPackage rec { pname = "xml2rfc"; @@ -9,7 +11,20 @@ buildPythonPackage rec { sha256 = "64609a2194d18c03e2348f1ea2fb97208b3455dfb76a16900143813aa61b6d3c"; }; - propagatedBuildInputs = [ intervaltree pyflakes requests lxml ]; + propagatedBuildInputs = [ + intervaltree + pyflakes + requests + lxml + google-i18n-address + pycountry + html5lib + six + ]; + + preCheck = '' + export HOME=$(mktemp -d) + ''; meta = with lib; { description = "Tool generating IETF RFCs and drafts from XML sources"; From fc24e4237dac83efe6c6b3f4ec3482332a33ccf9 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 10 Jan 2019 02:06:41 +0100 Subject: [PATCH 075/120] python3Packages.pika-pool: fix build Loosen version constraint to allow current `pika` as well (currently 0.12). See also https://hydra.nixos.org/build/86116480 --- pkgs/development/python-modules/pika-pool/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/pika-pool/default.nix b/pkgs/development/python-modules/pika-pool/default.nix index 5cb1e9027a9..5007fc78d10 100644 --- a/pkgs/development/python-modules/pika-pool/default.nix +++ b/pkgs/development/python-modules/pika-pool/default.nix @@ -11,6 +11,10 @@ buildPythonPackage rec { sha256 = "f3985888cc2788cdbd293a68a8b5702a9c955db6f7b8b551aeac91e7f32da397"; }; + postPatch = '' + substituteInPlace setup.py --replace "pika >=0.9,<0.11" "pika" + ''; + # Tests require database connections doCheck = false; From ada7cf0c66e600f7479a7206f1677c5d5236c476 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 10 Jan 2019 02:36:09 +0100 Subject: [PATCH 076/120] bonfire: fix build The build could be fixed by loosening the constraint for `click` (which is currently at 7.0 in master). The CLI interface remains functional with v7. See also https://hydra.nixos.org/build/86455177 --- pkgs/tools/misc/bonfire/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/bonfire/default.nix b/pkgs/tools/misc/bonfire/default.nix index 9355f3e5407..b8e5e3de650 100644 --- a/pkgs/tools/misc/bonfire/default.nix +++ b/pkgs/tools/misc/bonfire/default.nix @@ -20,7 +20,8 @@ buildPythonApplication rec { # https://github.com/blue-yonder/bonfire/pull/24 substituteInPlace requirements.txt \ --replace "arrow>=0.5.4,<0.8" "arrow>=0.5.4" \ - --replace "keyring>=9,<10" "keyring>=9" + --replace "keyring>=9,<10" "keyring>=9" \ + --replace "click>=3.3,<7" "click>=3.3" # pip fails when encountering the git hash for the package version substituteInPlace setup.py \ --replace "version=version," "version='${version}'," From 642f778fb6d77c6814093b83144174170abc547e Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 10 Jan 2019 02:49:17 +0100 Subject: [PATCH 077/120] pythonPackages.pycassa: fix build Use `thrift` 0.9.3 to build. See also https://github.com/pycassa/pycassa/issues/245 --- .../python-modules/pycassa/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pycassa/default.nix b/pkgs/development/python-modules/pycassa/default.nix index 3791efc0e2e..d5b6805c2bb 100644 --- a/pkgs/development/python-modules/pycassa/default.nix +++ b/pkgs/development/python-modules/pycassa/default.nix @@ -1,5 +1,18 @@ { stdenv, buildPythonPackage, fetchPypi, thrift, isPy3k }: +let + + thrift' = thrift.overridePythonAttrs (old: rec { + version = "0.9.3"; + src= fetchPypi { + inherit (old) pname; + inherit version; + sha256 = "0zl7cgckqy9j5vq8wyfzw82q1blkdpsblnmhv8c6ffcxs4xkvg6z"; + }; + }); + +in + buildPythonPackage rec { pname = "pycassa"; version = "1.11.2"; @@ -15,7 +28,7 @@ buildPythonPackage rec { # running doCheck = false; - propagatedBuildInputs = [ thrift ]; + propagatedBuildInputs = [ thrift' ]; meta = { description = "A python client library for Apache Cassandra"; From 8336ccaa44d961e5fc3ee2e385f00a4f7891e46c Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Mon, 7 Jan 2019 13:16:29 +0800 Subject: [PATCH 078/120] omping: init at 0.0.5 --- .../networking/omping/default.nix | 35 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/applications/networking/omping/default.nix diff --git a/pkgs/applications/networking/omping/default.nix b/pkgs/applications/networking/omping/default.nix new file mode 100644 index 00000000000..1e127c1b1ec --- /dev/null +++ b/pkgs/applications/networking/omping/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchFromGitHub, fetchpatch }: + +stdenv.mkDerivation rec { + name = "omping-${version}"; + version = "0.0.5"; + + src = fetchFromGitHub { + owner = "troglobit"; + repo = "omping"; + rev = version; + sha256 = "1f0vsbnhxp7bbgdnfqshryx3nhz2sqdnxdj068s0nmzsh53ckbf7"; + }; + + patches = [ + # This can go in 0.0.6+ + (fetchpatch { + url = "https://github.com/troglobit/omping/commit/08a31ec1a6eb4e8f88c301ef679c3b6f9893f333.patch"; + sha256 = "1xafyvd46bq53w2zvjw8bdw7vjqbrcrr21cyh6d0zfcn4gif1k0f"; + name = "fix_manpage_install.patch"; + }) + ]; + + makeFlags = [ + "PREFIX=${placeholder "out"}" + ]; + + enableParallelBuilding = true; + + meta = with stdenv.lib; { + description = "Open Multicast Ping (omping) is a tool for testing IPv4/IPv6 multicast connectivity on a LAN."; + license = licenses.mit; + platforms = platforms.unix; + inherit (src.meta) homepage; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1d4b5583742..c7817211a85 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4580,6 +4580,8 @@ in ola = callPackage ../applications/misc/ola { }; + omping = callPackage ../applications/networking/omping { }; + onioncircuits = callPackage ../tools/security/onioncircuits { inherit (gnome3) defaultIconTheme; }; From d34f2b9b965edce702ec1f1e0cec8b3482cd87f4 Mon Sep 17 00:00:00 2001 From: tbenst Date: Thu, 10 Jan 2019 15:28:28 -0800 Subject: [PATCH 079/120] bftools: init at 5.9.2 (#53769) --- maintainers/maintainer-list.nix | 5 +++ .../science/biology/bftools/default.nix | 41 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 3 files changed, 48 insertions(+) create mode 100644 pkgs/applications/science/biology/bftools/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 9fc60c60b9c..b93eba0e8ff 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4361,6 +4361,11 @@ github = "tazjin"; name = "Vincent Ambo"; }; + tbenst = { + email = "nix@tylerbenster.com"; + github = "tbenst"; + name = "Tyler Benster"; + }; teh = { email = "tehunger@gmail.com"; github = "teh"; diff --git a/pkgs/applications/science/biology/bftools/default.nix b/pkgs/applications/science/biology/bftools/default.nix new file mode 100644 index 00000000000..24a6e052df9 --- /dev/null +++ b/pkgs/applications/science/biology/bftools/default.nix @@ -0,0 +1,41 @@ +{ stdenv, lib, makeWrapper, fetchzip, jre }: + +stdenv.mkDerivation rec { + name = "bftools-${version}"; + version = "5.9.2"; + + src = fetchzip { + url = "http://downloads.openmicroscopy.org/bio-formats/${version}/artifacts/bftools.zip"; + sha256 = "08lmbg3kfxh17q6548il0i2h3f9a6ch8r0r067p14dajhzfpjyqj"; + }; + + installPhase = '' + find . -maxdepth 1 -perm -111 -type f -not -name "*.sh" \ + -exec install -vD {} "$out"/bin/{} \; + + mkdir $out/libexec + mkdir -p $out/share/java + + cp ./*.sh $out/libexec + cp ./*.jar $out/share/java + + for file in $out/bin/*; do + substituteInPlace $file --replace "\$BF_DIR" $out/libexec + done + substituteInPlace $out/libexec/bf.sh --replace "\$BF_JAR_DIR" $out/share/java + ''; + + postFixup = '' + wrapProgram $out/libexec/bf.sh --prefix PATH : "${lib.makeBinPath [ jre ]}" + ''; + + nativeBuildInputs = [ makeWrapper ]; + + meta = with stdenv.lib; { + description = "A bundle of scripts for using Bio-Formats on the command line with bioformats_package.jar already included"; + license = licenses.gpl2; + platforms = platforms.all; + homepage = https://www.openmicroscopy.org/bio-formats/; + maintainers = [ maintainers.tbenst ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c7817211a85..29f8a70204d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21428,6 +21428,8 @@ in bcftools = callPackage ../applications/science/biology/bcftools { }; + bftools = callPackage ../applications/science/biology/bftools { }; + conglomerate = callPackage ../applications/science/biology/conglomerate { }; dcm2niix = callPackage ../applications/science/biology/dcm2niix { }; From 9e96bfb27cc5f4d1bf5fa32dbbeeffff4828c813 Mon Sep 17 00:00:00 2001 From: Tim Cuthbertson Date: Fri, 11 Jan 2019 10:47:25 +1100 Subject: [PATCH 080/120] piep: 0.8.0 -> 0.9.2 (#53783) --- pkgs/development/python-modules/piep/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/piep/default.nix b/pkgs/development/python-modules/piep/default.nix index 671f631a40c..0ef44f98175 100644 --- a/pkgs/development/python-modules/piep/default.nix +++ b/pkgs/development/python-modules/piep/default.nix @@ -1,21 +1,21 @@ { stdenv , buildPythonPackage , fetchPypi +, nose , pygments -, isPy3k }: buildPythonPackage rec { - version = "0.8.0"; + version = "0.9.2"; pname = "piep"; - disabled = isPy3k; src = fetchPypi { inherit pname version; - sha256 = "1wgkg1kc28jpya5k4zvbc9jmpa60b3d5c3gwxfbp15hw6smyqirj"; + sha256 = "0b5anpsq16xkiisws95jif5s5mplkl1kdnhy0w0i6m0zcy50jnxq"; }; propagatedBuildInputs = [ pygments ]; + checkInputs = [ nose ]; meta = with stdenv.lib; { description = "Bringing the power of python to stream editing"; From 9619e6a7f6cdd78dfbfffa75a0547d43cae3e5d7 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Wed, 2 Jan 2019 19:39:57 -0500 Subject: [PATCH 081/120] pythonPackages.nipype: 1.1.5 -> 1.1.7 Fix build by dropping a patch for an issue that is already fixed. See: https://github.com/nipy/nipype/pull/2701 Also had to disable tests. See: https://github.com/nipy/nipype/issues/2839 --- .../python-modules/nipype/default.nix | 32 +++++++++++++--- .../nipype/move-uneeded-requires.patch | 31 +++++++++++++++ .../python-modules/nipype/neurdflib.nix | 38 +++++++++++++++++++ .../python-modules/nipype/prov-version.patch | 21 ---------- 4 files changed, 95 insertions(+), 27 deletions(-) create mode 100644 pkgs/development/python-modules/nipype/move-uneeded-requires.patch create mode 100644 pkgs/development/python-modules/nipype/neurdflib.nix delete mode 100644 pkgs/development/python-modules/nipype/prov-version.patch diff --git a/pkgs/development/python-modules/nipype/default.nix b/pkgs/development/python-modules/nipype/default.nix index 79f0002c35a..1978ce81637 100644 --- a/pkgs/development/python-modules/nipype/default.nix +++ b/pkgs/development/python-modules/nipype/default.nix @@ -30,21 +30,28 @@ , which , bash , glibcLocales +, callPackage }: assert !isPy3k -> configparser != null; +let + + # This is a temporary convenience package for changes waiting to be merged into the primary rdflib repo. + neurdflib = callPackage ./neurdflib.nix { }; + +in + buildPythonPackage rec { pname = "nipype"; - version = "1.1.5"; + version = "1.1.7"; src = fetchPypi { inherit pname version; - sha256 = "d49bbe531cdbf0a049f1581e4d3c63231ff5978445cb380aa6e7f8f1d256a29c"; + sha256 = "0iyi5w2h42bpssqj52ixm2kxp56yxfxdacb6xv5r24yv3hmwd4yn"; }; - # see https://github.com/nipy/nipype/issues/2240 - patches = [ ./prov-version.patch ]; + patches = [ ./move-uneeded-requires.patch ]; postPatch = '' substituteInPlace nipype/interfaces/base/tests/test_core.py \ @@ -57,6 +64,7 @@ buildPythonPackage rec { funcsigs future networkx + neurdflib nibabel numpy packaging @@ -72,12 +80,24 @@ buildPythonPackage rec { futures ]; - checkInputs = [ pytest mock pytestcov pytest_xdist pytest-forked codecov which glibcLocales ]; + checkInputs = [ + codecov + glibcLocales + mock + pytest + pytest-forked + pytest_xdist + pytestcov + which + ]; checkPhase = '' - LC_ALL="en_US.UTF-8" py.test -v --doctest-modules nipype + LC_ALL="en_US.UTF-8" pytest -v --doctest-modules nipype ''; + # See: https://github.com/nipy/nipype/issues/2839 + doCheck = false; + meta = with stdenv.lib; { homepage = http://nipy.org/nipype/; description = "Neuroimaging in Python: Pipelines and Interfaces"; diff --git a/pkgs/development/python-modules/nipype/move-uneeded-requires.patch b/pkgs/development/python-modules/nipype/move-uneeded-requires.patch new file mode 100644 index 00000000000..89324285d18 --- /dev/null +++ b/pkgs/development/python-modules/nipype/move-uneeded-requires.patch @@ -0,0 +1,31 @@ +diff --git a/nipype/info.py b/nipype/info.py +index c6503ac..4379643 100644 +--- a/nipype/info.py ++++ b/nipype/info.py +@@ -147,9 +147,6 @@ REQUIRES = [ + 'neurdflib', + 'click>=%s' % CLICK_MIN_VERSION, + 'funcsigs', +- 'pytest>=%s' % PYTEST_MIN_VERSION, +- 'pytest-xdist', +- 'mock', + 'pydotplus', + 'pydot>=%s' % PYDOT_MIN_VERSION, + 'packaging', +@@ -159,7 +156,15 @@ REQUIRES = [ + if sys.version_info <= (3, 4): + REQUIRES.append('configparser') + +-TESTS_REQUIRES = ['pytest-cov', 'codecov', 'pytest-env', 'coverage<5'] ++TESTS_REQUIRES = [ ++ 'pytest>=%s' % PYTEST_MIN_VERSION, ++ 'pytest-xdist', ++ 'mock', ++ 'pytest-cov', ++ 'codecov', ++ 'pytest-env', ++ 'coverage<5' ++] + + EXTRA_REQUIRES = { + 'doc': ['Sphinx>=1.4', 'numpydoc', 'matplotlib', 'pydotplus', 'pydot>=1.2.3'], diff --git a/pkgs/development/python-modules/nipype/neurdflib.nix b/pkgs/development/python-modules/nipype/neurdflib.nix new file mode 100644 index 00000000000..3042f715687 --- /dev/null +++ b/pkgs/development/python-modules/nipype/neurdflib.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchPypi +, isodate +, html5lib +, SPARQLWrapper +, networkx +, nose +, python +}: + +buildPythonPackage rec { + pname = "neurdflib"; + version = "5.0.0.post1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1qgmprixqxycxpjk9wjdmjykma14qqa2wcbx4nsldxi0ga7i7vv5"; + }; + + propagatedBuildInputs = [ isodate html5lib SPARQLWrapper ]; + + checkInputs = [ networkx nose ]; + + # Python 2 syntax + # Failing doctest + doCheck = false; + + checkPhase = '' + ${python.interpreter} run_tests.py + ''; + + meta = with lib; { + description = "A temporary convenience package for changes waiting to be merged into the primary rdflib repo"; + homepage = https://pypi.org/project/neurdflib; + license = licenses.bsd3; + }; +} diff --git a/pkgs/development/python-modules/nipype/prov-version.patch b/pkgs/development/python-modules/nipype/prov-version.patch deleted file mode 100644 index 133295d0560..00000000000 --- a/pkgs/development/python-modules/nipype/prov-version.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/nipype/info.py b/nipype/info.py -index 1daa382e2..da338d0ea 100644 ---- a/nipype/info.py -+++ b/nipype/info.py -@@ -108,7 +108,6 @@ DATEUTIL_MIN_VERSION = '2.2' - PYTEST_MIN_VERSION = '3.0' - FUTURE_MIN_VERSION = '0.16.0' - SIMPLEJSON_MIN_VERSION = '3.8.0' --PROV_VERSION = '1.5.0' - CLICK_MIN_VERSION = '6.6.0' - PYDOT_MIN_VERSION = '1.2.3' - -@@ -140,7 +139,7 @@ REQUIRES = [ - 'traits>=%s' % TRAITS_MIN_VERSION, - 'future>=%s' % FUTURE_MIN_VERSION, - 'simplejson>=%s' % SIMPLEJSON_MIN_VERSION, -- 'prov==%s' % PROV_VERSION, -+ 'prov<2', - 'click>=%s' % CLICK_MIN_VERSION, - 'funcsigs', - 'pytest>=%s' % PYTEST_MIN_VERSION, From 9257887fa71721a714b3c12a0753aa95b7a41e69 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Fri, 4 Jan 2019 21:15:57 -0500 Subject: [PATCH 082/120] pythonPackages.xvfbwrapper: disable tests See: https://github.com/cgoldberg/xvfbwrapper/issues/30 --- pkgs/development/python-modules/xvfbwrapper/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/xvfbwrapper/default.nix b/pkgs/development/python-modules/xvfbwrapper/default.nix index 4ba9cd61d4c..c7708d0f20b 100644 --- a/pkgs/development/python-modules/xvfbwrapper/default.nix +++ b/pkgs/development/python-modules/xvfbwrapper/default.nix @@ -15,6 +15,9 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ xorgserver ]; + # See: https://github.com/cgoldberg/xvfbwrapper/issues/30 + doCheck = false; + checkInputs = [ mock ]; meta = with stdenv.lib; { From 56bd59253e80ae2e1ad2a8fe9a99309fbac1b021 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Fri, 11 Jan 2019 03:53:34 +0100 Subject: [PATCH 083/120] openwsman: 2.6.5 -> 2.6.9, fix build with recent curl --- pkgs/development/libraries/openwsman/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/openwsman/default.nix b/pkgs/development/libraries/openwsman/default.nix index 2122a7b23f1..a986b71bc1d 100644 --- a/pkgs/development/libraries/openwsman/default.nix +++ b/pkgs/development/libraries/openwsman/default.nix @@ -3,13 +3,13 @@ stdenv.mkDerivation rec { name = "openwsman-${version}"; - version = "2.6.5"; + version = "2.6.9"; src = fetchFromGitHub { owner = "Openwsman"; repo = "openwsman"; rev = "v${version}"; - sha256 = "1r0zslgpcr4m20car4s3hsccy10xcb39qhpw3dhpjv42xsvvs5xv"; + sha256 = "19s5h551ppxmi2kljf8z58jjc6yrpczbxdrl4hh2l4jxv7iphk5i"; }; nativeBuildInputs = [ cmake pkgconfig ]; @@ -18,6 +18,8 @@ stdenv.mkDerivation rec { cmakeFlags = [ "-DCMAKE_BUILD_RUBY_GEM=no" + "-DBUILD_PYTHON=no" + "-DBUILD_PYTHON3=yes" ]; preConfigure = '' From 6ac4267ef3fac6ca0888134e1ff306aee2c1a476 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Fri, 11 Jan 2019 04:00:58 +0100 Subject: [PATCH 084/120] checkSSLCert: 1.79.0 -> 1.80.0, fix build (date impurity) --- .../servers/monitoring/nagios/plugins/check_ssl_cert.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix b/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix index 5c5750fccc8..3d811c394cf 100644 --- a/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix +++ b/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix @@ -2,15 +2,20 @@ stdenv.mkDerivation rec { name = "check_ssl_cert-${version}"; - version = "1.79.0"; + version = "1.80.0"; src = fetchFromGitHub { owner = "matteocorti"; repo = "check_ssl_cert"; rev = "v${version}"; - sha256 = "0pqk09xypa9vdxw5lbaa1j8w3mbmdwh2y1sq768rqq0izyfynf4d"; + sha256 = "1jkwii45hynil1jail9gmz4bak066rdi8zfcczicjsa6npbz50w4"; }; + postPatch = '' + substituteInPlace Makefile \ + --replace 'YEAR=`date +"%Y"`' 'YEAR=2018' + ''; + nativeBuildInputs = [ makeWrapper ]; makeFlags = [ "DESTDIR=$(out)/bin" "MANDIR=$(out)/share/man" ]; From 8f92eff7311864d5bd909e6a07f7e3be47beaeb2 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Fri, 11 Jan 2019 04:10:05 +0100 Subject: [PATCH 085/120] hoppet: fix sandboxed build --- pkgs/development/libraries/physics/hoppet/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/physics/hoppet/default.nix b/pkgs/development/libraries/physics/hoppet/default.nix index 55714afbdce..9c379f6a347 100644 --- a/pkgs/development/libraries/physics/hoppet/default.nix +++ b/pkgs/development/libraries/physics/hoppet/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, gfortran }: +{ stdenv, fetchurl, gfortran, perl }: stdenv.mkDerivation rec { name = "hoppet-${version}"; @@ -10,9 +10,14 @@ stdenv.mkDerivation rec { }; buildInputs = [ gfortran ]; + nativeBuildInputs = [ perl ]; enableParallelBuilding = true; + preConfigure = '' + patchShebangs . + ''; + meta = with stdenv.lib; { description = "Higher Order Perturbative Parton Evolution Toolkit"; license = licenses.gpl2; From 42815ce8deb5df8fefa96d5744e139b611f3e23d Mon Sep 17 00:00:00 2001 From: Andrew Childs Date: Fri, 11 Jan 2019 12:12:03 +0900 Subject: [PATCH 086/120] rubocop: 0.59.1 -> 0.62.0 --- pkgs/development/tools/rubocop/Gemfile.lock | 12 ++++----- pkgs/development/tools/rubocop/gemset.nix | 30 ++++++++++++++------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/pkgs/development/tools/rubocop/Gemfile.lock b/pkgs/development/tools/rubocop/Gemfile.lock index 9c6f2fc32d2..beee9772beb 100644 --- a/pkgs/development/tools/rubocop/Gemfile.lock +++ b/pkgs/development/tools/rubocop/Gemfile.lock @@ -2,23 +2,23 @@ GEM remote: https://rubygems.org/ specs: ast (2.4.0) - jaro_winkler (1.5.1) + jaro_winkler (1.5.2) parallel (1.12.1) - parser (2.5.1.2) + parser (2.5.3.0) ast (~> 2.4.0) powerpack (0.1.2) rainbow (3.0.0) - rake (12.3.1) - rubocop (0.59.1) + rake (12.3.2) + rubocop (0.62.0) jaro_winkler (~> 1.5.1) parallel (~> 1.10) parser (>= 2.5, != 2.5.1.1) powerpack (~> 0.1) rainbow (>= 2.2.2, < 4.0) ruby-progressbar (~> 1.7) - unicode-display_width (~> 1.0, >= 1.0.1) + unicode-display_width (~> 1.4.0) ruby-progressbar (1.10.0) - unicode-display_width (1.4.0) + unicode-display_width (1.4.1) PLATFORMS ruby diff --git a/pkgs/development/tools/rubocop/gemset.nix b/pkgs/development/tools/rubocop/gemset.nix index 862f655b49d..57146a9a15e 100644 --- a/pkgs/development/tools/rubocop/gemset.nix +++ b/pkgs/development/tools/rubocop/gemset.nix @@ -8,12 +8,14 @@ version = "2.4.0"; }; jaro_winkler = { + groups = ["default"]; + platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0rr797nqz081bfk30m2apj5h24bg5d1jr1c8p3xwx4hbwsrbclah"; + sha256 = "1zz27z88qznix4r65gd9h56gl177snlfpgv10b0s69vi8qpl909l"; type = "gem"; }; - version = "1.5.1"; + version = "1.5.2"; }; parallel = { source = { @@ -25,12 +27,14 @@ }; parser = { dependencies = ["ast"]; + groups = ["default"]; + platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1zp89zg7iypncszxsjp8kiccrpbdf728jl449g6cnfkz990fyb5k"; + sha256 = "1zjk0w1kjj3xk8ymy1430aa4gg0k8ckphfj88br6il4pm83f0n1f"; type = "gem"; }; - version = "2.5.1.2"; + version = "2.5.3.0"; }; powerpack = { source = { @@ -49,21 +53,25 @@ version = "3.0.0"; }; rake = { + groups = ["default"]; + platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg"; + sha256 = "1sy5a7nh6xjdc9yhcw31jji7ssrf9v5806hn95gbrzr998a2ydjn"; type = "gem"; }; - version = "12.3.1"; + version = "12.3.2"; }; rubocop = { dependencies = ["jaro_winkler" "parallel" "parser" "powerpack" "rainbow" "ruby-progressbar" "unicode-display_width"]; + groups = ["default"]; + platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0hz4slfisbq8nqs83mvvh6yv5hb7z7zx9fxvv9cka6b9ldvr2i2b"; + sha256 = "03narxzrpbilwbhr19qklvxhg22i8jkfar4igb1l8m73jydpxfvk"; type = "gem"; }; - version = "0.59.1"; + version = "0.62.0"; }; ruby-progressbar = { source = { @@ -74,11 +82,13 @@ version = "1.10.0"; }; unicode-display_width = { + groups = ["default"]; + platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0040bsdpcmvp8w31lqi2s9s4p4h031zv52401qidmh25cgyh4a57"; + sha256 = "0bq528fibi8s0jmxz0xzlgzggdq0x4fx46wfqz49478pv8gb2diq"; type = "gem"; }; - version = "1.4.0"; + version = "1.4.1"; }; } \ No newline at end of file From cfc281f571ae5f3e20fa5393eb5e32115d6c1eb2 Mon Sep 17 00:00:00 2001 From: Piotr Bogdan Date: Fri, 11 Jan 2019 04:36:51 +0000 Subject: [PATCH 087/120] nixos/tests/kerberos: fix evaluation --- nixos/tests/all-tests.nix | 2 +- nixos/tests/kerberos/default.nix | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 7bd7df9b177..9ee8ac2995b 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -109,7 +109,7 @@ in ipv6 = handleTest ./ipv6.nix {}; jenkins = handleTest ./jenkins.nix {}; #kafka = handleTest ./kafka.nix {}; # broken since openjdk: 8u181 -> 8u192 - kerberos = handleTest tests/kerberos/default.nix {}; + kerberos = handleTest ./kerberos/default.nix {}; kernel-latest = handleTest ./kernel-latest.nix {}; kernel-lts = handleTest ./kernel-lts.nix {}; keymap = handleTest ./keymap.nix {}; diff --git a/nixos/tests/kerberos/default.nix b/nixos/tests/kerberos/default.nix index ae8bdb8bbc8..f2f1a438918 100644 --- a/nixos/tests/kerberos/default.nix +++ b/nixos/tests/kerberos/default.nix @@ -1,5 +1,7 @@ -{ system ? builtins.currentSystem }: +{ system ? builtins.currentSystem +, pkgs ? import ../../.. { inherit system; } +}: { - mit = import ./mit.nix { inherit system; }; - heimdal = import ./heimdal.nix { inherit system; }; + mit = import ./mit.nix { inherit system pkgs; }; + heimdal = import ./heimdal.nix { inherit system pkgs; }; } From 3db072d823525069ac5e39ad41500ec861a09b5c Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Fri, 11 Jan 2019 04:11:31 +0100 Subject: [PATCH 088/120] prometheus-node-exporter: now works with recent go --- pkgs/servers/monitoring/prometheus/node-exporter.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/monitoring/prometheus/node-exporter.nix b/pkgs/servers/monitoring/prometheus/node-exporter.nix index 9714a6048e8..80ad4a32be7 100644 --- a/pkgs/servers/monitoring/prometheus/node-exporter.nix +++ b/pkgs/servers/monitoring/prometheus/node-exporter.nix @@ -1,8 +1,6 @@ -{ stdenv, buildGo19Package, fetchFromGitHub }: +{ stdenv, buildGoPackage, fetchFromGitHub }: -# Go 1.10 causes segfaults: -# https://github.com/prometheus/node_exporter/issues/870 -buildGo19Package rec { +buildGoPackage rec { name = "node_exporter-${version}"; version = "0.17.0"; rev = "v${version}"; From 9ea5b2c0527d1975f6add88d050ef1019a651e1f Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Fri, 11 Jan 2019 07:55:01 +0100 Subject: [PATCH 089/120] nginxMainline: 1.15.7 -> 1.15.8 --- pkgs/servers/http/nginx/mainline.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/http/nginx/mainline.nix b/pkgs/servers/http/nginx/mainline.nix index 8f33fa8d33b..3f4f99acbc6 100644 --- a/pkgs/servers/http/nginx/mainline.nix +++ b/pkgs/servers/http/nginx/mainline.nix @@ -1,6 +1,6 @@ { callPackage, ... }@args: callPackage ./generic.nix (args // { - version = "1.15.7"; - sha256 = "14yz5cag9jdi088kdyammpi0ixrzi91bc0nwdldj42hfdhpyl8lg"; + version = "1.15.8"; + sha256 = "11q7njr0khv8hb96bclyw5f75gvm12nw3jjgmq9rifbym2yazgd8"; }) From 9c3cb094ce164ae3b2d69a7d29c174329e1e16fe Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Thu, 29 Nov 2018 16:58:47 +0100 Subject: [PATCH 090/120] cht-sh: init at unstable-2018-11-02 --- pkgs/tools/misc/cht.sh/default.nix | 39 ++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/tools/misc/cht.sh/default.nix diff --git a/pkgs/tools/misc/cht.sh/default.nix b/pkgs/tools/misc/cht.sh/default.nix new file mode 100644 index 00000000000..837bc0e9ed7 --- /dev/null +++ b/pkgs/tools/misc/cht.sh/default.nix @@ -0,0 +1,39 @@ +{ stdenv +, fetchFromGitHub +, makeWrapper +, curl +, ncurses +, rlwrap +, xsel +}: + +stdenv.mkDerivation rec { + name = "cht.sh-${version}"; + version = "unstable-2018-11-02"; + + nativeBuildInputs = [ makeWrapper ]; + + src = fetchFromGitHub { + owner = "chubin"; + repo = "cheat.sh"; + rev = "9595805ac68b3c096f7c51fa024dcb97a7dfac44"; + sha256 = "11g8say5fksg0zg0bqrgl92rprn4lwp20g9rz1i0r38f0jy3nyrf"; + }; + + # Fix ".cht.sh-wrapped" in the help message + postPatch = "substituteInPlace share/cht.sh.txt --replace '\${0##*/}' cht.sh"; + + installPhase = '' + install -m755 -D share/cht.sh.txt "$out/bin/cht.sh" + wrapProgram "$out/bin/cht.sh" \ + --prefix PATH : "${stdenv.lib.makeBinPath [ curl rlwrap ncurses xsel ]}" + ''; + + meta = with stdenv.lib; { + description = "CLI client for cheat.sh, a community driven cheat sheet"; + license = licenses.mit; + maintainers = with maintainers; [ fgaz ]; + homepage = https://github.com/chubin/cheat.sh; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1027c62e477..0c5698f15f1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1168,6 +1168,8 @@ in cfdyndns = callPackage ../applications/networking/dyndns/cfdyndns { }; + cht-sh = callPackage ../tools/misc/cht.sh { }; + ckbcomp = callPackage ../tools/X11/ckbcomp { }; clac = callPackage ../tools/misc/clac {}; From 5ef8b40d4dd134a285b17125db89f1e0af4e55cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 30 Dec 2018 00:53:59 +0100 Subject: [PATCH 091/120] sysdig: enable 4.20 --- pkgs/os-specific/linux/sysdig/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/sysdig/default.nix b/pkgs/os-specific/linux/sysdig/default.nix index 2a614e22c9a..33f1bbdd893 100644 --- a/pkgs/os-specific/linux/sysdig/default.nix +++ b/pkgs/os-specific/linux/sysdig/default.nix @@ -57,7 +57,7 @@ stdenv.mkDerivation rec { license = with licenses; [ asl20 gpl2 mit ]; maintainers = [maintainers.raskin]; platforms = ["x86_64-linux"] ++ platforms.darwin; - broken = kernel != null && (versionOlder kernel.version "4.14" || versionAtLeast kernel.version "4.20"); + broken = kernel != null && versionOlder kernel.version "4.14"; homepage = "https://sysdig.com/opensource/"; downloadPage = "https://github.com/draios/sysdig/releases"; }; From ca1f092fe9de40c39a27338aece8cde773d16d6a Mon Sep 17 00:00:00 2001 From: Herman Fries Date: Thu, 10 Jan 2019 12:13:28 +0100 Subject: [PATCH 092/120] linuxPackages.nvidia_x11*: Add maintainer: baracoder I bought some recent nVidia hardware, so I am stuck with it for a couple of years and because of this, I have an interest in a working nVidia driver. --- maintainers/maintainer-list.nix | 5 +++++ pkgs/os-specific/linux/nvidia-x11/generic.nix | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index f72d02bcbfd..4c88458176e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -475,6 +475,11 @@ github = "bandresen"; name = "Benjamin Andresen"; }; + baracoder = { + email = "baracoder@googlemail.com"; + github = "baracoder"; + name = "Herman Fries"; + }; barrucadu = { email = "mike@barrucadu.co.uk"; github = "barrucadu"; diff --git a/pkgs/os-specific/linux/nvidia-x11/generic.nix b/pkgs/os-specific/linux/nvidia-x11/generic.nix index 906e59eb1c1..1a08a89dc23 100644 --- a/pkgs/os-specific/linux/nvidia-x11/generic.nix +++ b/pkgs/os-specific/linux/nvidia-x11/generic.nix @@ -90,7 +90,7 @@ let description = "X.org driver and kernel module for NVIDIA graphics cards"; license = licenses.unfreeRedistributable; platforms = [ "i686-linux" "x86_64-linux" ]; - maintainers = [ ]; + maintainers = with maintainers; [ baracoder ]; priority = 4; # resolves collision with xorg-server's "lib/xorg/modules/extensions/libglx.so" inherit broken; }; From 3bd38b0daa1b8c0fdadf01ae63e7ddda12fb1e74 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 11 Jan 2019 11:19:59 +0100 Subject: [PATCH 093/120] lighttpd: fix tests on Linux The tests were enabled in #53488 and succeeded on Darwin; on Linux they still failed because of empty hostname inside the sandbox (we have no UTS-namespace hostname and I think no /etc/hosts). Nix on Darwin lacks powerful enough sandboxing, so there were no problems on Darwin. Patching the tests to fallback to "127.0.0.1" if hostname of the localhost cannot be retrieved matches the behaviour of lighttpd itself and allows the tests to pass. Not sure if having no hostname in the test environment is a bit too weird for the upstream to care. --- pkgs/servers/http/lighttpd/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/servers/http/lighttpd/default.nix b/pkgs/servers/http/lighttpd/default.nix index a7e9c1447f1..db459dc81c8 100644 --- a/pkgs/servers/http/lighttpd/default.nix +++ b/pkgs/servers/http/lighttpd/default.nix @@ -24,6 +24,8 @@ stdenv.mkDerivation rec { postPatch = '' patchShebangs tests + # Linux sandbox has an empty hostname and not /etc/hosts, which fails some tests + sed -ire '/[$]self->{HOSTNAME} *=/i if(length($name)==0) { $name = "127.0.0.1" }' tests/LightyTest.pm ''; nativeBuildInputs = [ pkgconfig ]; From 0feb54c9aeb46feb68a105b828d376df80c4a62c Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 11 Jan 2019 11:46:01 +0100 Subject: [PATCH 094/120] gst_all_1.gst-editing-services: fix build --- pkgs/development/libraries/gstreamer/ges/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/gstreamer/ges/default.nix b/pkgs/development/libraries/gstreamer/ges/default.nix index 6e1f2f4a2c5..fb7a37a4f44 100644 --- a/pkgs/development/libraries/gstreamer/ges/default.nix +++ b/pkgs/development/libraries/gstreamer/ges/default.nix @@ -32,4 +32,8 @@ stdenv.mkDerivation rec { }) ./fix_pkgconfig_includedir.patch ]; + + postPatch = '' + sed -i -r -e 's/p(bad|good) = .*/p\1 = pbase/' tests/check/meson.build + ''; } From 9b17ee61b879b9223b7974d7085435124d8d6af1 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Thu, 19 Jul 2018 22:31:17 +0200 Subject: [PATCH 095/120] nvme-cli: 1.6 -> 1.7 --- pkgs/os-specific/linux/nvme-cli/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/nvme-cli/default.nix b/pkgs/os-specific/linux/nvme-cli/default.nix index b40b6125bd9..49171697ffe 100644 --- a/pkgs/os-specific/linux/nvme-cli/default.nix +++ b/pkgs/os-specific/linux/nvme-cli/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { name = "nvme-cli-${version}"; - version = "1.6"; + version = "1.7"; src = fetchFromGitHub { owner = "linux-nvme"; repo = "nvme-cli"; rev = "v${version}"; - sha256 = "0pp00yzj9c398bzd7jrjhzr7q1pk7d069dnbzyq1qqssszgcj599"; + sha256 = "1wwr31s337km3v528hvsq72j2ph17fir0j3rr622z74k68pzdh1x"; }; makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ]; From 1b9bf8fa7559d1bbf030f3fe3513d25eada65a41 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Fri, 11 Jan 2019 12:32:53 +0100 Subject: [PATCH 096/120] kernel: make the RANDSTRUCT seed deterministic --- .../os-specific/linux/kernel/manual-config.nix | 18 +++++++++++++++++- .../linux/kernel/randstruct-provide-seed.patch | 12 ++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 pkgs/os-specific/linux/kernel/randstruct-provide-seed.patch diff --git a/pkgs/os-specific/linux/kernel/manual-config.nix b/pkgs/os-specific/linux/kernel/manual-config.nix index 6adc3a33bb0..4b570c1fe94 100644 --- a/pkgs/os-specific/linux/kernel/manual-config.nix +++ b/pkgs/os-specific/linux/kernel/manual-config.nix @@ -88,7 +88,10 @@ let inherit src; - patches = map (p: p.patch) kernelPatches; + patches = + map (p: p.patch) kernelPatches + # Required for deterministic builds along with some postPatch magic. + ++ optional (stdenv.lib.versionAtLeast version "4.13") ./randstruct-provide-seed.patch; prePatch = '' for mf in $(find -name Makefile -o -name Makefile.include -o -name install.sh); do @@ -99,6 +102,19 @@ let sed -i scripts/ld-version.sh -e "s|/usr/bin/awk|${buildPackages.gawk}/bin/awk|" ''; + postPatch = '' + # Set randstruct seed to a deterministic but diversified value. Note: + # we could have instead patched gen-random-seed.sh to take input from + # the buildFlags, but that would require also patching the kernel's + # toplevel Makefile to add a variable export. This would be likely to + # cause future patch conflicts. + if [ -f scripts/gcc-plugins/gen-random-seed.sh ]; then + substituteInPlace scripts/gcc-plugins/gen-random-seed.sh \ + --replace NIXOS_RANDSTRUCT_SEED \ + $(echo ${src} ${configfile} | sha256sum | cut -d ' ' -f 1 | tr -d '\n') + fi + ''; + configurePhase = '' runHook preConfigure diff --git a/pkgs/os-specific/linux/kernel/randstruct-provide-seed.patch b/pkgs/os-specific/linux/kernel/randstruct-provide-seed.patch new file mode 100644 index 00000000000..1328b9cee3c --- /dev/null +++ b/pkgs/os-specific/linux/kernel/randstruct-provide-seed.patch @@ -0,0 +1,12 @@ +diff -ru a/scripts/gcc-plugins/gen-random-seed.sh b/scripts/gcc-plugins/gen-random-seed.sh +--- a/scripts/gcc-plugins/gen-random-seed.sh 2019-01-11 11:50:29.228258920 +0100 ++++ b/scripts/gcc-plugins/gen-random-seed.sh 2019-01-11 12:18:33.555902720 +0100 +@@ -2,7 +2,7 @@ + # SPDX-License-Identifier: GPL-2.0 + + if [ ! -f "$1" ]; then +- SEED=`od -A n -t x8 -N 32 /dev/urandom | tr -d ' \n'` ++ SEED="NIXOS_RANDSTRUCT_SEED" + echo "const char *randstruct_seed = \"$SEED\";" > "$1" + HASH=`echo -n "$SEED" | sha256sum | cut -d" " -f1 | tr -d ' \n'` + echo "#define RANDSTRUCT_HASHED_SEED \"$HASH\"" > "$2" From b26c824da3d982beb46384b9d75421b9635878d4 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Tue, 8 Jan 2019 12:15:05 +0100 Subject: [PATCH 097/120] Revert "Revert "Revert "linux-hardened: Disable GCC_PLUGIN_RANDSTRUCT""" The issue with out-of-tree modules has been addressed and the feature should now be good to re-enable again. This reverts commit 865f7a14b49786a2ed55c5ecf3e994f6a3099e8c. --- pkgs/os-specific/linux/kernel/hardened-config.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/os-specific/linux/kernel/hardened-config.nix b/pkgs/os-specific/linux/kernel/hardened-config.nix index 4fadd447654..ed540a9e751 100644 --- a/pkgs/os-specific/linux/kernel/hardened-config.nix +++ b/pkgs/os-specific/linux/kernel/hardened-config.nix @@ -125,6 +125,11 @@ ${optionalString (versionAtLeast version "4.20") '' GCC_PLUGIN_STACKLEAK y # A port of the PaX stackleak plugin ''} +${optionalString (versionAtLeast version "4.13") '' + GCC_PLUGIN_RANDSTRUCT y # A port of the PaX randstruct plugin + GCC_PLUGIN_RANDSTRUCT_PERFORMANCE y +''} + # Disable various dangerous settings ACPI_CUSTOM_METHOD n # Allows writing directly to physical memory PROC_KCORE n # Exposes kernel text image layout From 94ea1c2d831f448f4f2fd8ea94a0383b6f7cdd89 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 11 Jan 2019 12:47:06 +0100 Subject: [PATCH 098/120] nix: 2.1.3 -> 2.2 --- nixos/modules/installer/tools/nix-fallback-paths.nix | 8 ++++---- pkgs/tools/package-management/nix/default.nix | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nixos/modules/installer/tools/nix-fallback-paths.nix b/nixos/modules/installer/tools/nix-fallback-paths.nix index 1cfc8ff8612..5d431df4b11 100644 --- a/nixos/modules/installer/tools/nix-fallback-paths.nix +++ b/nixos/modules/installer/tools/nix-fallback-paths.nix @@ -1,6 +1,6 @@ { - x86_64-linux = "/nix/store/cdcia67siabmj6li7vyffgv2cry86fq8-nix-2.1.3"; - i686-linux = "/nix/store/6q3xi6y5qnsv7d62b8n00hqfxi8rs2xs-nix-2.1.3"; - aarch64-linux = "/nix/store/2v93d0vimlm28jg0ms6v1i6lc0fq13pn-nix-2.1.3"; - x86_64-darwin = "/nix/store/dkjlfkrknmxbjmpfk3dg4q3nmb7m3zvk-nix-2.1.3"; + x86_64-linux = "/nix/store/pid1yakjasch4pwl63nzbj22z9zf0q26-nix-2.2"; + i686-linux = "/nix/store/qpkl0cxy0xh4h432lv2qsjrmhvx5x2vy-nix-2.2"; + aarch64-linux = "/nix/store/0jg7h94x986d8cskg6gcfza9x67spdbp-nix-2.2"; + x86_64-darwin = "/nix/store/a48whqkmxnsfhwbk6nay74iyc1cf0lr2-nix-2.2"; } diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index 4f8395ed961..44383ee5aa1 100644 --- a/pkgs/tools/package-management/nix/default.nix +++ b/pkgs/tools/package-management/nix/default.nix @@ -149,10 +149,10 @@ in rec { }) // { perl-bindings = nix1; }; nixStable = (common rec { - name = "nix-2.1.3"; + name = "nix-2.2"; src = fetchurl { url = "http://nixos.org/releases/nix/${name}/${name}.tar.xz"; - sha256 = "5d22dad058d5c800d65a115f919da22938c50dd6ba98c5e3a183172d149840a4"; + sha256 = "63238d00d290b8a93925891fc9164439d3941e2ccc569bf7f7ca32f53c3ec0c7"; }; }) // { perl-bindings = perl-bindings { nix = nixStable; From 3027e4b73612564227f6868db4284bdbb7a4bb6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 11 Jan 2019 12:50:16 +0100 Subject: [PATCH 099/120] python.pkgs.mt-940: 4.12.2 -> 4.13.0 --- pkgs/development/python-modules/mt-940/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/mt-940/default.nix b/pkgs/development/python-modules/mt-940/default.nix index 5c323068ddd..d097224e52d 100644 --- a/pkgs/development/python-modules/mt-940/default.nix +++ b/pkgs/development/python-modules/mt-940/default.nix @@ -3,14 +3,15 @@ }: buildPythonPackage rec { - version = "4.12.2"; + version = "4.13.0"; pname = "mt-940"; + # No tests in PyPI tarball src = fetchFromGitHub { owner = "WoLpH"; repo = "mt940"; rev = "v${version}"; - sha256 = "0l7q8v00dhpbc9mh6baaaqc55kf44rszygx28dq3pwp5b5x33nir"; + sha256 = "0p6z4ipj0drph3ryn8mnb3xn0vjfv54y1c5w5i9ixrxwz48h6bga"; }; postPatch = '' @@ -24,9 +25,8 @@ buildPythonPackage rec { checkInputs = [ pyyaml pytestpep8 pytestflakes pytest glibcLocales ]; - # See https://github.com/WoLpH/mt940/issues/64 for the disabled test checkPhase = '' - py.test -k "not mt940.models.FixedOffset" + py.test ''; meta = with stdenv.lib; { From 10b50b661b8b0800cceb3806e2052377f784fa85 Mon Sep 17 00:00:00 2001 From: yochai Date: Fri, 11 Jan 2019 14:57:28 +0200 Subject: [PATCH 100/120] culmus: add .otf, .pfa and .afm files (#53638) restructure into stdenv.mkDerivation. This resolves the problem of changing hashes. --- pkgs/data/fonts/culmus/default.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/data/fonts/culmus/default.nix b/pkgs/data/fonts/culmus/default.nix index ee41d9b88fb..4ef5a444558 100644 --- a/pkgs/data/fonts/culmus/default.nix +++ b/pkgs/data/fonts/culmus/default.nix @@ -2,19 +2,24 @@ let version = "0.133"; -in fetchzip { +in stdenv.mkDerivation { name = "culmus-${version}"; - url = "mirror://sourceforge/culmus/culmus/${version}/culmus-${version}.tar.gz"; + src = fetchzip { + url = "mirror://sourceforge/culmus/culmus/${version}/culmus-${version}.tar.gz"; + sha256 = "0q80j3vixn364sc23hcy6098rkgy0kb4p91lky6224am1dwn2qmr"; + }; - postFetch = '' - tar -xzvf $downloadedFile --strip-components=1 - mkdir -p $out/share/fonts/truetype + installPhase = '' + mkdir -p $out/share/fonts/{truetype,type1} + cp -v *.pfa $out/share/fonts/type1/ + cp -v *.afm $out/share/fonts/type1/ + cp -v fonts.scale-type1 $out/share/fonts/type1/fonts.scale cp -v *.ttf $out/share/fonts/truetype/ + cp -v *.otf $out/share/fonts/truetype/ + cp -v fonts.scale-ttf $out/share/fonts/truetype/fonts.scale ''; - sha256 = "1jxg2wf4kwasp5cia00nki2lrcdnhsyh4yy7d05l0a9bim5hq2lr"; - meta = { description = "Culmus Hebrew fonts"; longDescription = "The Culmus project aims at providing the Hebrew-speaking GNU/Linux and Unix community with a basic collection of Hebrew fonts for X Windows."; From ac97ba25ae76ff748d5d4f3aabb33de08bb31578 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 11 Jan 2019 10:45:23 +0100 Subject: [PATCH 101/120] =?UTF-8?q?Revert=20"libgit2:=200.26.6=20=E2=86=92?= =?UTF-8?q?=200.27.7"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit cc506381761d84bd0047cabba7151ad516fa8a32 because it breaks cargo (again, see fca4fbeba957ec6bc72c98c019bbc5f01712d15b): $ cargo build Updating crates.io index Segmentation fault --- .../git-and-tools/grv/default.nix | 4 +-- pkgs/development/libraries/git2/0.27.nix | 36 +++++++++++++++++++ pkgs/development/libraries/git2/default.nix | 17 ++++----- .../python-modules/pygit2/default.nix | 6 ++-- pkgs/top-level/all-packages.nix | 8 ++++- 5 files changed, 57 insertions(+), 14 deletions(-) create mode 100644 pkgs/development/libraries/git2/0.27.nix diff --git a/pkgs/applications/version-management/git-and-tools/grv/default.nix b/pkgs/applications/version-management/git-and-tools/grv/default.nix index c70f6996529..1119c9a5b4c 100644 --- a/pkgs/applications/version-management/git-and-tools/grv/default.nix +++ b/pkgs/applications/version-management/git-and-tools/grv/default.nix @@ -1,11 +1,11 @@ -{ stdenv, buildGo19Package, fetchFromGitHub, curl, libgit2, ncurses, pkgconfig, readline }: +{ stdenv, buildGo19Package, fetchFromGitHub, curl, libgit2_0_27, ncurses, pkgconfig, readline }: let version = "0.3.1"; in buildGo19Package { name = "grv-${version}"; - buildInputs = [ ncurses readline curl libgit2 ]; + buildInputs = [ ncurses readline curl libgit2_0_27 ]; nativeBuildInputs = [ pkgconfig ]; goPackagePath = "github.com/rgburke/grv"; diff --git a/pkgs/development/libraries/git2/0.27.nix b/pkgs/development/libraries/git2/0.27.nix new file mode 100644 index 00000000000..93948a1b0d6 --- /dev/null +++ b/pkgs/development/libraries/git2/0.27.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchFromGitHub, cmake, pkgconfig, python +, zlib, libssh2, openssl, http-parser, curl +, libiconv, Security +}: + +stdenv.mkDerivation rec { + version = "0.27.7"; + name = "libgit2-${version}"; + + src = fetchFromGitHub { + owner = "libgit2"; + repo = "libgit2"; + rev = "v${version}"; + sha256 = "1q3mp7xjpbmdsnk4sdzf2askbb4pgbxcmr1h7y7zk2738dndwkha"; + }; + + cmakeFlags = [ "-DTHREADSAFE=ON" ]; + + nativeBuildInputs = [ cmake python pkgconfig ]; + + buildInputs = [ zlib libssh2 openssl http-parser curl ] + ++ stdenv.lib.optional stdenv.isDarwin Security; + + propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv; + + enableParallelBuilding = true; + + doCheck = false; # hangs. or very expensive? + + meta = { + description = "The Git linkable library"; + homepage = https://libgit2.github.com/; + license = stdenv.lib.licenses.gpl2; + platforms = with stdenv.lib.platforms; all; + }; +} diff --git a/pkgs/development/libraries/git2/default.nix b/pkgs/development/libraries/git2/default.nix index ec610d1e565..358fc31fc80 100644 --- a/pkgs/development/libraries/git2/default.nix +++ b/pkgs/development/libraries/git2/default.nix @@ -1,18 +1,18 @@ -{ stdenv, fetchFromGitHub, cmake, pkgconfig, python -, zlib, libssh2, openssl, http-parser, curl +{ stdenv, fetchFromGitHub, pkgconfig, cmake +, zlib, python, libssh2, openssl, curl, http-parser , libiconv, Security }: -stdenv.mkDerivation rec { - pname = "libgit2"; - version = "0.27.7"; +stdenv.mkDerivation (rec { + name = "libgit2-${version}"; + version = "0.26.6"; # keep the version in sync with pythonPackages.pygit2 and libgit2-glib src = fetchFromGitHub { owner = "libgit2"; repo = "libgit2"; rev = "v${version}"; - sha256 = "1q3mp7xjpbmdsnk4sdzf2askbb4pgbxcmr1h7y7zk2738dndwkha"; + sha256 = "17pjvprmdrx4h6bb1hhc98w9qi6ki7yl57f090n9kbhswxqfs7s3"; }; cmakeFlags = [ "-DTHREADSAFE=ON" ]; @@ -22,7 +22,7 @@ stdenv.mkDerivation rec { buildInputs = [ zlib libssh2 openssl http-parser curl ] ++ stdenv.lib.optional stdenv.isDarwin Security; - propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv; + propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) [ libiconv ]; enableParallelBuilding = true; @@ -34,4 +34,5 @@ stdenv.mkDerivation rec { license = licenses.gpl2; platforms = with platforms; all; }; -} +} // stdenv.lib.optionalAttrs (!stdenv.isLinux) { +}) diff --git a/pkgs/development/python-modules/pygit2/default.nix b/pkgs/development/python-modules/pygit2/default.nix index 313a3e5ab18..2334e4a3431 100644 --- a/pkgs/development/python-modules/pygit2/default.nix +++ b/pkgs/development/python-modules/pygit2/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, buildPythonPackage, fetchPypi, fetchpatch, isPyPy, libgit2, six, cffi }: +{ stdenv, lib, buildPythonPackage, fetchPypi, fetchpatch, isPyPy, libgit2_0_27, six, cffi }: buildPythonPackage rec { pname = "pygit2"; @@ -10,7 +10,7 @@ buildPythonPackage rec { }; preConfigure = lib.optionalString stdenv.isDarwin '' - export DYLD_LIBRARY_PATH="${libgit2}/lib" + export DYLD_LIBRARY_PATH="${libgit2_0_27}/lib" ''; patches = [ (fetchpatch { @@ -19,7 +19,7 @@ buildPythonPackage rec { sha256 = "18x1fpmywhjjr4lvakwmy34zpxfqi8pqqj48g1wcib39lh3s7l4f"; }) ]; - propagatedBuildInputs = [ libgit2 six ] ++ lib.optional (!isPyPy) cffi; + propagatedBuildInputs = [ libgit2_0_27 six ] ++ lib.optional (!isPyPy) cffi; preCheck = '' # disable tests that require networking diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8b0c213d378..0f2ed083a28 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1007,7 +1007,9 @@ in blockdiag = with python3Packages; toPythonApplication blockdiag; - blsd = callPackage ../tools/misc/blsd { }; + blsd = callPackage ../tools/misc/blsd { + libgit2 = libgit2_0_27; + }; bluez-alsa = callPackage ../tools/bluetooth/bluez-alsa { }; @@ -9919,6 +9921,10 @@ in inherit (darwin.apple_sdk.frameworks) Security; }; + libgit2_0_27 = callPackage ../development/libraries/git2/0.27.nix { + inherit (darwin.apple_sdk.frameworks) Security; + }; + libgit2-glib = callPackage ../development/libraries/libgit2-glib { }; glbinding = callPackage ../development/libraries/glbinding { }; From c1a13108e20f02b4882fd46b484194203aa0b746 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 11 Jan 2019 15:05:17 +0100 Subject: [PATCH 102/120] nix: Add editline dependency Also fix incorrect hash for nixUnstable. --- pkgs/tools/package-management/nix/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index 44383ee5aa1..995f123b81d 100644 --- a/pkgs/tools/package-management/nix/default.nix +++ b/pkgs/tools/package-management/nix/default.nix @@ -1,5 +1,5 @@ { lib, stdenv, fetchurl, fetchFromGitHub, fetchpatch, perl, curl, bzip2, sqlite, openssl ? null, xz -, pkgconfig, boehmgc, perlPackages, libsodium, brotli, boost +, pkgconfig, boehmgc, perlPackages, libsodium, brotli, boost, editline , autoreconfHook, autoconf-archive, bison, flex, libxml2, libxslt, docbook5, docbook_xsl_ns , busybox-sandbox-shell , storeDir ? "/nix/store" @@ -30,7 +30,7 @@ let buildInputs = [ curl openssl sqlite xz bzip2 ] ++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium - ++ lib.optionals is20 [ brotli boost ] + ++ lib.optionals is20 [ brotli boost editline ] ++ lib.optional withLibseccomp libseccomp ++ lib.optional (withAWS && is20) ((aws-sdk-cpp.override { @@ -166,7 +166,7 @@ in rec { owner = "NixOS"; repo = "nix"; rev = "85488a93ec3b07210339f2b05aa93e970f9ac3be"; - sha256 = "0fkmx7gmgg0yij9kw52fkyvib88hj1jsj90vbpy13ccfwknh1044"; + sha256 = "1n5dp7p2lzpnj7f834d25k020v16gnnsm56jz46y87v2x7b69ccm"; }; fromGit = true; })) // { perl-bindings = perl-bindings { From eb5d51d4cfb3559ed2e1127ff80b94396a5b438f Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 11 Jan 2019 16:29:19 +0100 Subject: [PATCH 103/120] clasp-common-lisp: update/fix build, 2018-11-28 prerelease (towards 0.9) --- pkgs/development/compilers/clasp/default.nix | 105 ++++++++++++++++--- pkgs/top-level/all-packages.nix | 5 +- 2 files changed, 95 insertions(+), 15 deletions(-) diff --git a/pkgs/development/compilers/clasp/default.nix b/pkgs/development/compilers/clasp/default.nix index 349482fbde9..a1e29951ddb 100644 --- a/pkgs/development/compilers/clasp/default.nix +++ b/pkgs/development/compilers/clasp/default.nix @@ -1,54 +1,131 @@ -{ stdenv, fetchFromGitHub +{ stdenv, fetchFromGitHub, fetchFromGitLab , llvmPackages -, cmake, boehmgc, gmp, zlib, ncurses, boost +, cmake, boehmgc, gmp, zlib, ncurses, boost, libelf , python, git, sbcl , wafHook }: +let + sicl = fetchFromGitHub { + owner = "Bike"; + repo = "SICL"; + rev = "78052fb5f02a3814eb7295f3dcac09f21f98702b"; + sha256 = "0wnmp40310ls6q9gkr5ysfkj2qirq26ljjicnkqifc53mm0ghz4i"; + }; + cst = fetchFromGitHub { + owner = "robert-strandh"; + repo = "Concrete-Syntax-Tree"; + rev = "8d8c5abf8f1690cb2b765241d81c2eb86d60d77e"; + sha256 = "1rs8a5nbfffdyli126sccd0z1a8h5axp222b4pgwvgfxsb9w7g3s"; + }; + c2mop = fetchFromGitHub { + owner = "pcostanza"; + repo = "closer-mop"; + rev = "d4d1c7aa6aba9b4ac8b7bb78ff4902a52126633f"; + sha256 = "1amcv0f3vbsq0aqhai7ki5bi367giway1pbfxyc47r7q3hq5hw3c"; + }; + acclimation = fetchFromGitHub { + owner = "robert-strandh"; + repo = "Acclimation"; + rev = "dd15c86b0866fc5d8b474be0da15c58a3c04c45c"; + sha256 = "0ql224qs3zgflvdhfbca621v3byhhqfb71kzy70bslyczxv1bsh2"; + }; + eclector = fetchFromGitHub { + owner = "robert-strandh"; + repo = "Eclector"; + rev = "287ce817c0478668bd389051d2cc6b26ddc62ec9"; + sha256 = "0v7mgkq49ddyx5vvsradcp772y5l7cv9xrll3280hyginpm8w6q3"; + }; + alexandria = fetchFromGitHub { + owner = "clasp-developers"; + repo = "alexandria"; + rev = "e5c54bc30b0887c237bde2827036d17315f88737"; + sha256 = "14h7a9fwimiw9gqxjm2h47d95bfhrm7b81f6si7x8vy18d78fn4g"; + }; + mps = fetchFromGitHub { + owner = "Ravenbrook"; + repo = "mps"; + rev = "b8a05a3846430bc36c8200f24d248c8293801503"; + sha256 = "1q2xqdw832jrp0w9yhgr8xihria01j4z132ac16lr9ssqznkprv6"; + }; + asdf = fetchFromGitLab { + domain = "gitlab.common-lisp.net"; + owner = "asdf"; + repo = "asdf"; + rev = "3.3.1.2"; + sha256 = "0ljr2vc0cb2wrijcyjmp9hcaj2bdhh05ci3zf4f43hdq6i2fgg6g"; + }; +in stdenv.mkDerivation rec { name = "${pname}-${version}"; pname = "clasp"; - version = "0.4.99.20170801"; + version = "0.8.99.20181128"; src = fetchFromGitHub { owner = "drmeister"; repo = "clasp"; - rev = "525ce1cffff39311e3e7df6d0b71fa267779bdf5"; - sha256 = "1jqya04wybgxnski341p5sycy2gysxad0s5q8d59z0f6ckj3v8k1"; + rev = "2f2b52ccb750048460562b5987a7eaf7a1aa4445"; + sha256 = "0ra55vdnk59lygwzlxr5cg16vb9c45fmg59wahaxclwm461w7fwz"; fetchSubmodules = true; }; - nativeBuildInputs = [ cmake python git sbcl wafHook ]; + nativeBuildInputs = [ cmake python git sbcl wafHook ] ++ + (with llvmPackages; [ llvm clang ]); - buildInputs = with llvmPackages; ( - builtins.map (x: stdenv.lib.overrideDerivation x - (x: {NIX_CFLAGS_COMPILE= (x.NIX_CFLAGS_COMPILE or "") + " -frtti"; })) - [ llvm clang clang-unwrapped clang ]) ++ + buildInputs = with llvmPackages; + ( + builtins.map (x: stdenv.lib.overrideDerivation x + (x: {NIX_CFLAGS_COMPILE= (x.NIX_CFLAGS_COMPILE or "") + " -frtti"; })) + [ llvm clang clang-unwrapped clang ]) ++ [ gmp zlib ncurses - boost boehmgc + boost boehmgc libelf (boost.override {enableStatic = true; enableShared = false;}) (stdenv.lib.overrideDerivation boehmgc (x: {configureFlags = (x.configureFlags or []) ++ ["--enable-static"];})) ]; - NIX_CFLAGS_COMPILE = " -frtti "; + NIX_CXXSTDLIB_COMPILE = " -frtti "; postPatch = '' echo " - INSTALL_PATH_PREFIX = '$out' + PREFIX = '$out' " | sed -e 's/^ *//' > wscript.config + + mkdir -p src/lisp/kernel/contrib/sicl + mkdir -p src/lisp/kernel/contrib/Concrete-Syntax-Tree + mkdir -p src/lisp/kernel/contrib/closer-mop + mkdir -p src/lisp/kernel/contrib/Acclimation + mkdir -p src/lisp/kernel/contrib/Eclector + mkdir -p src/lisp/kernel/contrib/alexandria + mkdir -p src/mps + mkdir -p src/lisp/modules/asdf + + cp -rfT "${sicl}" src/lisp/kernel/contrib/sicl + cp -rfT "${cst}" src/lisp/kernel/contrib/Concrete-Syntax-Tree + cp -rfT "${c2mop}" src/lisp/kernel/contrib/closer-mop + cp -rfT "${acclimation}" src/lisp/kernel/contrib/Acclimation + cp -rfT "${eclector}" src/lisp/kernel/contrib/Eclector + cp -rfT "${alexandria}" src/lisp/kernel/contrib/alexandria + cp -rfT "${mps}" src/mps + cp -rfT "${asdf}" src/lisp/modules/asdf + + chmod -R u+rwX src + ( cd src/lisp/modules/asdf; make ) ''; buildTargets = "build_cboehm"; installTargets = "install_cboehm"; + CLASP_SRC_DONTTOUCH = "true"; + meta = { inherit version; description = ''A Common Lisp implementation based on LLVM with C++ integration''; license = stdenv.lib.licenses.lgpl21Plus ; maintainers = [stdenv.lib.maintainers.raskin]; platforms = stdenv.lib.platforms.linux; + # Large, long to build, a private build of clang is needed, a prerelease. + hydraPlatforms = []; homepage = "https://github.com/drmeister/clasp"; - broken = true; # 2018-09-08, no successful build since 2018-01-03 }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0f2ed083a28..d38e95e180f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6670,7 +6670,10 @@ in clang-sierraHack-stdenv = overrideCC stdenv clang-sierraHack; libcxxStdenv = if stdenv.isDarwin then stdenv else lowPrio llvmPackages.libcxxStdenv; - clasp-common-lisp = callPackage ../development/compilers/clasp {}; + clasp-common-lisp = callPackage ../development/compilers/clasp { + llvmPackages = llvmPackages_6; + stdenv = llvmPackages_6.stdenv; + }; clean = callPackage ../development/compilers/clean { }; From 10fa10731e7e19724bacfd2da71a40aa3afcd15f Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 9 Jan 2019 17:07:38 +0000 Subject: [PATCH 104/120] coqPackages.category-theory: bound build parallelism --- pkgs/development/coq-modules/category-theory/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/coq-modules/category-theory/default.nix b/pkgs/development/coq-modules/category-theory/default.nix index 94ed2945692..59f2295e215 100644 --- a/pkgs/development/coq-modules/category-theory/default.nix +++ b/pkgs/development/coq-modules/category-theory/default.nix @@ -33,7 +33,7 @@ stdenv.mkDerivation rec { buildInputs = [ coq ] ++ (with coq.ocamlPackages; [ ocaml camlp5 findlib ]); propagatedBuildInputs = [ ssreflect equations ]; - enableParallelBuilding = false; + buildFlags = [ "JOBS=$(NIX_BUILD_CORES)" ]; installPhase = '' make -f Makefile.coq COQLIB=$out/lib/coq/${coq.coq-version}/ install From ac7f4c0478679cc6059bcf7f9bcefe2b5b604064 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Fri, 11 Jan 2019 13:20:05 -0500 Subject: [PATCH 105/120] boehmgc: fix patch url Fixes: 587467a18e ('github-gentoo-compromized_can...') Closes: #53809 --- pkgs/development/libraries/boehm-gc/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/boehm-gc/default.nix b/pkgs/development/libraries/boehm-gc/default.nix index ad7aff6b540..2c5dbdc5539 100644 --- a/pkgs/development/libraries/boehm-gc/default.nix +++ b/pkgs/development/libraries/boehm-gc/default.nix @@ -25,7 +25,7 @@ stdenv.mkDerivation rec { ''; patches = [ (fetchpatch { - url = "https://gitweb.gentoo.org/proj/musl.git/plain/dev-libs/boehm-gc/files/boehm-gc-7.6.0-sys_select.patch"; + url = "https://gitweb.gentoo.org/proj/musl.git/plain/dev-libs/boehm-gc/files/boehm-gc-7.6.0-sys_select.patch?id=85b6a600996bdd71162b357e9ba93d8559342432"; sha256 = "1gydwlklvci30f5dpp5ccw2p2qpph5y41r55wx9idamjlq66fbb3"; }) ] ++ # https://github.com/ivmai/bdwgc/pull/208 From 414e66f2222561e61c8a098774e651bf2be530bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Fri, 11 Jan 2019 20:12:56 +0100 Subject: [PATCH 106/120] boehmgc: avoid mass rebuild due to the parent commit --- pkgs/development/libraries/boehm-gc/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/boehm-gc/default.nix b/pkgs/development/libraries/boehm-gc/default.nix index 2c5dbdc5539..8e291854ad6 100644 --- a/pkgs/development/libraries/boehm-gc/default.nix +++ b/pkgs/development/libraries/boehm-gc/default.nix @@ -25,6 +25,7 @@ stdenv.mkDerivation rec { ''; patches = [ (fetchpatch { + name = "boehm-gc-7.6.0-sys_select.patch"; url = "https://gitweb.gentoo.org/proj/musl.git/plain/dev-libs/boehm-gc/files/boehm-gc-7.6.0-sys_select.patch?id=85b6a600996bdd71162b357e9ba93d8559342432"; sha256 = "1gydwlklvci30f5dpp5ccw2p2qpph5y41r55wx9idamjlq66fbb3"; }) ] ++ From a8518f976c7d1d85938ce6168eb955b38b031356 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Tue, 1 Jan 2019 16:17:47 -0800 Subject: [PATCH 107/120] yarn: 1.12.3 -> 1.13.0 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/yarn/versions --- pkgs/development/tools/yarn/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/yarn/default.nix b/pkgs/development/tools/yarn/default.nix index e2e115992bc..2bbb0bc6080 100644 --- a/pkgs/development/tools/yarn/default.nix +++ b/pkgs/development/tools/yarn/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "yarn-${version}"; - version = "1.12.3"; + version = "1.13.0"; src = fetchzip { url = "https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz"; - sha256 = "0izn7lfvfw046qlxdgiiiyqj24sl2yclm6v8bzy8ilsr00csbrm2"; + sha256 = "0wkh8m41g5sajxlchsaqardn4v2ax06xywk12fwdjn5j3sxlgq2a"; }; buildInputs = [ nodejs ]; From 18839e1cc1a0c2ee787a8990809141cf43e1848c Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Wed, 9 Jan 2019 18:08:06 -0600 Subject: [PATCH 108/120] icestorm: improve x86 build/runtime perf with pypy PyPy3 offers tremendous speedups for IceStorm tools written in Python, including tools used at compile-time to generate the chip databases, and runtime tools distributed to users, such as icebox_vlog. For example, on my ThreadRipper 1950X, build times for IceStorm consistently go from 2m30s -> 1m30s with this change, a 40% improvement, simply due to improvements in raw CPU efficiency. (This is also worsened by the fact the build is currently serial, but that can easily be fixed anyway.) On top of that, tools distributed to users are also now run using PyPy. Utilities such as icebox_vlog are useful for post-bitstream testing, for instance, and also are improved due to improved CPU efficiency as well. For example, when "decompiling" an ICE40 bitstream for HX8K devices, containing a synthesized copy of PicoRV32 (from the NextPNR demos), the runtime of icebox_vlog is cut from 25 seconds to 9 seconds consistently with this change alone. Normally, picking a Python interpreter outright for Python-based code is a "bad idea", but in the case of IceStorm it should be perfectly safe, and an excellent improvement for users. There are a few reasons for this: - IceStorm uses pure Python 3 and nothing else. There are no requirements for any 3rd party packages, which might cause annoying incompatibilities, and PyPy has historically shown very strong core Python compatibility. - IceStorm is NOT a set of Python libraries, it is a set of tools, some of which, coincidentally, are written in Python. It is (normally) bad form to fix libraries to certain interpreters versions if the reason strictly isn't "it doesn't work/isn't compatible". That is not the case here. These tools may later be used by other programs, such as NextPNR, but the Python interpreter is ultimately not that important in quesion for the user. In this sense, there is almost no downside to picking PyPy explicitly if it offers far better performance. (Point 2 is not actually strictly true; there are some distributed .py files that you can import from but they are basically just static classes that are imported by tools like nextpnr; this is expected.) Because of this, users should see very little change except better performance for IceStorm tools on their machines. Note that PyPy is not supported on aarch64 -- this only applies to x86_64 machines. Signed-off-by: Austin Seipp --- pkgs/development/tools/icestorm/default.nix | 31 +++++++++++++++++---- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/icestorm/default.nix b/pkgs/development/tools/icestorm/default.nix index 68e217f9aab..64bec03eb4a 100644 --- a/pkgs/development/tools/icestorm/default.nix +++ b/pkgs/development/tools/icestorm/default.nix @@ -1,4 +1,13 @@ -{ stdenv, fetchFromGitHub, python3, libftdi, pkgconfig }: +{ stdenv, fetchFromGitHub +, pkgconfig, libftdi +, python3, pypy3 +}: + +let + pypyCompatible = stdenv.isx86_64; /* pypy3 seems broken on i686 */ + pythonPkg = if pypyCompatible then pypy3 else python3; + pythonInterp = if pypyCompatible then "pypy3" else "python3"; +in stdenv.mkDerivation rec { name = "icestorm-${version}"; @@ -12,14 +21,26 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ python3 libftdi ]; + buildInputs = [ pythonPkg libftdi ]; makeFlags = [ "PREFIX=$(out)" ]; # fix icebox_vlog chipdb path. icestorm issue: # https://github.com/cliffordwolf/icestorm/issues/125 + # + # also, fix up the path to the chosen Python interpreter. for pypy-compatible + # platforms, it offers significant performance improvements. patchPhase = '' substituteInPlace ./icebox/icebox_vlog.py \ --replace /usr/local/share "$out/share" + + for x in icefuzz/Makefile icebox/Makefile icetime/Makefile; do + substituteInPlace "$x" --replace python3 "${pythonInterp}" + done + + for x in $(find . -type f -iname '*.py'); do + substituteInPlace "$x" \ + --replace '/usr/bin/env python3' '${pythonPkg}/bin/${pythonInterp}' + done ''; meta = { @@ -30,9 +51,9 @@ stdenv.mkDerivation rec { FPGAs and providing simple tools for analyzing and creating bitstream files. ''; - homepage = http://www.clifford.at/icestorm/; - license = stdenv.lib.licenses.isc; + homepage = http://www.clifford.at/icestorm/; + license = stdenv.lib.licenses.isc; maintainers = with stdenv.lib.maintainers; [ shell thoughtpolice ]; - platforms = stdenv.lib.platforms.linux; + platforms = stdenv.lib.platforms.linux; }; } From 61e57a827b84251bbe4713ea2714a99f9e6f7314 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Thu, 10 Jan 2019 16:08:01 -0600 Subject: [PATCH 109/120] icestorm: enableParallelBuilding = true With the previous PyPy3 change, this reduces the compile time from ~1m30s to roughly 36s (compared to the original, serial, Python 3 build time of 2:30s). Signed-off-by: Austin Seipp --- pkgs/development/tools/icestorm/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/tools/icestorm/default.nix b/pkgs/development/tools/icestorm/default.nix index 64bec03eb4a..0d96ec02c4c 100644 --- a/pkgs/development/tools/icestorm/default.nix +++ b/pkgs/development/tools/icestorm/default.nix @@ -24,6 +24,8 @@ stdenv.mkDerivation rec { buildInputs = [ pythonPkg libftdi ]; makeFlags = [ "PREFIX=$(out)" ]; + enableParallelBuilding = true; + # fix icebox_vlog chipdb path. icestorm issue: # https://github.com/cliffordwolf/icestorm/issues/125 # From 6b80db3f5fae2e72f7a06943abe3cfae2791e8e8 Mon Sep 17 00:00:00 2001 From: Edmund Wu Date: Fri, 11 Jan 2019 20:02:00 -0500 Subject: [PATCH 110/120] vscode: 1.30.1 -> 1.30.2 --- pkgs/applications/editors/vscode/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/editors/vscode/default.nix b/pkgs/applications/editors/vscode/default.nix index 167a8fe7b70..b38b357126f 100644 --- a/pkgs/applications/editors/vscode/default.nix +++ b/pkgs/applications/editors/vscode/default.nix @@ -12,9 +12,9 @@ let }.${stdenv.hostPlatform.system}; sha256 = { - "i686-linux" = "1xadkgqfwsl53blm2f0kdvczwmag47585dswa1hpafzc8i86009b"; - "x86_64-linux" = "0h77kc6z9c5bkkb8svjxjabnbbv0lb835kzd1c2yypamkhag9j4a"; - "x86_64-darwin" = "1f8grgav5capd2mm1nx0416na8c6qjh91680cfvf1jh4pjihs6g4"; + "i686-linux" = "1g73fay6fxlqhalkqq5m6rjbp68k9npk0rrxrkhdj8mw0cz74dpm"; + "x86_64-linux" = "0mil8n5i2ajdyrgq862wq59ajy2122rvvn7m7mxq4ab92sk26rix"; + "x86_64-darwin" = "07r52scs1sgafzxqal39r8vf9p9qqvwwx8f6z09gqcf6clr6k48q"; }.${stdenv.hostPlatform.system}; archive_fmt = if stdenv.hostPlatform.system == "x86_64-darwin" then "zip" else "tar.gz"; @@ -31,7 +31,7 @@ let in stdenv.mkDerivation rec { name = "vscode-${version}"; - version = "1.30.1"; + version = "1.30.2"; src = fetchurl { name = "VSCode_${version}_${plat}.${archive_fmt}"; From 0c9335fb1ca2a0a78d52ba19e057dfb1103c6c43 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Fri, 11 Jan 2019 20:06:37 -0500 Subject: [PATCH 111/120] root, root5: fix build on darwin --- pkgs/applications/science/misc/root/5.nix | 4 ++-- pkgs/applications/science/misc/root/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/science/misc/root/5.nix b/pkgs/applications/science/misc/root/5.nix index 7f43dfb328a..1194ab7296e 100644 --- a/pkgs/applications/science/misc/root/5.nix +++ b/pkgs/applications/science/misc/root/5.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, cmake, pcre, pkgconfig, python2 , libX11, libXpm, libXft, libXext, libGLU_combined, zlib, libxml2, lzma, gsl_1 -, Cocoa, OpenGL, noSplash ? false }: +, Cocoa, OpenGL, cf-private, noSplash ? false }: stdenv.mkDerivation rec { name = "root-${version}"; @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ cmake pcre python2 zlib libxml2 lzma gsl_1 ] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 libXpm libXft libXext libGLU_combined ] - ++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL ] + ++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL cf-private ] ; patches = [ diff --git a/pkgs/applications/science/misc/root/default.nix b/pkgs/applications/science/misc/root/default.nix index 2ec1ded68a2..8b9573ce4e8 100644 --- a/pkgs/applications/science/misc/root/default.nix +++ b/pkgs/applications/science/misc/root/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, cmake, pcre, pkgconfig, python2 , libX11, libXpm, libXft, libXext, libGLU_combined, zlib, libxml2, lz4, lzma, gsl, xxHash -, Cocoa, OpenGL, noSplash ? false }: +, Cocoa, OpenGL, cf-private, noSplash ? false }: stdenv.mkDerivation rec { name = "root-${version}"; @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ cmake pcre python2 zlib libxml2 lz4 lzma gsl xxHash ] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 libXpm libXft libXext libGLU_combined ] - ++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL ] + ++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL cf-private ] ; patches = [ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2933ea5a8e9..246e6200dbc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22097,10 +22097,12 @@ in ns-3 = callPackage ../development/libraries/science/networking/ns3 { }; root = callPackage ../applications/science/misc/root { + inherit (darwin) cf-private; inherit (darwin.apple_sdk.frameworks) Cocoa OpenGL; }; root5 = lowPrio (callPackage ../applications/science/misc/root/5.nix { + inherit (darwin) cf-private; inherit (darwin.apple_sdk.frameworks) Cocoa OpenGL; }); From 73625f25223b47af03a372acaa2b8044b118ad3f Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Thu, 18 Oct 2018 15:26:53 -0400 Subject: [PATCH 112/120] root5: mark as broken on Linux --- pkgs/applications/science/misc/root/5.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/science/misc/root/5.nix b/pkgs/applications/science/misc/root/5.nix index 1194ab7296e..1f0fc663647 100644 --- a/pkgs/applications/science/misc/root/5.nix +++ b/pkgs/applications/science/misc/root/5.nix @@ -73,5 +73,8 @@ stdenv.mkDerivation rec { description = "A data analysis framework"; platforms = platforms.unix; maintainers = with maintainers; [ veprbl ]; + # needs to be adapted to work with modern glibc + # it works on darwin by impurely picking up system's libc headers + broken = stdenv.isLinux; }; } From feae4d6cdbfd9bc93328867539d9b7cca2039124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 11 Jan 2019 23:40:58 +0100 Subject: [PATCH 113/120] home-assistant: 0.85.0 -> 0.85.1 --- .../home-assistant/component-packages.nix | 17 +++++++++++------ pkgs/servers/home-assistant/default.nix | 8 ++++---- pkgs/servers/home-assistant/frontend.nix | 4 ++-- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 562fb79d62b..c28160b04a4 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2,7 +2,7 @@ # Do not edit! { - version = "0.85.0"; + version = "0.85.1"; components = { "abode" = ps: with ps; [ ]; "ads" = ps: with ps; [ ]; @@ -21,6 +21,7 @@ "alarm_control_panel.egardia" = ps: with ps; [ ]; "alarm_control_panel.elkm1" = ps: with ps; [ ]; "alarm_control_panel.envisalink" = ps: with ps; [ ]; + "alarm_control_panel.homekit_controller" = ps: with ps; [ ]; "alarm_control_panel.homematicip_cloud" = ps: with ps; [ ]; "alarm_control_panel.ialarm" = ps: with ps; [ ]; "alarm_control_panel.ifttt" = ps: with ps; [ aiohttp-cors pyfttt ]; @@ -117,7 +118,7 @@ "binary_sensor.iss" = ps: with ps; [ ]; "binary_sensor.isy994" = ps: with ps; [ ]; "binary_sensor.knx" = ps: with ps; [ ]; - "binary_sensor.konnected" = ps: with ps; [ aiohttp-cors netdisco ]; + "binary_sensor.konnected" = ps: with ps; [ aiohttp-cors ]; "binary_sensor.linode" = ps: with ps; [ linode-api ]; "binary_sensor.lupusec" = ps: with ps; [ ]; "binary_sensor.maxcube" = ps: with ps; [ ]; @@ -419,6 +420,10 @@ "emulated_hue" = ps: with ps; [ aiohttp-cors ]; "emulated_hue.hue_api" = ps: with ps; [ ]; "emulated_hue.upnp" = ps: with ps; [ ]; + "emulated_roku" = ps: with ps; [ ]; + "emulated_roku.binding" = ps: with ps; [ ]; + "emulated_roku.config_flow" = ps: with ps; [ ]; + "emulated_roku.const" = ps: with ps; [ ]; "enocean" = ps: with ps; [ ]; "envisalink" = ps: with ps; [ ]; "esphome" = ps: with ps; [ ]; @@ -512,6 +517,7 @@ "hue.config_flow" = ps: with ps; [ ]; "hue.const" = ps: with ps; [ ]; "hue.errors" = ps: with ps; [ ]; + "hue.light" = ps: with ps; [ aiohue ]; "hydrawise" = ps: with ps; [ ]; "idteck_prox" = ps: with ps; [ ]; "ifttt" = ps: with ps; [ aiohttp-cors pyfttt ]; @@ -550,7 +556,7 @@ "keyboard_remote" = ps: with ps; [ evdev ]; "kira" = ps: with ps; [ ]; "knx" = ps: with ps; [ ]; - "konnected" = ps: with ps; [ aiohttp-cors netdisco ]; + "konnected" = ps: with ps; [ aiohttp-cors ]; "lametric" = ps: with ps; [ ]; "lcn" = ps: with ps; [ ]; "lifx" = ps: with ps; [ ]; @@ -578,7 +584,6 @@ "light.homematic" = ps: with ps; [ pyhomematic ]; "light.homematicip_cloud" = ps: with ps; [ ]; "light.homeworks" = ps: with ps; [ ]; - "light.hue" = ps: with ps; [ aiohue ]; "light.hyperion" = ps: with ps; [ ]; "light.iglo" = ps: with ps; [ ]; "light.ihc" = ps: with ps; [ defusedxml ]; @@ -713,7 +718,6 @@ "media_player.mpchc" = ps: with ps; [ ]; "media_player.mpd" = ps: with ps; [ mpd2 ]; "media_player.nad" = ps: with ps; [ ]; - "media_player.nadtcp" = ps: with ps; [ ]; "media_player.onkyo" = ps: with ps; [ onkyo-eiscp ]; "media_player.openhome" = ps: with ps; [ ]; "media_player.panasonic_bluray" = ps: with ps; [ ]; @@ -1290,7 +1294,7 @@ "switch.isy994" = ps: with ps; [ ]; "switch.kankun" = ps: with ps; [ ]; "switch.knx" = ps: with ps; [ ]; - "switch.konnected" = ps: with ps; [ aiohttp-cors netdisco ]; + "switch.konnected" = ps: with ps; [ aiohttp-cors ]; "switch.lightwave" = ps: with ps; [ ]; "switch.linode" = ps: with ps; [ linode-api ]; "switch.litejet" = ps: with ps; [ ]; @@ -1458,6 +1462,7 @@ "zabbix" = ps: with ps; [ ]; "zeroconf" = ps: with ps; [ aiohttp-cors zeroconf ]; "zha" = ps: with ps; [ ]; + "zha.api" = ps: with ps; [ ]; "zha.config_flow" = ps: with ps; [ ]; "zha.const" = ps: with ps; [ ]; "zha.entities" = ps: with ps; [ ]; diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index c7764c134bd..c56423adcdd 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -51,8 +51,8 @@ let # used by check_config script # can be unpinned once https://github.com/home-assistant/home-assistant/issues/11917 is resolved - (mkOverride "colorlog" "3.1.4" - "418db638c9577f37f0fae4914074f395847a728158a011be2a193ac491b9779d") + (mkOverride "colorlog" "4.0.2" + "3cf31b25cbc8f86ec01fef582ef3b840950dea414084ed19ab922c8b493f9b42") # hass-frontend does not exist in python3.pkgs (self: super: { @@ -87,7 +87,7 @@ let extraBuildInputs = extraPackages py.pkgs; # Don't forget to run parse-requirements.py after updating - hassVersion = "0.85.0"; + hassVersion = "0.85.1"; in with py.pkgs; buildPythonApplication rec { pname = "homeassistant"; @@ -102,7 +102,7 @@ in with py.pkgs; buildPythonApplication rec { owner = "home-assistant"; repo = "home-assistant"; rev = version; - sha256 = "10lpah90ia2ycw22s65kqxd2az7l69n9hs1i4lvx1179ncvnfq9r"; + sha256 = "0i9s0mgzfs3s6k4vw2zvwgqziz77fghpijrjrxx5nbrmm592h01a"; }; propagatedBuildInputs = [ diff --git a/pkgs/servers/home-assistant/frontend.nix b/pkgs/servers/home-assistant/frontend.nix index 22e3eb4e0d5..d4be40c7368 100644 --- a/pkgs/servers/home-assistant/frontend.nix +++ b/pkgs/servers/home-assistant/frontend.nix @@ -2,11 +2,11 @@ buildPythonPackage rec { pname = "home-assistant-frontend"; - version = "20190109.0"; + version = "20190109.1"; src = fetchPypi { inherit pname version; - sha256 = "d4e0241feca3779af67efe906be31ba3fac76e8fb3e46d8416f349f5ec3009a6"; + sha256 = "2ca035461c06591dc793c7651ed3f7c17ab3addf5859e89d2f956215433140ba"; }; propagatedBuildInputs = [ user-agents ]; From 98686d3b7f9bf156331b88c2a543da224a63e0e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 11 Jan 2019 23:50:59 +0100 Subject: [PATCH 114/120] python3.pkgs.aiohttp: 3.5.2 -> 3.5.3 --- pkgs/development/python-modules/aiohttp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiohttp/default.nix b/pkgs/development/python-modules/aiohttp/default.nix index eaa8651a6c5..558530e5a85 100644 --- a/pkgs/development/python-modules/aiohttp/default.nix +++ b/pkgs/development/python-modules/aiohttp/default.nix @@ -23,11 +23,11 @@ buildPythonPackage rec { pname = "aiohttp"; - version = "3.5.2"; + version = "3.5.3"; src = fetchPypi { inherit pname version; - sha256 = "3d851b15e615c0ad619de0990ab94c9721c335aebb58d160bf77a4af963c6b50"; + sha256 = "7967b760d0e96eb7ac6b20a9143112ce5c03a00b4f74d8a5ee66c8e88e6b6800"; }; disabled = pythonOlder "3.5"; From db217a8acaaff759b3f8d097547f5fc7de9c333c Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 4 Jan 2019 18:50:22 +0100 Subject: [PATCH 115/120] ocamlPackages.resource-pooling: init at 0.5.2 A library for pooling resources like connections, threads, or similar. Homepage: https://github.com/ocsigen/resource-pooling --- .../resource-pooling/default.nix | 35 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/ocaml-modules/resource-pooling/default.nix diff --git a/pkgs/development/ocaml-modules/resource-pooling/default.nix b/pkgs/development/ocaml-modules/resource-pooling/default.nix new file mode 100644 index 00000000000..71f2d51060c --- /dev/null +++ b/pkgs/development/ocaml-modules/resource-pooling/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, lwt_log }: + +let pname = "resource-pooling"; in + +if !stdenv.lib.versionAtLeast ocaml.version "4.06" +then throw "${pname} is not available for OCaml ${ocaml.version}" +else + +stdenv.mkDerivation rec { + version = "0.5.2"; + name = "ocaml${ocaml.version}-${pname}-${version}"; + + src = fetchFromGitHub { + owner = "ocsigen"; + repo = pname; + rev = version; + sha256 = "00rz1i61w2dy108hzv38rblnsv6b56b5a1mk5h3zddpivcljp2dh"; + }; + + buildInputs = [ ocaml findlib ocamlbuild ]; + propagatedBuildInputs = [ lwt_log ]; + + configurePhase = "ocaml setup.ml -configure --prefix $out"; + buildPhase = "ocaml setup.ml -build"; + createFindlibDestdir = true; + installPhase = "ocaml setup.ml -install"; + + meta = { + inherit (src.meta) homepage; + inherit (ocaml.meta) platforms; + description = "A library for pooling resources like connections, threads, or similar"; + license = stdenv.lib.licenses.mit; + maintainers = [ stdenv.lib.maintainers.vbgl ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index a80aec268b9..8df57e8d710 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -589,6 +589,8 @@ let re2_p4 = callPackage ../development/ocaml-modules/re2 { }; + resource-pooling = callPackage ../development/ocaml-modules/resource-pooling { }; + result = callPackage ../development/ocaml-modules/ocaml-result { }; seq = callPackage ../development/ocaml-modules/seq { }; From 768d8763942e15e4815283494fb633f08a119b53 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Fri, 11 Jan 2019 22:49:53 +0100 Subject: [PATCH 116/120] scons: Remove version 2.5.1 --- pkgs/development/tools/build-managers/scons/default.nix | 4 ---- pkgs/top-level/all-packages.nix | 1 - 2 files changed, 5 deletions(-) diff --git a/pkgs/development/tools/build-managers/scons/default.nix b/pkgs/development/tools/build-managers/scons/default.nix index 3d919be2eba..d9bfb40b46e 100644 --- a/pkgs/development/tools/build-managers/scons/default.nix +++ b/pkgs/development/tools/build-managers/scons/default.nix @@ -3,10 +3,6 @@ let mkScons = args: callPackage (import ./common.nix args) { }; in { - scons_2_5_1 = mkScons { - version = "2.5.1"; - sha256 = "1wji1z9jdkhnmm99apx6fhld9cs52rr56aigniyrcsmlwy52298b"; - }; scons_3_0_1 = mkScons { version = "3.0.1"; sha256 = "0wzid419mlwqw9llrg8gsx4nkzhqy16m4m40r0xnh6cwscw5wir4"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a4907cb0d16..260dedab4b2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9059,7 +9059,6 @@ in sconsPackages = callPackage ../development/tools/build-managers/scons { }; scons = sconsPackages.scons_3_0_3; - scons_2_5_1 = sconsPackages.scons_2_5_1; mill = callPackage ../development/tools/build-managers/mill { }; From 3cd97916fe5d1fa5d24d87c2b1e98f837e1206c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 12 Jan 2019 11:20:43 +0100 Subject: [PATCH 117/120] xorg xcursor-themes: fix build after #53127 --- pkgs/servers/x11/xorg/overrides.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index a3cc183bb3a..27fc33e764b 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -616,7 +616,7 @@ self: super: }); xcursorthemes = super.xcursorthemes.overrideAttrs (attrs: { - buildInputs = attrs.buildInputs ++ [self.xcursorgen]; + buildInputs = attrs.buildInputs ++ [ self.xcursorgen self.xorgproto ]; configureFlags = [ "--with-cursordir=$(out)/share/icons" ]; }); From 6359e9baf01a7bdc37f18a6eda7b6953e95318f0 Mon Sep 17 00:00:00 2001 From: Timo Kaufmann Date: Sat, 12 Jan 2019 11:24:31 +0100 Subject: [PATCH 118/120] python3.pkgs.tinycss: fix build (#53831) The build was broken by the python 3.7 switch, which caused an incompatible change in the way cython generates files: https://github.com/Kozea/tinycss/issues/17 This is solved by removing the pre-generated file and re-generating it at build time. --- pkgs/development/python-modules/tinycss/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/development/python-modules/tinycss/default.nix b/pkgs/development/python-modules/tinycss/default.nix index ab6a4183df5..223d778095a 100644 --- a/pkgs/development/python-modules/tinycss/default.nix +++ b/pkgs/development/python-modules/tinycss/default.nix @@ -3,6 +3,7 @@ , fetchPypi , pytest , python +, cython , cssutils , isPyPy }: @@ -18,6 +19,17 @@ buildPythonPackage rec { checkInputs = [ pytest ]; propagatedBuildInputs = [ cssutils ]; + nativeBuildInputs = [ + cython + ]; + + preBuild = '' + # Force cython to re-generate this file. If it is present, cython will + # think it is "up to date" even though it was generated with an older, + # incompatible version of cython. See + # https://github.com/Kozea/tinycss/issues/17. + rm tinycss/speedups.c + ''; checkPhase = '' py.test $out/${python.sitePackages} From 3d730814998c6f7ac8bfb753b9514a0df4a9d183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 12 Jan 2019 12:11:05 +0100 Subject: [PATCH 119/120] libnice: avoid one test for now /cc #53293. --- pkgs/development/libraries/libnice/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/libnice/default.nix b/pkgs/development/libraries/libnice/default.nix index b78c8a8bbe1..32529d83914 100644 --- a/pkgs/development/libraries/libnice/default.nix +++ b/pkgs/development/libraries/libnice/default.nix @@ -33,6 +33,9 @@ stdenv.mkDerivation rec { }) ]; + # TMP: one test is still problematic, apparently + postPatch = "sed '/test-drop-invalid/d' -i tests/meson.build"; + nativeBuildInputs = [ meson ninja pkgconfig python3 gobject-introspection gtk-doc docbook_xsl docbook_xml_dtd_412 ]; buildInputs = [ gst_all_1.gstreamer gst_all_1.gst-plugins-base gnutls ]; propagatedBuildInputs = [ glib gupnp-igd ]; From 3131a8ea84a35437b5617598dc3fd3d0bb135829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 12 Jan 2019 17:14:27 +0100 Subject: [PATCH 120/120] libnice: disable all tests for now :-( Before this commit it built fine a few times for me, i.e. without the single test, but it failed on Hydra anyway. I guess jtojnar also tested the final expression with all tests, so apparently they are sensitive the the kind of machine they run on. --- pkgs/development/libraries/libnice/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/libnice/default.nix b/pkgs/development/libraries/libnice/default.nix index 32529d83914..e71bcd0e368 100644 --- a/pkgs/development/libraries/libnice/default.nix +++ b/pkgs/development/libraries/libnice/default.nix @@ -33,9 +33,6 @@ stdenv.mkDerivation rec { }) ]; - # TMP: one test is still problematic, apparently - postPatch = "sed '/test-drop-invalid/d' -i tests/meson.build"; - nativeBuildInputs = [ meson ninja pkgconfig python3 gobject-introspection gtk-doc docbook_xsl docbook_xml_dtd_412 ]; buildInputs = [ gst_all_1.gstreamer gst_all_1.gst-plugins-base gnutls ]; propagatedBuildInputs = [ glib gupnp-igd ]; @@ -50,7 +47,8 @@ stdenv.mkDerivation rec { "-Dintrospection=enabled" ]; - doCheck = true; + # TODO; see #53293 etc. + #doCheck = true; meta = with stdenv.lib; { homepage = https://nice.freedesktop.org/wiki/;