Merge pull request #39907 from matthewbauer/work
Miscellaneous cleanups
commitb45ef79b74d267891a11c1775a473c610ecebe78
authorMatthew Justin Bauer <mjbauer95@gmail.com>
dateThu 3 May 2018, 13:33 (9 years ago)
parent40f809c143978a
pkgs/applications/audio/spotify/default.nix−2
@@ -2,8 +2,6 @@
22, glib, pango, cairo, atk, gdk_pixbuf, gtk2, cups, nspr, nss, libpng, GConf
33, libgcrypt, systemd, fontconfig, dbus, expat, ffmpeg_0_10, curl, zlib, gnome2 }:
44
5−assert stdenv.system == "x86_64-linux";
6−
75let
86 # Please update the stable branch!
97 # Latest version number can be found at:
pkgs/applications/editors/jetbrains/default.nix−2
@@ -3,8 +3,6 @@
33, androidsdk, jdk, cmake, libxml2, zlib, python3, ncurses
44}:
55
6−assert stdenv.isLinux;
7−
86with stdenv.lib;
97
108let
pkgs/applications/editors/sublime/2/default.nix+2−2
@@ -2,11 +2,10 @@
22let
33 libPath = stdenv.lib.makeLibraryPath [glib xorg.libX11 gtk2 cairo];
44in
5−assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
65
76stdenv.mkDerivation rec {
87 name = "sublimetext-2.0.2";
9− src =
8+ src =
109 if stdenv.system == "i686-linux" then
1110 fetchurl {
1211 name = "sublimetext-2.0.2.tar.bz2";
@@ -55,5 +54,6 @@ stdenv.mkDerivation rec {
5554 meta = {
5655 description = "Sophisticated text editor for code, markup and prose";
5756 license = stdenv.lib.licenses.unfree;
57+ platforms = [ "x86_64-linux" "i686-linux" ];
5858 };
5959}
pkgs/applications/editors/sublime/3/common.nix+1−2
@@ -4,7 +4,6 @@
44 pkexecPath ? "/run/wrappers/bin/pkexec", libredirect,
55 gksuSupport ? false, gksu, unzip, zip, bash}:
66
7−assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
87assert gksuSupport -> gksu != null;
98
109let
@@ -114,6 +113,6 @@ in stdenv.mkDerivation (rec {
114113 homepage = https://www.sublimetext.com/;
115114 maintainers = with maintainers; [ wmertens demin-dmitriy zimbatm ];
116115 license = licenses.unfree;
117− platforms = platforms.linux;
116+ platforms = [ "x86_64-linux" "i686-linux" ];
118117 };
119118})
pkgs/applications/graphics/draftsight/default.nix+1−3
@@ -4,8 +4,6 @@
44 libX11, libXcursor, libXrandr, libxcb, libXi, libSM, libICE,
55 libXrender, libXcomposite }:
66
7−assert stdenv.system == "x86_64-linux";
8−
97let version = "2017-SP2"; in
108stdenv.mkDerivation {
119 name = "draftsight-${version}";
@@ -71,6 +69,6 @@ stdenv.mkDerivation {
7169 homepage = https://www.3ds.com/products-services/draftsight-cad-software/;
7270 license = stdenv.lib.licenses.unfree;
7371 maintainers = with maintainers; [ hodapp ];
74− platforms = platforms.linux;
72+ platforms = [ "x86_64-linux" ];
7573 };
7674}
pkgs/applications/misc/ipmiview/default.nix−2
@@ -1,7 +1,5 @@
11{ stdenv, fetchurl, patchelf, makeWrapper, xorg, gcc, gcc-unwrapped }:
22
3−assert stdenv.isLinux;
4−
53stdenv.mkDerivation rec {
64 name = "IPMIView-${version}";
75 version = "2.13.0";
pkgs/applications/misc/minergate/default.nix+4−7
@@ -1,12 +1,10 @@
11{ fetchurl, stdenv, dpkg, makeWrapper, fontconfig, freetype, openssl, xorg, xkeyboard_config }:
22
3−assert stdenv.system == "x86_64-linux";
4−
53stdenv.mkDerivation rec {
64 version = "8.1";
75 name = "minergate-${version}";
86 src = fetchurl {
9− url = "https://minergate.com/download/ubuntu";
7+ url = "https://minergate.com/download/ubuntu";
108 sha256 = "1dbbbb8e0735cde239fca9e82c096dcc882f6cecda20bba7c14720a614c16e13";
119 };
1210
@@ -15,12 +13,12 @@ stdenv.mkDerivation rec {
1513 phases = [ "installPhase" ];
1614
1715 installPhase = ''
18− dpkg-deb -x $src $out
16+ dpkg-deb -x $src $out
1917 pgm=$out/opt/minergate/minergate
2018
2119 interpreter=${stdenv.glibc}/lib/ld-linux-x86-64.so.2
2220 patchelf --set-interpreter "$interpreter" $pgm
23−
21+
2422 wrapProgram $pgm --prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ fontconfig freetype openssl stdenv.cc.cc xorg.libX11 xorg.libxcb ]} --prefix "QT_XKB_CONFIG_ROOT" ":" "${xkeyboard_config}/share/X11/xkb"
2523
2624 rm $out/usr/bin/minergate
@@ -35,5 +33,4 @@ stdenv.mkDerivation rec {
3533 maintainers = with maintainers; [ bfortz ];
3634 platforms = [ "x86_64-linux" ];
3735};
38−}
39−
36+}
pkgs/applications/misc/playonlinux/default.nix−2
@@ -21,8 +21,6 @@
2121, curl
2222}:
2323
24−assert stdenv.isLinux;
25−
2624let
2725 version = "4.2.12";
2826
pkgs/applications/networking/browsers/firefox-bin/default.nix−2
@@ -48,8 +48,6 @@
4848, gnupg
4949}:
5050
51−assert stdenv.isLinux;
52−
5351let
5452
5553 inherit (generated) version sources;
pkgs/applications/networking/browsers/mozilla-plugins/trezor/default.nix+3−4
@@ -1,7 +1,5 @@
11{ stdenv, fetchurl, dpkg, zlib }:
22
3−assert stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux";
4−
53stdenv.mkDerivation {
64 name = "TREZOR-bridge-1.0.5";
75
@@ -42,6 +40,7 @@ stdenv.mkDerivation {
4240 # Download URL, .deb content & hash (yikes) changed, not version.
4341 # New archive doesn't contain any Mozilla plugin at all.
4442 broken = true;
45− };
43+ platforms = platforms.linux;
44+ };
4645
47−}
46+}
pkgs/applications/networking/ike/default.nix−2
@@ -1,8 +1,6 @@
11{ stdenv, fetchurl, cmake, openssl, libedit, flex, bison, qt4, makeWrapper
22, gcc, nettools, iproute, linuxHeaders }:
33
4−assert stdenv.isLinux;
5−
64# NOTE: use $out/etc/iked.conf as sample configuration and also set: dhcp_file "/etc/iked.dhcp";
75# launch with "iked -f /etc/iked.conf"
86
pkgs/applications/networking/instant-messengers/jitsi/default.nix−2
@@ -3,8 +3,6 @@
33, alsaLib, dbus_libs, gtk2, libpulseaudio, openssl, xorg
44}:
55
6−assert stdenv.isLinux;
7−
86stdenv.mkDerivation rec {
97 name = "jitsi-${version}";
108 version = "2.10.5550";
pkgs/applications/networking/instant-messengers/viber/default.nix+1−3
@@ -3,8 +3,6 @@
33 libpulseaudio, libxml2, libxslt, libGLU_combined, nspr, nss, openssl, systemd, wayland, xorg, zlib, ...
44}:
55
6−assert stdenv.system == "x86_64-linux";
7−
86stdenv.mkDerivation rec {
97 name = "viber-${version}";
108 version = "7.0.0.1035";
@@ -99,7 +97,7 @@ stdenv.mkDerivation rec {
9997 homepage = http://www.viber.com;
10098 description = "An instant messaging and Voice over IP (VoIP) app";
10199 license = stdenv.lib.licenses.unfree;
102− platforms = stdenv.lib.platforms.linux;
100+ platforms = [ "x86_64-linux" ];
103101 maintainers = with stdenv.lib.maintainers; [ jagajaga ];
104102 };
105103
pkgs/applications/networking/irc/quassel/default.nix−2
@@ -24,8 +24,6 @@ let
2424 buildCore = monolithic || daemon;
2525in
2626
27−assert stdenv.isLinux;
28−
2927assert monolithic -> !client && !daemon;
3028assert client || daemon -> !monolithic;
3129assert !buildClient -> !withKDE; # KDE is used by the client only
pkgs/applications/networking/mailreaders/thunderbird-bin/default.nix−2
@@ -43,8 +43,6 @@
4343, gnupg
4444}:
4545
46−assert stdenv.isLinux;
47−
4846# imports `version` and `sources`
4947with (import ./release_sources.nix);
5048
pkgs/applications/office/mendeley/default.nix+1−3
@@ -34,8 +34,6 @@
3434, writeScript
3535}:
3636
37−assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
38−
3937let
4038 arch32 = "i686-linux";
4139 arch64 = "x86_64-linux";
@@ -140,7 +138,7 @@ stdenv.mkDerivation {
140138 homepage = http://www.mendeley.com;
141139 description = "A reference manager and academic social network";
142140 license = licenses.unfree;
143− platforms = platforms.linux;
141+ platforms = [ "x86_64-linux" "i686-linux" ];
144142 maintainers = with maintainers; [ dtzWill ];
145143 };
146144
pkgs/applications/science/logic/verifast/default.nix−1
@@ -1,7 +1,6 @@
11{ stdenv, fetchurl, gtk2, gdk_pixbuf, atk, pango, glib, cairo, freetype
22, fontconfig, libxml2, gnome2 }:
33
4−assert stdenv.isLinux;
54let
65
76 libPath = stdenv.lib.makeLibraryPath
pkgs/applications/version-management/git-and-tools/default.nix+1−1
@@ -82,7 +82,7 @@ rec {
8282 git-radar = callPackage ./git-radar { };
8383
8484 git-recent = callPackage ./git-recent {
85− utillinux = if stdenv.isLinux then utillinuxMinimal else null;
85+ utillinux = if stdenv.isLinux then utillinuxMinimal else utillinux;
8686 };
8787
8888 git-remote-hg = callPackage ./git-remote-hg { };
pkgs/applications/version-management/git-and-tools/git-recent/default.nix+3−9
@@ -1,15 +1,9 @@
11{stdenv, git, less, fetchFromGitHub, makeWrapper
22# utillinuxMinimal is included because we need the column command
3−, utillinux ? null
3+, utillinux
44}:
55
6−assert stdenv.isLinux -> utillinux != null;
7−
8−let
9− binpath = stdenv.lib.makeBinPath
10− ([ git less ]
11− ++ stdenv.lib.optional (utillinux != null) utillinux);
12−in stdenv.mkDerivation rec {
6+stdenv.mkDerivation rec {
137 name = "git-recent-${version}";
148 version = "1.0.4";
159
@@ -28,7 +22,7 @@ in stdenv.mkDerivation rec {
2822 mkdir -p $out/bin
2923 cp git-recent $out/bin
3024 wrapProgram $out/bin/git-recent \
31− --prefix PATH : "${binpath}"
25+ --prefix PATH : "${stdenv.lib.makeBinPath [ git less utillinux ]}"
3226 '';
3327
3428 meta = with stdenv.lib; {
pkgs/desktops/gnome-2/desktop/libgweather/default.nix−2
@@ -1,7 +1,5 @@
11{ stdenv, fetchurl, pkgconfig, libxml2, gtk, intltool, GConf, libsoup, libtasn1, nettle, gmp }:
22
3−assert stdenv.isLinux;
4−
53stdenv.mkDerivation rec {
64 name = "libgweather-2.30.3";
75 src = fetchurl {
pkgs/development/compilers/oraclejdk/jdk10-linux.nix−1
@@ -25,7 +25,6 @@
2525, setJavaClassPath
2626}:
2727
28−assert stdenv.system == "x86_64-linux";
2928assert swingSupport -> xorg != null;
3029
3130let
pkgs/development/libraries/glib/default.nix−1
@@ -9,7 +9,6 @@
99
1010with stdenv.lib;
1111
12−assert stdenv.isFreeBSD || stdenv.isDarwin || stdenv.cc.isGNU || hostPlatform.isCygwin;
1312assert stdenv.isLinux -> utillinuxMinimal != null;
1413
1514# TODO:
pkgs/development/mobile/androidenv/androidndk.nix−2
@@ -3,8 +3,6 @@
33, platformTools
44}:
55
6−assert stdenv.isLinux;
7−
86stdenv.mkDerivation rec {
97 name = "android-ndk-r10e";
108
pkgs/development/mobile/androidenv/androidndk_r8e.nix−2
@@ -3,8 +3,6 @@
33, platformTools
44}:
55
6−assert stdenv.isLinux;
7−
86stdenv.mkDerivation rec {
97 name = "android-ndk-r8e";
108
pkgs/development/mobile/flashtool/default.nix+1−3
@@ -1,7 +1,5 @@
11{ stdenv, requireFile, p7zip, jre, libusb1, platformTools, gtk2, glib, libXtst }:
22
3−assert stdenv.system == "i686-linux";
4−
53# TODO:
64#
75# The FlashTool and FlashToolConsole scripts are messy and should probably we
@@ -57,7 +55,7 @@ stdenv.mkDerivation rec {
5755 homepage = http://www.flashtool.net/;
5856 description = "S1 flashing software for Sony phones from X10 to Xperia Z Ultra";
5957 license = stdenv.lib.licenses.unfreeRedistributableFirmware;
60− platforms = stdenv.lib.platforms.linux;
58+ platforms = [ "i686-linux" ];
6159 hydraPlatforms = stdenv.lib.platforms.none;
6260 broken = true;
6361 };
pkgs/development/tools/iaca/2.1.nix−1
@@ -1,5 +1,4 @@
11{ stdenv, makeWrapper, requireFile, patchelf, gcc, unzip }:
2−assert stdenv.system == "x86_64-linux";
32with stdenv.lib;
43
54# v2.1: last version with NHM/WSM arch support
pkgs/development/tools/iaca/3.0.nix−1
@@ -1,5 +1,4 @@
11{ stdenv, requireFile, patchelf, unzip }:
2−assert stdenv.system == "x86_64-linux";
32with stdenv.lib;
43
54stdenv.mkDerivation {
pkgs/development/tools/misc/saleae-logic/default.nix+1−3
@@ -21,8 +21,6 @@ let
2121
2222in
2323
24−assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
25−
2624stdenv.mkDerivation rec {
2725 pname = "saleae-logic";
2826 version = "1.2.10";
@@ -93,7 +91,7 @@ stdenv.mkDerivation rec {
9391 description = "Software for Saleae logic analyzers";
9492 homepage = http://www.saleae.com/;
9593 license = licenses.unfree;
96− platforms = platforms.linux;
94+ platforms = [ "x86_64-linux" "i686-linux" ];
9795 maintainers = [ maintainers.bjornfor ];
9896 };
9997}
pkgs/development/tools/phantomjs/default.nix−1
@@ -3,7 +3,6 @@
33let
44 platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ];
55in
6−assert lib.elem stdenv.system platforms;
76
87stdenv.mkDerivation rec {
98 name = "phantomjs-1.9.8";
pkgs/games/adom/default.nix−3
@@ -1,7 +1,6 @@
11{ stdenv, fetchurl, patchelf, zlib, libmad, libpng12, libcaca, libGLU_combined, alsaLib, libpulseaudio
22, xorg }:
33
4−assert stdenv.system == "x86_64-linux";
54let
65
76 inherit (xorg) libXext libX11;
@@ -58,5 +57,3 @@ stdenv.mkDerivation rec {
5857 platforms = ["x86_64-linux"];
5958 };
6059}
61−
62−
pkgs/games/sdlmame/default.nix+1−3
@@ -1,7 +1,5 @@
11{ stdenv, fetchurl, alsaLib, qt48, SDL, fontconfig, freetype, SDL_ttf, xorg }:
22
3−assert stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux";
4−
53stdenv.mkDerivation rec {
64 version = "0.151.u0-1";
75 name = "sdlmame-${version}";
@@ -39,6 +37,6 @@ stdenv.mkDerivation rec {
3937 description = "A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL support";
4038 license = "MAME";
4139 maintainers = with maintainers; [ lovek323 ];
42− platforms = platforms.linux;
40+ platforms = [ "x86_64-linux" "i686-linux" ];
4341 };
4442}
pkgs/games/terraria-server/default.nix+1−2
@@ -1,5 +1,4 @@
11{ stdenv, lib, file, fetchurl, unzip }:
2−assert stdenv.system == "x86_64-linux";
32
43stdenv.mkDerivation rec {
54 name = "terraria-server-${version}";
@@ -31,7 +30,7 @@ stdenv.mkDerivation rec {
3130 meta = with lib; {
3231 homepage = http://terraria.org;
3332 description = "Dedicated server for Terraria, a 2D action-adventure sandbox";
34− platforms = platforms.linux;
33+ platforms = ["x86_64-linux"];
3534 license = licenses.unfree;
3635 };
3736}
pkgs/games/tibia/default.nix−1
@@ -1,7 +1,6 @@
11{ stdenv, fetchurl, patchelf, glibc, libX11, libGLU_combined }:
22
33with stdenv.lib;
4−assert stdenv.isi686;
54stdenv.mkDerivation {
65 name = "tibia-10.90";
76
pkgs/games/ue4demos/default.nix+1−5
@@ -1,8 +1,5 @@
11{ stdenv, fetchurl, unzip, patchelf, xorg, openal }:
22
3−assert stdenv.isLinux;
4−assert stdenv.isx86_64;
5−
63let
74 buildDemo = { name, src }:
85 stdenv.mkDerivation rec {
@@ -47,7 +44,7 @@ let
4744 meta = {
4845 description = "Unreal Engine 4 Linux demos";
4946 homepage = https://wiki.unrealengine.com/Linux_Demos;
50− platforms = stdenv.lib.platforms.linux;
47+ platforms = [ "x86_64-linux" ];
5148 license = stdenv.lib.licenses.unfree;
5249 };
5350 };
@@ -189,4 +186,3 @@ in {
189186 };
190187 };
191188}
192−
pkgs/misc/drivers/gutenprint/bin.nix+3−5
@@ -1,7 +1,5 @@
11{ stdenv, fetchurl, rpm, cpio, zlib }:
22
3−assert stdenv.system == "x86_64-linux";
4−
53/* usage: (sorry, its still impure but works!)
64
75impure directory:
@@ -23,7 +21,7 @@ sed -n 's/^ServerBin //p' $(sed -n 's/respawn.*-c \(.*''\) -F.*''/\1/p' /etc/eve
2321then. I've tried that.
2422
2523TODO tidy this all up. Find source instead of binary. Fix paths ... Find out how to check ink levels etc
26−
24+
2725*/
2826
2927stdenv.mkDerivation {
@@ -56,13 +54,13 @@ stdenv.mkDerivation {
5654 patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
5755 --set-rpath $libPath $p
5856 done
59−
57+
6058 mkdir $out/lib
6159 ln -s $out/cups/lib $out/lib/cups
6260 '';
6361
6462 meta = {
6563 description = "Some additional CUPS drivers including Canon drivers";
66− platforms = stdenv.lib.platforms.linux;
64+ platforms = [ "x86_64-linux" ];
6765 };
6866}
pkgs/misc/emulators/pcsx2/default.nix−2
@@ -2,8 +2,6 @@
22, makeWrapper, perl, pkgconfig, portaudio, SDL2, soundtouch, stdenv
33, wxGTK30, zlib }:
44
5−assert stdenv.isi686;
6−
75stdenv.mkDerivation rec {
86 name = "pcsx2-${version}";
97 version = "1.4.0";
pkgs/misc/emulators/wine/base.nix+2−3
@@ -6,7 +6,6 @@
66 buildScript ? null, configureFlags ? ""
77}:
88
9−assert stdenv.isLinux;
109assert stdenv.cc.cc.isGNU or false;
1110
1211with import ./util.nix { inherit lib; };
@@ -83,7 +82,7 @@ stdenv.mkDerivation ((lib.optionalAttrs (! isNull buildScript) {
8382 # Add capability to ignore known failing tests
8483 # and enable doCheck
8584 doCheck = false;
86−
85+
8786 postInstall = let
8887 links = prefix: pkg: "ln -s ${pkg} $out/${prefix}/${pkg.name}";
8988 in ''
@@ -100,7 +99,7 @@ stdenv.mkDerivation ((lib.optionalAttrs (! isNull buildScript) {
10099 fi
101100 done
102101 '';
103−
102+
104103 enableParallelBuilding = true;
105104
106105 # https://bugs.winehq.org/show_bug.cgi?id=43530
pkgs/misc/foldingathome/default.nix+2−3
@@ -1,7 +1,5 @@
11{stdenv, fetchurl}:
22
3−assert stdenv.system == "i686-linux";
4−
53stdenv.mkDerivation {
64 name = "folding-at-home-6.02";
75
@@ -22,7 +20,7 @@ stdenv.mkDerivation {
2220 # be considered a gcroot.
2321 installPhase = ''
2422 BINFILES="fah6 mpiexec";
25− for a in $BINFILES; do
23+ for a in $BINFILES; do
2624 patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $a
2725 done
2826 mkdir -p $out/bin
@@ -33,5 +31,6 @@ stdenv.mkDerivation {
3331 homepage = http://folding.stanford.edu/;
3432 description = "Folding@home distributed computing client";
3533 license = stdenv.lib.licenses.unfree;
34+ platforms = [ "i686-linux" ];
3635 };
3736}
pkgs/os-specific/darwin/native-x11-and-opengl/default.nix−2
@@ -1,7 +1,5 @@
11{ stdenv, writeScript }:
22
3−assert stdenv.isDarwin;
4−
53stdenv.mkDerivation rec {
64 name = "darwin-native-x11-and-opengl";
75
pkgs/os-specific/linux/blcr/default.nix−1
@@ -2,7 +2,6 @@
22
33# BLCR version 0.8.6 should works with linux kernel up to version 3.17.x
44
5−assert stdenv.isLinux;
65assert builtins.compareVersions "3.18" kernel.version == 1;
76
87stdenv.mkDerivation {
pkgs/os-specific/linux/bluez/default.nix−2
@@ -2,8 +2,6 @@
22 pythonPackages, readline, udev, libical,
33 systemd, enableWiimote ? false, enableMidi ? false }:
44
5−assert stdenv.isLinux;
6−
75stdenv.mkDerivation rec {
86 name = "bluez-5.49";
97
pkgs/os-specific/linux/cpufrequtils/default.nix−2
@@ -1,7 +1,5 @@
11{ stdenv, fetchurl, libtool, gettext }:
22
3−assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
4−
53stdenv.mkDerivation rec {
64 name = "cpufrequtils-008";
75
pkgs/os-specific/linux/drbd/default.nix−2
@@ -1,7 +1,5 @@
11{ stdenv, fetchurl, flex, systemd, perl }:
22
3−assert stdenv.isLinux;
4−
53stdenv.mkDerivation rec {
64 name = "drbd-8.4.4";
75
pkgs/os-specific/linux/libcap/default.nix+3−5
@@ -1,5 +1,4 @@
1−{ stdenv, buildPackages, fetchurl, attr, perl, pam ? null }:
2−assert pam != null -> stdenv.isLinux;
1+{ stdenv, buildPackages, fetchurl, attr, perl, pam }:
32
43stdenv.mkDerivation rec {
54 name = "libcap-${version}";
@@ -10,8 +9,7 @@ stdenv.mkDerivation rec {
109 sha256 = "0qjiqc5pknaal57453nxcbz3mn1r4hkyywam41wfcglq3v2qlg39";
1110 };
1211
13− outputs = [ "out" "dev" "lib" "man" "doc" ]
14− ++ stdenv.lib.optional (pam != null) "pam";
12+ outputs = [ "out" "dev" "lib" "man" "doc" "pam" ];
1513
1614 depsBuildBuild = [ buildPackages.stdenv.cc ];
1715 nativeBuildInputs = [ perl ];
@@ -22,7 +20,7 @@ stdenv.mkDerivation rec {
2220
2321 makeFlags = [
2422 "lib=lib"
25− (stdenv.lib.optional (pam != null) "PAM_CAP=yes")
23+ "PAM_CAP=yes"
2624 "BUILD_CC=$(CC_FOR_BUILD)"
2725 "CC:=$(CC)"
2826 ];
pkgs/os-specific/linux/lsscsi/default.nix−2
@@ -1,7 +1,5 @@
11{ stdenv, fetchurl }:
22
3−assert stdenv.isLinux;
4−
53stdenv.mkDerivation {
64 name = "lsscsi-0.28";
75
pkgs/os-specific/linux/mdadm/default.nix−2
@@ -3,8 +3,6 @@
33, buildPlatform, hostPlatform
44}:
55
6−assert stdenv.isLinux;
7−
86let
97 sendmail-script = writeScript "sendmail-script" ''
108 #!/bin/sh
pkgs/os-specific/linux/mwprocapture/default.nix−3
@@ -5,9 +5,6 @@ with stdenv.lib;
55# The Magewell Pro Capture drivers are not supported for kernels older than 3.2
66assert versionAtLeast kernel.version "3.2.0";
77
8−# this package currently only supports x86 and x86_64, as I have no ARM device to test on
9−assert (stdenv.system == "x86_64-linux") || (stdenv.system == "i686-linux");
10−
118let
129 bits =
1310 if stdenv.is64bit then "64"
pkgs/os-specific/linux/phc-intel/default.nix−1
@@ -1,6 +1,5 @@
11{ stdenv, fetchurl, kernel, which }:
22
3−assert stdenv.isLinux;
43# Don't bother with older versions, though some might even work:
54assert stdenv.lib.versionAtLeast kernel.version "4.10";
65
pkgs/os-specific/linux/psmisc/default.nix−2
@@ -1,7 +1,5 @@
11{stdenv, fetchurl, ncurses}:
22
3−assert stdenv.isLinux;
4−
53stdenv.mkDerivation rec {
64 name = "psmisc-23.1";
75
pkgs/os-specific/linux/systemd/cryptsetup-generator.nix−2
@@ -1,7 +1,5 @@
11{ stdenv, systemd, cryptsetup }:
22
3−assert stdenv.isLinux;
4−
53stdenv.lib.overrideDerivation systemd (p: {
64 version = p.version;
75 name = "systemd-cryptsetup-generator";
pkgs/os-specific/linux/systemd/default.nix−2
@@ -13,8 +13,6 @@
1313, withSelinux ? false, libselinux
1414}:
1515
16−assert stdenv.isLinux;
17−
1816let
1917 pythonLxmlEnv = buildPackages.python3Packages.python.withPackages ( ps: with ps; [ python3Packages.lxml ]);
2018
pkgs/os-specific/linux/uclibc/default.nix−1
@@ -1,7 +1,6 @@
11{stdenv, fetchzip, linuxHeaders, libiconvReal, cross ? null, gccCross ? null,
22extraConfig ? ""}:
33
4−assert stdenv.isLinux;
54assert cross != null -> gccCross != null;
65
76let
pkgs/os-specific/linux/upower/default.nix−2
@@ -3,8 +3,6 @@
33, useSystemd ? true, systemd, gobjectIntrospection
44}:
55
6−assert stdenv.isLinux;
7−
86stdenv.mkDerivation rec {
97 name = "upower-0.99.7";
108
pkgs/os-specific/linux/xf86-input-multitouch/default.nix−2
@@ -11,8 +11,6 @@
1111, libpciaccess
1212}:
1313
14−assert stdenv.isLinux;
15−
1614stdenv.mkDerivation {
1715 name = "xf86-input-multitouch-20110312";
1816
pkgs/servers/sql/oracle-xe/default.nix+1−2
@@ -1,7 +1,5 @@
11{ stdenv, makeWrapper, requireFile, patchelf, rpmextract, libaio }:
22
3−assert stdenv.system == "x86_64-linux";
4−
53with stdenv.lib;
64
75stdenv.mkDerivation rec {
@@ -79,5 +77,6 @@ stdenv.mkDerivation rec {
7977 description = "Oracle Database Express Edition";
8078 homepage = http://www.oracle.com/technetwork/products/express-edition/;
8179 license = licenses.unfree;
80+ platforms = [ "x86_64-linux" ];
8281 };
8382}
pkgs/tools/audio/aucdtect/default.nix−2
@@ -1,7 +1,5 @@
11{ stdenv, fetchurl, lib, rpmextract }:
22
3−assert stdenv.isLinux;
4−
53with lib;
64
75stdenv.mkDerivation rec {
pkgs/tools/filesystems/yandex-disk/default.nix+1−4
@@ -1,7 +1,5 @@
11{ stdenv, fetchurl, writeText, zlib, rpmextract, patchelf, which }:
22
3−assert stdenv.isLinux;
4−
53let
64 p = if stdenv.is64bit then {
75 arch = "x86_64";
@@ -13,7 +11,7 @@ let
1311 gcclib = "${stdenv.cc.cc.lib}/lib";
1412 sha256 = "09h71i3k9d24ki81jdwhnav63fqbc44glbx228s9g3cr4ap41jcx";
1513 };
16−in
14+in
1715stdenv.mkDerivation rec {
1816
1917 name = "yandex-disk-${version}";
@@ -64,4 +62,3 @@ stdenv.mkDerivation rec {
6462 '';
6563 };
6664}
67−
pkgs/tools/misc/megacli/default.nix+1−2
@@ -1,7 +1,5 @@
11{ stdenv, rpmextract, ncurses5, patchelf, makeWrapper, requireFile, unzip }:
22
3−assert stdenv.system == "x86_64-linux";
4−
53stdenv.mkDerivation rec {
64 name = "megacli-8.07.07";
75
@@ -31,5 +29,6 @@ stdenv.mkDerivation rec {
3129 meta = {
3230 description = "CLI program for LSI MegaRAID cards, which also works with some Dell PERC RAID cards";
3331 license = stdenv.lib.licenses.unfree;
32+ platforms = [ "x86_64-linux" ];
3433 };
3534}
pkgs/tools/misc/pk2cmd/default.nix−2
@@ -1,7 +1,5 @@
11{stdenv, fetchurl, libusb, makeWrapper}:
22
3−assert stdenv.isLinux;
4−
53stdenv.mkDerivation {
64 name = "pk2cmd-1.20";
75 src = fetchurl {
pkgs/tools/misc/trash-cli/default.nix+12−11
@@ -1,7 +1,5 @@
1−{ stdenv, fetchFromGitHub, fetchpatch, coreutils
2−, python3, python3Packages, substituteAll }:
3−
4−assert stdenv.isLinux;
1+{ stdenv, fetchFromGitHub, fetchpatch, python3, python3Packages
2+, lib, makeWrapper, coreutils }:
53
64python3Packages.buildPythonApplication rec {
75 name = "trash-cli-${version}";
@@ -16,12 +14,6 @@ python3Packages.buildPythonApplication rec {
1614 };
1715
1816 patches = [
19− (substituteAll {
20− src = ./nix-paths.patch;
21− df = "${coreutils}/bin/df";
22− libc = "${stdenv.cc.libc.out}/lib/libc.so.6";
23− })
24−
2517 # Fix build on Python 3.6.
2618 (fetchpatch {
2719 url = "https://github.com/andreafrancia/trash-cli/commit/a21b80d1e69783bb09376c3f60dd2f2a10578805.patch";
@@ -30,10 +22,19 @@ python3Packages.buildPythonApplication rec {
3022 ];
3123
3224 buildInputs = with python3Packages; [ nose mock ];
25+ nativeBuildInputs = [ makeWrapper ];
26+
27+ preFixup = ''
28+ for bin in $out/bin/*; do
29+ wrapProgram $bin \
30+ --prefix PATH : ${lib.makeBinPath [ coreutils ]} \
31+ --prefix DYLD_LIBRARY_PATH : ${lib.makeSearchPath "lib" (lib.optional (stdenv.hostPlatform.libc == "glibc") (lib.getDev stdenv.cc.libc))}
32+ done
33+ '';
3334
3435 checkPhase = "nosetests";
3536
36− meta = with stdenv.lib; {
37+ meta = with lib; {
3738 homepage = https://github.com/andreafrancia/trash-cli;
3839 description = "Command line tool for the desktop trash can";
3940 maintainers = [ maintainers.rycee ];
pkgs/tools/misc/trash-cli/nix-paths.patchdeleted−26
@@ -1,26 +0,0 @@
1−--- a/trashcli/list_mount_points.py 2014-12-23 10:10:43.808470486 +0100
2−+++ a/trashcli/list_mount_points.py 2014-12-23 10:19:04.954796457 +0100
3−@@ -12,7 +12,7 @@ def mount_points_from_getmnt():
4−
5− def mount_points_from_df():
6− import subprocess
7−- df_output = subprocess.Popen(["df", "-P"], stdout=subprocess.PIPE).stdout
8−+ df_output = subprocess.Popen(["@df@", "-P"], stdout=subprocess.PIPE).stdout
9− return list(_mount_points_from_df_output(df_output))
10−
11− def _mount_points_from_df_output(df_output):
12−@@ -46,13 +46,7 @@ def _mounted_filesystems_from_getmnt() :
13− ("mnt_freq", c_int), # Dump frequency (in days).
14− ("mnt_passno", c_int)] # Pass number for `fsck'.
15−
16−- if sys.platform == "cygwin":
17−- libc_name = "cygwin1.dll"
18−- else:
19−- libc_name = find_library("c")
20−-
21−- if libc_name == None :
22−- libc_name="/lib/libc.so.6" # fix for my Gentoo 4.0
23−+ libc_name = "@libc@"
24−
25− libc = cdll.LoadLibrary(libc_name)
26− libc.getmntent.restype = POINTER(mntent_struct)
pkgs/tools/networking/filegive/default.nix−2
@@ -1,7 +1,5 @@
11{ stdenv, fetchurl, fetchgit, go }:
22
3−assert stdenv.isLinux && (stdenv.isi686 || stdenv.isx86_64 || stdenv.isAarch32);
4−
53let
64
75 # Code with BSD license
pkgs/tools/networking/logmein-hamachi/default.nix−2
@@ -2,8 +2,6 @@
22
33with stdenv.lib;
44
5−assert stdenv.isLinux;
6−
75let
86 arch =
97 if stdenv.system == "x86_64-linux" then "x64"
pkgs/tools/networking/miniupnpd/default.nix−2
@@ -1,7 +1,5 @@
11{ stdenv, fetchurl, iptables, libuuid, pkgconfig }:
22
3−assert stdenv.isLinux;
4−
53stdenv.mkDerivation rec {
64 name = "miniupnpd-2.0.20180422";
75
pkgs/tools/networking/ssmtp/default.nix+2−2
@@ -4,7 +4,7 @@ assert tlsSupport -> openssl != null;
44
55stdenv.mkDerivation {
66 name = "ssmtp-2.64";
7−
7+
88 src = fetchurl {
99 url = mirror://debian/pool/main/s/ssmtp/ssmtp_2.64.orig.tar.bz2;
1010 sha256 = "0dps8s87ag4g3jr6dk88hs9zl46h3790marc5c2qw7l71k4pvhr2";
@@ -28,7 +28,7 @@ stdenv.mkDerivation {
2828 installFlags = "etcdir=$(out)/etc";
2929
3030 installTargets = [ "install" "install-sendmail" ];
31−
31+
3232 buildInputs = stdenv.lib.optional tlsSupport openssl;
3333
3434 meta = with stdenv.lib; {
pkgs/tools/security/enpass/default.nix+6−6
@@ -3,15 +3,15 @@
33, gtk2, pango, atk, cairo, gdk_pixbuf, jasper, xkeyboardconfig
44, makeWrapper , makeDesktopItem, python, pythonPackages, lib
55, libredirect, lsof}:
6−assert system == "i686-linux" || system == "x86_64-linux";
6+
77let
8− all_data = (with builtins; fromJSON (readFile ./data.json));
8+ all_data = builtins.fromJSON (builtins.readFile ./data.json);
99 system_map = {
1010 i686-linux = "i386";
1111 x86_64-linux = "amd64";
1212 };
1313
14− data = (with builtins; getAttr (getAttr system system_map) all_data);
14+ data = all_data.${system_map.${system} or (throw "Unsupported platform")};
1515
1616 baseUrl = http://repo.sinew.in;
1717
@@ -54,7 +54,7 @@ let
5454 description = "a well known password manager";
5555 homepage = https://www.enpass.io/;
5656 license = lib.licenses.unfree;
57− platforms = lib.platforms.linux;
57+ platforms = [ "x86_64-linux" "i686-linux"];
5858 };
5959
6060 buildInputs = [makeWrapper dpkg];
@@ -70,8 +70,8 @@ let
7070 cp $out/bin/EnpassHelper/EnpassNMHost{,.untampered}
7171
7272 sed \
73− -i s@/opt/Enpass/bin/runenpass.sh@$out/bin/Enpass@ \
74− $out/share/applications/enpass.desktop
73+ -i s@/opt/Enpass/bin/runenpass.sh@$out/bin/Enpass@ \
74+ $out/share/applications/enpass.desktop
7575
7676 for i in $out/bin/{Enpass,EnpassHelper/{EnpassHelper,EnpassNMHost}}; do
7777 patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $i
pkgs/tools/system/storebrowse/default.nix−2
@@ -1,7 +1,5 @@
11{ stdenv, fetchurl, fetchhg, go, sqlite}:
22
3−assert stdenv.isLinux && (stdenv.isi686 || stdenv.isx86_64 || stdenv.isAarch32);
4−
53stdenv.mkDerivation rec {
64 name = "storebrowse-20130318212204";
75