From ee69ee419bc9afdb9a398f4a53e910f292d3165e Mon Sep 17 00:00:00 2001 From: Marius Bergmann Date: Tue, 14 Mar 2017 22:02:43 +0100 Subject: [PATCH 01/41] liquid-dsp: init at 20170307 liquid-dsp is a dependency for the latest git version of inspectrum, therefore I added it in order to be able to upgrade inspectrum. --- .../libraries/liquid-dsp/default.nix | 23 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/libraries/liquid-dsp/default.nix diff --git a/pkgs/development/libraries/liquid-dsp/default.nix b/pkgs/development/libraries/liquid-dsp/default.nix new file mode 100644 index 0000000000000..391606d59e689 --- /dev/null +++ b/pkgs/development/libraries/liquid-dsp/default.nix @@ -0,0 +1,23 @@ +{stdenv, fetchFromGitHub, autoreconfHook }: + +stdenv.mkDerivation rec { + name = "liquid-dsp-${version}"; + version = "20170307"; + + src = fetchFromGitHub { + owner = "jgaeddert"; + repo = "liquid-dsp"; + rev = "8c1978fa4f5662b8849fe712be716958f29cec0e"; + sha256 = "0zpxvdsrw0vzzp3iaag3wh4z8ygl7fkswgjppp2fz2zhhqh93k2w"; + }; + + nativeBuildInputs = [ autoreconfHook ]; + + meta = { + homepage = http://liquidsdr.org/; + description = "Digital signal processing library for software-defined radios"; + license = stdenv.lib.licenses.mit; + platforms = stdenv.lib.platforms.unix; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4a73c033c4ee4..0294b3671484f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8865,6 +8865,8 @@ with pkgs; lirc = callPackage ../development/libraries/lirc { }; + liquid-dsp = callPackage ../development/libraries/liquid-dsp { }; + liquidfun = callPackage ../development/libraries/liquidfun { }; live555 = callPackage ../development/libraries/live555 { }; From 2876cd7e98df572b900239539052badcfa44d438 Mon Sep 17 00:00:00 2001 From: Marius Bergmann Date: Tue, 14 Mar 2017 22:08:05 +0100 Subject: [PATCH 02/41] inspectrum: 20160403 -> 20170218 --- pkgs/applications/misc/inspectrum/default.nix | 29 +++++++++++++++---- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/misc/inspectrum/default.nix b/pkgs/applications/misc/inspectrum/default.nix index 536582e4ee714..6ec968ecc94d8 100644 --- a/pkgs/applications/misc/inspectrum/default.nix +++ b/pkgs/applications/misc/inspectrum/default.nix @@ -1,18 +1,35 @@ -{ stdenv, fetchFromGitHub, pkgconfig, cmake, boost, fftwFloat, qt5, gnuradio }: +{ stdenv +, fetchFromGitHub +, pkgconfig +, cmake +, boost +, fftwFloat +, qt5 +, gnuradio +, liquid-dsp +}: stdenv.mkDerivation rec { name = "inspectrum-${version}"; - version = "20160403"; + version = "20170218"; src = fetchFromGitHub { owner = "miek"; repo = "inspectrum"; - rev = "27381dbb30f59267a429c04d17d792d3953a6b99"; - sha256 = "0y4j62khq6fcv2qqlqi0kn2ix821m5gcqzg72nhc2zzfb3cdm9nm"; + rev = "d8d1969a4cceeee0ebfd2f39e791fddd5155d4de"; + sha256 = "05sarfin9wqkvgwn3fil1r4bay03cwzzhjwbdjslibc5chdrr2cn"; }; - buildInputs = [ pkgconfig cmake qt5.qtbase fftwFloat boost gnuradio ]; - + buildInputs = [ + pkgconfig + cmake + qt5.qtbase + fftwFloat + boost + gnuradio + liquid-dsp + ]; + meta = with stdenv.lib; { description = "Tool for analysing captured signals from sdr receivers"; homepage = https://github.com/miek/inspectrum; From 2e91b2d585afdb3b076b3ad655579774f100bad5 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sat, 18 Mar 2017 21:04:07 +0200 Subject: [PATCH 03/41] default.nix: Provide correct instructions how to upgrade Nix Supersedes #17631. --- default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 8171f4149d2f8..a4896a9bbeece 100644 --- a/default.nix +++ b/default.nix @@ -2,7 +2,17 @@ let requiredVersion = import ./lib/minver.nix; in if ! builtins ? nixVersion || builtins.compareVersions requiredVersion builtins.nixVersion == 1 then - abort "This version of Nixpkgs requires Nix >= ${requiredVersion}, please upgrade! See https://nixos.org/wiki/How_to_update_when_Nix_is_too_old_to_evaluate_Nixpkgs" + abort '' + + This version of Nixpkgs requires Nix >= ${requiredVersion}, please upgrade: + + - If you are running NixOS, use `nixos-rebuild' to upgrade your system. + + - If you installed Nix using the install script (https://nixos.org/nix/install), + it is safe to upgrade by running it again: + + curl https://nixos.org/nix/install | sh + '' else From 63bd364cf9bf8ce24a2b0057e9b89b1b58e4b725 Mon Sep 17 00:00:00 2001 From: Shane Pearlman Date: Sat, 18 Mar 2017 21:44:55 -0700 Subject: [PATCH 04/41] htmldoc: add darwin support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I also added a long description and updated the homepage to point to the author’s new github.io site. --- lib/maintainers.nix | 1 + pkgs/applications/misc/htmldoc/default.nix | 16 ----------- pkgs/tools/typesetting/htmldoc/default.nix | 32 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 8 +++--- 4 files changed, 37 insertions(+), 20 deletions(-) delete mode 100644 pkgs/applications/misc/htmldoc/default.nix create mode 100644 pkgs/tools/typesetting/htmldoc/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index e7b8ff7bf1015..3264d7fcba27a 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -453,6 +453,7 @@ scolobb = "Sergiu Ivanov "; sepi = "Raffael Mancini "; seppeljordan = "Sebastian Jordan "; + shanemikel = "Shane Pearlman "; sheenobu = "Sheena Artrip "; sheganinans = "Aistis Raulinaitis "; shell = "Shell Turner "; diff --git a/pkgs/applications/misc/htmldoc/default.nix b/pkgs/applications/misc/htmldoc/default.nix deleted file mode 100644 index e8274418ae169..0000000000000 --- a/pkgs/applications/misc/htmldoc/default.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ stdenv, fetchurl, fltk, openssl, libpng, libjpeg }: -stdenv.mkDerivation rec { - name = "htmldoc-1.8.27"; - src = fetchurl { - url = http://ftp.easysw.com/pub/htmldoc/1.8.27/htmldoc-1.8.27-source.tar.bz2; - sha256 = "04wnxgx6fxdxwiy9vbawdibngwf55mi01hjrr5fkfs22fcix5zw9"; - }; - buildInputs = [ fltk openssl libpng libjpeg ]; - meta = { - homepage = http://www.htmldoc.org/; - description = "Converts HTML files to indexed HTML, PS or PDF"; - license = stdenv.lib.licenses.gpl2; - maintainers = with stdenv.lib.maintainers; [ viric ]; - platforms = with stdenv.lib.platforms; linux; - }; -} diff --git a/pkgs/tools/typesetting/htmldoc/default.nix b/pkgs/tools/typesetting/htmldoc/default.nix new file mode 100644 index 0000000000000..74abb8e60c6ac --- /dev/null +++ b/pkgs/tools/typesetting/htmldoc/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchurl + +, SystemConfiguration ? null, Foundation ? null +}: + +assert stdenv.isDarwin -> SystemConfiguration != null + && Foundation != null; + +stdenv.mkDerivation { + name = "htmldoc-1.8.29"; + src = fetchurl { + url = "https://github.com/michaelrsweet/htmldoc/releases/download" + + "/release-1.8.29/htmldoc-1.8.29-source.tar.gz"; + md5 = "14d32bd772e2bc6af7b9b2233724c3ec"; + }; + buildInputs = + stdenv.lib.ifEnable stdenv.isDarwin [SystemConfiguration Foundation]; + + meta = with stdenv.lib; { + description = "Converts HTML files to PostScript and PDF"; + homepage = https://michaelrsweet.github.io/htmldoc; + license = licenses.gpl2; + maintainers = with maintainers; [ viric shanemikel ]; + platforms = with platforms; linux ++ darwin; + + longDescription = '' + HTMLDOC is a program that reads HTML source files or web pages and + generates corresponding HTML, PostScript, or PDF files with an optional + table of contents. + ''; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9686b1c62d64f..1957b18cb8cbe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4356,6 +4356,10 @@ with pkgs; html-xml-utils = callPackage ../tools/text/xml/html-xml-utils { }; + htmldoc = callPackage ../tools/typesetting/htmldoc { + inherit (darwin.apple_sdk.frameworks) SystemConfiguration Foundation; + }; + rcm = callPackage ../tools/misc/rcm {}; tftp-hpa = callPackage ../tools/networking/tftp-hpa {}; @@ -13902,10 +13906,6 @@ with pkgs; ht = callPackage ../applications/editors/ht { }; - htmldoc = callPackage ../applications/misc/htmldoc { - fltk = fltk13; - }; - hugin = callPackage ../applications/graphics/hugin { }; hugo = callPackage ../applications/misc/hugo { }; From 1b10483b5e217fd1725b90009a45c05443cba737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 19 Mar 2017 13:31:13 +0100 Subject: [PATCH 05/41] htmldoc: use sha256 instead of md5 --- pkgs/tools/typesetting/htmldoc/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/typesetting/htmldoc/default.nix b/pkgs/tools/typesetting/htmldoc/default.nix index 74abb8e60c6ac..0cd1343dd4b52 100644 --- a/pkgs/tools/typesetting/htmldoc/default.nix +++ b/pkgs/tools/typesetting/htmldoc/default.nix @@ -6,12 +6,13 @@ assert stdenv.isDarwin -> SystemConfiguration != null && Foundation != null; -stdenv.mkDerivation { - name = "htmldoc-1.8.29"; +stdenv.mkDerivation rec { + version = "1.8.29"; + name = "htmldoc-${version}"; src = fetchurl { url = "https://github.com/michaelrsweet/htmldoc/releases/download" - + "/release-1.8.29/htmldoc-1.8.29-source.tar.gz"; - md5 = "14d32bd772e2bc6af7b9b2233724c3ec"; + + "/release-${version}/htmldoc-${version}-source.tar.gz"; + sha256 = "15x0xdf487j4i4gfap5yr83airxnbp2v4lxaz79a4s3iirrq39p0"; }; buildInputs = stdenv.lib.ifEnable stdenv.isDarwin [SystemConfiguration Foundation]; From c883cefc6fa60feba83615bb7d77090855e12733 Mon Sep 17 00:00:00 2001 From: Marti Serra Date: Sat, 18 Mar 2017 19:51:25 +0100 Subject: [PATCH 06/41] pythonPackages.libnacl: init at 1.5.0 --- lib/maintainers.nix | 1 + .../python-modules/libnacl/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 3 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/libnacl/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index e7b8ff7bf1015..88a051cb57f5c 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -538,6 +538,7 @@ wscott = "Wayne Scott "; wyvie = "Elijah Rum "; xnwdd = "Guillermo NWDD "; + xvapx = "Marti Serra "; xwvvvvwx = "David Terry "; yarr = "Dmitry V. "; yochai = "Yochai "; diff --git a/pkgs/development/python-modules/libnacl/default.nix b/pkgs/development/python-modules/libnacl/default.nix new file mode 100644 index 0000000000000..09d834c856870 --- /dev/null +++ b/pkgs/development/python-modules/libnacl/default.nix @@ -0,0 +1,26 @@ +{ stdenv, buildPythonPackage, fetchPypi, pkgs }: + +buildPythonPackage rec { + pname = "libnacl"; + version = "1.5.0"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "1ph042x0cfysj16mmjif40pxn505rg5c9n94s972dgc0mfgvrwhs"; + }; + + propagatedBuildInputs = [ pkgs.libsodium ]; + + postPatch = '' + substituteInPlace "./libnacl/__init__.py" --replace "ctypes.cdll.LoadLibrary('libsodium.so')" "ctypes.cdll.LoadLibrary('${pkgs.libsodium}/lib/libsodium.so')" + ''; + + meta = { + maintainers = with stdenv.lib.maintainers; [ xvapx ]; + description = "Python bindings for libsodium based on ctypes"; + homepage = "https://pypi.python.org/pypi/libnacl"; + license = stdenv.lib.licenses.asl20; + platforms = stdenv.lib.platforms.linux; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9a3debdf48b7e..a8edf1e7616ca 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13867,6 +13867,8 @@ in { clblas = pkgs.clblas-cuda; }; + libnacl = callPackage ../development/python-modules/libnacl/default.nix { }; + libplist = if isPy3k then throw "libplist not supported for interpreter ${python.executable}" else (pkgs.libplist.override{python2Packages=self; }).py; From 09a94458d3207093e819d4f2d243ebc9e188203a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 19 Mar 2017 20:47:25 +0100 Subject: [PATCH 07/41] bevelbar: remove unnessary makeFlags --- pkgs/applications/window-managers/bevelbar/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/applications/window-managers/bevelbar/default.nix b/pkgs/applications/window-managers/bevelbar/default.nix index b7bc762848808..582f9cb61f8e0 100644 --- a/pkgs/applications/window-managers/bevelbar/default.nix +++ b/pkgs/applications/window-managers/bevelbar/default.nix @@ -13,7 +13,6 @@ stdenv.mkDerivation rec { buildInputs = [ libX11 libXrandr libXft ]; - makeFlags = [ "prefix=$(out)" ]; installFlags = [ "prefix=$(out)" ]; meta = with stdenv.lib; { From 597865725f89c56b5a7b4fb5eaa006174e82366d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 19 Mar 2017 20:58:41 +0100 Subject: [PATCH 08/41] pythonPackages.libnacl: enable tests --- .../python-modules/libnacl/default.nix | 21 ++++++++++++------- pkgs/top-level/python-packages.nix | 4 +++- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/libnacl/default.nix b/pkgs/development/python-modules/libnacl/default.nix index 09d834c856870..0aa3ed29f20b1 100644 --- a/pkgs/development/python-modules/libnacl/default.nix +++ b/pkgs/development/python-modules/libnacl/default.nix @@ -1,4 +1,4 @@ -{ stdenv, buildPythonPackage, fetchPypi, pkgs }: +{ stdenv, buildPythonPackage, fetchPypi, pytest, libsodium }: buildPythonPackage rec { pname = "libnacl"; @@ -10,17 +10,22 @@ buildPythonPackage rec { sha256 = "1ph042x0cfysj16mmjif40pxn505rg5c9n94s972dgc0mfgvrwhs"; }; - propagatedBuildInputs = [ pkgs.libsodium ]; + buildInputs = [ pytest ]; + propagatedBuildInputs = [ libsodium ]; postPatch = '' - substituteInPlace "./libnacl/__init__.py" --replace "ctypes.cdll.LoadLibrary('libsodium.so')" "ctypes.cdll.LoadLibrary('${pkgs.libsodium}/lib/libsodium.so')" + substituteInPlace "./libnacl/__init__.py" --replace "ctypes.cdll.LoadLibrary('libsodium.so')" "ctypes.cdll.LoadLibrary('${libsodium}/lib/libsodium.so')" ''; - meta = { - maintainers = with stdenv.lib.maintainers; [ xvapx ]; + checkPhase = '' + py.test + ''; + + meta = with stdenv.lib; { + maintainers = with maintainers; [ xvapx ]; description = "Python bindings for libsodium based on ctypes"; homepage = "https://pypi.python.org/pypi/libnacl"; - license = stdenv.lib.licenses.asl20; - platforms = stdenv.lib.platforms.linux; + license = licenses.asl20; + platforms = platforms.linux; }; -} \ No newline at end of file +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a8edf1e7616ca..f59191e6be53d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13867,7 +13867,9 @@ in { clblas = pkgs.clblas-cuda; }; - libnacl = callPackage ../development/python-modules/libnacl/default.nix { }; + libnacl = callPackage ../development/python-modules/libnacl/default.nix { + inherit (pkgs) libsodium; + }; libplist = if isPy3k then throw "libplist not supported for interpreter ${python.executable}" else (pkgs.libplist.override{python2Packages=self; }).py; From 82e760a3d613ec9e82ab48131f8b94b1119dc535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 19 Mar 2017 21:04:43 +0100 Subject: [PATCH 09/41] armadillo: fix evaluation error cc: @ndowens08 --- pkgs/development/libraries/armadillo/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/armadillo/default.nix b/pkgs/development/libraries/armadillo/default.nix index bea592a6d20dc..d5a601f09ba00 100644 --- a/pkgs/development/libraries/armadillo/default.nix +++ b/pkgs/development/libraries/armadillo/default.nix @@ -15,11 +15,11 @@ stdenv.mkDerivation rec { cmakeFlags = [ "-DDETECT_HDF5=ON" ]; patches = [ ./use-unix-config-on-OS-X.patch ]; - + meta = with stdenv.lib; { description = "C++ linear algebra library"; homepage = http://arma.sourceforge.net; - license = licenses.apl2; + license = licenses.asl20; platforms = platforms.unix; maintainers = with maintainers; [ juliendehos knedlsepp ]; }; From 6ea3eefdfc9313c850304d01a398c6199805b726 Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Sun, 19 Mar 2017 16:21:18 -0400 Subject: [PATCH 10/41] gcc5: fix for libc++ 3.8 and above This is in preparation for the big Darwin LLVM 4.0 stdenv switchover --- pkgs/development/compilers/gcc/5/default.nix | 5 +- .../compilers/gcc/5/libcxx38-and-above.patch | 46 +++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/compilers/gcc/5/libcxx38-and-above.patch diff --git a/pkgs/development/compilers/gcc/5/default.nix b/pkgs/development/compilers/gcc/5/default.nix index 1721eba325bf4..da4f7a6067050 100644 --- a/pkgs/development/compilers/gcc/5/default.nix +++ b/pkgs/development/compilers/gcc/5/default.nix @@ -74,7 +74,10 @@ let version = "5.4.0"; # The GNAT Makefiles did not pay attention to CFLAGS_FOR_TARGET for its # target libraries and tools. ++ optional langAda ../gnat-cflags.patch - ++ optional langFortran ../gfortran-driving.patch; + ++ optional langFortran ../gfortran-driving.patch + + # This could be applied unconditionally but I don't want to cause a full Linux rebuild. + ++ optional stdenv.cc.isClang ./libcxx38-and-above.patch; javaEcj = fetchurl { # The `$(top_srcdir)/ecj.jar' file is automatically picked up at diff --git a/pkgs/development/compilers/gcc/5/libcxx38-and-above.patch b/pkgs/development/compilers/gcc/5/libcxx38-and-above.patch new file mode 100644 index 0000000000000..ee48901a6d0ca --- /dev/null +++ b/pkgs/development/compilers/gcc/5/libcxx38-and-above.patch @@ -0,0 +1,46 @@ +This is a slightly modified version of https://svnweb.freebsd.org/ports/head/lang/gcc5/files/patch-libc%2B%2B?revision=432958&view=co&pathrev=432958, +which doesn't apply cleanly due to them using a slightly different format of patch from us. I just replaced the .orig file references with a/b paths. + +--- a/gcc/auto-profile.c 2015-01-18 02:25:42 UTC ++++ b/gcc/auto-profile.c +@@ -19,11 +19,9 @@ along with GCC; see the file COPYING3. + . */ + + #include "config.h" +-#include "system.h" +- +-#include + #include + #include ++#include "system.h" + + #include "coretypes.h" + #include "hash-set.h" +--- a/gcc/graphite-isl-ast-to-gimple.c 2017-01-19 21:02:12 UTC ++++ b/gcc/graphite-isl-ast-to-gimple.c +@@ -38,6 +38,7 @@ extern "C" { + #endif + #endif + ++#include + #include "system.h" + #include "coretypes.h" + #include "hash-set.h" +@@ -75,7 +76,6 @@ extern "C" { + #include "tree-scalar-evolution.h" + #include "gimple-ssa.h" + #include "tree-into-ssa.h" +-#include + + #ifdef HAVE_isl + #include "graphite-poly.h" +--- a/gcc/system.h 2015-01-05 12:33:28 UTC ++++ b/gcc/system.h +@@ -217,6 +217,7 @@ extern int errno; + #ifdef __cplusplus + # include + # include ++# include + # include + #endif + From 93ec1ad987e0d5130509c06e4eb2b3e9b7b5cb5f Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 19 Mar 2017 15:22:57 -0500 Subject: [PATCH 11/41] highlight: 3.28 -> 3.35 (#24068) * highlight: 3.28 -> 3.35 highlight: Add support for darwin, suspecting needs gcc highlight: Fixed isDarwin [gcc] * highlight: enable darwin build --- pkgs/tools/text/highlight/default.nix | 19 ++++++++++++++----- pkgs/top-level/all-packages.nix | 7 +++++-- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/text/highlight/default.nix b/pkgs/tools/text/highlight/default.nix index 6f2a2df82f8dc..666dae1db9b8a 100644 --- a/pkgs/tools/text/highlight/default.nix +++ b/pkgs/tools/text/highlight/default.nix @@ -1,4 +1,6 @@ -{ stdenv, fetchurl, getopt, lua, boost, pkgconfig }: +{ stdenv, fetchurl, getopt, lua, boost, pkgconfig, gcc }: + +with stdenv.lib; stdenv.mkDerivation rec { name = "highlight-${version}"; @@ -9,16 +11,23 @@ stdenv.mkDerivation rec { sha256 = "8a14b49f5e0c07daa9f40b4ce674baa00bb20061079473a5d386656f6d236d05"; }; - nativeBuildInputs = [ pkgconfig ]; + nativeBuildInputs = [ pkgconfig ] ++ optional stdenv.isDarwin gcc ; buildInputs = [ getopt lua boost ]; - preConfigure = ''makeFlags="PREFIX=$out conf_dir=$out/etc/highlight/"''; + prePatch = stdenv.lib.optionalString stdenv.cc.isClang '' + substituteInPlace src/makefile \ + --replace 'CXX=g++' 'CXX=clang++' + ''; + + preConfigure = '' + makeFlags="PREFIX=$out conf_dir=$out/etc/highlight/" + ''; meta = with stdenv.lib; { description = "Source code highlighting tool"; homepage = "http://www.andre-simon.de/doku/highlight/en/highlight.php"; - platforms = platforms.linux; - maintainers = maintainers.ndowens; + platforms = platforms.unix; + maintainers = [ maintainers.ndowens ]; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 11ccfd1a30ab5..a2e5fe27b14af 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2255,9 +2255,12 @@ with pkgs; hfsprogs = callPackage ../tools/filesystems/hfsprogs { }; - highlight = callPackage ../tools/text/highlight { + highlight = callPackage ../tools/text/highlight ({ lua = lua5; - }; + } // lib.optionalAttrs stdenv.isDarwin { + # doesn't build with clang_37 + inherit (llvmPackages_38) stdenv; + }); homesick = callPackage ../tools/misc/homesick { }; From d80a7210bb8ec1344796cce057e420ed46fb5e77 Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Sun, 19 Mar 2017 16:33:52 -0400 Subject: [PATCH 12/41] nasm: 2.11.08 -> 2.12.02 Upgrading primarily because it works with newer LLVM (for the big Darwin stdenv LLVM bump) but a newer version probably helps for other reasons :) --- pkgs/development/compilers/nasm/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/nasm/default.nix b/pkgs/development/compilers/nasm/default.nix index a30a97ce9ce5a..eb090e8b38ad6 100644 --- a/pkgs/development/compilers/nasm/default.nix +++ b/pkgs/development/compilers/nasm/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "nasm-${version}"; - version = "2.11.08"; + version = "2.12.02"; src = fetchurl { url = "http://www.nasm.us/pub/nasm/releasebuilds/${version}/${name}.tar.bz2"; - sha256 = "0ialkla6i63j8fpv840jy7k5mdf2wbqr98bvbcq0dp0b38ls18wx"; + sha256 = "097318bjxvmffbjfd1k89parc04xf5jfxg2rr93581lccwf8kc00"; }; meta = with stdenv.lib; { From 876dead5b6c3732642d3c70e2d071f2923372d0e Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 19 Mar 2017 15:41:35 -0500 Subject: [PATCH 13/41] joe: 4.2 -> 4.4 --- pkgs/applications/editors/joe/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/joe/default.nix b/pkgs/applications/editors/joe/default.nix index 323059417ea8c..d6c87c4991b95 100644 --- a/pkgs/applications/editors/joe/default.nix +++ b/pkgs/applications/editors/joe/default.nix @@ -1,12 +1,12 @@ { stdenv, fetchurl } : stdenv.mkDerivation rec { - version = "4.2"; + version = "4.4"; name = "joe-${version}"; src = fetchurl { url = "mirror://sourceforge/joe-editor/${name}.tar.gz"; - sha256 = "0x39x0qrwdbhl45wd8r8cpzigsip6m5j2crajsrbffk8qm5scpdw"; + sha256 = "0y898r1xlrv75m00y598rvwwsricabplyh80wawsqafapcl4hw55"; }; meta = with stdenv.lib; { From fa9400f16f9737ebb6cd1aec3a534a645db23fc7 Mon Sep 17 00:00:00 2001 From: Shane Pearlman Date: Sun, 19 Mar 2017 14:21:29 -0700 Subject: [PATCH 14/41] htmldoc: use stdenv.lib.optional instead of stdenv.lib.enable --- pkgs/tools/typesetting/htmldoc/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/typesetting/htmldoc/default.nix b/pkgs/tools/typesetting/htmldoc/default.nix index 0cd1343dd4b52..b9d5407c68de3 100644 --- a/pkgs/tools/typesetting/htmldoc/default.nix +++ b/pkgs/tools/typesetting/htmldoc/default.nix @@ -14,8 +14,9 @@ stdenv.mkDerivation rec { + "/release-${version}/htmldoc-${version}-source.tar.gz"; sha256 = "15x0xdf487j4i4gfap5yr83airxnbp2v4lxaz79a4s3iirrq39p0"; }; - buildInputs = - stdenv.lib.ifEnable stdenv.isDarwin [SystemConfiguration Foundation]; + buildInputs = with stdenv; + lib.optional isDarwin SystemConfiguration + ++ lib.optional isDarwin Foundation; meta = with stdenv.lib; { description = "Converts HTML files to PostScript and PDF"; From b00bfb0401347637e512ef56acb4e34c266209b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Mass=C3=A9?= Date: Sun, 19 Mar 2017 17:15:21 -0400 Subject: [PATCH 15/41] cre2: init at 0.3.0 c wrapper for google's re2 regex library --- pkgs/development/libraries/cre2/default.nix | 39 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/libraries/cre2/default.nix diff --git a/pkgs/development/libraries/cre2/default.nix b/pkgs/development/libraries/cre2/default.nix new file mode 100644 index 0000000000000..c1fe4686ce237 --- /dev/null +++ b/pkgs/development/libraries/cre2/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchFromGitHub, autoconf, automake, + libtool, pkgconfig, re2, texinfo }: + +stdenv.mkDerivation rec { + name = "cre2-${version}"; + + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "marcomaggi"; + repo = "cre2"; + rev = version; + sha256 = "12yrdad87jjqrhbqm02hzsayan2402vf61a9x1b2iabv6d1c1bnj"; + }; + + nativeBuildInputs = [ + autoconf + automake + libtool + pkgconfig + re2 + texinfo + ]; + + NIX_LDFLAGS="-lre2 -lpthread"; + + preConfigure = "sh autogen.sh"; + + configureFlags = [ + "--enable-maintainer-mode" + ]; + + meta = { + homepage = http://marcomaggi.github.io/docs/cre2.html; + description = "C Wrapper for RE2"; + license = stdenv.lib.licenses.bsd3; + platforms = with stdenv.lib.platforms; all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a2e5fe27b14af..85df2db268265 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7195,6 +7195,8 @@ with pkgs; cracklib = callPackage ../development/libraries/cracklib { }; + cre2 = callPackage ../development/libraries/cre2 { }; + cryptopp = callPackage ../development/libraries/crypto++ { }; curlcpp = callPackage ../development/libraries/curlcpp { }; From d6114f6c6bd74c68829a4a586464b9a1633c76ac Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 19 Mar 2017 16:07:12 -0500 Subject: [PATCH 16/41] mg: 20110905 -> 20161005; Remove un-needed configure patch mg: 20110905 -> 20161005 --- pkgs/applications/editors/mg/configure.patch | 35 -------------------- pkgs/applications/editors/mg/default.nix | 29 ++++++++-------- 2 files changed, 15 insertions(+), 49 deletions(-) delete mode 100644 pkgs/applications/editors/mg/configure.patch diff --git a/pkgs/applications/editors/mg/configure.patch b/pkgs/applications/editors/mg/configure.patch deleted file mode 100644 index 11105299eb4b8..0000000000000 --- a/pkgs/applications/editors/mg/configure.patch +++ /dev/null @@ -1,35 +0,0 @@ ---- configure.old 2013-07-30 19:42:51.000000000 +0200 -+++ configure 2013-07-30 19:47:26.000000000 +0200 -@@ -163,31 +163,7 @@ - echo 'Fails.' - fi - -- --if [ ! -r /usr/include/term.h ]; then -- note 'term.h' -- if [ -r /usr/include/ncurses/term.h ]; then -- echo "Found in /usr/include/ncurses" -- extraflags="$extraflags -I/usr/include/ncurses" -- else -- for i in pkg local; do -- if [ -r /usr/$i/include/term.h ]; then -- echo "Found in /usr/$i/include" -- extralibs="$extralibs -L/usr/$i/lib" -- extraflags="$extraflags -I/usr/$i/include" -- break -- else -- false -- fi -- done || -- { -- echo 'Not found!' >&2 -- echo 'Do you have the ncurses devel package installed?' >&2 -- echo 'If you know where term.h is, please email the author!' >&2 -- exit 1 -- } -- fi --fi -+extraflags="$extraflags $NIX_CFLAGS_COMPILE" - - note 'base and dirname' - if gcc_defines "__GLIBC__" || gcc_defines "__CYGWIN__" ; then diff --git a/pkgs/applications/editors/mg/default.nix b/pkgs/applications/editors/mg/default.nix index 95a6205125b01..b8bfd40c079ba 100644 --- a/pkgs/applications/editors/mg/default.nix +++ b/pkgs/applications/editors/mg/default.nix @@ -1,19 +1,19 @@ -{ fetchurl, stdenv, ncurses }: +{ fetchurl, stdenv, ncurses, pkgconfig, libbsd }: stdenv.mkDerivation rec { - name = "mg-20110905"; + name = "mg-${version}"; + version = "20161005"; src = fetchurl { - url = http://homepage.boetes.org/software/mg/mg-20110905.tar.gz; - sha256 = "0ac2c7wy5kkcflm7cmiqm5xhb5c4yfw3i33iln8civ1yd9z7vlqw"; + url = "http://homepage.boetes.org/software/mg/${name}.tar.gz"; + sha256 = "0qaydk2cy765n9clghmi5gdnpwn15y2v0fj6r0jcm0v7d89vbz5p"; }; - dontAddPrefix = true; - - patches = [ ./configure.patch ]; - patchFlags = "-p0"; - NIX_CFLAGS_COMPILE = "-Wno-error"; - buildFlags = [ "CC=cc" ]; + + preConfigure = '' + substituteInPlace GNUmakefile \ + --replace /usr/bin/pkg-config ${pkgconfig}/bin/pkg-config + ''; installPhase = '' mkdir -p $out/bin @@ -22,12 +22,13 @@ stdenv.mkDerivation rec { cp mg.1 $out/share/man/man1 ''; - buildInputs = [ ncurses ]; + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ ncurses libbsd ]; - meta = { + meta = with stdenv.lib; { homepage = http://homepage.boetes.org/software/mg/; description = "Micro GNU/emacs, a portable version of the mg maintained by the OpenBSD team"; - license = stdenv.lib.licenses.publicDomain; - platforms = stdenv.lib.platforms.all; + license = licenses.publicDomain; + platforms = platforms.all; }; } From 685ac5287b7e76fe08bd39dc257706757a93efdf Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 19 Mar 2017 16:36:48 -0500 Subject: [PATCH 17/41] nano: 2.7.3 -> 2.7.5 --- pkgs/applications/editors/nano/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix index 9814e697d22b8..b1f581dc8417b 100644 --- a/pkgs/applications/editors/nano/default.nix +++ b/pkgs/applications/editors/nano/default.nix @@ -17,23 +17,28 @@ let rev = "17e0de65e1cbba3d6baa82deaefa853b41f5c161"; sha256 = "1g51h65i31andfs2fbp1v3vih9405iknqn11fzywjxji00kjqv5s"; }; + in stdenv.mkDerivation rec { name = "nano-${version}"; - version = "2.7.3"; + version = "2.7.5"; + src = fetchurl { url = "mirror://gnu/nano/${name}.tar.xz"; - sha256 = "1z0bfyc5cvv83l3bjmlcwl49mpxrp65k5ffsfpnayfyjc18fy9nr"; + sha256 = "1r37gqx7hppqbgsbclchiis8wzzpb9srm3q3dlvlii2gpkk28kd6"; }; + nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext; buildInputs = [ ncurses ]; + outputs = [ "out" "info" ]; + configureFlags = '' --sysconfdir=/etc ${optionalString (!enableNls) "--disable-nls"} ${optionalString enableTiny "--enable-tiny"} ''; - postPatch = stdenv.lib.optionalString stdenv.isDarwin '' + postPatch = optionalString stdenv.isDarwin '' substituteInPlace src/text.c --replace "__time_t" "time_t" ''; From 3ac089757a76008f75b563a0014bd94a9afbe6d4 Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 19 Mar 2017 16:50:06 -0500 Subject: [PATCH 18/41] Cosmetic change; Replaced automake autoconf --- pkgs/development/libraries/cre2/default.nix | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/pkgs/development/libraries/cre2/default.nix b/pkgs/development/libraries/cre2/default.nix index c1fe4686ce237..74619cbaaaede 100644 --- a/pkgs/development/libraries/cre2/default.nix +++ b/pkgs/development/libraries/cre2/default.nix @@ -1,9 +1,8 @@ -{ stdenv, fetchFromGitHub, autoconf, automake, +{ stdenv, fetchFromGitHub, autoreconfHook, libtool, pkgconfig, re2, texinfo }: stdenv.mkDerivation rec { name = "cre2-${version}"; - version = "0.3.0"; src = fetchFromGitHub { @@ -14,26 +13,22 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ - autoconf - automake + autoreconfHook libtool pkgconfig - re2 - texinfo ]; + buildInputs = [ re2 texinfo ]; NIX_LDFLAGS="-lre2 -lpthread"; - preConfigure = "sh autogen.sh"; - configureFlags = [ "--enable-maintainer-mode" ]; - meta = { + meta = with stdenv.lib; { homepage = http://marcomaggi.github.io/docs/cre2.html; description = "C Wrapper for RE2"; - license = stdenv.lib.licenses.bsd3; - platforms = with stdenv.lib.platforms; all; + license = licenses.bsd3; + platforms = platforms.all; }; } From 5d849c72f162cf5282d3c966889a5b7cc26fcff3 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sun, 19 Mar 2017 16:40:27 -0500 Subject: [PATCH 19/41] neo4j: 3.1.1 -> 3.1.2 --- pkgs/servers/nosql/neo4j/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/nosql/neo4j/default.nix b/pkgs/servers/nosql/neo4j/default.nix index f6fcca16081bc..a2158c9b54106 100644 --- a/pkgs/servers/nosql/neo4j/default.nix +++ b/pkgs/servers/nosql/neo4j/default.nix @@ -4,11 +4,11 @@ with stdenv.lib; stdenv.mkDerivation rec { name = "neo4j-${version}"; - version = "3.1.1"; + version = "3.1.2"; src = fetchurl { url = "http://dist.neo4j.org/neo4j-community-${version}-unix.tar.gz"; - sha256 = "1jz257brrrblxq0jdh79mmqand6lwi632y8sy5j6dxl3ssd3hrkx"; + sha256 = "0kvbsm9mjwqyl3q2myif28a0f11i4rfq3hik07w9cdnrwyd75s40"; }; buildInputs = [ makeWrapper jre8 which gawk ]; From 515fc22263b22952e11632ff44c673dee25f48e1 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sun, 19 Mar 2017 16:40:41 -0500 Subject: [PATCH 20/41] neo4j service: fix package installed into env to match running service --- nixos/modules/services/databases/neo4j.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/databases/neo4j.nix b/nixos/modules/services/databases/neo4j.nix index 205c8dc610ac4..7fba61fff5946 100644 --- a/nixos/modules/services/databases/neo4j.nix +++ b/nixos/modules/services/databases/neo4j.nix @@ -140,7 +140,7 @@ in { ''; }; - environment.systemPackages = [ pkgs.neo4j ]; + environment.systemPackages = [ cfg.package ]; users.extraUsers = singleton { name = "neo4j"; From cb73cb9e6216a09d5d071e42cd3e0248efe905bd Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sun, 19 Mar 2017 16:41:55 -0500 Subject: [PATCH 21/41] neo4j service: neo4j-wrapper is deprecated, merge into neo4j.conf --- nixos/modules/services/databases/neo4j.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/nixos/modules/services/databases/neo4j.nix b/nixos/modules/services/databases/neo4j.nix index 7fba61fff5946..424e08a6ee346 100644 --- a/nixos/modules/services/databases/neo4j.nix +++ b/nixos/modules/services/databases/neo4j.nix @@ -27,9 +27,7 @@ let ''} dbms.shell.enabled=true ${cfg.extraServerConfig} - ''; - wrapperConfig = pkgs.writeText "neo4j-wrapper.conf" '' # Default JVM parameters from neo4j.conf dbms.jvm.additional=-XX:+UseG1GC dbms.jvm.additional=-XX:-OmitStackTraceInFastThrow @@ -135,7 +133,6 @@ in { preStart = '' mkdir -m 0700 -p ${cfg.dataDir}/{data/graph.db,conf,logs} ln -fs ${serverConfig} ${cfg.dataDir}/conf/neo4j.conf - ln -fs ${wrapperConfig} ${cfg.dataDir}/conf/neo4j-wrapper.conf if [ "$(id -u)" = 0 ]; then chown -R neo4j ${cfg.dataDir}; fi ''; }; From 8ab037e0b5aec850db9025478f78f318e4979b60 Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 19 Mar 2017 17:18:26 -0500 Subject: [PATCH 22/41] nedit: 5.6a -> 5.7 --- pkgs/applications/editors/nedit/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/editors/nedit/default.nix b/pkgs/applications/editors/nedit/default.nix index d933a207cd4a0..a15b557f0e574 100644 --- a/pkgs/applications/editors/nedit/default.nix +++ b/pkgs/applications/editors/nedit/default.nix @@ -1,16 +1,18 @@ { stdenv, fetchurl, xlibsWrapper, motif, libXpm }: stdenv.mkDerivation rec { - name = "nedit-5.6a"; + name = "nedit-${version}"; + version = "5.7"; src = fetchurl { url = "mirror://sourceforge/nedit/nedit-source/${name}-src.tar.gz"; - sha256 = "1v8y8vwj3kn91crsddqkz843y6csgw7wkjnd3zdcb4bcrf1pjrsk"; + sha256 = "0ym1zhjx9976rf2z5nr7dj4mjkxcicimhs686snjhdcpzxwsrndd"; }; hardeningDisable = [ "format" ]; - buildInputs = [ xlibsWrapper motif libXpm ]; + nativeBuildInputs = [ xlibsWrapper ]; + buildInputs = [ motif libXpm ]; buildFlags = if stdenv.isLinux then "linux" else # the linux config works fine on darwin too! @@ -24,7 +26,7 @@ stdenv.mkDerivation rec { ''; meta = with stdenv.lib; { - homepage = http://www.nedit.org; + homepage = http://sourceforge.net/projects/nedit; platforms = with platforms; linux ++ darwin; }; } From e27a85709d97671747aff55a455ae0b720bed7d6 Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 19 Mar 2017 17:28:35 -0500 Subject: [PATCH 23/41] scite: 3.3.7 -> 3.7.3; Cosmetic changes --- pkgs/applications/editors/scite/default.nix | 22 ++++++++++----------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/pkgs/applications/editors/scite/default.nix b/pkgs/applications/editors/scite/default.nix index 989d3e42a6faa..d02a08a0a5977 100644 --- a/pkgs/applications/editors/scite/default.nix +++ b/pkgs/applications/editors/scite/default.nix @@ -1,18 +1,16 @@ { stdenv, fetchurl, pkgconfig, gtk2 }: -let - version = "3.3.7"; - - version_short = stdenv.lib.replaceChars [ "." ] [ "" ] "${version}"; -in stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "scite-${version}"; + version = "3.7.3"; src = fetchurl { - url = "mirror://sourceforge/project/scintilla/SciTE/${version}/scite${version_short}.tgz"; - sha256 = "0x7i6yxq50frsjkrp3lc5zy0d1ssq2n91igjn0dmqajpg7kls2dd"; + url = "mirror://sourceforge/project/scintilla/SciTE/${version}/scite373.tgz"; + sha256 = "05d81h1fqhjlw9apvrni3x2q4a562cd5ra1071qpna8h4ml0an9m"; }; - buildInputs = [ pkgconfig gtk2 ]; + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ gtk2 ]; sourceRoot = "scintilla/gtk"; buildPhase = '' @@ -25,11 +23,11 @@ in stdenv.mkDerivation { make install prefix=$out/ ''; - meta = { + meta = with stdenv.lib; { homepage = "http://www.scintilla.org/SciTE.html"; description = "SCIntilla based Text Editor"; - license = stdenv.lib.licenses.mit; - platforms = stdenv.lib.platforms.linux; - maintainers = [ stdenv.lib.maintainers.rszibele ]; + license = licenses.mit; + platforms = platforms.linux; + maintainers = [ maintainers.rszibele ]; }; } From d9f46aa58a3e40ab36cde54fd57dfddec15e6006 Mon Sep 17 00:00:00 2001 From: Shane Pearlman Date: Wed, 25 Jan 2017 15:49:08 -0800 Subject: [PATCH 24/41] nix-diff.sh maintainer script: "diffs" Nix environment generations This script was inspired by Guix. Read the source for documentation, or invoke it with `nix-diff.sh -h` for a usage summary. --- maintainers/scripts/nix-diff.sh | 277 ++++++++++++++++++++++++++++++++ 1 file changed, 277 insertions(+) create mode 100755 maintainers/scripts/nix-diff.sh diff --git a/maintainers/scripts/nix-diff.sh b/maintainers/scripts/nix-diff.sh new file mode 100755 index 0000000000000..9e85b116bc921 --- /dev/null +++ b/maintainers/scripts/nix-diff.sh @@ -0,0 +1,277 @@ +#!/usr/bin/env nix-shell +#! nix-shell -i bash -p coreutils gnugrep gnused + +################################################################################ +# nix-diff.sh # +################################################################################ +# This script "diffs" Nix profile generations. # +# # +# Example: # +################################################################################ +# > nix-diff.sh 90 92 # +# + gnumake-4.2.1 # +# + gnumake-4.2.1-doc # +# - htmldoc-1.8.29 # +################################################################################ +# The example shows that as of generation 92 and since generation 90, # +# gnumake-4.2.1 and gnumake-4.2.1-doc have been installed, while # +# htmldoc-1.8.29 has been removed. # +# # +# The example above shows the default, minimal output mode of this script. # +# For more features, run `nix-diff.sh -h` for usage instructions. # +################################################################################ + +usage() { + cat < diffs from generation A to generation B + ~N => diffs from the Nth newest generation (older than G) to G + A => diffs from generation A to G + * defaults to ~1 +EOF +} + +usage_tip() { + echo 'run `nix-diff.sh -h` for usage instructions' >&2 + exit 1 +} + +while getopts :hqlp:s opt; do + case $opt in + h) + usage + exit + ;; + q) + opt_query=1 + ;; + l) + opt_log=1 + ;; + p) + opt_profile=$OPTARG + ;; + s) + opt_profile=/nix/var/nix/profiles/system + ;; + \?) + echo "error: invalid option -$OPTARG" >&2 + usage_tip + ;; + esac +done +shift $((OPTIND-1)) + +if [ -n "$opt_profile" ]; then + if ! [ -L "$opt_profile" ]; then + echo "error: expecting \`$opt_profile\` to be a symbolic link" >&2 + usage_tip + fi +else + opt_profile=$(readlink ~/.nix-profile) + if (( $? != 0 )); then + echo 'error: unable to dereference `~/.nix-profile`' >&2 + echo 'specify the profile manually with the `-p` flag' >&2 + usage_tip + fi +fi + +list_gens() { + nix-env -p "$opt_profile" --list-generations \ + | sed -r 's:^\s*::' \ + | cut -d' ' -f1 +} + +current_gen() { + nix-env -p "$opt_profile" --list-generations \ + | grep -E '\(current\)\s*$' \ + | sed -r 's:^\s*::' \ + | cut -d' ' -f1 +} + +neg_gen() { + local i=0 from=$1 n=$2 tmp + for gen in $(list_gens | sort -rn); do + if ((gen < from)); then + tmp=$gen + ((i++)) + ((i == n)) && break + fi + done + if ((i < n)); then + echo -n "error: there aren't $n generation(s) older than" >&2 + echo " generation $from" >&2 + return 1 + fi + echo $tmp +} + +match() { + argv=("$@") + for i in $(seq $(($#-1))); do + if grep -E "^${argv[$i]}\$" <(echo "$1") >/dev/null; then + echo $i + return + fi + done + echo 0 +} + +case $(match "$1" '' '[0-9]+' '[0-9]+\.\.[0-9]+' '~[0-9]+') in + 1) + diffTo=$(current_gen) + diffFrom=$(neg_gen $diffTo 1) + (($? == 1)) && usage_tip + ;; + 2) + diffFrom=$1 + diffTo=$(current_gen) + ;; + 3) + diffFrom=${1%%.*} + diffTo=${1##*.} + ;; + 4) + diffTo=$(current_gen) + diffFrom=$(neg_gen $diffTo ${1#*~}) + (($? == 1)) && usage_tip + ;; + 0) + echo 'error: invalid invocation' >&2 + usage_tip + ;; +esac + +dirA="${opt_profile}-${diffFrom}-link" +dirB="${opt_profile}-${diffTo}-link" + +declare -a temp_files +temp_length() { + echo -n ${#temp_files[@]} +} +temp_make() { + temp_files[$(temp_length)]=$(mktemp) +} +temp_clean() { + rm -f ${temp_files[@]} +} +temp_name() { + echo -n "${temp_files[$(($(temp_length)-1))]}" +} +trap 'temp_clean' EXIT + +temp_make +versA=$(temp_name) +refs=$(nix-store -q --references "$dirA") +(( $? != 0 )) && exit 1 +echo "$refs" \ + | grep -v env-manifest.nix \ + | sort \ + > "$versA" + +print_tag() { + local gen=$1 + nix-env -p "$opt_profile" --list-generations \ + | grep -E "^\s*${gen}" \ + | sed -r 's:^\s*::' \ + | sed -r 's:\s*$::' +} + +if [ -n "$opt_query" ]; then + print_tag $diffFrom + cat "$versA" \ + | sed -r 's:^[^-]+-(.*)$: \1:' + + print_line=1 +fi + +if [ -n "$opt_log" ]; then + gens=$(for gen in $(list_gens); do + ((diffFrom < gen && gen < diffTo)) && echo $gen + done) + # Force the $diffTo generation to be included in this list, instead of using + # `gen <= diffTo` in the preceding loop, so we encounter an error upon the + # event of its nonexistence. + gens=$(echo "$gens" + echo $diffTo) +else + gens=$diffTo +fi + +temp_make +add=$(temp_name) +temp_make +rem=$(temp_name) +temp_make +out=$(temp_name) + +for gen in $gens; do + + [ -n "$print_line" ] && echo + + temp_make + versB=$(temp_name) + + dirB="${opt_profile}-${gen}-link" + refs=$(nix-store -q --references "$dirB") + (( $? != 0 )) && exit 1 + echo "$refs" \ + | grep -v env-manifest.nix \ + | sort \ + > "$versB" + + in=$(comm -3 -1 "$versA" "$versB") + sed -r 's:^[^-]*-(.*)$:\1+:' <(echo "$in") \ + | sort -f \ + > "$add" + + un=$(comm -3 -2 "$versA" "$versB") + sed -r 's:^[^-]*-(.*)$:\1-:' <(echo "$un") \ + | sort -f \ + > "$rem" + + cat "$rem" "$add" \ + | sort -f \ + | sed -r 's:(.*)-$:- \1:' \ + | sed -r 's:(.*)\+$:\+ \1:' \ + | grep -v '^$' \ + > "$out" + + if [ -n "$opt_query" -o -n "$opt_log" ]; then + + lines=$(wc -l "$out" | cut -d' ' -f1) + tag=$(print_tag "$gen") + (( $? != 0 )) && exit 1 + if [ $lines -eq 0 ]; then + echo "$tag (no change)" + else + echo "$tag" + fi + cat "$out" \ + | sed 's:^: :' + + print_line=1 + + else + echo "diffing from generation $diffFrom to $diffTo" + cat "$out" + fi + + versA=$versB + +done + +exit 0 From a7c4c89138b34d4cd088dbb32afd65119eda20f6 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sun, 19 Mar 2017 18:10:40 -0500 Subject: [PATCH 25/41] Add top-level attr for lldb_4 --- pkgs/top-level/all-packages.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c8541015746f9..51868b21d64b2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5384,6 +5384,7 @@ with pkgs; lld = llvmPackages_4.lld; lldb = llvmPackages.lldb; + lldb_4 = llvmPackages_4.lldb; llvm = llvmPackages.llvm; From cf3e1380242a9a216e62f247c73a45006b995186 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Sun, 12 Mar 2017 21:45:40 +0000 Subject: [PATCH 26/41] objconv: 2.16 -> 2.44 --- .../tools/misc/objconv/default.nix | 39 ++++++++++++------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/pkgs/development/tools/misc/objconv/default.nix b/pkgs/development/tools/misc/objconv/default.nix index bae9f07bda48c..3c309493a33b5 100644 --- a/pkgs/development/tools/misc/objconv/default.nix +++ b/pkgs/development/tools/misc/objconv/default.nix @@ -1,26 +1,39 @@ -{ stdenv, fetchFromGitHub }: +{ stdenv, fetchurl, unzip }: stdenv.mkDerivation rec { name = "objconv-${version}"; - version = "2.16"; + version = "2.44"; - src = fetchFromGitHub { - owner = "vertis"; - repo = "objconv"; - rev = "${version}"; - sha256 = "1by2bbrampwv0qy8vn4hhs49rykczyj7q8g373ym38da3c95bym2"; + src = fetchurl { + # Versioned archive of objconv sources maintained by orivej. + url = "https://archive.org/download/objconv/${name}.zip"; + sha256 = "1dlnpv8qwz0rwivpbgk84kmsjz3vh1i149z44ha2dvg8afzyfhjl"; }; - buildPhase = "c++ -o objconv -O2 src/*.cpp"; + nativeBuildInputs = [ unzip ]; - installPhase = "mkdir -p $out/bin && mv objconv $out/bin"; + outputs = [ "out" "doc" ]; + + unpackPhase = '' + mkdir -p "$name" + cd "$name" + unpackFile "$src" + unpackFile source.zip + ''; + + buildPhase = "c++ -o objconv -O2 *.cpp"; + + installPhase = '' + mkdir -p $out/bin $out/doc/objconv + mv objconv $out/bin + mv objconv-instructions.pdf $out/doc/objconv + ''; meta = with stdenv.lib; { - description = "Used for converting object files between COFF/PE, OMF, ELF and Mach-O formats for all 32-bit and 64-bit x86 platforms."; + description = "Object and executable file converter, modifier and disassembler"; homepage = http://www.agner.org/optimize/; license = licenses.gpl2; - maintainers = with maintainers; [ vrthra ]; - platforms = with platforms; unix; + maintainers = with maintainers; [ orivej vrthra ]; + platforms = platforms.unix; }; - } From 86571294f5196af933146ce6e53fb02f9ef57ddf Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 19 Mar 2017 18:32:47 -0500 Subject: [PATCH 27/41] calcurse: 4.0.0 -> 4.2.2 --- pkgs/applications/misc/calcurse/default.nix | 25 ++++++++++++--------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/misc/calcurse/default.nix b/pkgs/applications/misc/calcurse/default.nix index 9211ef0ab83e3..3f22d1629e27b 100644 --- a/pkgs/applications/misc/calcurse/default.nix +++ b/pkgs/applications/misc/calcurse/default.nix @@ -1,18 +1,23 @@ -{stdenv, fetchurl, ncurses, gettext}: +{stdenv, fetchurl, ncurses, gettext, python3, makeWrapper }: -stdenv.mkDerivation { - name = "calcurse-4.0.0"; +stdenv.mkDerivation rec { + name = "calcurse-${version}"; + version = "4.2.2"; src = fetchurl { - url = http://calcurse.org/files/calcurse-4.0.0.tar.gz; - sha256 = "0d33cpkbhyidvm3xx6iw9ljqdvl6477c2kcwix3bs63nj0ch06v2"; + url = "http://calcurse.org/files/${name}.tar.gz"; + sha256 = "0il0y06akdqgy0f9p40m4x6arn66nh7sr1w1i41bszycs7div266"; }; - buildInputs = [ncurses gettext]; + buildInputs = [ncurses gettext python3 ]; + nativeBuildInputs = [ makeWrapper ]; - meta = { + postInstall = '' + makeWrapper ${python3}/bin/python3 $out/bin/calcurse-caldav + ''; + + meta = with stdenv.lib; { description = "A calendar and scheduling application for the command line"; - version = "4.0.0"; longDescription = '' calcurse is a calendar and scheduling application for the command line. It helps keep track of events, appointments and everyday tasks. A configurable notification @@ -21,7 +26,7 @@ stdenv.mkDerivation { be used to filter and format appointments, making it suitable for use in scripts. ''; homepage = http://calcurse.org/; - license = stdenv.lib.licenses.bsd2; - platforms = stdenv.lib.platforms.linux; + license = licenses.bsd2; + platforms = platforms.linux; }; } From a31041a1b999a7132ec97b57d08b060ec7c7950d Mon Sep 17 00:00:00 2001 From: Shane Pearlman Date: Sun, 19 Mar 2017 16:30:59 -0700 Subject: [PATCH 28/41] nix-diff.sh maintainer script: update usage message for new flags --- maintainers/scripts/nix-diff.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintainers/scripts/nix-diff.sh b/maintainers/scripts/nix-diff.sh index 9e85b116bc921..0c65e29cf4351 100755 --- a/maintainers/scripts/nix-diff.sh +++ b/maintainers/scripts/nix-diff.sh @@ -23,7 +23,7 @@ usage() { cat < Date: Sun, 19 Mar 2017 18:34:46 -0500 Subject: [PATCH 29/41] tiled: 0.17.0 -> 0.18.2 --- pkgs/applications/editors/tiled/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/editors/tiled/default.nix b/pkgs/applications/editors/tiled/default.nix index 5f2fffa5f508f..be518b9336a84 100644 --- a/pkgs/applications/editors/tiled/default.nix +++ b/pkgs/applications/editors/tiled/default.nix @@ -1,16 +1,17 @@ -{ stdenv, fetchurl, pkgconfig, qmakeHook +{ stdenv, fetchFromGitHub, pkgconfig, qmakeHook , python, qtbase, qttools, zlib }: let # qtEnv = with qt5; env "qt-${qtbase.version}" [ qtbase qttools ]; in stdenv.mkDerivation rec { name = "tiled-${version}"; - version = "0.17.0"; + version = "0.18.2"; - src = fetchurl { - name = "${name}.tar.gz"; - url = "https://github.com/bjorn/tiled/archive/v${version}.tar.gz"; - sha256 = "0c9gykxmq0sk0yyfdq81g9psd922scqzn5asskjydj84d80f5z7p"; + src = fetchFromGitHub { + owner = "bjorn"; + repo = "tiled"; + rev = "v${version}"; + sha256 = "087jl36g6w2g5l70gz573iwyvx3r7i8fijl3y4mmmf8pyqdyq1n2"; }; nativeBuildInputs = [ pkgconfig qmakeHook ]; @@ -26,6 +27,6 @@ in stdenv.mkDerivation rec { gpl2Plus # all the rest ]; platforms = platforms.linux; - maintainers = with maintainers; [ nckx ]; + maintainers = [ maintainers.nckx ]; }; } From 86c173cd0297ec85bb36199e1ccd72887a68f61a Mon Sep 17 00:00:00 2001 From: "Rommel M. Martinez" Date: Sun, 19 Mar 2017 15:46:38 +0800 Subject: [PATCH 30/41] emem: 0.2.43 -> 0.2.44 --- pkgs/applications/misc/emem/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/emem/default.nix b/pkgs/applications/misc/emem/default.nix index 0ac6f21b9fdb6..706f39ad2a1fd 100644 --- a/pkgs/applications/misc/emem/default.nix +++ b/pkgs/applications/misc/emem/default.nix @@ -2,14 +2,14 @@ stdenv.mkDerivation rec { pname = "emem"; - version = "0.2.43"; + version = "0.2.44"; name = "${pname}-${version}"; inherit jdk; src = fetchurl { url = "https://github.com/ebzzry/${pname}/releases/download/v${version}/${pname}.jar"; - sha256 = "0p3v28vjqyx961sfsd1h2cg2g2q0v03qd87dppbxqp7g5ppls91x"; + sha256 = "1n91j0hd43nnc1bg2qyrx8kfzc2zkw6dvsf494aa82107r0rqbmf"; }; phases = [ "buildPhase" "installPhase" ]; From ed64de6295c2ccdaf5fe63ba4c2989aff52617fa Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 19 Mar 2017 19:11:24 -0500 Subject: [PATCH 31/41] chirp: 20161018 -> 20170311 --- pkgs/applications/misc/chirp/default.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/misc/chirp/default.nix b/pkgs/applications/misc/chirp/default.nix index 469da1f6ec42d..77c21114ec569 100644 --- a/pkgs/applications/misc/chirp/default.nix +++ b/pkgs/applications/misc/chirp/default.nix @@ -1,24 +1,22 @@ { stdenv, fetchurl, libxml2Python, libxslt, makeWrapper , python, pyserial, pygtk }: -let - version = "20161018"; -in + stdenv.mkDerivation rec { name = "chirp-daily-${version}"; - inherit version; + version = "20170311"; src = fetchurl { - url = "http://trac.chirp.danplanet.com/chirp_daily/daily-${version}/chirp-daily-${version}.tar.gz"; - sha256 = "0f3r919az4vvcgxzqmxvhrxa2byzk5algy7srzzs15ihkvyxcwkb"; + url = "http://trac.chirp.danplanet.com/chirp_daily/daily-${version}/${name}.tar.gz"; + sha256 = "0mvj650vm3bfk94b174gl99fj4jigrx38f1iciz1cp3gn8hcrcpj"; }; + nativeBuildInputs = [ makeWrapper ]; buildInputs = [ - makeWrapper pyserial pygtk libxml2Python libxslt pyserial ]; - phases = [ "unpackPhase" "installPhase" "fixupPhase" ]; + # phases = [ "unpackPhase" "installPhase" "fixupPhase" ]; installPhase = '' mkdir -p $out/bin $out/share/chirp From 103c918d719afae7aa82748d229d702383177efb Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 19 Mar 2017 19:14:20 -0500 Subject: [PATCH 32/41] Revert "chirp: 20161018 -> 20170311" --- pkgs/applications/misc/chirp/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/misc/chirp/default.nix b/pkgs/applications/misc/chirp/default.nix index 77c21114ec569..469da1f6ec42d 100644 --- a/pkgs/applications/misc/chirp/default.nix +++ b/pkgs/applications/misc/chirp/default.nix @@ -1,22 +1,24 @@ { stdenv, fetchurl, libxml2Python, libxslt, makeWrapper , python, pyserial, pygtk }: - +let + version = "20161018"; +in stdenv.mkDerivation rec { name = "chirp-daily-${version}"; - version = "20170311"; + inherit version; src = fetchurl { - url = "http://trac.chirp.danplanet.com/chirp_daily/daily-${version}/${name}.tar.gz"; - sha256 = "0mvj650vm3bfk94b174gl99fj4jigrx38f1iciz1cp3gn8hcrcpj"; + url = "http://trac.chirp.danplanet.com/chirp_daily/daily-${version}/chirp-daily-${version}.tar.gz"; + sha256 = "0f3r919az4vvcgxzqmxvhrxa2byzk5algy7srzzs15ihkvyxcwkb"; }; - nativeBuildInputs = [ makeWrapper ]; buildInputs = [ + makeWrapper pyserial pygtk libxml2Python libxslt pyserial ]; - # phases = [ "unpackPhase" "installPhase" "fixupPhase" ]; + phases = [ "unpackPhase" "installPhase" "fixupPhase" ]; installPhase = '' mkdir -p $out/bin $out/share/chirp From c2630d203e26826bc33c77957144640c735b7be5 Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 19 Mar 2017 19:23:57 -0500 Subject: [PATCH 33/41] chirp: 20161018 -> 20170311 --- pkgs/applications/misc/chirp/default.nix | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/pkgs/applications/misc/chirp/default.nix b/pkgs/applications/misc/chirp/default.nix index 469da1f6ec42d..67d37489feb07 100644 --- a/pkgs/applications/misc/chirp/default.nix +++ b/pkgs/applications/misc/chirp/default.nix @@ -1,25 +1,20 @@ { stdenv, fetchurl, libxml2Python, libxslt, makeWrapper -, python, pyserial, pygtk -}: -let - version = "20161018"; -in +, python, pyserial, pygtk }: + stdenv.mkDerivation rec { name = "chirp-daily-${version}"; - inherit version; + version = "20170311"; src = fetchurl { - url = "http://trac.chirp.danplanet.com/chirp_daily/daily-${version}/chirp-daily-${version}.tar.gz"; - sha256 = "0f3r919az4vvcgxzqmxvhrxa2byzk5algy7srzzs15ihkvyxcwkb"; + url = "http://trac.chirp.danplanet.com/chirp_daily/daily-${version}/${name}.tar.gz"; + sha256 = "0mvj650vm3bfk94b174gl99fj4jigrx38f1iciz1cp3gn8hcrcpj"; }; + nativeBuildInputs = [ makeWrapper ]; buildInputs = [ - makeWrapper pyserial pygtk libxml2Python libxslt pyserial ]; - phases = [ "unpackPhase" "installPhase" "fixupPhase" ]; - installPhase = '' mkdir -p $out/bin $out/share/chirp cp -r . $out/share/chirp/ From 00cc586f6fc24edfda18e3ba9c30a81fc0a9e124 Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 19 Mar 2017 19:37:21 -0500 Subject: [PATCH 34/41] sigil: 0.9.6 -> 0.9.7 --- pkgs/applications/editors/sigil/default.nix | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/editors/sigil/default.nix b/pkgs/applications/editors/sigil/default.nix index 7a066b068e1a8..0c716ed63c14a 100644 --- a/pkgs/applications/editors/sigil/default.nix +++ b/pkgs/applications/editors/sigil/default.nix @@ -6,10 +6,10 @@ stdenv.mkDerivation rec { name = "sigil-${version}"; - version = "0.9.6"; + version = "0.9.7"; src = fetchFromGitHub { - sha256 = "0hihd5f3avpdvxwp5j80qdg74zbw7p20y6j9q8cw7wd0bak58h9c"; + sha256 = "17m2f7pj2sx5rxrbry6wk1lvviy8fi2m270h47sisywnrhddarh7"; rev = version; repo = "Sigil"; owner = "Sigil-Ebook"; @@ -19,11 +19,11 @@ stdenv.mkDerivation rec { propagatedBuildInputs = with python3Packages; [ lxml ]; + nativeBuildInputs = [ cmake pkgconfig makeWrapper ]; + buildInputs = [ - cmake pkgconfig boost xercesc qtbase qttools qtwebkit qtxmlpatterns - python3 python3Packages.lxml makeWrapper - ]; + python3 python3Packages.lxml ]; preFixup = '' wrapProgram "$out/bin/sigil" \ @@ -32,12 +32,11 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - meta = { + meta = with stdenv.lib; { description = "Free, open source, multi-platform ebook (ePub) editor"; homepage = https://github.com/Sigil-Ebook/Sigil/; - license = stdenv.lib.licenses.gpl3; - inherit version; - maintainers = with stdenv.lib.maintainers; [ ramkromberg ]; - platforms = with stdenv.lib.platforms; linux; + license = licenses.gpl3; + maintainers =[ maintainers.ramkromberg ]; + platforms = platforms.linux; }; } From baf07b580cdc6358915d04d654cf2027ec845afd Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 19 Mar 2017 20:02:30 -0500 Subject: [PATCH 35/41] devilspie2: 0.39 -> 0.42 --- pkgs/applications/misc/devilspie2/default.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/misc/devilspie2/default.nix b/pkgs/applications/misc/devilspie2/default.nix index 96b4296911553..4a7c4d7ec3049 100644 --- a/pkgs/applications/misc/devilspie2/default.nix +++ b/pkgs/applications/misc/devilspie2/default.nix @@ -2,18 +2,15 @@ stdenv.mkDerivation rec { name = "devilspie2-${version}"; - version = "0.39"; + version = "0.42"; src = fetchurl { - url = "http://download.savannah.gnu.org/releases/devilspie2/devilspie2_0.39-src.tar.gz"; - sha256 = "07b74ffc078e5f01525d9da7a1978b4c1a9725b814b344f83a1a203cf4caae09"; + url = "http://download.savannah.gnu.org/releases/devilspie2/devilspie2_${version}-src.tar.gz"; + sha256 = "119zb9x5i3y4cp30h4113psqxb5d7zxiyijpq02g8kds1wqvrx8i"; }; - buildInputs = [ intltool pkgconfig glib gtk lua libwnck3 ]; - - patchPhase = '' - sed -i -e s@/usr/local@$out@ Makefile - ''; + nativeBuildInputs = [ intltool pkgconfig ]; + buildInputs = [ glib gtk lua libwnck3 ]; installPhase = '' mkdir -p $out/bin $out/share/man/man1 @@ -22,7 +19,7 @@ stdenv.mkDerivation rec { ''; meta = with stdenv.lib; { - description = "Devilspie2 is a window matching utility"; + description = "A window matching utility"; longDescription = '' Devilspie2 is a window matching utility, allowing the user to perform scripted actions on windows as they are created. For From 4c25a47cbd6d8d9f8911499f64669202e96ceff0 Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 19 Mar 2017 20:12:46 -0500 Subject: [PATCH 36/41] copyq: 2.5.0 -> 2.9.0 --- pkgs/applications/misc/copyq/default.nix | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/misc/copyq/default.nix b/pkgs/applications/misc/copyq/default.nix index 0892f8899324b..7461f6853f47f 100644 --- a/pkgs/applications/misc/copyq/default.nix +++ b/pkgs/applications/misc/copyq/default.nix @@ -1,21 +1,25 @@ -{ stdenv, fetchurl, cmake, qt4, libXfixes, libXtst}: +{ stdenv, fetchFromGitHub, cmake, qt4, libXfixes, libXtst}: -let version = "2.5.0"; -in -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "CopyQ-${version}"; - src = fetchurl { - url = "https://github.com/hluk/CopyQ/archive/v${version}.tar.gz"; - sha256 = "7726745056e8d82625531defc75b2a740d3c42131ecce1f3181bc0a0bae51fb1"; + version = "2.9.0"; + + src = fetchFromGitHub { + owner = "hluk"; + repo = "CopyQ"; + rev = "v${version}"; + sha256 = "1gnqsfh50w3qcnbghkpjr5qs42fgl6643lmg4mg4wam8a852s64f"; }; - buildInputs = [ cmake qt4 libXfixes libXtst ]; + nativeBuildInputs = [ cmake ]; + + buildInputs = [ qt4 libXfixes libXtst ]; meta = with stdenv.lib; { - homepage = "https://hluk.github.io/CopyQ"; + homepage = https://hluk.github.io/CopyQ; description = "Clipboard Manager with Advanced Features"; license = licenses.gpl3; - maintainers = with maintainers; [ willtim ]; + maintainers = [ maintainers.willtim ]; # NOTE: CopyQ supports windows and osx, but I cannot test these. # OSX build requires QT5. platforms = platforms.linux; From 8cf11d9c1cecacc5f768848b899f1305a8fc465c Mon Sep 17 00:00:00 2001 From: "Rommel M. Martinez" Date: Mon, 20 Mar 2017 09:24:10 +0800 Subject: [PATCH 37/41] emem: 0.2.44 -> 0.2.45 --- pkgs/applications/misc/emem/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/emem/default.nix b/pkgs/applications/misc/emem/default.nix index 706f39ad2a1fd..b3424f367f1ab 100644 --- a/pkgs/applications/misc/emem/default.nix +++ b/pkgs/applications/misc/emem/default.nix @@ -2,14 +2,14 @@ stdenv.mkDerivation rec { pname = "emem"; - version = "0.2.44"; + version = "0.2.45"; name = "${pname}-${version}"; inherit jdk; src = fetchurl { url = "https://github.com/ebzzry/${pname}/releases/download/v${version}/${pname}.jar"; - sha256 = "1n91j0hd43nnc1bg2qyrx8kfzc2zkw6dvsf494aa82107r0rqbmf"; + sha256 = "1qjlz0sqjhx11vw8cc39h0sjgnfkrhgh94pv84z37b8hn42qingb"; }; phases = [ "buildPhase" "installPhase" ]; From 93446a20600cd3b6c19182ea3f653a1ea2b2d305 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Mon, 20 Mar 2017 06:37:01 +0200 Subject: [PATCH 38/41] release.nix: Don't block release on aarch64 failures --- pkgs/top-level/release.nix | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkgs/top-level/release.nix b/pkgs/top-level/release.nix index 3a9a304a72d28..b5207879a5e67 100644 --- a/pkgs/top-level/release.nix +++ b/pkgs/top-level/release.nix @@ -41,23 +41,18 @@ let jobs.lib-tests jobs.stdenv.x86_64-linux jobs.stdenv.i686-linux - jobs.stdenv.aarch64-linux jobs.stdenv.x86_64-darwin jobs.linux.x86_64-linux jobs.linux.i686-linux - jobs.linux.aarch64-linux jobs.python.x86_64-linux jobs.python.i686-linux - jobs.python.aarch64-linux jobs.python.x86_64-darwin jobs.python3.x86_64-linux jobs.python3.i686-linux - jobs.python3.aarch64-linux jobs.python3.x86_64-darwin # Many developers use nix-repl jobs.nix-repl.x86_64-linux jobs.nix-repl.i686-linux - jobs.nix-repl.aarch64-linux jobs.nix-repl.x86_64-darwin # Needed by travis-ci to test PRs jobs.nox.i686-linux @@ -66,7 +61,6 @@ let # Ensure that X11/GTK+ are in order. jobs.thunderbird.x86_64-linux jobs.thunderbird.i686-linux - jobs.thunderbird.aarch64-linux # Ensure that basic stuff works on darwin jobs.git.x86_64-darwin jobs.mysql.x86_64-darwin From fee7e73538a25cac95e705c605f438df7e7eb71d Mon Sep 17 00:00:00 2001 From: Victor Calvert Date: Mon, 20 Mar 2017 00:23:06 -0400 Subject: [PATCH 39/41] Adding self as maintainer --- lib/maintainers.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/maintainers.nix b/lib/maintainers.nix index d6cb2722b33c3..514e62bb916b1 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -82,6 +82,7 @@ bzizou = "Bruno Bzeznik "; c0dehero = "CodeHero "; calrama = "Moritz Maxeiner "; + calvertvl = "Victor Calvert "; campadrenalin = "Philip Horger "; canndrew = "Andrew Cann "; carlsverre = "Carl Sverre "; From bae9315a33e825cfb0a625fcdf91bec8df2ccad8 Mon Sep 17 00:00:00 2001 From: Victor Calvert Date: Mon, 20 Mar 2017 00:25:50 -0400 Subject: [PATCH 40/41] src: 1.11 -> 1.12 --- pkgs/applications/version-management/src/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/version-management/src/default.nix b/pkgs/applications/version-management/src/default.nix index 2bff15adc69d9..d2bb688737208 100644 --- a/pkgs/applications/version-management/src/default.nix +++ b/pkgs/applications/version-management/src/default.nix @@ -1,11 +1,12 @@ { stdenv, fetchurl, python, rcs, git }: stdenv.mkDerivation rec { - name = "src-1.11"; + name = "src-${version}"; + version = "1.12"; src = fetchurl { url = "http://www.catb.org/~esr/src/${name}.tar.gz"; - sha256 = "07kj0ri0s0vn8s54yvkyzaag332spxs0379r718b80y31c4mgbyl"; + sha256 = "1m6rjbizx9win3jkciyx176sfy98r5arb1g3l6aqnqam9gpr44zm"; }; buildInputs = [ python rcs git ]; @@ -16,10 +17,11 @@ stdenv.mkDerivation rec { makeFlags = [ "prefix=$(out)" ]; - meta = { + meta = with stdenv.lib; { description = "Simple single-file revision control"; homepage = http://www.catb.org/~esr/src/; - license = stdenv.lib.licenses.bsd3; - platforms = stdenv.lib.platforms.all; + license = licenses.bsd3; + platforms = platforms.all; + maintainers = with maintainers; [ calvertvl ]; }; } From 6e587c29dc78bb7944a685cfafbe4b6663a3cf97 Mon Sep 17 00:00:00 2001 From: Victor Calvert Date: Mon, 20 Mar 2017 00:27:49 -0400 Subject: [PATCH 41/41] src: wrap to properly resolve rcs at runtime --- pkgs/applications/version-management/src/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/version-management/src/default.nix b/pkgs/applications/version-management/src/default.nix index d2bb688737208..2fd45ec7fc02e 100644 --- a/pkgs/applications/version-management/src/default.nix +++ b/pkgs/applications/version-management/src/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, python, rcs, git }: +{ stdenv, fetchurl, python, rcs, git, makeWrapper }: stdenv.mkDerivation rec { name = "src-${version}"; @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "1m6rjbizx9win3jkciyx176sfy98r5arb1g3l6aqnqam9gpr44zm"; }; - buildInputs = [ python rcs git ]; + buildInputs = [ python rcs git makeWrapper ]; preConfigure = '' patchShebangs . @@ -17,6 +17,11 @@ stdenv.mkDerivation rec { makeFlags = [ "prefix=$(out)" ]; + postInstall = '' + wrapProgram $out/bin/src \ + --suffix PATH ":" "${rcs}/bin" + ''; + meta = with stdenv.lib; { description = "Simple single-file revision control"; homepage = http://www.catb.org/~esr/src/;