Merge pull request #145101 from SuperSandro2000/misc

authored by

Sandro and committed by
GitHub
43c3f17f 14907d5e

+120 -115
+6 -12
pkgs/applications/misc/adobe-reader/default.nix
··· 13 13 , gdk-pixbuf-xlib 14 14 }: 15 15 16 - assert stdenv.hostPlatform.system == "i686-linux"; 17 - 18 - let 19 - baseVersion = "9.5.5"; 20 - in 21 16 stdenv.mkDerivation rec { 22 17 pname = "adobe-reader"; 23 - version = "${baseVersion}-1"; 18 + version = "9.5.5"; 24 19 20 + # TODO: convert to phases 25 21 builder = ./builder.sh; 26 22 27 23 src = fetchurl { 28 - url = "http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/${baseVersion}/enu/AdbeRdr${version}_i486linux_enu.tar.bz2"; 24 + url = "http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/${version}/enu/AdbeRdr${version}-1_i486linux_enu.tar.bz2"; 29 25 sha256 = "0h35misxrqkl5zlmmvray1bqf4ywczkm89n9qw7d9arqbg3aj3pf"; 30 26 }; 31 27 32 28 # !!! Adobe Reader contains copies of OpenSSL, libcurl, and libicu. 33 - # We should probably remove those and use the regular Nixpkgs 34 - # versions. 35 - 36 - libPath = lib.makeLibraryPath 37 - [ stdenv.cc.cc libX11 zlib libxml2 cups pango atk gtk2 glib gdk-pixbuf gdk-pixbuf-xlib ]; 29 + # We should probably remove those and use the regular Nixpkgs versions. 30 + libPath = lib.makeLibraryPath [ stdenv.cc.cc libX11 zlib libxml2 cups pango atk gtk2 glib gdk-pixbuf gdk-pixbuf-xlib ]; 38 31 39 32 passthru.mozillaPlugin = "/libexec/adobe-reader/Browser/intellinux"; 40 33 ··· 46 39 "Numerous unresolved vulnerabilities" 47 40 "See: https://www.cvedetails.com/product/497/Adobe-Acrobat-Reader.html?vendor_id=53" 48 41 ]; 42 + platforms = [ "i686-linux" ]; 49 43 }; 50 44 }
+33 -35
pkgs/applications/misc/audio/sox/default.nix
··· 5 5 , pkg-config 6 6 , CoreAudio 7 7 , enableAlsa ? true 8 - , alsa-lib ? null 8 + , alsa-lib 9 9 , enableLibao ? true 10 - , libao ? null 10 + , libao 11 11 , enableLame ? config.sox.enableLame or false 12 - , lame ? null 12 + , lame 13 13 , enableLibmad ? true 14 - , libmad ? null 14 + , libmad 15 15 , enableLibogg ? true 16 - , libogg ? null 17 - , libvorbis ? null 16 + , libogg 17 + , libvorbis 18 18 , enableOpusfile ? true 19 - , opusfile ? null 19 + , opusfile 20 20 , enableFLAC ? true 21 - , flac ? null 21 + , flac 22 22 , enablePNG ? true 23 - , libpng ? null 23 + , libpng 24 24 , enableLibsndfile ? true 25 - , libsndfile ? null 25 + , libsndfile 26 26 , enableWavpack ? true 27 - , wavpack ? null 27 + , wavpack 28 28 # amrnb and amrwb are unfree, disabled by default 29 29 , enableAMR ? false 30 - , amrnb ? null 31 - , amrwb ? null 32 - , enableLibpulseaudio ? true 33 - , libpulseaudio ? null 30 + , amrnb 31 + , amrwb 32 + , enableLibpulseaudio ? stdenv.isLinux 33 + , libpulseaudio 34 34 }: 35 - 36 - with lib; 37 35 38 36 stdenv.mkDerivation rec { 39 37 pname = "sox"; ··· 45 43 }; 46 44 47 45 # configure.ac uses pkg-config only to locate libopusfile 48 - nativeBuildInputs = optional enableOpusfile pkg-config; 46 + nativeBuildInputs = lib.optional enableOpusfile pkg-config; 49 47 50 48 patches = [ ./0001-musl-rewind-pipe-workaround.patch ]; 51 49 52 50 buildInputs = 53 - optional (enableAlsa && stdenv.isLinux) alsa-lib ++ 54 - optional enableLibao libao ++ 55 - optional enableLame lame ++ 56 - optional enableLibmad libmad ++ 57 - optionals enableLibogg [ libogg libvorbis ] ++ 58 - optional enableOpusfile opusfile ++ 59 - optional enableFLAC flac ++ 60 - optional enablePNG libpng ++ 61 - optional enableLibsndfile libsndfile ++ 62 - optional enableWavpack wavpack ++ 63 - optionals enableAMR [ amrnb amrwb ] ++ 64 - optional enableLibpulseaudio libpulseaudio ++ 65 - optional (stdenv.isDarwin) CoreAudio; 51 + lib.optional (enableAlsa && stdenv.isLinux) alsa-lib 52 + ++ lib.optional enableLibao libao 53 + ++ lib.optional enableLame lame 54 + ++ lib.optional enableLibmad libmad 55 + ++ lib.optionals enableLibogg [ libogg libvorbis ] 56 + ++ lib.optional enableOpusfile opusfile 57 + ++ lib.optional enableFLAC flac 58 + ++ lib.optional enablePNG libpng 59 + ++ lib.optional enableLibsndfile libsndfile 60 + ++ lib.optional enableWavpack wavpack 61 + ++ lib.optionals enableAMR [ amrnb amrwb ] 62 + ++ lib.optional enableLibpulseaudio libpulseaudio 63 + ++ lib.optional stdenv.isDarwin CoreAudio; 66 64 67 - meta = { 65 + meta = with lib; { 68 66 description = "Sample Rate Converter for audio"; 69 67 homepage = "http://sox.sourceforge.net/"; 70 - maintainers = [ lib.maintainers.marcweber ]; 71 - license = if enableAMR then lib.licenses.unfree else lib.licenses.gpl2Plus; 72 - platforms = lib.platforms.linux ++ lib.platforms.darwin; 68 + maintainers = with maintainers; [ marcweber ]; 69 + license = if enableAMR then licenses.unfree else licenses.gpl2Plus; 70 + platforms = platforms.unix; 73 71 }; 74 72 }
+21 -10
pkgs/applications/misc/garmin-plugin/default.nix
··· 1 - { lib, stdenv, fetchurl, garmintools, libgcrypt, libusb-compat-0_1, pkg-config, tinyxml, zlib }: 1 + { lib, stdenv, fetchFromGitHub, garmintools, libgcrypt, libusb-compat-0_1, pkg-config, tinyxml, zlib }: 2 + 2 3 stdenv.mkDerivation rec { 3 4 pname = "garmin-plugin"; 4 5 version = "0.3.26"; 5 6 6 - src = fetchurl { 7 - url = "https://github.com/adiesner/GarminPlugin/archive/V${version}.tar.gz"; 8 - sha256 = "15gads1fj4sj970m5960dgnhys41ksi4cm53ldkf67wn8dc9i4k0"; 7 + src = fetchFromGitHub { 8 + owner = "adiesner"; 9 + repo = "GarminPlugin"; 10 + rev = "V${version}"; 11 + sha256 = "sha256-l0WAbEsQl1dCADf5gTepYjsA1rQCJMLcrTxRR4PfUus="; 9 12 }; 10 - sourceRoot = "GarminPlugin-${version}/src"; 13 + 14 + preConfigure = '' 15 + cd src 16 + ''; 17 + 11 18 nativeBuildInputs = [ pkg-config ]; 19 + 12 20 buildInputs = [ garmintools libusb-compat-0_1 libgcrypt tinyxml zlib ]; 21 + 13 22 configureFlags = [ 14 23 "--with-libgcrypt-prefix=${libgcrypt.dev}" 15 24 "--with-garmintools-incdir=${garmintools}/include" 16 25 "--with-garmintools-libdir=${garmintools}/lib" 17 26 ]; 27 + 18 28 installPhase = '' 19 29 mkdir -p $out/lib/mozilla/plugins 20 30 cp npGarminPlugin.so $out/lib/mozilla/plugins 21 31 ''; 22 - meta = { 23 - homepage = "http://www.andreas-diesner.de/garminplugin"; 24 - license = lib.licenses.gpl3; 25 - maintainers = [ ]; 26 - platforms = lib.platforms.linux; 32 + 33 + meta = with lib; { 34 + homepage = "https://adiesner.github.io/GarminPlugin/"; 35 + license = licenses.gpl3Plus; 36 + maintainers = with maintainers; [ ]; 37 + platforms = platforms.linux; 27 38 }; 28 39 }
+2 -4
pkgs/applications/misc/gkrellm/default.nix
··· 15 15 , wrapGAppsHook 16 16 }: 17 17 18 - with lib; 19 - 20 18 stdenv.mkDerivation rec { 21 19 pname = "gkrellm"; 22 20 version = "2.3.11"; ··· 28 26 29 27 nativeBuildInputs = [ copyDesktopItems pkg-config which wrapGAppsHook ]; 30 28 buildInputs = [ gettext glib gtk2 libX11 libSM libICE ] 31 - ++ optionals stdenv.isDarwin [ IOKit ]; 29 + ++ lib.optionals stdenv.isDarwin [ IOKit ]; 32 30 33 31 hardeningDisable = [ "format" ]; 34 32 ··· 62 60 }) 63 61 ]; 64 62 65 - meta = { 63 + meta = with lib; { 66 64 description = "Themeable process stack of system monitors"; 67 65 longDescription = '' 68 66 GKrellM is a single process stack of system monitors which
+5 -5
pkgs/applications/misc/jigdo/default.nix
··· 4 4 pname = "jigdo"; 5 5 version = "0.7.3"; 6 6 7 - # Debian sources 8 7 src = fetchurl { 9 8 url = "http://ftp.de.debian.org/debian/pool/main/j/jigdo/jigdo_${version}.orig.tar.gz"; 10 9 sha256 = "1qvqzgzb0dzq82fa1ffs6hyij655rajnfwkljk1y0mnkygnha1xv"; ··· 22 21 23 22 configureFlags = [ "--without-libdb" ]; 24 23 25 - meta = { 24 + meta = with lib; { 26 25 description = "Download utility that can fetch files from several sources simultaneously"; 27 - homepage = "http://atterer.net/jigdo/"; 28 - license = lib.licenses.gpl2; 29 - platforms = lib.platforms.unix; 26 + homepage = "http://atterer.org/jigdo/"; 27 + license = licenses.gpl2Only; 28 + platforms = platforms.unix; 29 + maintainers = with maintainers; [ ]; 30 30 }; 31 31 }
+10 -11
pkgs/applications/misc/loxodo/default.nix
··· 1 - { lib, python27Packages, fetchgit }: 2 - let 3 - py = python27Packages; 4 - python = py.python; 5 - in 6 - py.buildPythonApplication { 1 + { lib, python2, fetchFromGitHub }: 2 + 3 + python2.pkgs.buildPythonApplication { 7 4 pname = "loxodo"; 8 - version = "0.20150124"; 5 + version = "unstable-2015-01-24"; 9 6 10 - src = fetchgit { 11 - url = "https://github.com/sommer/loxodo.git"; 7 + src = fetchFromGitHub { 8 + owner = "sommer"; 9 + repo = "loxodo"; 12 10 rev = "6c56efb4511fd6f645ad0f8eb3deafc8071c5795"; 13 11 sha256 = "1cg0dfcv57ps54f1a0ksib7hgkrbdi9q699w302xyyfyvjcb5dd2"; 14 12 }; 15 13 16 - propagatedBuildInputs = with py; [ wxPython ]; 14 + propagatedBuildInputs = with python2.pkgs; [ wxPython ]; 17 15 18 16 postInstall = '' 19 17 mv $out/bin/loxodo.py $out/bin/loxodo ··· 22 20 [Desktop Entry] 23 21 Type=Application 24 22 Exec=$out/bin/loxodo 25 - Icon=$out/lib/${python.libPrefix}/site-packages/resources/loxodo-icon.png 23 + Icon=$out/lib/${python2.libPrefix}/site-packages/resources/loxodo-icon.png 26 24 Name=Loxodo 27 25 GenericName=Password Vault 28 26 Categories=Application;Other; ··· 34 32 homepage = "https://www.christoph-sommer.de/loxodo/"; 35 33 license = licenses.gpl2Plus; 36 34 platforms = platforms.linux; 35 + maintainers = with maintainers; [ ]; 37 36 }; 38 37 }
+7 -6
pkgs/applications/misc/metar/default.nix
··· 1 - { lib, stdenv, fetchgit, curl }: 1 + { lib, stdenv, fetchFromGitHub, curl }: 2 2 3 3 stdenv.mkDerivation { 4 4 pname = "metar"; 5 - version = "20161013.1"; 5 + version = "unstable-2017-02-17"; 6 6 7 - src = fetchgit { 8 - url = "https://github.com/keesL/metar.git"; 7 + src = fetchFromGitHub { 8 + owner = "keesL"; 9 + repo = "metar"; 9 10 rev = "20e9ca69faea330f6c2493b6829131c24cb55147"; 10 11 sha256 = "1fgrlnpasqf1ihh9y6zy6mzzybqx0lxvh7gmv03rjdb55dr42dxj"; 11 12 }; ··· 14 15 15 16 meta = with lib; { 16 17 homepage = "https://github.com/keesL/metar"; 17 - license = licenses.gpl2; 18 - maintainers = [ maintainers.zalakain ]; 19 18 description = "Downloads weather reports and optionally decodes them"; 20 19 longDescription = '' 21 20 METAR reports are meteorogical weather reports for aviation. Metar is a small ··· 27 26 more work in the area of clouds need to be done, as support for Cumulus or 28 27 Cumulunimbus is not yet decoded. 29 28 ''; 29 + license = licenses.gpl2Plus; 30 + maintainers = with maintainers; [ zalakain ]; 30 31 }; 31 32 }
+11 -10
pkgs/applications/misc/procmail/default.nix
··· 4 4 pname = "procmail"; 5 5 version = "3.22"; 6 6 7 + src = fetchurl { 8 + url = "ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-${version}.tar.gz"; 9 + sha256 = "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08"; 10 + }; 11 + 7 12 patches = [ 8 13 ./CVE-2014-3618.patch 9 14 (fetchurl { ··· 16 21 # getline is defined differently in glibc now. So rename it. 17 22 # Without the .PHONY target "make install" won't install anything on Darwin. 18 23 postPatch = '' 19 - sed -e "s%^RM.*$%#%" -i Makefile 20 - sed -e "s%^BASENAME.*%\BASENAME=$out%" -i Makefile 21 - sed -e "s%^LIBS=.*%LIBS=-lm%" -i Makefile 22 - sed -e "s%getline%thisgetline%g" -i src/*.c src/*.h 23 - sed -e "3i\ 24 + sed -i Makefile \ 25 + -e "s%^RM.*$%#%" \ 26 + -e "s%^BASENAME.*%\BASENAME=$out%" \ 27 + -e "s%^LIBS=.*%LIBS=-lm%" 28 + sed -e "s%getline%thisgetline%g" -i src/*.c src/*.h 29 + sed -e "3i\ 24 30 .PHONY: install 25 31 " -i Makefile 26 32 ''; 27 - 28 - src = fetchurl { 29 - url = "ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-${version}.tar.gz"; 30 - sha256 = "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08"; 31 - }; 32 33 33 34 meta = with lib; { 34 35 description = "Mail processing and filtering utility";
+6 -4
pkgs/applications/misc/rofi-menugen/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, rofi, gnused }: 2 2 3 3 stdenv.mkDerivation rec { 4 - rev = "168efd2608fdb88b1aff3e0244bda8402169f207"; 5 4 pname = "rofi-menugen"; 6 - version = "unstable-2015-12-28-${builtins.substring 0 7 rev}"; 5 + version = "unstable-2015-12-28"; 7 6 8 7 src = fetchFromGitHub { 9 8 owner = "octotep"; 10 9 repo = "menugen"; 11 - inherit rev; 10 + rev = "168efd2608fdb88b1aff3e0244bda8402169f207"; 12 11 sha256 = "09fk9i6crw772qlc5zld35pcff1jq4jcag0syial2q000fbpjx5m"; 13 12 }; 14 - patchPhase = '' 13 + 14 + postPatch = '' 15 15 sed -i -e "s|menugenbase|$out/bin/rofi-menugenbase|" menugen 16 16 sed -i -e "s|rofi |${rofi}/bin/rofi |" menugen 17 17 sed -i -e "s|sed |${gnused}/bin/sed |" menugenbase 18 18 ''; 19 + 19 20 installPhase = '' 20 21 mkdir -p $out/bin 21 22 cp menugen $out/bin/rofi-menugen 22 23 cp menugenbase $out/bin/rofi-menugenbase 23 24 ''; 25 + 24 26 meta = with lib; { 25 27 description = "Generates menu based applications using rofi"; 26 28 homepage = "https://github.com/octotep/menugen";
+8 -7
pkgs/applications/misc/stag/default.nix
··· 1 - { lib, stdenv, fetchgit, curses }: 1 + { lib, stdenv, fetchFromGitHub, curses }: 2 2 3 3 stdenv.mkDerivation { 4 4 pname = "stag"; 5 5 version = "1.0"; 6 6 7 - src = fetchgit { 8 - url = "https://github.com/seenaburns/stag.git"; 7 + src = fetchFromGitHub { 8 + owner = "seenaburns"; 9 + repo = "stag"; 9 10 rev = "90e2964959ea8242349250640d24cee3d1966ad6"; 10 11 sha256 = "1yrzjhcwrxrxq5jj695wvpgb0pz047m88yq5n5ymkcw5qr78fy1v"; 11 12 }; ··· 16 17 make install PREFIX=$out 17 18 ''; 18 19 19 - meta = { 20 + meta = with lib; { 20 21 homepage = "https://github.com/seenaburns/stag"; 21 22 description = "Terminal streaming bar graph passed through stdin"; 22 - license = lib.licenses.bsdOriginal; 23 - maintainers = [ lib.maintainers.matthiasbeyer ]; 24 - platforms = lib.platforms.unix; 23 + license = licenses.bsdOriginal; 24 + maintainers = with maintainers; [ matthiasbeyer ]; 25 + platforms = platforms.unix; 25 26 }; 26 27 }
+6 -4
pkgs/applications/misc/xfontsel/default.nix
··· 3 3 # That is why this expression is not inside pkgs.xorg 4 4 5 5 { lib, stdenv, fetchurl, makeWrapper, libX11, pkg-config, libXaw }: 6 + 6 7 stdenv.mkDerivation rec { 7 8 pname = "xfontsel"; 8 9 version = "1.0.6"; ··· 13 14 }; 14 15 15 16 nativeBuildInputs = [ pkg-config makeWrapper ]; 17 + 16 18 buildInputs = [ libX11 libXaw ]; 17 19 18 20 # Without this, it gets Xmu as a dependency, but without rpath entry ··· 27 29 --set XAPPLRESDIR $out/share/X11/app-defaults 28 30 ''; 29 31 30 - meta = { 32 + meta = with lib; { 31 33 homepage = "https://www.x.org/"; 32 34 description = "Allows testing the fonts available in an X server"; 33 - license = lib.licenses.free; 34 - maintainers = with lib.maintainers; [ viric ]; 35 - platforms = with lib.platforms; linux ++ darwin; 35 + license = licenses.free; 36 + maintainers = with maintainers; [ viric ]; 37 + platforms = platforms.unix; 36 38 }; 37 39 }
+5 -7
pkgs/applications/misc/xxkb/default.nix
··· 14 14 , pkg-config 15 15 }: 16 16 17 - assert svgSupport -> 18 - librsvg != null && glib != null && gdk-pixbuf != null && pkg-config != null; 19 - 20 17 stdenv.mkDerivation rec { 21 18 pname = "xxkb"; 22 19 version = "1.11.1"; ··· 27 24 }; 28 25 29 26 nativeBuildInputs = [ imake gccmakedep ]; 27 + 30 28 buildInputs = [ 31 29 libX11 32 30 libXt ··· 49 47 50 48 installTargets = [ "install" "install.man" ]; 51 49 52 - meta = { 50 + meta = with lib; { 53 51 description = "A keyboard layout indicator and switcher"; 54 52 homepage = "http://xxkb.sourceforge.net/"; 55 - license = lib.licenses.artistic2; 56 - maintainers = with lib.maintainers; [ rasendubi ]; 57 - platforms = lib.platforms.linux; 53 + license = licenses.artistic2; 54 + maintainers = with maintainers; [ rasendubi ]; 55 + platforms = platforms.linux; 58 56 }; 59 57 }