diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2016-04-20 16:49:52 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-04-20 16:49:52 +0200 |
commit | 57474b7d4aaa2edd66475e033e058de19d7c66bb (patch) | |
tree | cbffe52b32a2da54a4fdf82df5f20a88602a3e41 /pkgs/tools | |
parent | 4d37411b35046b483a783d5c145e7c7d13406457 (diff) | |
parent | 50df762e719d9702f88dac452bf20dc6ec7ef36c (diff) | |
download | nixpkgs-57474b7d4aaa2edd66475e033e058de19d7c66bb.tar nixpkgs-57474b7d4aaa2edd66475e033e058de19d7c66bb.tar.gz nixpkgs-57474b7d4aaa2edd66475e033e058de19d7c66bb.tar.bz2 nixpkgs-57474b7d4aaa2edd66475e033e058de19d7c66bb.tar.lz nixpkgs-57474b7d4aaa2edd66475e033e058de19d7c66bb.tar.xz nixpkgs-57474b7d4aaa2edd66475e033e058de19d7c66bb.tar.zst nixpkgs-57474b7d4aaa2edd66475e033e058de19d7c66bb.zip |
Merge branch 'master' into staging
Compare to Hydra nixpkgs job 1260021.
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/X11/xbanish/default.nix | 45 | ||||
-rw-r--r-- | pkgs/tools/archivers/dar/default.nix | 14 | ||||
-rw-r--r-- | pkgs/tools/archivers/zpaq/default.nix | 8 | ||||
-rw-r--r-- | pkgs/tools/backup/borg/default.nix | 4 | ||||
-rw-r--r-- | pkgs/tools/inputmethods/fcitx/fcitx-qt5.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/misc/exa/default.nix | 8 | ||||
-rw-r--r-- | pkgs/tools/networking/curl/default.nix | 7 | ||||
-rw-r--r-- | pkgs/tools/networking/sipsak/default.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/package-management/nix/default.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/security/softhsm/default.nix | 31 | ||||
-rw-r--r-- | pkgs/tools/system/facter/default.nix | 8 | ||||
-rw-r--r-- | pkgs/tools/system/netdata/default.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/system/netdata/web_access.patch | 19 | ||||
-rw-r--r-- | pkgs/tools/typesetting/tex/texlive-new/default.nix | 16 |
14 files changed, 138 insertions, 30 deletions
diff --git a/pkgs/tools/X11/xbanish/default.nix b/pkgs/tools/X11/xbanish/default.nix new file mode 100644 index 00000000000..cbf8f3a7ff1 --- /dev/null +++ b/pkgs/tools/X11/xbanish/default.nix @@ -0,0 +1,45 @@ +{stdenv, fetchFromGitHub, libX11, libXi, libXt, libXfixes, libXext}: + +stdenv.mkDerivation rec { + version = "1.4"; + name = "xbanish-${version}"; + + buildInputs = [ + libX11 libXi libXt libXfixes libXext + ]; + + src = fetchFromGitHub { + owner = "jcs"; + repo = "xbanish"; + rev = "5cbc51a88739bc7ebe3ea3114ec423890d180146"; + sha256 = "0n5aiqfwx9ga8qjszymfmbnmygcracrgvvpmgll7mflp2jnvzq6j"; + }; + + preBuild = '' + makeFlagsArray+=("PREFIX=$out") + ''; + + preInstall = '' + mkdir -p $out/bin + mkdir -p $out/man/man1 + ''; + + meta = { + description = "Hides mouse pointer while not in use"; + longDescription = '' + xbanish hides the mouse cursor when you start typing, and shows it again when + the mouse cursor moves or a mouse button is pressed. This is similar to + xterm's pointerMode setting, but xbanish works globally in the X11 session. + + unclutter's -keystroke mode is supposed to do this, but it's broken[0]. I + looked into fixing it, but the unclutter source code is terrible, so I wrote + xbanish. + + The name comes from ratpoison's "banish" command that sends the cursor to the + corner of the screen. + ''; + license = stdenv.lib.licenses.bsd3; + maintainers = [stdenv.lib.maintainers.choochootrain]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/tools/archivers/dar/default.nix b/pkgs/tools/archivers/dar/default.nix index 7f9425ce603..92a81f9e5d6 100644 --- a/pkgs/tools/archivers/dar/default.nix +++ b/pkgs/tools/archivers/dar/default.nix @@ -1,17 +1,19 @@ -{ stdenv, fetchurl, zlib, bzip2, openssl, attr, lzo, libgcrypt, e2fsprogs, gpgme }: +{ stdenv, fetchurl, zlib, bzip2, openssl, attr, lzo, libgcrypt, e2fsprogs, gpgme, xz }: stdenv.mkDerivation rec { - name = "dar-2.5.2"; - + name = "dar-2.5.3"; + src = fetchurl { url = "mirror://sourceforge/dar/${name}.tar.gz"; - sha256 = "09p07wil0y4g6yzb9jk1ppr6pidl5fldaqnfp0ngd5n2iz3w89js"; + sha256 = "0myakyfgv2mhazwvbbwwncn9j7c9b4g3szs0aqlclmp01naaqmj5"; }; - buildInputs = [ zlib bzip2 openssl lzo libgcrypt gpgme ] + buildInputs = [ zlib bzip2 openssl lzo libgcrypt gpgme xz ] ++ stdenv.lib.optional stdenv.isLinux [ attr e2fsprogs ]; - configureFlags = "--disable-dar-static"; + configureFlags = [ "--disable-dar-static" ]; + + enableParallelBuilding = true; meta = { homepage = http://dar.linux.free.fr/; diff --git a/pkgs/tools/archivers/zpaq/default.nix b/pkgs/tools/archivers/zpaq/default.nix index 9eac9f071cb..ba0a174ed0a 100644 --- a/pkgs/tools/archivers/zpaq/default.nix +++ b/pkgs/tools/archivers/zpaq/default.nix @@ -3,11 +3,11 @@ let s = # Generated upstream information rec { baseName="zpaq"; - version="710"; + version="711"; name="${baseName}-${version}"; - hash="089h09rlcyag1j1i38jjzwzm69p6p4wnh6n2rsbl3p5mcvdfnwhk"; - url="http://mattmahoney.net/dc/zpaq710.zip"; - sha256="089h09rlcyag1j1i38jjzwzm69p6p4wnh6n2rsbl3p5mcvdfnwhk"; + hash="0kva9xn3rhm2xpbbq3yrx3c9y150fw434ayd82fzhr24nsjjaxsf"; + url="http://mattmahoney.net/dc/zpaq711.zip"; + sha256="0kva9xn3rhm2xpbbq3yrx3c9y150fw434ayd82fzhr24nsjjaxsf"; }; in stdenv.mkDerivation { diff --git a/pkgs/tools/backup/borg/default.nix b/pkgs/tools/backup/borg/default.nix index 79c08ec325a..ada4ef29c84 100644 --- a/pkgs/tools/backup/borg/default.nix +++ b/pkgs/tools/backup/borg/default.nix @@ -2,12 +2,12 @@ python3Packages.buildPythonApplication rec { name = "borgbackup-${version}"; - version = "1.0.1"; + version = "1.0.2"; namePrefix = ""; src = fetchurl { url = "https://pypi.python.org/packages/source/b/borgbackup/borgbackup-${version}.tar.gz"; - sha256 = "1fhzsj66fnyz8059k0zx8ldhyjqj73980qrz48aqwz1097kc58jq"; + sha256 = "1myz10pwxnac9z59gw1w3xjhz6ghx03vngpl97ca527pj0r39shi"; }; nativeBuildInputs = with python3Packages; [ diff --git a/pkgs/tools/inputmethods/fcitx/fcitx-qt5.nix b/pkgs/tools/inputmethods/fcitx/fcitx-qt5.nix index 428e96e8674..ab139bdb5a7 100644 --- a/pkgs/tools/inputmethods/fcitx/fcitx-qt5.nix +++ b/pkgs/tools/inputmethods/fcitx/fcitx-qt5.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { preInstall = '' substituteInPlace platforminputcontext/cmake_install.cmake \ - --replace ${qtbase} $out + --replace ${qtbase.out} $out ''; meta = with stdenv.lib; { diff --git a/pkgs/tools/misc/exa/default.nix b/pkgs/tools/misc/exa/default.nix index af6f70e2f5c..4c20719fc51 100644 --- a/pkgs/tools/misc/exa/default.nix +++ b/pkgs/tools/misc/exa/default.nix @@ -4,15 +4,15 @@ with rustPlatform; buildRustPackage rec { name = "exa-${version}"; - version = "2016-03-22"; + version = "2016-04-11"; - depsSha256 = "18anwh235kzziq6z7md8f3rl2xl4l9d4ivsqw9grkb7yivd5j0jk"; + depsSha256 = "1rpynsni2r3gim10xc1qkj51wpbzafwsr99y61zh41v4vh047g1k"; src = fetchFromGitHub { owner = "ogham"; repo = "exa"; - rev = "8805ce9e3bcd4b56f8811a686dd56c47202cdbab"; - sha256 = "0dkvk0rsf068as6zcd01p7959rdjzm26mlkpid6z0j168gp4kh4q"; + rev = "9b87ef1da2231acef985bb08f7bd4a557167b652"; + sha256 = "1f71bqkpc6bf9jg1zxy21rzbyhzghwfmgbyyyb81ggxcri0kajwi"; }; nativeBuildInputs = [ cmake ]; diff --git a/pkgs/tools/networking/curl/default.nix b/pkgs/tools/networking/curl/default.nix index 6008afa2787..47f03cc3747 100644 --- a/pkgs/tools/networking/curl/default.nix +++ b/pkgs/tools/networking/curl/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, pkgconfig, perl -, http2Support ? true, libnghttp2 +, http2Support ? true, nghttp2 , idnSupport ? false, libidn ? null , ldapSupport ? false, openldap ? null , zlibSupport ? false, zlib ? null @@ -9,7 +9,7 @@ , c-aresSupport ? false, c-ares ? null }: -assert http2Support -> libnghttp2 != null; +assert http2Support -> nghttp2 != null; assert idnSupport -> libidn != null; assert ldapSupport -> openldap != null; assert zlibSupport -> zlib != null; @@ -33,7 +33,7 @@ stdenv.mkDerivation rec { # "-lz -lssl", which aren't necessary direct build inputs of # applications that use Curl. propagatedBuildInputs = with stdenv.lib; - optional http2Support libnghttp2 ++ + optional http2Support nghttp2 ++ optional idnSupport libidn ++ optional ldapSupport openldap ++ optional zlibSupport zlib ++ @@ -51,7 +51,6 @@ stdenv.mkDerivation rec { configureFlags = [ "--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt" "--disable-manual" - ( if http2Support then "--with-nghttp2=${libnghttp2}" else "--without-nghttp2" ) ( if sslSupport then "--with-ssl=${openssl}" else "--without-ssl" ) ( if scpSupport then "--with-libssh2=${libssh2}" else "--without-libssh2" ) ( if ldapSupport then "--enable-ldap" else "--disable-ldap" ) diff --git a/pkgs/tools/networking/sipsak/default.nix b/pkgs/tools/networking/sipsak/default.nix index 7242417bf2b..1149d9aa8e4 100644 --- a/pkgs/tools/networking/sipsak/default.nix +++ b/pkgs/tools/networking/sipsak/default.nix @@ -10,6 +10,8 @@ stdenv.mkDerivation rec { c-ares ]; + NIX_CFLAGS_COMPILE = "--std=gnu89"; + src = fetchurl { url = "https://github.com/sipwise/sipsak/archive/mr${version}.tar.gz"; sha256 = "769fe59966b1962b67aa35aad7beb9a2110ebdface36558072a05c6405fb5374"; diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index 16078906bc2..bf3f8aed712 100644 --- a/pkgs/tools/package-management/nix/default.nix +++ b/pkgs/tools/package-management/nix/default.nix @@ -9,7 +9,7 @@ let common = { name, src }: stdenv.mkDerivation rec { inherit name src; - outputs = [ "out" "man" "doc" ]; + outputs = [ "dev" "out" "man" "doc" ]; nativeBuildInputs = [ perl pkgconfig ]; diff --git a/pkgs/tools/security/softhsm/default.nix b/pkgs/tools/security/softhsm/default.nix new file mode 100644 index 00000000000..4bd19968676 --- /dev/null +++ b/pkgs/tools/security/softhsm/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, botan }: + +stdenv.mkDerivation rec { + + name = "softhsm-${version}"; + version = "2.1.0"; + + src = fetchurl { + url = "https://dist.opendnssec.org/source/${name}.tar.gz"; + sha256 = "0399b06f196fbfaebe73b4aeff2e2d65d0dc1901161513d0d6a94f031dcd827e"; + }; + + configureFlags = [ + "--with-crypto-backend=botan" + "--with-botan=${botan}" + "--sysconfdir=$out/etc" + "--localstatedir=$out/var" + ]; + + buildInputs = [ botan ]; + + postInstall = "rm -rf $out/var"; + + meta = { + homepage = https://www.opendnssec.org/softhsm; + description = "Cryptographic store accessible through a PKCS #11 interface"; + license = stdenv.lib.licenses.bsd2; + maintainers = stdenv.lib.maintainers.leenaars; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/tools/system/facter/default.nix b/pkgs/tools/system/facter/default.nix index c0328636536..a90000dde87 100644 --- a/pkgs/tools/system/facter/default.nix +++ b/pkgs/tools/system/facter/default.nix @@ -1,16 +1,16 @@ -{ stdenv, fetchurl, boost, cmake, curl, libyamlcpp, openssl, utillinux }: +{ stdenv, fetchurl, boost, cmake, curl, leatherman, libyamlcpp, openssl, utillinux }: stdenv.mkDerivation rec { name = "facter-${version}"; - version = "3.1.3"; + version = "3.1.5"; src = fetchurl { url = "https://downloads.puppetlabs.com/facter/${name}.tar.gz"; - sha256 = "1ngp3xjdh6x1w7lsi4lji2xzqp0x950jngcdlq11lcr0wfnzwyxj"; + sha256 = "0k2k92y42zb6vf542zwkhvg15kv32yb4zvw6nlcqlgmyg19c5qmv"; }; libyamlcpp_ = libyamlcpp.override { makePIC = true; }; - buildInputs = [ boost cmake curl libyamlcpp_ openssl utillinux ]; + buildInputs = [ boost cmake curl leatherman libyamlcpp_ openssl utillinux ]; meta = with stdenv.lib; { homepage = https://github.com/puppetlabs/facter; diff --git a/pkgs/tools/system/netdata/default.nix b/pkgs/tools/system/netdata/default.nix index 2993e14c43c..28ec7f1be42 100644 --- a/pkgs/tools/system/netdata/default.nix +++ b/pkgs/tools/system/netdata/default.nix @@ -13,6 +13,8 @@ stdenv.mkDerivation rec{ buildInputs = [ autoreconfHook zlib pkgconfig ]; + patches = [ ./web_access.patch ]; + meta = with stdenv.lib; { description = "Real-time performance monitoring tool"; homepage = http://netdata.firehol.org; diff --git a/pkgs/tools/system/netdata/web_access.patch b/pkgs/tools/system/netdata/web_access.patch new file mode 100644 index 00000000000..3c0fbf7507d --- /dev/null +++ b/pkgs/tools/system/netdata/web_access.patch @@ -0,0 +1,19 @@ +--- a/src/web_client.c.orig 2016-04-17 11:34:20.044455323 +0200 ++++ b/src/web_client.c 2016-04-17 11:34:47.432897957 +0200 +@@ -291,14 +291,14 @@ + buffer_sprintf(w->response.data, "File '%s' does not exist, or is not accessible.", filename); + return 404; + } +- ++#if 0 + // check if the file is owned by us + if(stat.st_uid != web_files_uid()) { + error("%llu: File '%s' is owned by user %d (I run as user %d). Access Denied.", w->id, webfilename, stat.st_uid, getuid()); + buffer_sprintf(w->response.data, "Access to file '%s' is not permitted.", filename); + return 403; + } +- ++#endif + if((stat.st_mode & S_IFMT) == S_IFDIR) { + snprintf(webfilename, FILENAME_MAX+1, "%s/index.html", filename); + return mysendfile(w, webfilename); diff --git a/pkgs/tools/typesetting/tex/texlive-new/default.nix b/pkgs/tools/typesetting/tex/texlive-new/default.nix index a2f0bf706c8..718137a6251 100644 --- a/pkgs/tools/typesetting/tex/texlive-new/default.nix +++ b/pkgs/tools/typesetting/tex/texlive-new/default.nix @@ -114,11 +114,15 @@ let ("${mirror}/pub/tex/historic/systems/texlive/${bin.texliveYear}/tlnet-final/archive"); # beware: standard mirrors http://mirror.ctan.org/ don't have releases mirror = "http://ftp.math.utah.edu"; # ftp://tug.ctan.org no longer works, although same IP - in '' - tar -xf '${ fetchurl { inherit url md5; } }' \ + in + rec { + src = fetchurl { inherit url md5; }; + unpackCmd = '' + tar -xf '${src}' \ '--strip-components=${toString stripPrefix}' \ -C "$out" --anchored --exclude=tlpkg --keep-old-files '' + postUnpack; + }; # create a derivation that contains unpacked upstream TL packages mkPkgs = { pname, tlType, version, pkgList }@args: @@ -129,10 +133,14 @@ let let tlName = "${mkUrlName args}-${version}"; fixedHash = fixedHashes.${tlName} or null; # be graceful about missing hashes + pkgs = map unpackPkg (fastUnique (a: b: a.md5 < b.md5) pkgList); in runCommand "texlive-${tlName}" ( { # lots of derivations, not meant to be cached preferLocalBuild = true; allowSubstitutes = false; - passthru = { inherit pname tlType version; }; + passthru = { + inherit pname tlType version; + srcs = map (pkg: pkg.src) pkgs; + }; } // lib.optionalAttrs (fixedHash != null) { outputHash = fixedHash; outputHashAlgo = "sha1"; @@ -141,7 +149,7 @@ let ) ( '' mkdir "$out" - '' + lib.concatMapStrings unpackPkg (fastUnique (a: b: a.md5 < b.md5) pkgList) + '' + lib.concatMapStrings (pkg: pkg.unpackCmd) pkgs ); # combine a set of TL packages into a single TL meta-package |