lol

treewide: *inputs are lists

authored by

Robin Gloster and committed by
Jan Tojnar
760e2313 01e8c649

+45 -52
+1 -1
pkgs/applications/audio/clementine/default.nix
··· 77 77 inherit src patches nativeBuildInputs postPatch; 78 78 79 79 # gst_plugins needed for setup-hooks 80 - buildInputs = buildInputs ++ [ makeWrapper gst_plugins ]; 80 + buildInputs = buildInputs ++ [ makeWrapper ] ++ gst_plugins; 81 81 82 82 cmakeFlags = [ "-DUSE_SYSTEM_PROJECTM=ON" ]; 83 83
+1 -1
pkgs/applications/audio/cmus/default.nix
··· 122 122 buildInputs = [ ncurses ] 123 123 ++ stdenv.lib.optional stdenv.cc.isClang clangGCC 124 124 ++ stdenv.lib.optionals stdenv.isDarwin [ libiconv CoreAudio ] 125 - ++ concatMap (a: a.deps) opts; 125 + ++ flatten (concatMap (a: a.deps) opts); 126 126 127 127 makeFlags = [ "LD=$(CC)" ]; 128 128
+1 -1
pkgs/applications/editors/emacs-modes/libgenerated.nix
··· 77 77 url = "https://raw.githubusercontent.com/melpa/melpa/${commit}/recipes/${ename}"; 78 78 inherit sha256; 79 79 }; 80 - packageRequires = lib.optional (! isNull deps) 80 + packageRequires = lib.optionals (! isNull deps) 81 81 (map (dep: pkgargs.${dep} or self.${dep} or null) 82 82 deps); 83 83 meta = (sourceArgs.meta or {}) // {
+1 -1
pkgs/applications/editors/yi/wrapper.nix
··· 21 21 ''; 22 22 23 23 # For hacking purposes 24 - env = yiEnv; 24 + passthru.env = yiEnv; 25 25 26 26 meta = with stdenv.lib; { 27 27 description = "Allows Yi to find libraries and the compiler easily";
+7 -7
pkgs/applications/misc/gollum/default.nix
··· 8 8 9 9 nativeBuildInputs = [ makeWrapper ]; 10 10 11 - env = bundlerEnv { 12 - name = "${pname}-${version}-gems"; 13 - inherit pname ruby; 14 - gemdir = ./.; 15 - }; 16 - 17 11 phases = [ "installPhase" ]; 18 12 19 - installPhase = '' 13 + installPhase = let 14 + env = bundlerEnv { 15 + name = "${pname}-${version}-gems"; 16 + inherit pname ruby; 17 + gemdir = ./.; 18 + }; 19 + in '' 20 20 mkdir -p $out/bin 21 21 makeWrapper ${env}/bin/gollum $out/bin/gollum \ 22 22 --prefix PATH ":" ${stdenv.lib.makeBinPath [ git ]}
+8 -8
pkgs/applications/networking/instant-messengers/mikutter/default.nix
··· 27 27 sha256 = "0nx14vlp7p69m2vw0s6kbiyymsfq0r2jd4nm0v5c4xb9avkpgc8g"; 28 28 }; 29 29 30 - env = bundlerEnv { 31 - name = "mikutter-${version}-gems"; 32 - gemdir = ./.; 33 - 34 - inherit ruby; 35 - }; 36 - 37 30 buildInputs = [ alsaUtils libnotify which gtk2 ruby atk gobject-introspection ]; 38 31 nativeBuildInputs = [ wrapGAppsHook ]; 39 32 ··· 44 37 rm -rf vendor 45 38 ''; 46 39 47 - installPhase = '' 40 + installPhase = let 41 + env = bundlerEnv { 42 + name = "mikutter-${version}-gems"; 43 + gemdir = ./.; 44 + 45 + inherit ruby; 46 + }; 47 + in '' 48 48 install -v -D -m644 README $out/share/doc/mikutter/README 49 49 install -v -D -m644 LICENSE $out/share/doc/mikutter/LICENSE 50 50 rm -v README LICENSE
+1 -1
pkgs/desktops/deepin/deepin-icon-theme/default.nix
··· 32 32 ''; 33 33 34 34 buildTargets = "all hicolor-links"; 35 - installTargets = "install-icons install-cursors"; 35 + installTargets = [ "install-icons" "install-cursors" ]; 36 36 installFlags = [ "PREFIX=${placeholder "out"}" ]; 37 37 38 38 postInstall = ''
-3
pkgs/development/compilers/elm/makeDotElm.nix
··· 11 11 inherit (info) sha256; 12 12 }; 13 13 14 - phases = [ "unpackPhase" "installPhase" ]; 15 - 16 14 installPhase = '' 17 15 mkdir -p $out 18 16 cp -r * $out 19 17 ''; 20 - 21 18 }; 22 19 in '' 23 20 mkdir -p .elm/${ver}/packages/${name}
+1 -1
pkgs/development/compilers/ghc/8.8.1.nix
··· 73 73 ''; 74 74 75 75 # Splicer will pull out correct variations 76 - libDeps = platform: stdenv.lib.optional enableTerminfo [ ncurses ] 76 + libDeps = platform: stdenv.lib.optional enableTerminfo ncurses 77 77 ++ [libffi] 78 78 ++ stdenv.lib.optional (!enableIntegerSimple) gmp 79 79 ++ stdenv.lib.optional (platform.libc != "glibc" && !targetPlatform.isWindows) libiconv;
+7 -7
pkgs/development/interpreters/php/default.nix
··· 95 95 ++ optional postgresqlSupport postgresql 96 96 ++ optional pdo_odbcSupport unixODBC 97 97 ++ optional pdo_pgsqlSupport postgresql 98 - ++ optional pdo_mysqlSupport mysqlBuildInputs 99 - ++ optional mysqliSupport mysqlBuildInputs 98 + ++ optionals pdo_mysqlSupport mysqlBuildInputs 99 + ++ optionals mysqliSupport mysqlBuildInputs 100 100 ++ optional gmpSupport gmp 101 101 ++ optional gettextSupport gettext 102 102 ++ optional intlSupport icu ··· 109 109 ++ optional libzipSupport libzip 110 110 ++ optional valgrindSupport valgrind; 111 111 112 - CXXFLAGS = optional stdenv.cc.isClang "-std=c++11"; 112 + CXXFLAGS = optionalString stdenv.cc.isClang "-std=c++11"; 113 113 114 114 configureFlags = [ 115 115 "--with-config-file-scan-dir=/etc/php.d" 116 116 ] 117 - ++ optional (versionOlder version "7.3") "--with-pcre-regex=${pcre.dev} PCRE_LIBDIR=${pcre}" 118 - ++ optional (versions.majorMinor version == "7.3") "--with-pcre-regex=${pcre2.dev} PCRE_LIBDIR=${pcre2}" 119 - ++ optional (versionAtLeast version "7.4") "--with-external-pcre=${pcre2.dev} PCRE_LIBDIR=${pcre2}" 117 + ++ optionals (versionOlder version "7.3") [ "--with-pcre-regex=${pcre.dev}" "PCRE_LIBDIR=${pcre}" ] 118 + ++ optionals (versions.majorMinor version == "7.3") [ "--with-pcre-regex=${pcre2.dev}" "PCRE_LIBDIR=${pcre2}" ] 119 + ++ optionals (versionAtLeast version "7.4") [ "--with-external-pcre=${pcre2.dev}" "PCRE_LIBDIR=${pcre2}" ] 120 120 ++ optional stdenv.isDarwin "--with-iconv=${libiconv}" 121 121 ++ optional withSystemd "--with-fpm-systemd" 122 122 ++ optionals imapSupport [ ··· 129 129 "LDAP_INCDIR=${openldap.dev}/include" 130 130 "LDAP_LIBDIR=${openldap.out}/lib" 131 131 ] 132 - ++ optional (ldapSupport && stdenv.isLinux) "--with-ldap-sasl=${cyrus_sasl.dev}" 132 + ++ optional (ldapSupport && stdenv.isLinux) "--with-ldap-sasl=${cyrus_sasl.dev}" 133 133 ++ optional apxs2Support "--with-apxs2=${apacheHttpd.dev}/bin/apxs" 134 134 ++ optional embedSupport "--enable-embed" 135 135 ++ optional mhashSupport "--with-mhash"
+2 -2
pkgs/development/libraries/java/swt/default.nix
··· 38 38 nativeBuildInputs = [ unzip pkgconfig ]; 39 39 buildInputs = [ jdk gtk2 libXt libXtst libXi libGLU libGL webkitgtk libsoup ]; 40 40 41 - NIX_LFLAGS = (map (x: "-L${lib.getLib x}/lib") [ xorg.libX11 pango gdk-pixbuf glib ]) ++ 42 - [ "-lX11" "-lpango-1.0" "-lgdk_pixbuf-2.0" "-lglib-2.0" ]; 41 + NIX_LFLAGS = toString (map (x: "-L${lib.getLib x}/lib") [ xorg.libX11 pango gdk-pixbuf glib ]) + 42 + " -lX11 -lpango-1.0 -lgdk_pixbuf-2.0 -lglib-2.0"; 43 43 44 44 buildPhase = '' 45 45 unzip src.zip -d src
+1 -1
pkgs/development/mobile/androidenv/build-tools.nix
··· 3 3 deployAndroidPackage { 4 4 inherit package os; 5 5 buildInputs = [ autoPatchelfHook makeWrapper ] ++ 6 - lib.optional (os == "linux") [ pkgs.glibc pkgs.zlib pkgs.ncurses5 pkgs_i686.glibc pkgs_i686.zlib pkgs_i686.ncurses5 ]; 6 + lib.optionals (os == "linux") [ pkgs.glibc pkgs.zlib pkgs.ncurses5 pkgs_i686.glibc pkgs_i686.zlib pkgs_i686.ncurses5 ]; 7 7 patchInstructions = '' 8 8 ${lib.optionalString (os == "linux") '' 9 9 addAutoPatchelfSearchPath $packageBaseDir/lib
+1 -1
pkgs/development/mobile/androidenv/platform-tools.nix
··· 3 3 deployAndroidPackage { 4 4 inherit package os; 5 5 buildInputs = [ autoPatchelfHook ] 6 - ++ lib.optional (os == "linux") [ pkgs.glibc pkgs.zlib pkgs.ncurses5 ]; 6 + ++ lib.optionals (os == "linux") [ pkgs.glibc pkgs.zlib pkgs.ncurses5 ]; 7 7 patchInstructions = lib.optionalString (os == "linux") '' 8 8 addAutoPatchelfSearchPath $packageBaseDir/lib64 9 9 autoPatchelf --no-recurse $packageBaseDir/lib64
+2 -3
pkgs/development/python-modules/buildbot/default.nix
··· 44 44 autobahn 45 45 pyjwt 46 46 pyyaml 47 - 47 + ] 48 48 # tls 49 - twisted.extras.tls 50 - ]; 49 + ++ twisted.extras.tls; 51 50 52 51 checkInputs = [ 53 52 treq
+2 -2
pkgs/development/python-modules/treq/default.nix
··· 17 17 incremental 18 18 service-identity 19 19 twisted 20 + ] 20 21 # twisted [tls] requirements (we should find a way to list "extras") 21 - twisted.extras.tls 22 - ]; 22 + ++ twisted.extras.tls; 23 23 24 24 checkInputs = [ 25 25 pep8
+1 -1
pkgs/os-specific/linux/brillo/default.nix
··· 22 22 23 23 makeFlags = [ "PREFIX=$(out)" "AADIR=$(out)/etc/apparmor.d" ]; 24 24 25 - installTargets = "install-dist"; 25 + installTargets = [ "install-dist" ]; 26 26 27 27 meta = with stdenv.lib; { 28 28 description = "Backlight and Keyboard LED control tool";
+1 -4
pkgs/servers/http/apache-httpd/2.4.nix
··· 44 44 # Required for ‘pthread_cancel’. 45 45 NIX_LDFLAGS = stdenv.lib.optionalString (!stdenv.isDarwin) "-lgcc_s"; 46 46 47 - preConfigure = '' 48 - configureFlags="$configureFlags --includedir=$dev/include" 49 - ''; 50 - 51 47 configureFlags = [ 52 48 "--with-apr=${apr.dev}" 53 49 "--with-apr-util=${aprutil.dev}" ··· 60 56 "--enable-cern-meta" 61 57 "--enable-imagemap" 62 58 "--enable-cgi" 59 + "--includedir=${placeholder "dev"}/include" 63 60 (stdenv.lib.enableFeature proxySupport "proxy") 64 61 (stdenv.lib.enableFeature sslSupport "ssl") 65 62 (stdenv.lib.withFeatureAs libxml2Support "libxml2" "${libxml2.dev}/include/libxml2")
+7 -7
pkgs/tools/admin/fastlane/default.nix
··· 6 6 7 7 nativeBuildInputs = [ makeWrapper ]; 8 8 9 - env = bundlerEnv { 10 - name = "${pname}-${version}-gems"; 11 - inherit pname ruby; 12 - gemdir = ./.; 13 - }; 14 - 15 9 phases = [ "installPhase" ]; 16 10 17 - installPhase = '' 11 + installPhase = let 12 + env = bundlerEnv { 13 + name = "${pname}-${version}-gems"; 14 + inherit pname ruby; 15 + gemdir = ./.; 16 + }; 17 + in '' 18 18 mkdir -p $out/bin 19 19 makeWrapper ${env}/bin/fastlane $out/bin/fastlane \ 20 20 --set FASTLANE_SKIP_UPDATE_CHECK 1