diff options
author | Tuomas Tynkkynen <tuomas@tuxera.com> | 2018-05-22 17:48:29 +0300 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas@tuxera.com> | 2018-05-22 17:48:29 +0300 |
commit | f9feacfc7c389bacb937e24d7cccfe013271efaa (patch) | |
tree | 264c2e15652058f1f1dc16fa4739d453c533ba58 /pkgs/tools | |
parent | db4d77779c9b52a35c5a4306d36e2727cba1b162 (diff) | |
parent | c8a4562f5966e90cbbe04195b4a37a5d4a334f60 (diff) | |
download | nixlib-f9feacfc7c389bacb937e24d7cccfe013271efaa.tar nixlib-f9feacfc7c389bacb937e24d7cccfe013271efaa.tar.gz nixlib-f9feacfc7c389bacb937e24d7cccfe013271efaa.tar.bz2 nixlib-f9feacfc7c389bacb937e24d7cccfe013271efaa.tar.lz nixlib-f9feacfc7c389bacb937e24d7cccfe013271efaa.tar.xz nixlib-f9feacfc7c389bacb937e24d7cccfe013271efaa.tar.zst nixlib-f9feacfc7c389bacb937e24d7cccfe013271efaa.zip |
Merge remote-tracking branch 'upstream/master' into staging
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/autojump/default.nix | 109 | ||||
-rw-r--r-- | pkgs/tools/misc/partition-manager/default.nix | 26 | ||||
-rw-r--r-- | pkgs/tools/misc/youtube-dl/default.nix | 4 | ||||
-rw-r--r-- | pkgs/tools/networking/wireguard-go/default.nix | 8 | ||||
-rw-r--r-- | pkgs/tools/networking/wireguard-tools/default.nix | 40 | ||||
-rw-r--r-- | pkgs/tools/package-management/nix-du/default.nix | 30 |
6 files changed, 122 insertions, 95 deletions
diff --git a/pkgs/tools/misc/autojump/default.nix b/pkgs/tools/misc/autojump/default.nix index 4d3376108b7e..5f86dbadfa36 100644 --- a/pkgs/tools/misc/autojump/default.nix +++ b/pkgs/tools/misc/autojump/default.nix @@ -1,64 +1,53 @@ -{ fetchurl, stdenv, python, bash }: +{ stdenv, fetchFromGitHub, python, bash }: -let +stdenv.mkDerivation rec { + name = "autojump-${version}"; version = "22.5.1"; -in - stdenv.mkDerivation rec { - name = "autojump-${version}"; - src = fetchurl { - url = "http://github.com/joelthelion/autojump/archive/release-v${version}.tar.gz"; - name = "autojump-${version}.tar.gz"; - sha256 = "17z9j9936x0nizwrzf664bngh60x5qbvrrf1s5qdzd0f2gdanpvn"; - }; - - buildInputs = [ python bash ]; - dontBuild = true; - - installPhase = '' - python ./install.py -d $out -p "" - chmod +x $out/etc/profile.d/* - - mkdir -p "$out/etc/bash_completion.d" - cp -v $out/share/autojump/autojump.bash "$out/etc/bash_completion.d" - - mkdir -p $out/share/fish/vendor_completions.d/ - cp -v $out/share/autojump/autojump.fish "$out/share/fish/vendor_completions.d/autojump.fish" - - cat <<SCRIPT > $out/bin/autojump-share - #!/bin/sh - # Run this script to find the autojump shared folder where all the shell - # integration scripts are living. - echo $out/share/autojump - SCRIPT - chmod +x $out/bin/autojump-share + src = fetchFromGitHub { + owner = "wting"; + repo = "autojump"; + rev = "release-v${version}"; + sha256 = "1l1278g3k1qfrz41pkpjdhsabassb9si2d1bfbcmvbv5h3wmlqk9"; + }; + + buildInputs = [ python bash ]; + dontBuild = true; + + installPhase = '' + python ./install.py -d "$out" -p "" -z "$out/share/zsh/site-functions/" + + chmod +x "$out/etc/profile.d/autojump.sh" + install -Dt "$out/share/bash-completion/completions/" -m444 "$out/share/autojump/autojump.bash" + install -Dt "$out/share/fish/vendor_conf.d/" -m444 "$out/share/autojump/autojump.fish" + install -Dt "$out/share/zsh/site-functions/" -m444 "$out/share/autojump/autojump.zsh" + ''; + + meta = with stdenv.lib; { + description = "A `cd' command that learns"; + longDescription = '' + One of the most used shell commands is “cd”. A quick survey + among my friends revealed that between 10 and 20% of all + commands they type are actually cd commands! Unfortunately, + jumping from one part of your system to another with cd + requires to enter almost the full path, which isn’t very + practical and requires a lot of keystrokes. + + Autojump is a faster way to navigate your filesystem. It + works by maintaining a database of the directories you use the + most from the command line. The jstat command shows you the + current contents of the database. You need to work a little + bit before the database becomes usable. Once your database + is reasonably complete, you can “jump” to a directory by + typing "j dirspec", where dirspec is a few characters of the + directory you want to jump to. It will jump to the most used + directory whose name matches the pattern given in dirspec. + + Autojump supports tab-completion. ''; - - meta = { - description = "A `cd' command that learns"; - longDescription = '' - One of the most used shell commands is “cd”. A quick survey - among my friends revealed that between 10 and 20% of all - commands they type are actually cd commands! Unfortunately, - jumping from one part of your system to another with cd - requires to enter almost the full path, which isn’t very - practical and requires a lot of keystrokes. - - Autojump is a faster way to navigate your filesystem. It - works by maintaining a database of the directories you use the - most from the command line. The jstat command shows you the - current contents of the database. You need to work a little - bit before the database becomes usable. Once your database - is reasonably complete, you can “jump” to a directory by - typing "j dirspec", where dirspec is a few characters of the - directory you want to jump to. It will jump to the most used - directory whose name matches the pattern given in dirspec. - - Autojump supports tab-completion. - ''; - homepage = http://wiki.github.com/joelthelion/autojump; - license = stdenv.lib.licenses.gpl3; - platforms = stdenv.lib.platforms.all; - maintainers = [ stdenv.lib.maintainers.domenkozar ]; - }; - } + homepage = http://wiki.github.com/wting/autojump; + license = licenses.gpl3; + platforms = platforms.all; + maintainers = with maintainers; [ domenkozar yurrriq ]; + }; +} diff --git a/pkgs/tools/misc/partition-manager/default.nix b/pkgs/tools/misc/partition-manager/default.nix index a1c1eccdd88a..4599309b2384 100644 --- a/pkgs/tools/misc/partition-manager/default.nix +++ b/pkgs/tools/misc/partition-manager/default.nix @@ -1,26 +1,36 @@ { mkDerivation, fetchurl, lib , extra-cmake-modules, kdoctools, wrapGAppsHook , kconfig, kcrash, kinit, kpmcore -, eject, libatasmart }: +, eject, libatasmart , utillinux, makeWrapper, qtbase +}: let pname = "partitionmanager"; in mkDerivation rec { name = "${pname}-${version}"; - version = "3.0.1"; + version = "3.3.1"; src = fetchurl { url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.xz"; - sha256 = "08sb9xa7dvvgha3k2xm1srl339przxpxd2y5bh1lnx6k1x7dk410"; + sha256 = "0jhggb4xksb0k0mj752n6pz0xmccnbzlp984xydqbz3hkigra1si"; }; + enableParallelBuilding = true; + + nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook makeWrapper ]; + + # refer to kpmcore for the use of eject + buildInputs = [ eject libatasmart utillinux ]; + propagatedBuildInputs = [ kconfig kcrash kinit kpmcore ]; + + postInstall = '' + wrapProgram "$out/bin/partitionmanager" --prefix QT_PLUGIN_PATH : "${kpmcore}/lib/qt-5.${lib.versions.minor qtbase.version}/plugins" + ''; + meta = with lib; { description = "KDE Partition Manager"; license = licenses.gpl2; - maintainers = with maintainers; [ peterhoeg ]; + homepage = https://www.kde.org/applications/system/kdepartitionmanager/; + maintainers = with maintainers; [ peterhoeg ma27 ]; }; - nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ]; - # refer to kpmcore for the use of eject - buildInputs = [ eject libatasmart ]; - propagatedBuildInputs = [ kconfig kcrash kinit kpmcore ]; } diff --git a/pkgs/tools/misc/youtube-dl/default.nix b/pkgs/tools/misc/youtube-dl/default.nix index b639397388b4..7e503f326fd5 100644 --- a/pkgs/tools/misc/youtube-dl/default.nix +++ b/pkgs/tools/misc/youtube-dl/default.nix @@ -1,4 +1,4 @@ -{ stdenv, targetPlatform, fetchurl, buildPythonApplication +{ stdenv, targetPlatform, fetchurl, buildPythonPackage , zip, ffmpeg, rtmpdump, phantomjs2, atomicparsley, pycryptodome, pandoc # Pandoc is required to build the package's man page. Release tarballs contain a # formatted man page already, though, it will still be installed. We keep the @@ -13,7 +13,7 @@ , makeWrapper }: with stdenv.lib; -buildPythonApplication rec { +buildPythonPackage rec { pname = "youtube-dl"; version = "2018.05.18"; diff --git a/pkgs/tools/networking/wireguard-go/default.nix b/pkgs/tools/networking/wireguard-go/default.nix index e27b241e755d..37220acf8cf8 100644 --- a/pkgs/tools/networking/wireguard-go/default.nix +++ b/pkgs/tools/networking/wireguard-go/default.nix @@ -2,13 +2,13 @@ buildGoPackage rec { name = "wireguard-go-${version}"; - version = "0.0.20180514"; + version = "0.0.20180519"; goPackagePath = "wireguard-go"; src = fetchzip { url = "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-${version}.tar.xz"; - sha256 = "1i1w4vj8w353b92nfhs92k0f7fifrwi067qfmgckdk0kk76nv2id"; + sha256 = "0b3wpc0ccf24567fjafv1sjs3yqq1xjam3gpfp37avxqy9789nb7"; }; goDeps = ./deps.nix; @@ -22,7 +22,7 @@ buildGoPackage rec { description = "Userspace Go implementation of WireGuard"; homepage = https://git.zx2c4.com/wireguard-go/about/; license = licenses.gpl2; - maintainers = with maintainers; [ kirelagin ]; - platforms = with platforms; linux ++ darwin ++ windows; + maintainers = with maintainers; [ kirelagin zx2c4 ]; + platforms = platforms.darwin; }; } diff --git a/pkgs/tools/networking/wireguard-tools/default.nix b/pkgs/tools/networking/wireguard-tools/default.nix index c9e48d61c359..c43e7548364e 100644 --- a/pkgs/tools/networking/wireguard-tools/default.nix +++ b/pkgs/tools/networking/wireguard-tools/default.nix @@ -1,46 +1,44 @@ -{ stdenv, lib, fetchzip, libmnl, useSystemd ? stdenv.isLinux }: +{ stdenv, fetchzip, libmnl ? null, makeWrapper ? null, wireguard-go ? null }: -let - inherit (lib) optional optionalString; -in +with stdenv.lib; stdenv.mkDerivation rec { name = "wireguard-tools-${version}"; version = "0.0.20180519"; src = fetchzip { - url = "https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${version}.tar.xz"; + url = "https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${version}.tar.xz"; sha256 = "0pd04ia0wcm0f6di4gx5kflccc5j35d72j38l8jqpj8vinl6l070"; }; - preConfigure = "cd src"; + sourceRoot = "source/src/tools"; - buildInputs = optional stdenv.isLinux libmnl; - - enableParallelBuilding = true; + nativeBuildInputs = [ (optional stdenv.isDarwin makeWrapper) ]; + buildInputs = [ (optional stdenv.isLinux libmnl) ]; makeFlags = [ - "WITH_BASHCOMPLETION=yes" - "WITH_WGQUICK=yes" - "WITH_SYSTEMDUNITS=${if useSystemd then "yes" else "no"}" "DESTDIR=$(out)" "PREFIX=/" - "-C" "tools" + "WITH_BASHCOMPLETION=yes" + "WITH_SYSTEMDUNITS=yes" + "WITH_WGQUICK=yes" ]; - buildPhase = "make tools"; - - postInstall = optionalString useSystemd '' + postFixup = '' substituteInPlace $out/lib/systemd/system/wg-quick@.service \ --replace /usr/bin $out/bin + '' + optionalString stdenv.isDarwin '' + for f in $out/bin/*; do + wrapProgram $f --prefix PATH : ${wireguard-go}/bin + done ''; meta = with stdenv.lib; { - homepage = https://www.wireguard.com/; + description = "Tools for the WireGuard secure network tunnel"; downloadPage = https://git.zx2c4.com/WireGuard/refs/; - description = " Tools for the WireGuard secure network tunnel"; - maintainers = with maintainers; [ ericsagnes mic92 zx2c4 ]; - license = licenses.gpl2; - platforms = platforms.unix; + homepage = https://www.wireguard.com/; + license = licenses.gpl2; + maintainers = with maintainers; [ ericsagnes mic92 zx2c4 ]; + platforms = platforms.unix; }; } diff --git a/pkgs/tools/package-management/nix-du/default.nix b/pkgs/tools/package-management/nix-du/default.nix new file mode 100644 index 000000000000..2e68666b7fa3 --- /dev/null +++ b/pkgs/tools/package-management/nix-du/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, rustPlatform, nix, boost, graphviz }: +rustPlatform.buildRustPackage rec { + name = "nix-du-${version}"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "symphorien"; + repo = "nix-du"; + rev = "v${version}"; + sha256 = "0kxacn5qw21pp4zl6wr9wyb2mm2nlnp6mla3m5p9dm7vrm1fd1x9"; + }; + cargoSha256 = "04c48lzi7hny3nq4ffdpvsr4dxbi32faka163fp1yc9953zdw9az"; + + doCheck = !stdenv.isDarwin; + checkInputs = [ graphviz ]; + nativeBuildInputs = [] ++ stdenv.lib.optionals doCheck checkInputs; + + buildInputs = [ + boost + nix + ]; + + meta = with stdenv.lib; { + description = "A tool to determine which gc-roots take space in your nix store"; + homepage = https://github.com/symphorien/nix-du; + license = licenses.lgpl3; + maintainers = [ maintainers.symphorien ]; + platforms = platforms.all; + }; +} |