diff options
author | obadz <obadz-git@obadz.com> | 2016-08-27 23:54:54 +0100 |
---|---|---|
committer | obadz <obadz-git@obadz.com> | 2016-08-27 23:54:54 +0100 |
commit | 3de6e5be50124834f9d0adfc299295e9e6e30c08 (patch) | |
tree | 31c4c7003ca554e75fa7ead8242f00922a92b25f /pkgs/tools | |
parent | 132571454c8162cdefe9e94613137d6a13b950b7 (diff) | |
parent | df27c35e9a0515146eb7db07e11af59e520214a6 (diff) | |
download | nixpkgs-3de6e5be50124834f9d0adfc299295e9e6e30c08.tar nixpkgs-3de6e5be50124834f9d0adfc299295e9e6e30c08.tar.gz nixpkgs-3de6e5be50124834f9d0adfc299295e9e6e30c08.tar.bz2 nixpkgs-3de6e5be50124834f9d0adfc299295e9e6e30c08.tar.lz nixpkgs-3de6e5be50124834f9d0adfc299295e9e6e30c08.tar.xz nixpkgs-3de6e5be50124834f9d0adfc299295e9e6e30c08.tar.zst nixpkgs-3de6e5be50124834f9d0adfc299295e9e6e30c08.zip |
Merge branch 'master' into staging
Conflicts: pkgs/applications/misc/navit/default.nix pkgs/applications/networking/mailreaders/alpine/default.nix pkgs/applications/networking/mailreaders/realpine/default.nix pkgs/development/compilers/ghc/head.nix pkgs/development/libraries/openssl/default.nix pkgs/games/liquidwar/default.nix pkgs/games/spring/springlobby.nix pkgs/os-specific/linux/kernel/perf.nix pkgs/servers/sip/freeswitch/default.nix pkgs/tools/archivers/cromfs/default.nix pkgs/tools/graphics/plotutils/default.nix
Diffstat (limited to 'pkgs/tools')
23 files changed, 455 insertions, 86 deletions
diff --git a/pkgs/tools/admin/google-cloud-sdk/default.nix b/pkgs/tools/admin/google-cloud-sdk/default.nix index 7da43d6fa71..27ca19178a0 100644 --- a/pkgs/tools/admin/google-cloud-sdk/default.nix +++ b/pkgs/tools/admin/google-cloud-sdk/default.nix @@ -4,18 +4,18 @@ with python27Packages; stdenv.mkDerivation rec { name = "google-cloud-sdk-${version}"; - version = "113.0.0"; + version = "122.0.0"; src = if stdenv.system == "i686-linux" then fetchurl { url = "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/${name}-linux-x86.tar.gz"; - sha256 = "0v90am3zb77c1d4qbm8pn3mn4xc9xbcw48clca2v5mr5g48aq221"; + sha256 = "0nx348yx1avbb34bpj316fb7jzyzkylscyx8kv183rg4s1q2f798"; } else fetchurl { url = "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/${name}-linux-x86_64.tar.gz"; - sha256 = "1fjc80i1szzppib5pplw3vxh83vzkimlfcpg82vakyhvbjndnqyr"; + sha256 = "0jhw8yv2kv0fs64rzvddx3szzpn74nqnd3rbd9wx2vi6nmffkrwv"; }; buildInputs = [python27 makeWrapper]; diff --git a/pkgs/tools/bootloaders/refind/default.nix b/pkgs/tools/bootloaders/refind/default.nix index f38b24c0fc0..5121ecc9477 100644 --- a/pkgs/tools/bootloaders/refind/default.nix +++ b/pkgs/tools/bootloaders/refind/default.nix @@ -1,5 +1,5 @@ -{ stdenv, fetchurl -, unzip, gnu-efi, efibootmgr, dosfstools, imagemagick }: +{ stdenv, fetchurl, fetchpatch +, gnu-efi, efibootmgr, dosfstools, imagemagick }: assert (stdenv.system == "x86_64-linux" ||stdenv.system == "i686-linux"); @@ -9,11 +9,19 @@ stdenv.mkDerivation rec { srcName = "refind-src-${meta.version}"; src = fetchurl { - url = "mirror://sourceforge/project/refind/${meta.version}/${srcName}.zip"; - sha256 = "0ai150rzx20sfl92j6y1p6qnyy0wbmazrlp2fg19acs98qyxl8lh"; + url = "mirror://sourceforge/project/refind/${meta.version}/${srcName}.tar.gz"; + sha256 = "1r2qp29mz08lx36i7x52i2598773bxvfhwryd954ssq2baifjav5"; }; - buildInputs = [ unzip gnu-efi efibootmgr dosfstools imagemagick ]; + patches = [ + (fetchpatch { + url = "https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=831258;filename=002-efiprot.patch;msg=10"; + sha256 = "17h03h5mgkpamcj9jcq8h6x2admpknysrbdwccg7yxirlc52fc2s"; + name = "002-efiprot.patch"; + }) + ]; + + buildInputs = [ gnu-efi efibootmgr dosfstools imagemagick ]; hardeningDisable = [ "stackprotector" ]; @@ -22,7 +30,7 @@ stdenv.mkDerivation rec { else if stdenv.system == "i686-linux" then "ia32" else "null"; - patchPhase = '' + postPatch = '' sed -e 's|-DEFI_FUNCTION_WRAPPER|-DEFI_FUNCTION_WRAPPER -maccumulate-outgoing-args|g' -i Make.common sed -e 's|-DEFIX64|-DEFIX64 -maccumulate-outgoing-args|g' -i Make.common sed -e 's|-m64|-maccumulate-outgoing-args -m64|g' -i filesystems/Make.gnuefi @@ -57,9 +65,9 @@ stdenv.mkDerivation rec { install -D -m0644 gptsync/gptsync_${HOSTARCH}.efi $out/share/refind/tools_${HOSTARCH}/gptsync_${HOSTARCH}.efi # helper scripts - install -D -m0755 install.sh $out/bin/refind-install - install -D -m0755 mkrlconf.sh $out/bin/refind-mkrlconf - install -D -m0755 mvrefind.sh $out/bin/refind-mvrefind + install -D -m0755 refind-install $out/bin/refind-install + install -D -m0755 mkrlconf $out/bin/refind-mkrlconf + install -D -m0755 mvrefind $out/bin/refind-mvrefind install -D -m0755 fonts/mkfont.sh $out/bin/refind-mkfont # sample config files @@ -78,7 +86,7 @@ stdenv.mkDerivation rec { rm -f $out/share/refind/fonts/mkfont.sh # icons - install -D -m0644 icons/* $out/share/refind/icons/ + install -D -m0644 icons/*.png $out/share/refind/icons/ # images install -D -m0644 images/*.{png,bmp} $out/share/refind/images/ @@ -92,11 +100,10 @@ stdenv.mkDerivation rec { # Post-install fixes sed -e "s|^ThisDir=.*|ThisDir=$out/share/refind/|g" -i $out/bin/refind-install sed -e "s|^RefindDir=.*|RefindDir=$out/share/refind/|g" -i $out/bin/refind-install - sed -e "s|^ThisScript=.*|ThisScript=$out/bin/refind-install|g" -i $out/bin/refind-install ''; meta = with stdenv.lib; { - version = "0.9.2"; + version = "0.10.3"; description = "A graphical {,U}EFI boot manager"; longDescription = '' rEFInd is a graphical boot manager for EFI- and UEFI-based diff --git a/pkgs/tools/graphics/neural-style/default.nix b/pkgs/tools/graphics/neural-style/default.nix new file mode 100644 index 00000000000..4efa6aa2976 --- /dev/null +++ b/pkgs/tools/graphics/neural-style/default.nix @@ -0,0 +1,57 @@ +{stdenv, fetchFromGitHub, torch, loadcaffe, fetchurl, bash}: +stdenv.mkDerivation rec { + name = "neural-style-${version}"; + version = "0.0pre2016.08.15"; + buildInputs = [torch loadcaffe]; + src = fetchFromGitHub { + owner = "jcjohnson"; + repo = "neural-style"; + rev = "ec5ba3a690d3090428d3b92b0c5d686a311bf432"; + sha256 = "14qzbs9f95izvd0vbbirhymdw9pq2nw0jvhrh7vnyzr99xllwp02"; + }; + models = [ + (fetchurl { + url = "https://gist.githubusercontent.com/ksimonyan/3785162f95cd2d5fee77/raw/bb2b4fe0a9bb0669211cf3d0bc949dfdda173e9e/VGG_ILSVRC_19_layers_deploy.prototxt"; + sha256 = "09cpz7pyvc8sypg2q5j2i8yqwj1sjdbnmd6skl293p9pv13dmjg7"; + }) + (fetchurl { + url = "https://bethgelab.org/media/uploads/deeptextures/vgg_normalised.caffemodel"; + sha256 = "11qckdvlck7wwl3pan0nawgxm8l2ccddi272i5l8rs9qzm7b23rf"; + }) + (fetchurl { + url = "http://www.robots.ox.ac.uk/~vgg/software/very_deep/caffe/VGG_ILSVRC_19_layers.caffemodel"; + sha256 = "0m399x7pl4lnhy435ycsyz8xpzapqmx9n1sz698y2vhcqhkwdd1i"; + }) + ]; + installPhase = '' + mkdir -p "$out"/{bin,lib/lua/neural-style/models,share/doc/neural-style,share/neural-style} + for file in $models; do + cp "$file" "$out/lib/lua/neural-style/models/$(basename "$file" | sed -e 's/[^-]*-//')" + done; + cp README* INSTALL* LICEN?E* "$out"/share/doc/neural-style/ + cp neural_style.lua "$out"/lib/lua/neural-style + + substituteAll "${./neural-style.sh}" "$out/bin/neural-style" + chmod a+x "$out/bin/neural-style" + cp "$out/bin/neural-style" . + cp "$out/lib/lua/neural-style/models/"* models/ + + echo "Testing..." + + "$out/bin/neural-style" -style_image examples/inputs/golden_gate.jpg \ + -content_image examples/inputs/golden_gate.jpg -output_image $PWD/test.png \ + -gpu -1 -save_iter 1 -print_iter 1 -num_iterations 1 || true + + cp -f "$out/lib/lua/neural-style/models/"* models/ + + test -e test.png || exit 1 + ''; + inherit torch bash loadcaffe; + meta = { + inherit version; + description = ''A torch implementation of the paper A Neural Algorithm of Artistic Style''; + license = stdenv.lib.licenses.mit ; + maintainers = [stdenv.lib.maintainers.raskin]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/tools/graphics/neural-style/neural-style.sh b/pkgs/tools/graphics/neural-style/neural-style.sh new file mode 100644 index 00000000000..07a4d6dedc0 --- /dev/null +++ b/pkgs/tools/graphics/neural-style/neural-style.sh @@ -0,0 +1,25 @@ +#! @bash@/bin/bash + +declare -a args +c=1 +flag= + +for arg in "$@"; do + if test "$arg" = "${arg#-}" && test "$arg" = "${arg#/}" && test -n "$flag"; then + arg="$PWD/$arg" + flag= + elif test "$arg" != "${arg%_image}" && test "$arg" != "${arg#-}"; then + flag=1 + else + flag= + fi + args[c]="$arg"; + c=$((c+1)); +done + +cd "@out@/lib/lua/neural-style" + +export LUA_PATH="$LUA_PATH${LUA_PATH:+;}@loadcaffe@/lua/?/init.lua;@loadcaffe@/lua/?.lua" +export LUA_CPATH="$LUA_CPATH${LUA_CPATH:+;}@loadcaffe@/lib/?.so" + +@torch@/bin/th neural_style.lua "${args[@]}" diff --git a/pkgs/tools/graphics/plotutils/default.nix b/pkgs/tools/graphics/plotutils/default.nix index 47cf0a60c2f..c6bde4c5b0c 100644 --- a/pkgs/tools/graphics/plotutils/default.nix +++ b/pkgs/tools/graphics/plotutils/default.nix @@ -16,6 +16,7 @@ stdenv.mkDerivation rec { buildInputs = [ libpng ]; # disable failing test on i686 + # https://lists.gnu.org/archive/html/bug-plotutils/2016-04/msg00002.html prePatch = stdenv.lib.optionalString stdenv.isi686 '' substituteInPlace test/Makefile.in --replace 'spline.test' ' ' ''; diff --git a/pkgs/tools/graphics/quirc/default.nix b/pkgs/tools/graphics/quirc/default.nix index 2769a988669..a801dd8ebda 100644 --- a/pkgs/tools/graphics/quirc/default.nix +++ b/pkgs/tools/graphics/quirc/default.nix @@ -1,17 +1,17 @@ -{stdenv, fetchgit, SDL_gfx, SDL, libjpeg, pkgconfig}: +{stdenv, fetchgit, SDL_gfx, SDL, libjpeg, libpng, pkgconfig}: let s = rec { - date = "2014-11-01"; + date = "2016-08-16"; version = "git-${date}"; baseName = "quirc"; name = "${baseName}-${version}"; url = "https://github.com/dlbeer/quirc"; - rev = "3a3df0d1d6adc59fdc2cadecfaed91650b84cacb"; - sha256 = "1r7jzxl4j93dmky8p5szpcxq7i5f7p1kfrklnzhazlizjc7a2844"; + rev = "5b262480091d5f84a67a4a56c728fc8b39844339"; + sha256 = "1w5qvjafn14s6jjs7kiwsqirlsqbgv0p152hrsq463pm34hp0lzy"; }; buildInputs = [ - SDL SDL_gfx libjpeg pkgconfig + SDL SDL_gfx libjpeg pkgconfig libpng ]; in stdenv.mkDerivation { @@ -20,7 +20,7 @@ stdenv.mkDerivation { src = fetchgit { inherit (s) url sha256 rev; }; - NIX_CFLAGS_COMPILE="-I${SDL.dev}/include/SDL"; + NIX_CFLAGS_COMPILE="-I${SDL.dev}/include/SDL -I${SDL_gfx}/include/SDL"; configurePhase = '' sed -e 's/-[og] root//g' -i Makefile ''; diff --git a/pkgs/tools/misc/exa/default.nix b/pkgs/tools/misc/exa/default.nix index 62f8d31ee7e..d743a68c83b 100644 --- a/pkgs/tools/misc/exa/default.nix +++ b/pkgs/tools/misc/exa/default.nix @@ -6,7 +6,7 @@ buildRustPackage rec { name = "exa-${version}"; version = "2016-04-20"; - depsSha256 = "0nyrdl57nhr3lxqs3gaij3mdmlrm0z52qv6mznvgw0ziwqmlq5w1"; + depsSha256 = "0qsqkgc1wxigvskhaamgfp5pyc2kprsikhcfccysgs07w44nxkd0"; src = fetchFromGitHub { owner = "ogham"; diff --git a/pkgs/tools/misc/system-config-printer/default.nix b/pkgs/tools/misc/system-config-printer/default.nix index 67ec9585c7a..ab4a008fa09 100644 --- a/pkgs/tools/misc/system-config-printer/default.nix +++ b/pkgs/tools/misc/system-config-printer/default.nix @@ -1,6 +1,7 @@ { stdenv, fetchurl, udev, intltool, pkgconfig, glib, xmlto , makeWrapper, gtk3, docbook_xml_dtd_412, docbook_xsl , libxml2, desktop_file_utils, libusb1, cups, gdk_pixbuf, pango, atk, libnotify +, cups-filters , pythonPackages , withGUI ? true }: @@ -39,7 +40,9 @@ in stdenv.mkDerivation rec { giTypelibPath = stdenv.lib.makeSearchPath "lib/girepository-1.0" [ gdk_pixbuf.out gtk3.out pango.out atk.out libnotify.out ]; in '' - export makeWrapperArgs="--set prefix $out --set GI_TYPELIB_PATH ${giTypelibPath}" + export makeWrapperArgs="--set prefix $out \ + --set GI_TYPELIB_PATH ${giTypelibPath} \ + --set CUPS_DATADIR ${cups-filters}/share/cups" wrapPythonPrograms # The program imports itself, so we need to move shell wrappers to a proper place. fixupWrapper() { @@ -59,6 +62,10 @@ in stdenv.mkDerivation rec { # The below line will be unneeded when the next upstream release arrives. sed -i -e "s|/usr/bin|$out/bin|" "$out/share/dbus-1/services/org.fedoraproject.Config.Printing.service" + + # Manually expand literal "$(out)", which have failed to expand + sed -e "s|ExecStart=\$(out)|ExecStart=$out|" \ + -i "$out/etc/systemd/system/configure-printer@.service" ''; meta = { diff --git a/pkgs/tools/misc/unclutter-xfixes/default.nix b/pkgs/tools/misc/unclutter-xfixes/default.nix new file mode 100644 index 00000000000..dd13a0d9adc --- /dev/null +++ b/pkgs/tools/misc/unclutter-xfixes/default.nix @@ -0,0 +1,51 @@ +{ stdenv, fetchFromGitHub, + xlibsWrapper, libev, libXi, libXfixes, + pkgconfig, asciidoc, libxslt, docbook_xsl }: + +let version = "1.2"; in + +stdenv.mkDerivation { + name = "unclutter-xfixes-${version}"; + version = version; + + src = fetchFromGitHub { + owner = "Airblader"; + repo = "unclutter-xfixes"; + rev = "v${version}"; + sha256 = "1pw567mj7mq5kr8mqnyrvy7jj62qfg6zgqfyzz21nncslddnjzg8"; + }; + + nativeBuildInputs = [pkgconfig]; + buildInputs = [ + xlibsWrapper libev libXi libXfixes + asciidoc libxslt docbook_xsl + ]; + + postPatch = '' + substituteInPlace Makefile --replace "CC = gcc" "CC = cc" + ''; + + preBuild = '' + # The Makefile calls git only to discover the package version, + # but that doesn't work right in the build environment, + # so we fake it. + git() { echo v${version}; } + export -f git + ''; + + preInstall = '' + export DESTDIR=$out MANDIR=/man/man1 + ''; + + postInstall = '' + mv $out/usr/bin $out/bin + mv $out/usr/share/man $out/man + ''; + + meta = with stdenv.lib; { + description = "Rewrite of unclutter using the X11 Xfixes extension"; + platforms = platforms.unix; + license = stdenv.lib.licenses.mit; + inherit version; + }; +} diff --git a/pkgs/tools/misc/vmtouch/default.nix b/pkgs/tools/misc/vmtouch/default.nix index 34328b339fc..ec2f9c63547 100644 --- a/pkgs/tools/misc/vmtouch/default.nix +++ b/pkgs/tools/misc/vmtouch/default.nix @@ -2,14 +2,14 @@ stdenv.mkDerivation rec { pname = "vmtouch"; - version = "1.0.2"; + version = "1.1.0"; name = "${pname}-git-${version}"; src = fetchFromGitHub { owner = "hoytech"; repo = "vmtouch"; - rev = "vmtouch-${version}"; - sha256 = "0m4s1am1r3qp8si3rnc8j2qc7sbf1k3gxvxr6fnpbf8fcfhh6cay"; + rev = "v${version}"; + sha256 = "1cr8bw3favdvc3kc05n1r7f5fibqqv54bn3z2jwj70br8s5g0qx0"; }; buildInputs = [perl]; diff --git a/pkgs/tools/misc/yad/default.nix b/pkgs/tools/misc/yad/default.nix index 2c8660a4913..52d23d141fc 100644 --- a/pkgs/tools/misc/yad/default.nix +++ b/pkgs/tools/misc/yad/default.nix @@ -1,12 +1,12 @@ -{ stdenv, fetchurl, pkgconfig, intltool, gtk2 }: +{ stdenv, fetchurl, pkgconfig, intltool, gtk2, hicolor_icon_theme +, wrapGAppsHook }: stdenv.mkDerivation rec { - - name = "yad-0.25.1"; + name = "yad-0.37.0"; src = fetchurl { - url = "http://yad.googlecode.com/files/${name}.tar.xz"; - sha256 = "1pljs9799xa2w3y2vjg93gqkv76z0pjh947djd7179yq3kryb57a"; + url = "http://sourceforge.net/projects/yad-dialog/files/${name}.tar.xz"; + sha256 = "0fhqsgml1axaa9avd0hbam5wm77c2c7q1bz4hs7fvyvdnljazvwi"; }; configureFlags = [ @@ -16,19 +16,17 @@ stdenv.mkDerivation rec { # for gcc5: c11 inline semantics breaks the build NIX_CFLAGS_COMPILE = "-fgnu89-inline"; - buildInputs = [ gtk2 ]; + buildInputs = [ gtk2 hicolor_icon_theme ]; - nativeBuildInputs = [ pkgconfig intltool ]; + nativeBuildInputs = [ pkgconfig intltool wrapGAppsHook ]; postPatch = '' sed -i src/file.c -e '21i#include <glib/gprintf.h>' sed -i src/form.c -e '21i#include <stdlib.h>' ''; - preFixup = "rm $out/share/icons/hicolor/icon-theme.cache"; - meta = { - homepage = "http://code.google.com/p/yad/"; + homepage = "http://yad-dialog.sourceforge.net/"; description = "GUI dialog tool for shell scripts"; longDescription = '' Yad (yet another dialog) is a GUI dialog tool for shell scripts. It is a diff --git a/pkgs/tools/networking/argus-clients/default.nix b/pkgs/tools/networking/argus-clients/default.nix new file mode 100644 index 00000000000..fe30a1eab82 --- /dev/null +++ b/pkgs/tools/networking/argus-clients/default.nix @@ -0,0 +1,41 @@ +{ stdenv, fetchurl, libpcap, bison, flex, cyrus_sasl, tcp_wrappers, pkgconfig, perl }: + +stdenv.mkDerivation rec { + pname = "argus-clients"; + version = "3.0.8.2"; + name = "${pname}-${version}"; + + src = fetchurl { + url = "http://qosient.com/argus/src/${name}.tar.gz"; + sha256 = "1c9vj6ma00gqq9h92fg71sxcsjzz912166sdg90ahvnmvmh3l1rj"; + }; + + patchPhase = '' + for file in ./examples/*/*.pl; do + substituteInPlace $file \ + --subst-var-by PERLBIN ${perl}/bin/perl + done + ''; + + configureFlags = "--with-perl=${perl}/bin/perl"; + + buildInputs = [ libpcap pkgconfig bison cyrus_sasl tcp_wrappers flex ]; + + meta = with stdenv.lib; { + description = "Clients for ARGUS"; + longDescription = ''Clients for Audit Record Generation and + Utilization System (ARGUS). The Argus Project is focused on developing all + aspects of large scale network situtational awareness derived from + network activity audit. Argus, itself, is next-generation network + flow technology, processing packets, either on the wire or in + captures, into advanced network flow data. The data, its models, + formats, and attributes are designed to support Network + Operations, Performance and Security Management. If you need to + know what is going on in your network, right now or historically, + you will find Argus a useful tool. ''; + homepage = http://qosient.com/argus; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ leenaars ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/tools/networking/argus/default.nix b/pkgs/tools/networking/argus/default.nix new file mode 100644 index 00000000000..673f98e2f3a --- /dev/null +++ b/pkgs/tools/networking/argus/default.nix @@ -0,0 +1,46 @@ +{ stdenv, fetchurl, libpcap, bison, flex, cyrus_sasl, tcp_wrappers, + pkgconfig, procps, which, wget, lsof, net_snmp, bash, perl }: + +stdenv.mkDerivation rec { + pname = "argus"; + version = "3.0.8.2"; + name = "${pname}-${version}"; + + src = fetchurl { + url = "http://qosient.com/argus/src/${name}.tar.gz"; + sha256 = "1zzf688dbbcb5z2r9v1p28rddns6znzx35nc05ygza6lp7aknkna"; + }; + + buildInputs = [ libpcap pkgconfig bison cyrus_sasl tcp_wrappers flex ]; + propagatedBuildInputs = [ procps which wget lsof net_snmp ]; + + patchPhase = '' + substituteInPlace events/argus-extip.pl \ + --subst-var-by PERLBIN ${perl}/bin/perl + substituteInPlace events/argus-lsof.pl \ + --replace "\`which lsof\`" "\"${lsof}/bin/lsof\"" \ + --subst-var-by PERLBIN ${perl}/bin/perl + substituteInPlace events/argus-vmstat.sh \ + --replace vm_stat ${procps}/bin/vmstat + substituteInPlace events/argus-snmp.sh \ + --replace /usr/bin/snmpget ${net_snmp}/bin/snmpget \ + --replace /usr/bin/snmpwalk ${net_snmp}/bin/snmpwalk + ''; + + meta = with stdenv.lib; { + description = "Audit Record Generation and Utilization System for networks"; + longDescription = ''The Argus Project is focused on developing all + aspects of large scale network situtational awareness derived from + network activity audit. Argus, itself, is next-generation network + flow technology, processing packets, either on the wire or in + captures, into advanced network flow data. The data, its models, + formats, and attributes are designed to support Network + Operations, Performance and Security Management. If you need to + know what is going on in your network, right now or historically, + you will find Argus a useful tool. ''; + homepage = http://qosient.com/argus; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ leenaars ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/tools/networking/dhcpcd/default.nix b/pkgs/tools/networking/dhcpcd/default.nix index 578fe6ea4f7..766e7505f27 100644 --- a/pkgs/tools/networking/dhcpcd/default.nix +++ b/pkgs/tools/networking/dhcpcd/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchurl, pkgconfig, udev }: stdenv.mkDerivation rec { - name = "dhcpcd-6.10.1"; + name = "dhcpcd-6.11.3"; src = fetchurl { url = "mirror://roy/dhcpcd/${name}.tar.xz"; - sha256 = "0yxfx3r6ik47rsv1f8q7siw0vas6jcsrbjpaqnx0nn707f6byji8"; + sha256 = "01lv4a7ls55iv9f9gkh6vswqmbpqkdzj4d8ayq4dcir9vz215gas"; }; buildInputs = [ pkgconfig udev ]; diff --git a/pkgs/tools/networking/ferm/default.nix b/pkgs/tools/networking/ferm/default.nix new file mode 100644 index 00000000000..f4cf387ecc5 --- /dev/null +++ b/pkgs/tools/networking/ferm/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchurl, makeWrapper, perl, ebtables, ipset, iptables }: + +stdenv.mkDerivation rec { + version = "2.3"; + name = "ferm-${version}"; + + src = fetchurl { + url = "http://ferm.foo-projects.org/download/${version}/ferm-${version}.tar.gz"; + sha256 = "0jx63fhjw5y1ahgdbn4hgd7sq6clxl80dr8a2hkryibfbwz3vs4x"; + }; + + buildInputs = [ perl ipset ebtables iptables makeWrapper ]; + preConfigure = '' + substituteInPlace config.mk --replace "PERL = /usr/bin/perl" "PERL = ${perl}/bin/perl" + substituteInPlace config.mk --replace "PREFIX = /usr" "PREFIX = $out" + ''; + postInstall = '' + rm -r $out/lib/systemd + for i in "$out/sbin/"*; do + wrapProgram "$i" --prefix PATH : "${iptables}/bin:${ipset}/bin:${ebtables}/bin" + done + ''; + + meta = { + homepage = http://ferm.foo-projects.org/; + description = "Tool to maintain complex firewalls"; + longDescription = '' + ferm is a tool to maintain complex firewalls, without having the trouble to + rewrite the complex rules over and over again. ferm allows the entire + firewall rule set to be stored in a separate file, and to be loaded with one + command. The firewall configuration resembles structured programming-like + language, which can contain levels and lists. + ''; + license = stdenv.lib.licenses.gpl2; + maintainers = with stdenv.lib.maintainers; [mic92]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/tools/package-management/fpm/Gemfile.lock b/pkgs/tools/package-management/fpm/Gemfile.lock index a2a652c4056..ab3d4dd6b46 100644 --- a/pkgs/tools/package-management/fpm/Gemfile.lock +++ b/pkgs/tools/package-management/fpm/Gemfile.lock @@ -1,23 +1,40 @@ GEM remote: https://rubygems.org/ specs: + archive-tar-minitar (0.5.2) arr-pm (0.0.10) cabin (> 0) backports (3.6.8) cabin (0.8.1) childprocess (0.5.9) ffi (~> 1.0, >= 1.0.11) - clamp (0.6.5) - ffi (1.9.10) - fpm (1.4.0) + clamp (1.0.0) + ffi (1.9.14) + fpm (1.6.2) + archive-tar-minitar arr-pm (~> 0.0.10) backports (>= 2.6.2) cabin (>= 0.6.0) childprocess - clamp (~> 0.6) + clamp (~> 1.0.0) ffi - json (>= 1.7.7) + json (>= 1.7.7, < 2.0) + pleaserun (~> 0.0.24) + ruby-xz + insist (1.0.0) + io-like (0.3.0) json (1.8.3) + mustache (0.99.8) + pleaserun (0.0.24) + cabin (> 0) + clamp + insist + mustache (= 0.99.8) + stud + ruby-xz (0.2.3) + ffi (~> 1.9) + io-like (~> 0.3) + stud (0.0.22) PLATFORMS ruby @@ -26,4 +43,4 @@ DEPENDENCIES fpm BUNDLED WITH - 1.10.6 + 1.12.5 diff --git a/pkgs/tools/package-management/fpm/gemset.nix b/pkgs/tools/package-management/fpm/gemset.nix index 0751fdc48bc..0670d3a5b14 100644 --- a/pkgs/tools/package-management/fpm/gemset.nix +++ b/pkgs/tools/package-management/fpm/gemset.nix @@ -1,4 +1,12 @@ { + archive-tar-minitar = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1j666713r3cc3wb0042x0wcmq2v11vwwy5pcaayy5f0lnd26iqig"; + type = "gem"; + }; + version = "0.5.2"; + }; arr-pm = { source = { remotes = ["https://rubygems.org"]; @@ -34,26 +42,42 @@ clamp = { source = { remotes = ["https://rubygems.org"]; - sha256 = "1gpz9jvg1gpr8xmfqd35gvyzsvmjvlvwm2sq3pyhml3i84a6qjrq"; + sha256 = "0vy6ghz9l84qazlza30z0dwwrlifc5c7akgrl1v72ivmmjga45hw"; type = "gem"; }; - version = "0.6.5"; + version = "1.0.0"; }; ffi = { source = { remotes = ["https://rubygems.org"]; - sha256 = "1m5mprppw0xcrv2mkim5zsk70v089ajzqiq5hpyb0xg96fcyzyxj"; + sha256 = "1nkcrmxqr0vb1y4rwliclwlj2ajsi4ddpdx2gvzjy0xbkk5iqzfp"; type = "gem"; }; - version = "1.9.10"; + version = "1.9.14"; }; fpm = { source = { remotes = ["https://rubygems.org"]; - sha256 = "1ljifrfzjirad5ql5yvs1prpbivsjnwdbhzlqb8r7sdidd9kwakz"; + sha256 = "1ids20mcs6w8nf4bpjj749ayc7h637kqx0pdw5d5a0yzik34daaj"; + type = "gem"; + }; + version = "1.6.2"; + }; + insist = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0bw3bdwns14mapbgb8cbjmr0amvwz8y72gyclq04xp43wpp5jrvg"; type = "gem"; }; - version = "1.4.0"; + version = "1.0.0"; + }; + io-like = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "04nn0s2wmgxij3k760h3r8m1dgih5dmd9h4v1nn085yi824i5z6k"; + type = "gem"; + }; + version = "0.3.0"; }; json = { source = { @@ -63,4 +87,36 @@ }; version = "1.8.3"; }; + mustache = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1g5hplm0k06vwxwqzwn1mq5bd02yp0h3rym4zwzw26aqi7drcsl2"; + type = "gem"; + }; + version = "0.99.8"; + }; + pleaserun = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0s26216ip6skzbdl48z8wbrzqbvwq1q4s6sm8r209zvvlp0rinkw"; + type = "gem"; + }; + version = "0.0.24"; + }; + ruby-xz = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "11bgpvvk0098ghvlxr4i713jmi2izychalgikwvdwmpb452r3ndw"; + type = "gem"; + }; + version = "0.2.3"; + }; + stud = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1raavxgn5k4bxap5wqdl7zmfw5k4ndl8aagnajlfg4f0bmm8yni7"; + type = "gem"; + }; + version = "0.0.22"; + }; } \ No newline at end of file diff --git a/pkgs/tools/security/chaps/default.nix b/pkgs/tools/security/chaps/default.nix index 43e324ec269..2c6b3150089 100644 --- a/pkgs/tools/security/chaps/default.nix +++ b/pkgs/tools/security/chaps/default.nix @@ -31,6 +31,9 @@ stdenv.mkDerivation rec { sha256 = "0chk6pnn365d5kcz6vfqx1d0383ksk97icc0lzg0vvb0kvyj0ff1"; }; + # readdir_r(3) is deprecated in glibc >= 2.24 + NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; + patches = [ ./fix_absolute_path.patch ./fix_environment_variables.patch ./fix_scons.patch ./insert_prefetches.patch ]; postPatch = '' diff --git a/pkgs/tools/security/duo-unix/default.nix b/pkgs/tools/security/duo-unix/default.nix index af5e72faca4..05ce60a0508 100644 --- a/pkgs/tools/security/duo-unix/default.nix +++ b/pkgs/tools/security/duo-unix/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "duo-unix-${version}"; - version = "1.9.11"; + version = "1.9.19"; src = fetchurl { url = "https://dl.duosecurity.com/duo_unix-${version}.tar.gz"; - sha256 = "0747avzmzzz1gaisahgjlpxyxxbrn04w1mip90lfj9wp2x6a9jgm"; + sha256 = "02hvayknj0kvdik4mqm9j9isqzxk0f992i9v274s27891xqgj8rd"; }; buildInputs = [ pam openssl zlib ]; diff --git a/pkgs/tools/security/tor/default.nix b/pkgs/tools/security/tor/default.nix index 8ac7472a2bc..533cb0dcd8e 100644 --- a/pkgs/tools/security/tor/default.nix +++ b/pkgs/tools/security/tor/default.nix @@ -1,29 +1,30 @@ -{ stdenv, fetchurl, libevent, openssl, zlib, torsocks, libseccomp }: +{ stdenv, fetchurl, pkgconfig, libevent, openssl, zlib, torsocks +, libseccomp, systemd, libcap +}: stdenv.mkDerivation rec { - name = "tor-0.2.7.6"; + name = "tor-0.2.8.7"; src = fetchurl { url = "https://archive.torproject.org/tor-package-archive/${name}.tar.gz"; - sha256 = "0p8hjlfi8dwghlyjif5s0q98cmpgz9kn9jja25430l04z5wqcfj9"; + sha256 = "1iigfi8ljl88s8b5y1g4ak8im57simazscl467zvfbg8k6vf4i5f"; }; - # Note: torsocks is specified as a dependency, as the distributed - # 'torify' wrapper attempts to use it; although there is no - # ./configure time check for any of this. - buildInputs = [ libevent openssl zlib torsocks ] ++ - stdenv.lib.optional stdenv.isLinux libseccomp; + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ libevent openssl zlib ] ++ + stdenv.lib.optionals stdenv.isLinux [ libseccomp systemd libcap ]; NIX_CFLAGS_LINK = stdenv.lib.optionalString stdenv.cc.isGNU "-lgcc_s"; - # Patch 'torify' to point directly to torsocks. - patchPhase = '' + postPatch = '' substituteInPlace contrib/client-tools/torify \ --replace 'pathfind torsocks' true \ --replace 'exec torsocks' 'exec ${torsocks}/bin/torsocks' ''; - doCheck = true; + # Fails in a sandboxed environment; at some point we want to disable + # just the tests that require networking. + doCheck = false; meta = with stdenv.lib; { homepage = https://www.torproject.org/; diff --git a/pkgs/tools/system/runit/Makefile.patch b/pkgs/tools/system/runit/Makefile.patch deleted file mode 100644 index 43257728e92..00000000000 --- a/pkgs/tools/system/runit/Makefile.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -ur admin.orig/runit-2.1.2/src/Makefile admin/runit-2.1.2/src/Makefile ---- admin.orig/runit-2.1.2/src/Makefile 2014-08-10 20:22:35.000000000 +0200 -+++ admin/runit-2.1.2/src/Makefile 2014-10-15 13:04:02.892937939 +0200 -@@ -234,7 +234,6 @@ - - hasshsgr.h: chkshsgr choose compile hasshsgr.h1 hasshsgr.h2 load \ - tryshsgr.c warn-shsgr -- ./chkshsgr || ( cat warn-shsgr; exit 1 ) - ./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h - - haswaitp.h: choose compile haswaitp.h1 haswaitp.h2 load trywaitp.c diff --git a/pkgs/tools/system/runit/default.nix b/pkgs/tools/system/runit/default.nix index c10e41d709b..87cf720b981 100644 --- a/pkgs/tools/system/runit/default.nix +++ b/pkgs/tools/system/runit/default.nix @@ -9,33 +9,37 @@ stdenv.mkDerivation rec { sha256 = "065s8w62r6chjjs6m9hapcagy33m75nlnxb69vg0f4ngn061dl3g"; }; - patches = [ ./Makefile.patch ]; + outputs = [ "out" "man" ]; + + sourceRoot = "admin/${name}"; + + doCheck = true; postPatch = '' - cd ${name} sed -i 's,-static,,g' src/Makefile ''; - buildPhase = '' - make -C 'src' - ''; + preBuild = '' + cd src - checkPhase = '' - make -C 'src' check + # Both of these are originally hard-coded to gcc + echo cc > conf-cc + echo cc > conf-ld ''; installPhase = '' mkdir -p $out/bin - for f in $(cat package/commands); do - mv src/$f $out/bin/ - done + cp -t $out/bin $(< ../package/commands) + + mkdir -p $man/share/man + cp -r ../man $man/share/man/man8 ''; meta = with stdenv.lib; { description = "UNIX init scheme with service supervision"; license = licenses.bsd3; homepage = "http://smarden.org/runit"; - maintainers = with maintainers; [ rickynils ]; - platforms = platforms.linux; + maintainers = with maintainers; [ rickynils joachifm ]; + platforms = platforms.unix; }; } diff --git a/pkgs/tools/text/kytea/default.nix b/pkgs/tools/text/kytea/default.nix new file mode 100644 index 00000000000..2aec0d04a61 --- /dev/null +++ b/pkgs/tools/text/kytea/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + + name = "kytea-${version}"; + version = "0.4.7"; + + src = fetchurl { + url = "http://www.phontron.com/kytea/download/kytea-0.4.6.tar.gz"; + sha256 = "0n6d88j0qda4dmy6mcj0cyin46n05m5phvjiah9i4ip54h8vs9s3"; + }; + + meta = with stdenv.lib; { + homepage = http://www.phontron.com/kytea/; + description = "General toolkit developed for analyzing text"; + + longDescription = '' + A general toolkit developed for analyzing text, with a focus on Japanese, + Chinese and other languages requiring word or morpheme segmentation. + ''; + + license = licenses.asl20; + + maintainers = [ maintainers.ericsagnes ]; + platforms = platforms.linux; + }; + +} |