treewide: *inputs are lists

This commit is contained in:
Robin Gloster 2019-11-10 00:52:53 +01:00 committed by Jan Tojnar
parent 01e8c64988
commit 760e23136a
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
18 changed files with 45 additions and 52 deletions

View File

@ -77,7 +77,7 @@ let
inherit src patches nativeBuildInputs postPatch; inherit src patches nativeBuildInputs postPatch;
# gst_plugins needed for setup-hooks # gst_plugins needed for setup-hooks
buildInputs = buildInputs ++ [ makeWrapper gst_plugins ]; buildInputs = buildInputs ++ [ makeWrapper ] ++ gst_plugins;
cmakeFlags = [ "-DUSE_SYSTEM_PROJECTM=ON" ]; cmakeFlags = [ "-DUSE_SYSTEM_PROJECTM=ON" ];

View File

@ -122,7 +122,7 @@ stdenv.mkDerivation rec {
buildInputs = [ ncurses ] buildInputs = [ ncurses ]
++ stdenv.lib.optional stdenv.cc.isClang clangGCC ++ stdenv.lib.optional stdenv.cc.isClang clangGCC
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv CoreAudio ] ++ stdenv.lib.optionals stdenv.isDarwin [ libiconv CoreAudio ]
++ concatMap (a: a.deps) opts; ++ flatten (concatMap (a: a.deps) opts);
makeFlags = [ "LD=$(CC)" ]; makeFlags = [ "LD=$(CC)" ];

View File

@ -77,7 +77,7 @@ in {
url = "https://raw.githubusercontent.com/melpa/melpa/${commit}/recipes/${ename}"; url = "https://raw.githubusercontent.com/melpa/melpa/${commit}/recipes/${ename}";
inherit sha256; inherit sha256;
}; };
packageRequires = lib.optional (! isNull deps) packageRequires = lib.optionals (! isNull deps)
(map (dep: pkgargs.${dep} or self.${dep} or null) (map (dep: pkgargs.${dep} or self.${dep} or null)
deps); deps);
meta = (sourceArgs.meta or {}) // { meta = (sourceArgs.meta or {}) // {

View File

@ -21,7 +21,7 @@ stdenv.mkDerivation {
''; '';
# For hacking purposes # For hacking purposes
env = yiEnv; passthru.env = yiEnv;
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Allows Yi to find libraries and the compiler easily"; description = "Allows Yi to find libraries and the compiler easily";

View File

@ -8,15 +8,15 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
env = bundlerEnv {
name = "${pname}-${version}-gems";
inherit pname ruby;
gemdir = ./.;
};
phases = [ "installPhase" ]; phases = [ "installPhase" ];
installPhase = '' installPhase = let
env = bundlerEnv {
name = "${pname}-${version}-gems";
inherit pname ruby;
gemdir = ./.;
};
in ''
mkdir -p $out/bin mkdir -p $out/bin
makeWrapper ${env}/bin/gollum $out/bin/gollum \ makeWrapper ${env}/bin/gollum $out/bin/gollum \
--prefix PATH ":" ${stdenv.lib.makeBinPath [ git ]} --prefix PATH ":" ${stdenv.lib.makeBinPath [ git ]}

View File

@ -27,13 +27,6 @@ stdenv.mkDerivation rec {
sha256 = "0nx14vlp7p69m2vw0s6kbiyymsfq0r2jd4nm0v5c4xb9avkpgc8g"; sha256 = "0nx14vlp7p69m2vw0s6kbiyymsfq0r2jd4nm0v5c4xb9avkpgc8g";
}; };
env = bundlerEnv {
name = "mikutter-${version}-gems";
gemdir = ./.;
inherit ruby;
};
buildInputs = [ alsaUtils libnotify which gtk2 ruby atk gobject-introspection ]; buildInputs = [ alsaUtils libnotify which gtk2 ruby atk gobject-introspection ];
nativeBuildInputs = [ wrapGAppsHook ]; nativeBuildInputs = [ wrapGAppsHook ];
@ -44,7 +37,14 @@ stdenv.mkDerivation rec {
rm -rf vendor rm -rf vendor
''; '';
installPhase = '' installPhase = let
env = bundlerEnv {
name = "mikutter-${version}-gems";
gemdir = ./.;
inherit ruby;
};
in ''
install -v -D -m644 README $out/share/doc/mikutter/README install -v -D -m644 README $out/share/doc/mikutter/README
install -v -D -m644 LICENSE $out/share/doc/mikutter/LICENSE install -v -D -m644 LICENSE $out/share/doc/mikutter/LICENSE
rm -v README LICENSE rm -v README LICENSE

View File

@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
''; '';
buildTargets = "all hicolor-links"; buildTargets = "all hicolor-links";
installTargets = "install-icons install-cursors"; installTargets = [ "install-icons" "install-cursors" ];
installFlags = [ "PREFIX=${placeholder "out"}" ]; installFlags = [ "PREFIX=${placeholder "out"}" ];
postInstall = '' postInstall = ''

View File

@ -11,13 +11,10 @@ ver: deps:
inherit (info) sha256; inherit (info) sha256;
}; };
phases = [ "unpackPhase" "installPhase" ];
installPhase = '' installPhase = ''
mkdir -p $out mkdir -p $out
cp -r * $out cp -r * $out
''; '';
}; };
in '' in ''
mkdir -p .elm/${ver}/packages/${name} mkdir -p .elm/${ver}/packages/${name}

View File

@ -73,7 +73,7 @@ let
''; '';
# Splicer will pull out correct variations # Splicer will pull out correct variations
libDeps = platform: stdenv.lib.optional enableTerminfo [ ncurses ] libDeps = platform: stdenv.lib.optional enableTerminfo ncurses
++ [libffi] ++ [libffi]
++ stdenv.lib.optional (!enableIntegerSimple) gmp ++ stdenv.lib.optional (!enableIntegerSimple) gmp
++ stdenv.lib.optional (platform.libc != "glibc" && !targetPlatform.isWindows) libiconv; ++ stdenv.lib.optional (platform.libc != "glibc" && !targetPlatform.isWindows) libiconv;

View File

@ -95,8 +95,8 @@ let
++ optional postgresqlSupport postgresql ++ optional postgresqlSupport postgresql
++ optional pdo_odbcSupport unixODBC ++ optional pdo_odbcSupport unixODBC
++ optional pdo_pgsqlSupport postgresql ++ optional pdo_pgsqlSupport postgresql
++ optional pdo_mysqlSupport mysqlBuildInputs ++ optionals pdo_mysqlSupport mysqlBuildInputs
++ optional mysqliSupport mysqlBuildInputs ++ optionals mysqliSupport mysqlBuildInputs
++ optional gmpSupport gmp ++ optional gmpSupport gmp
++ optional gettextSupport gettext ++ optional gettextSupport gettext
++ optional intlSupport icu ++ optional intlSupport icu
@ -109,14 +109,14 @@ let
++ optional libzipSupport libzip ++ optional libzipSupport libzip
++ optional valgrindSupport valgrind; ++ optional valgrindSupport valgrind;
CXXFLAGS = optional stdenv.cc.isClang "-std=c++11"; CXXFLAGS = optionalString stdenv.cc.isClang "-std=c++11";
configureFlags = [ configureFlags = [
"--with-config-file-scan-dir=/etc/php.d" "--with-config-file-scan-dir=/etc/php.d"
] ]
++ optional (versionOlder version "7.3") "--with-pcre-regex=${pcre.dev} PCRE_LIBDIR=${pcre}" ++ optionals (versionOlder version "7.3") [ "--with-pcre-regex=${pcre.dev}" "PCRE_LIBDIR=${pcre}" ]
++ optional (versions.majorMinor version == "7.3") "--with-pcre-regex=${pcre2.dev} PCRE_LIBDIR=${pcre2}" ++ optionals (versions.majorMinor version == "7.3") [ "--with-pcre-regex=${pcre2.dev}" "PCRE_LIBDIR=${pcre2}" ]
++ optional (versionAtLeast version "7.4") "--with-external-pcre=${pcre2.dev} PCRE_LIBDIR=${pcre2}" ++ optionals (versionAtLeast version "7.4") [ "--with-external-pcre=${pcre2.dev}" "PCRE_LIBDIR=${pcre2}" ]
++ optional stdenv.isDarwin "--with-iconv=${libiconv}" ++ optional stdenv.isDarwin "--with-iconv=${libiconv}"
++ optional withSystemd "--with-fpm-systemd" ++ optional withSystemd "--with-fpm-systemd"
++ optionals imapSupport [ ++ optionals imapSupport [
@ -129,7 +129,7 @@ let
"LDAP_INCDIR=${openldap.dev}/include" "LDAP_INCDIR=${openldap.dev}/include"
"LDAP_LIBDIR=${openldap.out}/lib" "LDAP_LIBDIR=${openldap.out}/lib"
] ]
++ optional (ldapSupport && stdenv.isLinux) "--with-ldap-sasl=${cyrus_sasl.dev}" ++ optional (ldapSupport && stdenv.isLinux) "--with-ldap-sasl=${cyrus_sasl.dev}"
++ optional apxs2Support "--with-apxs2=${apacheHttpd.dev}/bin/apxs" ++ optional apxs2Support "--with-apxs2=${apacheHttpd.dev}/bin/apxs"
++ optional embedSupport "--enable-embed" ++ optional embedSupport "--enable-embed"
++ optional mhashSupport "--with-mhash" ++ optional mhashSupport "--with-mhash"

View File

@ -38,8 +38,8 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [ unzip pkgconfig ]; nativeBuildInputs = [ unzip pkgconfig ];
buildInputs = [ jdk gtk2 libXt libXtst libXi libGLU libGL webkitgtk libsoup ]; buildInputs = [ jdk gtk2 libXt libXtst libXi libGLU libGL webkitgtk libsoup ];
NIX_LFLAGS = (map (x: "-L${lib.getLib x}/lib") [ xorg.libX11 pango gdk-pixbuf glib ]) ++ NIX_LFLAGS = toString (map (x: "-L${lib.getLib x}/lib") [ xorg.libX11 pango gdk-pixbuf glib ]) +
[ "-lX11" "-lpango-1.0" "-lgdk_pixbuf-2.0" "-lglib-2.0" ]; " -lX11 -lpango-1.0 -lgdk_pixbuf-2.0 -lglib-2.0";
buildPhase = '' buildPhase = ''
unzip src.zip -d src unzip src.zip -d src

View File

@ -3,7 +3,7 @@
deployAndroidPackage { deployAndroidPackage {
inherit package os; inherit package os;
buildInputs = [ autoPatchelfHook makeWrapper ] ++ buildInputs = [ autoPatchelfHook makeWrapper ] ++
lib.optional (os == "linux") [ pkgs.glibc pkgs.zlib pkgs.ncurses5 pkgs_i686.glibc pkgs_i686.zlib pkgs_i686.ncurses5 ]; lib.optionals (os == "linux") [ pkgs.glibc pkgs.zlib pkgs.ncurses5 pkgs_i686.glibc pkgs_i686.zlib pkgs_i686.ncurses5 ];
patchInstructions = '' patchInstructions = ''
${lib.optionalString (os == "linux") '' ${lib.optionalString (os == "linux") ''
addAutoPatchelfSearchPath $packageBaseDir/lib addAutoPatchelfSearchPath $packageBaseDir/lib

View File

@ -3,7 +3,7 @@
deployAndroidPackage { deployAndroidPackage {
inherit package os; inherit package os;
buildInputs = [ autoPatchelfHook ] buildInputs = [ autoPatchelfHook ]
++ lib.optional (os == "linux") [ pkgs.glibc pkgs.zlib pkgs.ncurses5 ]; ++ lib.optionals (os == "linux") [ pkgs.glibc pkgs.zlib pkgs.ncurses5 ];
patchInstructions = lib.optionalString (os == "linux") '' patchInstructions = lib.optionalString (os == "linux") ''
addAutoPatchelfSearchPath $packageBaseDir/lib64 addAutoPatchelfSearchPath $packageBaseDir/lib64
autoPatchelf --no-recurse $packageBaseDir/lib64 autoPatchelf --no-recurse $packageBaseDir/lib64

View File

@ -44,10 +44,9 @@ let
autobahn autobahn
pyjwt pyjwt
pyyaml pyyaml
]
# tls # tls
twisted.extras.tls ++ twisted.extras.tls;
];
checkInputs = [ checkInputs = [
treq treq

View File

@ -17,9 +17,9 @@ buildPythonPackage rec {
incremental incremental
service-identity service-identity
twisted twisted
]
# twisted [tls] requirements (we should find a way to list "extras") # twisted [tls] requirements (we should find a way to list "extras")
twisted.extras.tls ++ twisted.extras.tls;
];
checkInputs = [ checkInputs = [
pep8 pep8

View File

@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
makeFlags = [ "PREFIX=$(out)" "AADIR=$(out)/etc/apparmor.d" ]; makeFlags = [ "PREFIX=$(out)" "AADIR=$(out)/etc/apparmor.d" ];
installTargets = "install-dist"; installTargets = [ "install-dist" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Backlight and Keyboard LED control tool"; description = "Backlight and Keyboard LED control tool";

View File

@ -44,10 +44,6 @@ stdenv.mkDerivation rec {
# Required for pthread_cancel. # Required for pthread_cancel.
NIX_LDFLAGS = stdenv.lib.optionalString (!stdenv.isDarwin) "-lgcc_s"; NIX_LDFLAGS = stdenv.lib.optionalString (!stdenv.isDarwin) "-lgcc_s";
preConfigure = ''
configureFlags="$configureFlags --includedir=$dev/include"
'';
configureFlags = [ configureFlags = [
"--with-apr=${apr.dev}" "--with-apr=${apr.dev}"
"--with-apr-util=${aprutil.dev}" "--with-apr-util=${aprutil.dev}"
@ -60,6 +56,7 @@ stdenv.mkDerivation rec {
"--enable-cern-meta" "--enable-cern-meta"
"--enable-imagemap" "--enable-imagemap"
"--enable-cgi" "--enable-cgi"
"--includedir=${placeholder "dev"}/include"
(stdenv.lib.enableFeature proxySupport "proxy") (stdenv.lib.enableFeature proxySupport "proxy")
(stdenv.lib.enableFeature sslSupport "ssl") (stdenv.lib.enableFeature sslSupport "ssl")
(stdenv.lib.withFeatureAs libxml2Support "libxml2" "${libxml2.dev}/include/libxml2") (stdenv.lib.withFeatureAs libxml2Support "libxml2" "${libxml2.dev}/include/libxml2")

View File

@ -6,15 +6,15 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
env = bundlerEnv {
name = "${pname}-${version}-gems";
inherit pname ruby;
gemdir = ./.;
};
phases = [ "installPhase" ]; phases = [ "installPhase" ];
installPhase = '' installPhase = let
env = bundlerEnv {
name = "${pname}-${version}-gems";
inherit pname ruby;
gemdir = ./.;
};
in ''
mkdir -p $out/bin mkdir -p $out/bin
makeWrapper ${env}/bin/fastlane $out/bin/fastlane \ makeWrapper ${env}/bin/fastlane $out/bin/fastlane \
--set FASTLANE_SKIP_UPDATE_CHECK 1 --set FASTLANE_SKIP_UPDATE_CHECK 1