diff options
author | Robin Gloster <mail@glob.in> | 2016-05-02 22:58:02 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2016-05-02 22:58:02 +0000 |
commit | c92bca56f8ea5623cf01952621455db308d0f330 (patch) | |
tree | f940e6e4fabd8e58b91fe885f9541205258023b2 /pkgs/tools/misc | |
parent | 0fdde5efd08c036fe9d73b4e65f2ba9797053d0f (diff) | |
parent | 94520a25adc6b6bee799ec9dab344cfdad3f7180 (diff) | |
download | nixlib-c92bca56f8ea5623cf01952621455db308d0f330.tar nixlib-c92bca56f8ea5623cf01952621455db308d0f330.tar.gz nixlib-c92bca56f8ea5623cf01952621455db308d0f330.tar.bz2 nixlib-c92bca56f8ea5623cf01952621455db308d0f330.tar.lz nixlib-c92bca56f8ea5623cf01952621455db308d0f330.tar.xz nixlib-c92bca56f8ea5623cf01952621455db308d0f330.tar.zst nixlib-c92bca56f8ea5623cf01952621455db308d0f330.zip |
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
Diffstat (limited to 'pkgs/tools/misc')
28 files changed, 369 insertions, 81 deletions
diff --git a/pkgs/tools/misc/antimicro/default.nix b/pkgs/tools/misc/antimicro/default.nix index 1d7984ac11da..343559bb1e11 100644 --- a/pkgs/tools/misc/antimicro/default.nix +++ b/pkgs/tools/misc/antimicro/default.nix @@ -1,12 +1,14 @@ -{ stdenv, cmake, pkgconfig, SDL2, qtbase, qttools, xorg, fetchzip }: +{ stdenv, cmake, pkgconfig, SDL2, qtbase, qttools, xorg, fetchFromGitHub }: stdenv.mkDerivation rec { name = "antimicro-${version}"; - version = "2.18"; + version = "2.18.2"; - src = fetchzip { - url = "https://github.com/Ryochan7/antimicro/archive/${version}.tar.gz"; - sha256 = "0kyl4xl2am50v2xscgy2irpcdj78f7flgfhljyjck4ynf8d40vb7"; + src = fetchFromGitHub { + owner = "7185"; + repo = "antimicro"; + rev = "${version}"; + sha256 = "1mqw5idn57yj6c1w8y0byzh0xafcpbhaa6czgljh206abwfixjmk"; }; buildInputs = [ diff --git a/pkgs/tools/misc/dbus-map/default.nix b/pkgs/tools/misc/dbus-map/default.nix new file mode 100644 index 000000000000..4e0790dded6c --- /dev/null +++ b/pkgs/tools/misc/dbus-map/default.nix @@ -0,0 +1,26 @@ +{ stdenv, lib, fetchFromGitHub, pkgconfig, glib, procps, libxml2 }: + +stdenv.mkDerivation rec { + name = "dbus-map-${version}"; + version = "2015-05-28"; + src = fetchFromGitHub { + owner = "taviso"; + repo = "dbusmap"; + rev = "43703fc5e15743309b67131b5ba457b0d6ea7667"; + sha256 = "1pjqn6w29ci8hfxkn1aynzfc8nvy3pqv3hixbxwr7qx20g4rwvdc"; + }; + buildInputs = [ + pkgconfig glib procps libxml2 + ]; + installPhase = '' + mkdir -p $out/bin + mv dbus-map $out/bin + ''; + meta = with lib; { + description = "Simple utility for enumerating D-Bus endpoints, an nmap for D-Bus"; + homepage = "https://github.com/taviso/dbusmap"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ cstrahan ]; + }; +} diff --git a/pkgs/tools/misc/debian-devscripts/default.nix b/pkgs/tools/misc/debian-devscripts/default.nix index 617cd5f55481..3818b1be1341 100644 --- a/pkgs/tools/misc/debian-devscripts/default.nix +++ b/pkgs/tools/misc/debian-devscripts/default.nix @@ -5,12 +5,12 @@ }: stdenv.mkDerivation rec { - version = "2.16.2"; + version = "2.16.4"; name = "debian-devscripts-${version}"; src = fetchurl { url = "mirror://debian/pool/main/d/devscripts/devscripts_${version}.tar.xz"; - sha256 = "0qlzciiyfhq11j5wf0x6jsa18bmmf2z7f2x5psq2wkkccfi0fxc4"; + sha256 = "0hxvxf8fc76lmrf57l9liwx1xjbxk2ldamln8xnwqlg37laxi3v2"; }; buildInputs = [ perl CryptSSLeay LWP unzip xz dpkg TimeDate DBFile diff --git a/pkgs/tools/misc/diffoscope/default.nix b/pkgs/tools/misc/diffoscope/default.nix index e54e83ef4921..b916b91d5d23 100644 --- a/pkgs/tools/misc/diffoscope/default.nix +++ b/pkgs/tools/misc/diffoscope/default.nix @@ -6,22 +6,19 @@ pythonPackages.buildPythonApplication rec { name = "diffoscope-${version}"; - version = "49"; + version = "52"; namePrefix = ""; src = fetchgit { url = "git://anonscm.debian.org/reproducible/diffoscope.git"; rev = "refs/tags/${version}"; - sha256 = "0kh96h95rp7bk8rgc1z18jwv89dyp1n36bawqyqxhwwklmrgxr66"; + sha256 = "1a22abvjs8f8c4anrcfhn02xw7m2gl701b9csxy06c5ymib0npxd"; }; patches = - [ # Ignore different link counts and inode change times. - (fetchpatch { - url = https://github.com/edolstra/diffoscope/commit/367f77bba8df0dbc89e63c9f66f05736adf5ec59.patch; - sha256 = "0mnp7icdrjn02dr6f5dwqvvr848jzgkv3cg69a24234y9gxd30ww"; - }) + [ # Ignore different link counts. + ./ignore_links.patch ]; postPatch = '' diff --git a/pkgs/tools/misc/diffoscope/ignore_links.patch b/pkgs/tools/misc/diffoscope/ignore_links.patch new file mode 100644 index 000000000000..4e5046390fa9 --- /dev/null +++ b/pkgs/tools/misc/diffoscope/ignore_links.patch @@ -0,0 +1,25 @@ +From: Eelco Dolstra <eelco.dolstra@logicblox.com> + +Nix deduplicates by hard-linking identical files, so it's normal for +the the number of links to a file to differ. +--- +diff --git a/diffoscope/comparators/directory.py b/diffoscope/comparators/directory.py +index 7d1cd75..bd91eb0 100644 +--- a/diffoscope/comparators/directory.py ++++ b/diffoscope/comparators/directory.py +@@ -47,6 +47,7 @@ class Stat(Command): + FILE_RE = re.compile(r'^\s*File:.*$') + DEVICE_RE = re.compile(r'Device: [0-9a-f]+h/[0-9]+d') + INODE_RE = re.compile(r'Inode: [0-9]+') ++ LINKS_RE = re.compile(r'Links: [0-9]+') + ACCESS_TIME_RE = re.compile(r'^Access: [0-9]{4}-[0-9]{2}-[0-9]{2}.*$') + CHANGE_TIME_RE = re.compile(r'^Change: [0-9]{4}-[0-9]{2}-[0-9]{2}.*$') + +@@ -55,6 +56,7 @@ class Stat(Command): + line = Stat.FILE_RE.sub('', line) + line = Stat.DEVICE_RE.sub('', line) + line = Stat.INODE_RE.sub('', line) ++ line = Stat.LINKS_RE.sub('', line) + line = Stat.ACCESS_TIME_RE.sub('', line) + line = Stat.CHANGE_TIME_RE.sub('', line) + return line.encode('utf-8') diff --git a/pkgs/tools/misc/entr/default.nix b/pkgs/tools/misc/entr/default.nix index c6bca6e9d8f6..0cc30fe45e38 100644 --- a/pkgs/tools/misc/entr/default.nix +++ b/pkgs/tools/misc/entr/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "entr-${version}"; - version = "3.4"; + version = "3.5"; src = fetchurl { url = "http://entrproject.org/code/${name}.tar.gz"; - sha256 = "02h1drxn2lid2fwzwjpkp9p04l0g5a56v6jyj3gi3dzjsq7h0zff"; + sha256 = "05k4jyjna0pr2dalwc1l1dhrcyk6pw7hbss7jl4ykwfadcs5br73"; }; postPatch = '' diff --git a/pkgs/tools/misc/exa/default.nix b/pkgs/tools/misc/exa/default.nix index af6f70e2f5c1..39ba9bb2e509 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-20"; - depsSha256 = "18anwh235kzziq6z7md8f3rl2xl4l9d4ivsqw9grkb7yivd5j0jk"; + depsSha256 = "1rpynsni2r3gim10xc1qkj51wpbzafwsr99y61zh41v4vh047g1k"; src = fetchFromGitHub { owner = "ogham"; repo = "exa"; - rev = "8805ce9e3bcd4b56f8811a686dd56c47202cdbab"; - sha256 = "0dkvk0rsf068as6zcd01p7959rdjzm26mlkpid6z0j168gp4kh4q"; + rev = "110a1c716bfc4a7f74f74b3c4f0a881c773fcd06"; + sha256 = "136yxi85m50vwmqinr1wnd0h29n5yjykqqqk9ibbcmmhx8sqhjzf"; }; nativeBuildInputs = [ cmake ]; diff --git a/pkgs/tools/misc/filebench/default.nix b/pkgs/tools/misc/filebench/default.nix new file mode 100644 index 000000000000..1e8b5a493f5f --- /dev/null +++ b/pkgs/tools/misc/filebench/default.nix @@ -0,0 +1,19 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "filebench-${version}"; + version = "1.4.9.1"; + + src = fetchurl { + url = "mirror://sourceforge/filebench/${name}.tar.gz"; + sha256 = "0y06f9mp4xry6j1jamqprzn963l0krqayv14yv66pm51hdh53ld1"; + }; + + meta = with stdenv.lib; { + description = "File system and storage benchmark that can generate both micro and macro workloads"; + homepage = https://sourceforge.net/projects/filebench/; + license = licenses.cddl; + maintainers = [ maintainers.dezgeg ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/tools/misc/fsmark/default.nix b/pkgs/tools/misc/fsmark/default.nix new file mode 100644 index 000000000000..0e821ce7f1f5 --- /dev/null +++ b/pkgs/tools/misc/fsmark/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "fsmark-${version}"; + version = "3.3"; + + src = fetchurl { + url = "mirror://sourceforge/fsmark/${version}/fs_mark-${version}.tar.gz"; + sha256 = "15f8clcz49qsfijdmcz165ysp8v4ybsm57d3dxhhlnq1bp1i9w33"; + }; + + patchPhase = '' + sed -i Makefile -e 's/-static //' + ''; + + installPhase = '' + mkdir -p $out/bin + cp fs_mark $out/bin/ + ''; + + meta = with stdenv.lib; { + description = "Synchronous write workload file system benchmark"; + homepage = https://sourceforge.net/projects/fsmark/; + license = licenses.gpl2; + maintainers = [ maintainers.dezgeg ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/tools/misc/gparted/default.nix b/pkgs/tools/misc/gparted/default.nix index 808fb2c841c0..f9459c72828d 100644 --- a/pkgs/tools/misc/gparted/default.nix +++ b/pkgs/tools/misc/gparted/default.nix @@ -4,10 +4,10 @@ }: stdenv.mkDerivation rec { - name = "gparted-0.25.0"; + name = "gparted-0.26.0"; src = fetchurl { - sha256 = "1bllvj66rka8f9h9rfwvxaqrj4mbp2n2860ahnp9xm1195gnv69d"; + sha256 = "1d3zw99yd1v0gqhcxff35wqz34xi6ps7q9j1bn11sghqihr3kwxw"; url = "mirror://sourceforge/gparted/${name}.tar.gz"; }; diff --git a/pkgs/tools/misc/graylog/default.nix b/pkgs/tools/misc/graylog/default.nix new file mode 100644 index 000000000000..a3952f7903b2 --- /dev/null +++ b/pkgs/tools/misc/graylog/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + version = "2.0.0"; + name = "graylog-${version}"; + + src = fetchurl { + url = "https://packages.graylog2.org/releases/graylog/graylog-${version}.tgz"; + sha256 = "0qn2rf2aarfr34387fiv34rmav20c66b4zs9bkm8gpvj0laxrqh2"; + }; + + dontBuild = true; + dontStrip = true; + + installPhase = '' + mkdir -p $out + cp -r {graylog.jar,lib,bin,plugin,data} $out + ''; + + meta = with stdenv.lib; { + description = "Open source log management solution"; + homepage = https://www.graylog.org/; + license = licenses.gpl3; + platforms = platforms.unix; + maintainers = [ maintainers.fadenb ]; + }; +} diff --git a/pkgs/tools/misc/grub4dos/default.nix b/pkgs/tools/misc/grub4dos/default.nix index f0ac6b5f7c98..400aa88e357a 100644 --- a/pkgs/tools/misc/grub4dos/default.nix +++ b/pkgs/tools/misc/grub4dos/default.nix @@ -1,18 +1,21 @@ -{ stdenv, fetchurl, unzip, nasm }: +{ stdenv, fetchFromGitHub, nasm }: let arch = if stdenv.isi686 then "i386" else if stdenv.isx86_64 then "x86_64" else abort "Unknown architecture"; -in stdenv.mkDerivation { - name = "grub4dos-0.4.6a-2015-12-31"; - - src = fetchurl { - url = https://github.com/chenall/grub4dos/archive/a8024743c61cc4909514b27df07b7cc4bc89d1fb.zip; - sha256 = "1m5d7klb12qz5sa09919z7jchfafgh84cmpwilp52qnbpi3zh2fd"; +in stdenv.mkDerivation rec { + name = "grub4dos-${version}"; + version = "0.4.6a-2016-04-26"; + + src = fetchFromGitHub { + owner = "chenall"; + repo = "grub4dos"; + rev = "61d8229375c679436d56376518456723b2025e1a"; + sha256 = "1r4jmvykk5cvpf1kysykvksa9vfy7p29q20x72inw2pbhipj0f10"; }; - nativeBuildInputs = [ unzip nasm ]; + nativeBuildInputs = [ nasm ]; hardeningDisable = [ "stackprotector" ]; @@ -28,7 +31,7 @@ in stdenv.mkDerivation { dontPatchELF = true; meta = with stdenv.lib; { - homepage = http://grub4dos.chenall.net/; + homepage = "http://grub4dos.chenall.net/"; description = "GRUB for DOS is the dos extension of GRUB"; maintainers = with maintainers; [ abbradar ]; platforms = platforms.all; diff --git a/pkgs/tools/misc/heatseeker/default.nix b/pkgs/tools/misc/heatseeker/default.nix index 0d85554c347d..9183f1290ea8 100644 --- a/pkgs/tools/misc/heatseeker/default.nix +++ b/pkgs/tools/misc/heatseeker/default.nix @@ -4,17 +4,17 @@ with rustPlatform; buildRustPackage rec { name = "heatseeker-${version}"; - version = "1.3.0"; + version = "1.4.0"; - depsSha256 = "03jap7myf85xgx9270sws8x57nl04a1wx8szrk9qx24s9vnnjcnh"; + depsSha256 = "1acimdkl6ra9jlyiydzzd6ccdygr5is2xf9gw8i45xzh0xnsq226"; src = fetchFromGitHub { owner = "rschmitt"; repo = "heatseeker"; rev = "v${version}"; - sha256 = "1xdvwgmh9lwv82hv1qg82bjv2iplnvva6lzbg7dyhbszhv7rhkbl"; + sha256 = "1v2p6l4bdmvn9jggb12p0j5ajjvnbcdjsiavlcqiijz2w8wcdgs8"; }; - + # some tests require a tty, this variable turns them off for Travis CI, # which we can also make use of TRAVIS= "true"; diff --git a/pkgs/tools/misc/megacli/default.nix b/pkgs/tools/misc/megacli/default.nix index 1f57b290cdd7..cbebd557d77c 100644 --- a/pkgs/tools/misc/megacli/default.nix +++ b/pkgs/tools/misc/megacli/default.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation rec { cd $out unzip ${src} rpmextract linux/MegaCli-8.07.07-1.noarch.rpm - ${patchelf}/bin/patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath ${libPath}:$out/opt/lsi/3rdpartylibs/x86_64:$out/opt/lsi/3rdpartylibs:${stdenv.cc.cc}/lib64:${stdenv.cc.cc}/lib opt/MegaRAID/MegaCli/MegaCli64 + ${patchelf}/bin/patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath ${libPath}:$out/opt/lsi/3rdpartylibs/x86_64:$out/opt/lsi/3rdpartylibs:${stdenv.cc.cc.lib}/lib64:${stdenv.cc.cc.lib}/lib opt/MegaRAID/MegaCli/MegaCli64 wrapProgram $out/opt/MegaRAID/MegaCli/MegaCli64 --set LD_LIBRARY_PATH $out/opt/lsi/3rdpartylibs/x86_64 ln -s $out/opt/MegaRAID/MegaCli/MegaCli64 $out/bin/MegaCli64 eval fixupPhase diff --git a/pkgs/tools/misc/ostree/default.nix b/pkgs/tools/misc/ostree/default.nix index ff64b65a89b8..7d9d5545f406 100644 --- a/pkgs/tools/misc/ostree/default.nix +++ b/pkgs/tools/misc/ostree/default.nix @@ -1,32 +1,56 @@ { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gtk_doc, gobjectIntrospection -, libgsystem, xz, e2fsprogs, libsoup, gpgme +, libgsystem, xz, e2fsprogs, libsoup, gpgme, which, autoconf, automake, libtool, fuse +, libcap, yacc, libxslt, docbook_xsl, docbook_xml_dtd_42 }: -stdenv.mkDerivation { - name = "ostree-2015.3"; +let + libglnx-src = fetchFromGitHub { + owner = "GNOME"; + repo = "libglnx"; + rev = "769522753c25537e520adc322fa62e5390272add"; + sha256 = "0gfc8dl63xpmf73dwb1plj7cymq7z6w6wq5m06yx8jymwhq7x1l8"; + }; - meta = with stdenv.lib; { - description = "Git for operating system binaries"; - homepage = "http://live.gnome.org/OSTree/"; - license = licenses.lgpl2Plus; - platforms = platforms.linux; + bsdiff-src = fetchFromGitHub { + owner = "mendsley"; + repo = "bsdiff"; + rev = "1edf9f656850c0c64dae260960fabd8249ea9c60"; + sha256 = "1h71d2h2d3anp4msvpaff445rnzdxii3id2yglqk7af9i43kdsn1"; }; +in stdenv.mkDerivation rec { + rev = "v2016.5"; + name = "ostree-${rev}"; src = fetchFromGitHub { - owner = "GNOME"; - repo = "ostree"; - rev = "v2015.3"; - sha256 = "1n5q0yxwqx4pqiww3yjmqxl5835kknpw1bnwzbpanmyndnnl88dd"; + inherit rev; + owner = "ostreedev"; + repo = "ostree"; + sha256 = "1dfyhzgv94ldjv2l4jxf4xhks2z5ljljqa3k579qskds755n6kvg"; }; nativeBuildInputs = [ - autoreconfHook pkgconfig gtk_doc gobjectIntrospection + autoconf automake libtool pkgconfig gtk_doc gobjectIntrospection which yacc + libxslt docbook_xsl docbook_xml_dtd_42 ]; - buildInputs = [ libgsystem xz e2fsprogs libsoup gpgme ]; + buildInputs = [ libgsystem xz e2fsprogs libsoup gpgme fuse libcap ]; + + prePatch = '' + rmdir libglnx bsdiff + cp --no-preserve=mode -r ${libglnx-src} libglnx + cp --no-preserve=mode -r ${bsdiff-src} bsdiff + ''; - preAutoreconf = '' - mkdir m4 - gtkdocize + preConfigure = '' + env NOCONFIGURE=1 ./autogen.sh ''; + + meta = with stdenv.lib; { + description = "Git for operating system binaries"; + homepage = "http://live.gnome.org/OSTree/"; + license = licenses.lgpl2Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ copumpkin ]; + }; } + diff --git a/pkgs/tools/misc/pws/Gemfile b/pkgs/tools/misc/pws/Gemfile new file mode 100644 index 000000000000..43b6b931860c --- /dev/null +++ b/pkgs/tools/misc/pws/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gem 'pws' diff --git a/pkgs/tools/misc/pws/Gemfile.lock b/pkgs/tools/misc/pws/Gemfile.lock new file mode 100644 index 000000000000..c9cf6a3157c1 --- /dev/null +++ b/pkgs/tools/misc/pws/Gemfile.lock @@ -0,0 +1,19 @@ +GEM + remote: https://rubygems.org/ + specs: + clipboard (1.0.6) + paint (1.0.1) + pbkdf2-ruby (0.2.1) + pws (1.0.6) + clipboard (~> 1.0.5) + paint (>= 0.8.7) + pbkdf2-ruby + +PLATFORMS + ruby + +DEPENDENCIES + pws + +BUNDLED WITH + 1.11.2 diff --git a/pkgs/tools/misc/pws/default.nix b/pkgs/tools/misc/pws/default.nix new file mode 100644 index 000000000000..811e57c0a084 --- /dev/null +++ b/pkgs/tools/misc/pws/default.nix @@ -0,0 +1,33 @@ +{ stdenv, lib, bundlerEnv, ruby, xsel, makeWrapper }: + +stdenv.mkDerivation rec { + name = "pws-1.0.6"; + + env = bundlerEnv { + name = "${name}-gems"; + + inherit ruby; + + gemfile = ./Gemfile; + lockfile = ./Gemfile.lock; + gemset = ./gemset.nix; + }; + + buildInputs = [ makeWrapper ]; + + phases = ["installPhase"]; + + installPhase = '' + mkdir -p $out/bin + makeWrapper ${env}/bin/pws $out/bin/pws \ + --set PATH '"${xsel}/bin/:$PATH"' + ''; + + meta = with lib; { + description = "Command-line password safe"; + homepage = https://github.com/janlelis/pws; + license = licenses.mit; + maintainers = maintainers.swistak35; + platforms = platforms.unix; + }; +} diff --git a/pkgs/tools/misc/pws/gemset.nix b/pkgs/tools/misc/pws/gemset.nix new file mode 100644 index 000000000000..2aa26f9a0202 --- /dev/null +++ b/pkgs/tools/misc/pws/gemset.nix @@ -0,0 +1,34 @@ +{ + clipboard = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "11r5xi1fhll4qxna2sg83vmnphjzqc4pzwdnmc5qwvdps5jbz7cq"; + type = "gem"; + }; + version = "1.0.6"; + }; + paint = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1z1fqyyc2jiv6yabv467h652cxr2lmxl5gqqg7p14y28kdqf0nhj"; + type = "gem"; + }; + version = "1.0.1"; + }; + pbkdf2-ruby = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "014vb5k8klvh192idqrda2571dxsp7ai2v72hj265zd2awy0zyg1"; + type = "gem"; + }; + version = "0.2.1"; + }; + pws = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1brn123mmrw09ji60sa13ylgfjjp7aicz07hm9h0dc3162zlw5wn"; + type = "gem"; + }; + version = "1.0.6"; + }; +} \ No newline at end of file diff --git a/pkgs/tools/misc/rockbox-utility/default.nix b/pkgs/tools/misc/rockbox-utility/default.nix index c9c0cf6949f8..54a6b0309b00 100644 --- a/pkgs/tools/misc/rockbox-utility/default.nix +++ b/pkgs/tools/misc/rockbox-utility/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, libusb1, qt4 }: +{ stdenv, fetchurl, libusb1, qt4, qmake4Hook }: stdenv.mkDerivation rec { name = "rockbox-utility-${version}"; @@ -10,10 +10,10 @@ stdenv.mkDerivation rec { }; buildInputs = [ libusb1 qt4 ]; + nativeBuildInputs = [ qmake4Hook ]; - preBuild = '' + preConfigure = '' cd rbutil/rbutilqt - qmake ''; installPhase = '' diff --git a/pkgs/tools/misc/rpm-ostree/default.nix b/pkgs/tools/misc/rpm-ostree/default.nix new file mode 100644 index 000000000000..8df9666c10b8 --- /dev/null +++ b/pkgs/tools/misc/rpm-ostree/default.nix @@ -0,0 +1,49 @@ +{ stdenv, fetchFromGitHub, ostree, rpm, which, autoconf, automake, libtool, pkgconfig, + libcap, glib, libgsystem, json_glib, libarchive, libhif, librepo, gtk_doc, elfutils, + libxslt, docbook_xsl, docbook_xml_dtd_42, acl }: + +let + libglnx-src = fetchFromGitHub { + owner = "GNOME"; + repo = "libglnx"; + rev = "08ae6639e522e9b11765245fbecdbbe474ccde98"; + sha256 = "1k7fbivi2mwb2x5bqqbqc3nbnfjjw1l911hs914197hyqpy21dab"; + }; +in stdenv.mkDerivation rec { + rev = "v2016.1"; + name = "rpm-ostree"; + + src = fetchFromGitHub { + inherit rev; + owner = "projectatomic"; + repo = "rpm-ostree"; + sha256 = "19jvnmy9zinx0j5nvy3h5abfv9d988kvyza09gljx16gll8qkbbf"; + }; + + NIX_CFLAGS_LINK = "-L${elfutils}/lib"; + + buildInputs = [ + which autoconf automake pkgconfig libtool libcap ostree rpm glib libgsystem + json_glib libarchive libhif librepo gtk_doc libxslt docbook_xsl docbook_xml_dtd_42 + # FIXME: get rid of this once libarchive properly propagates this + acl + ]; + + prePatch = '' + rmdir libglnx + cp --no-preserve=mode -r ${libglnx-src} libglnx + ''; + + preConfigure = '' + env NOCONFIGURE=1 ./autogen.sh + ''; + + meta = with stdenv.lib; { + description = "A hybrid image/package system. It uses OSTree as an image format, and uses RPM as a component model"; + homepage = "https://rpm-ostree.readthedocs.io/en/latest/"; + license = licenses.lgpl2Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ copumpkin ]; + }; +} + diff --git a/pkgs/tools/misc/sdl-jstest/default.nix b/pkgs/tools/misc/sdl-jstest/default.nix index 677f52c2c328..31cedd282a44 100644 --- a/pkgs/tools/misc/sdl-jstest/default.nix +++ b/pkgs/tools/misc/sdl-jstest/default.nix @@ -1,18 +1,21 @@ -{ fetchgit, stdenv, cmake, pkgconfig, SDL, SDL2, ncurses, docbook_xsl }: +{ fetchFromGitHub, stdenv, cmake, pkgconfig, SDL, SDL2, ncurses, docbook_xsl }: stdenv.mkDerivation rec { - name = "sdl-jstest-20150806"; - src = fetchgit { - url = "https://github.com/Grumbel/sdl-jstest"; - rev = "7b792376178c9656c851ddf106c7d57b2495e8b9"; - sha256 = "3aa9a002de9c9999bd7c6248b94148f15dba6106489e418b2a1a410324f75eb8"; + name = "sdl-jstest-${version}"; + version = "2016-03-29"; + + src = fetchFromGitHub { + owner = "Grumbel"; + repo = "sdl-jstest"; + rev = "301a0e8cf3f96de4c5e58d9fe4413e5cd2b4e6d4"; + sha256 = "1qrz09by5snc3n1wppf2y0pj7rx29dlh1g84glga8vvb03n3yb14"; }; buildInputs = [ SDL SDL2 ncurses ]; nativeBuildInputs = [ cmake pkgconfig docbook_xsl ]; meta = with stdenv.lib; { - homepage = https://github.com/Grumbel/sdl-jstest; + homepage = "https://github.com/Grumbel/sdl-jstest"; description = "Simple SDL joystick test application for the console"; license = licenses.gpl3; platforms = platforms.linux; diff --git a/pkgs/tools/misc/staruml/default.nix b/pkgs/tools/misc/staruml/default.nix index 0d2982c022f9..90771b0527c8 100644 --- a/pkgs/tools/misc/staruml/default.nix +++ b/pkgs/tools/misc/staruml/default.nix @@ -40,7 +40,7 @@ stdenv.mkDerivation rec { mkdir -p $out/lib - ln -s ${stdenv.cc.cc}/lib/libstdc++.so.6 $out/lib/ + ln -s ${stdenv.cc.cc.lib}/lib/libstdc++.so.6 $out/lib/ ln -s ${libudev.out}/lib/libudev.so.1 $out/lib/libudev.so.0 wrapProgram $out/bin/StarUML \ diff --git a/pkgs/tools/misc/tlp/default.nix b/pkgs/tools/misc/tlp/default.nix index e20dc850008a..d290c9f9a5a7 100644 --- a/pkgs/tools/misc/tlp/default.nix +++ b/pkgs/tools/misc/tlp/default.nix @@ -1,5 +1,5 @@ { stdenv, lib, fetchFromGitHub, makeWrapper, perl, systemd, iw, rfkill, hdparm, ethtool, inetutils -, module_init_tools, pciutils, smartmontools, x86_energy_perf_policy, gawk, gnugrep, coreutils +, kmod, pciutils, smartmontools, x86_energy_perf_policy, gawk, gnugrep, coreutils , enableRDW ? false, networkmanager }: @@ -27,7 +27,7 @@ in stdenv.mkDerivation { buildInputs = [ perl ]; paths = lib.makeBinPath - ([ iw rfkill hdparm ethtool inetutils systemd module_init_tools pciutils smartmontools + ([ iw rfkill hdparm ethtool inetutils systemd kmod pciutils smartmontools x86_energy_perf_policy gawk gnugrep coreutils ] ++ lib.optional enableRDW networkmanager diff --git a/pkgs/tools/misc/vdirsyncer/default.nix b/pkgs/tools/misc/vdirsyncer/default.nix index fedfaa48aa37..0cf7f92912ed 100644 --- a/pkgs/tools/misc/vdirsyncer/default.nix +++ b/pkgs/tools/misc/vdirsyncer/default.nix @@ -3,18 +3,17 @@ # Packaging documentation at: # https://github.com/untitaker/vdirsyncer/blob/master/docs/packaging.rst pythonPackages.buildPythonApplication rec { - version = "0.9.3"; + version = "0.10.0"; name = "vdirsyncer-${version}"; namePrefix = ""; src = fetchurl { - url = "https://pypi.python.org/packages/source/v/vdirsyncer/${name}.tar.gz"; - sha256 = "1wjhzjfcvwz68j6wc5cmjsw69ggwcpfy7jp7z7q6fnwwp4dr98lc"; + url = "https://pypi.python.org/packages/0b/fb/c42223e1e9169e4770194e62143d431755724b080d8cb77f14705b634815/vdirsyncer-0.10.0.tar.gz"; + sha256 = "1gf86sbd6w0w4zayh9r3irlp5jwrzbjikjc0vs5zkdpa5c199f78"; }; propagatedBuildInputs = with pythonPackages; [ click click-log click-threading - lxml requests_toolbelt requests2 atomicwrites @@ -31,7 +30,7 @@ pythonPackages.buildPythonApplication rec { meta = with stdenv.lib; { homepage = https://github.com/pimutils/vdirsyncer; description = "Synchronize calendars and contacts"; - maintainers = with maintainers; [ matthiasbeyer jgeerds ]; + maintainers = with maintainers; [ matthiasbeyer jgeerds DamienCassou ]; platforms = platforms.all; license = licenses.mit; }; diff --git a/pkgs/tools/misc/xiccd/default.nix b/pkgs/tools/misc/xiccd/default.nix index cdc2af195011..03c8949bb459 100644 --- a/pkgs/tools/misc/xiccd/default.nix +++ b/pkgs/tools/misc/xiccd/default.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { meta = with stdenv.lib; { description = "X color profile daemon"; - homepage = https://github.com/agalakhov/xiccd; + homepage = "https://github.com/agalakhov/xiccd"; license = licenses.gpl3; maintainers = with maintainers; [ abbradar ]; platforms = platforms.linux; diff --git a/pkgs/tools/misc/xvfb-run/default.nix b/pkgs/tools/misc/xvfb-run/default.nix index f1cf04424349..b7f8e4b21066 100644 --- a/pkgs/tools/misc/xvfb-run/default.nix +++ b/pkgs/tools/misc/xvfb-run/default.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchurl, makeWrapper, xkbcomp, xorgserver, getopt, xkeyboard_config, xauth, utillinux, which, fontsConf}: +{ stdenv, fetchurl, makeWrapper, xkbcomp, xorgserver, getopt, xkeyboard_config +, xauth, utillinux, which, fontsConf, gawk, coreutils }: let xvfb_run = fetchurl { url = https://projects.archlinux.org/svntogit/packages.git/plain/trunk/xvfb-run?h=packages/xorg-server; @@ -17,6 +18,6 @@ stdenv.mkDerivation { wrapProgram $out/bin/xvfb-run \ --set XKB_BINDIR "${xkbcomp}/bin" \ --set FONTCONFIG_FILE "${fontsConf}" \ - --prefix PATH : ${getopt}/bin:${xorgserver.out}/bin:${xauth}/bin:${which}/bin:${utillinux}/bin + --prefix PATH : ${stdenv.lib.makeBinPath [ getopt xorgserver xauth which utillinux gawk coreutils ]} ''; } diff --git a/pkgs/tools/misc/yubikey-personalization-gui/default.nix b/pkgs/tools/misc/yubikey-personalization-gui/default.nix index 57952b80daf5..4bc68aba29df 100644 --- a/pkgs/tools/misc/yubikey-personalization-gui/default.nix +++ b/pkgs/tools/misc/yubikey-personalization-gui/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, yubikey-personalization, qt, libyubikey }: +{ stdenv, fetchurl, pkgconfig, yubikey-personalization, qt4, qmake4Hook, libyubikey }: stdenv.mkDerivation rec { name = "yubikey-personalization-gui-3.1.24"; @@ -8,13 +8,9 @@ stdenv.mkDerivation rec { sha256 = "0aj8cvajswkwzig0py0mjnfw0m8xsilisdcnixpjx9xxsxz5yacq"; }; - nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ yubikey-personalization qt libyubikey ]; + nativeBuildInputs = [ pkgconfig qmake4Hook ]; + buildInputs = [ yubikey-personalization qt4 libyubikey ]; - configurePhase = '' - qmake - ''; - installPhase = '' mkdir -p $out/bin cp build/release/yubikey-personalization-gui $out/bin |