treewide: installFlags is a list

This commit is contained in:
Robin Gloster 2019-11-05 02:10:31 +01:00 committed by Jan Tojnar
parent 133103d709
commit 2157dcd141
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4
70 changed files with 86 additions and 91 deletions

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
fetchSubmodules = true; fetchSubmodules = true;
}; };
installFlags = "PREFIX=$(out)"; installFlags = [ "PREFIX=$(out)" ];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ buildInputs = [

View file

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "0qrcvn7227qaayjcd5rm7z0k5q89qfy5qkdgwr5pd7ih0va8rmpz"; sha256 = "0qrcvn7227qaayjcd5rm7z0k5q89qfy5qkdgwr5pd7ih0va8rmpz";
}; };
installFlags = "PREFIX=$(out) INSTALL=install"; installFlags = [ "PREFIX=$(out)" "INSTALL=install" ];
buildInputs = [] buildInputs = []
++ stdenv.lib.optional stdenv.isDarwin IOKit; ++ stdenv.lib.optional stdenv.isDarwin IOKit;

View file

@ -19,9 +19,7 @@ stdenv.mkDerivation rec {
}) })
]; ];
installFlags = '' installFlags = [ "DESTDIR=$(out)" ];
DESTDIR=$(out)
'';
fixupPhase = '' fixupPhase = ''
cp -r $out/var/empty/local/lib $out cp -r $out/var/empty/local/lib $out

View file

@ -56,9 +56,8 @@ stdenv.mkDerivation rec {
cp Contrib/emacs/taskjug.el $out/share/emacs/site-lisp/ cp Contrib/emacs/taskjug.el $out/share/emacs/site-lisp/
''; '';
installFlags = # kde_locale is not defined when installing without kde.
# kde_locale is not defined when installing without kde. installFlags = [ "kde_locale=\${out}/share/locale" ];
"kde_locale=\${out}/share/locale";
meta = { meta = {
homepage = http://www.taskjuggler.org; homepage = http://www.taskjuggler.org;

View file

@ -31,10 +31,8 @@ stdenv.mkDerivation rec {
"-fpermissive" "-fpermissive"
]; ];
preInstall = '' installTargets = [ (placeholder "out") ];
installTargets="$out" installFlags = [ "SWIFT_INSTALLDIR=${placeholder "out"}" ];
installFlags+=" SWIFT_INSTALLDIR=$out"
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://swift.im/; homepage = https://swift.im/;

View file

@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
doCheck = false; doCheck = false;
installFlags = "HOME=\${out} install-doc"; installFlags = [ "HOME=\${out}" "install-doc" ];
postInstall = '' postInstall = ''
wrapProgram $out/bin/git-remote-hg \ wrapProgram $out/bin/git-remote-hg \

View file

@ -114,7 +114,7 @@ stdenv.mkDerivation {
# WARNING: Do not `rm` or `mv` files from the source tree; use `cp` instead. # WARNING: Do not `rm` or `mv` files from the source tree; use `cp` instead.
# We need many of these files during the installCheckPhase. # We need many of these files during the installCheckPhase.
installFlags = "NO_INSTALL_HARDLINKS=1"; installFlags = [ "NO_INSTALL_HARDLINKS=1" ];
preInstall = (stdenv.lib.optionalString stdenv.isDarwin '' preInstall = (stdenv.lib.optionalString stdenv.isDarwin ''
mkdir -p $out/bin mkdir -p $out/bin

View file

@ -23,7 +23,7 @@ let
buildInputs = [ erlang ]; buildInputs = [ erlang ];
installFlags = "PREFIX=$(out)/lib/erlang/lib"; installFlags = [ "PREFIX=$(out)/lib/erlang/lib" ];
meta = { meta = {
description = "WebDriver implementation in Erlang"; description = "WebDriver implementation in Erlang";

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
sha256 = "0pzd9ig3ahpgq7jbj82grllxx1v01d620insr2m8h0c6jj25n5hv"; sha256 = "0pzd9ig3ahpgq7jbj82grllxx1v01d620insr2m8h0c6jj25n5hv";
}; };
nativeBuildInputs = [ bison flex pkg-config libpng ]; nativeBuildInputs = [ bison flex pkg-config libpng ];
installFlags = "PREFIX=\${out}"; installFlags = [ "PREFIX=\${out}" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://rednex.github.io/rgbds/; homepage = https://rednex.github.io/rgbds/;

View file

@ -24,7 +24,7 @@ stdenv.mkDerivation {
preConfigure = "patchShebangs ./configure"; preConfigure = "patchShebangs ./configure";
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
passthru = { passthru = {
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" ]; compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" ];

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation {
preConfigure = "patchShebangs ./configure"; preConfigure = "patchShebangs ./configure";
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
passthru = { passthru = {
compatibleCoqVersions = v: builtins.elem v [ "8.5" "8.6" "8.7" "8.8" "8.9" ]; compatibleCoqVersions = v: builtins.elem v [ "8.5" "8.6" "8.7" "8.8" "8.9" ];

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation {
preConfigure = "patchShebangs ./configure"; preConfigure = "patchShebangs ./configure";
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
passthru = { passthru = {
compatibleCoqVersions = v: stdenv.lib.versionAtLeast v "8.5"; compatibleCoqVersions = v: stdenv.lib.versionAtLeast v "8.5";

View file

@ -29,7 +29,7 @@ stdenv.mkDerivation {
preConfigure = "patchShebangs ./configure"; preConfigure = "patchShebangs ./configure";
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
passthru = { passthru = {
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" ]; compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" ];

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
patches = [./0001-changes-to-work-with-Coq-8.6.patch]; patches = [./0001-changes-to-work-with-Coq-8.6.patch];
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://www.ps.uni-saarland.de/autosubst/; homepage = https://www.ps.uni-saarland.de/autosubst/;

View file

@ -37,7 +37,7 @@ stdenv.mkDerivation {
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 findlib coq ]; buildInputs = with coq.ocamlPackages; [ ocaml camlp5 findlib coq ];
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
license = licenses.lgpl2; license = licenses.lgpl2;

View file

@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ which ]; nativeBuildInputs = [ which ];
buildInputs = [ coq coq.ocaml ] ++ (with coq.ocamlPackages; [ findlib elpi ]); buildInputs = [ coq coq.ocaml ] ++ (with coq.ocamlPackages; [ findlib elpi ]);
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
meta = { meta = {
description = "Coq plugin embedding ELPI."; description = "Coq plugin embedding ELPI.";

View file

@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://github.com/coq-ext-lib/coq-ext-lib; homepage = https://github.com/coq-ext-lib/coq-ext-lib;

View file

@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ bignums ]; propagatedBuildInputs = [ bignums ];
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Library to certify primality using Pocklington certificate and Elliptic Curve Certificate"; description = "Library to certify primality using Pocklington certificate and Elliptic Curve Certificate";

View file

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
meta = { meta = {
homepage = http://c-corn.github.io/; homepage = http://c-corn.github.io/;

View file

@ -41,10 +41,10 @@ stdenv.mkDerivation {
mkdir -p $out/bin mkdir -p $out/bin
''; '';
installFlags = '' installFlags = [
COQLIB=$(out)/lib/coq/${coq.coq-version}/ "COQLIB=$(out)/lib/coq/${coq.coq-version}/"
BINDIR=$(out)/bin "BINDIR=$(out)/bin"
''; ];
meta = { meta = {
description = "Build dependency graphs between Coq objects"; description = "Build dependency graphs between Coq objects";

View file

@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
preBuild = "coq_makefile -f _CoqProject -o Makefile"; preBuild = "coq_makefile -f _CoqProject -o Makefile";
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://mattam82.github.io/Coq-Equations/; homepage = https://mattam82.github.io/Coq-Equations/;

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
preBuild = "cd src"; preBuild = "cd src";
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}"; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://www.mpi-sws.org/~gil/Heq/; homepage = https://www.mpi-sws.org/~gil/Heq/;

View file

@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
coq.ocamlPackages.camlp5 coq.ocamlPackages.camlp5
; ;
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
meta = { meta = {
description = "A robust and expressive tactic language for Coq"; description = "A robust and expressive tactic language for Coq";

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
buildInputs = [ coq bignums ]; buildInputs = [ coq bignums ];
enableParallelBuilding = true; enableParallelBuilding = true;
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://math-classes.github.io; homepage = https://math-classes.github.io;

View file

@ -74,7 +74,7 @@ versions = {
core-deps = with coqPackages; [ mathcomp-field_1_9 ]; core-deps = with coqPackages; [ mathcomp-field_1_9 ];
extra-deps = with coqPackages; [ mathcomp_1_9-bigenough ]; extra-deps = with coqPackages; [ mathcomp_1_9-bigenough ];
}; };
}; };
"1.8.0" = { "1.8.0" = {
finmap.version = "1.2.1"; finmap.version = "1.2.1";
bigenough.version = "1.0.0"; bigenough.version = "1.0.0";
@ -154,7 +154,7 @@ packageGen = {
propagatedBuildInputs = [ coq ] ++ mc-core-deps ++ extra-deps; propagatedBuildInputs = [ coq ] ++ mc-core-deps ++ extra-deps;
installFlags = "-f Makefile.coq COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = [ "-f" "Makefile.coq" "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
meta = { meta = {
inherit description; inherit description;

View file

@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
++ (with coq.ocamlPackages; [ ocaml findlib camlp5 ]) ++ (with coq.ocamlPackages; [ ocaml findlib camlp5 ])
; ;
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
passthru = { passthru = {
compatibleCoqVersions = v: builtins.hasAttr v params; compatibleCoqVersions = v: builtins.hasAttr v params;

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
buildInputs = [ coq ]; buildInputs = [ coq ];
installFlags = "CONTRIB=$(out)/lib/coq/${coq.coq-version}/user-contrib"; installFlags = [ "CONTRIB=$(out)/lib/coq/${coq.coq-version}/user-contrib" ];
meta = { meta = {
homepage = "http://www.chargueraud.org/softs/tlc/"; homepage = "http://www.chargueraud.org/softs/tlc/";

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
buildInputs = [ libpng libjpeg ]; buildInputs = [ libpng libjpeg ];
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
installFlags = "PREFIX=/ DESTDIR=$(out)"; installFlags = [ "PREFIX=/" "DESTDIR=$(out)" ];
postInstall = '' postInstall = ''
wrapProgram "$out/bin/2ff" --prefix PATH : "${file}/bin" wrapProgram "$out/bin/2ff" --prefix PATH : "${file}/bin"
''; '';

View file

@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
doCheck = true; doCheck = true;
# Don't try to write to /var/cache/fontconfig at install time. # Don't try to write to /var/cache/fontconfig at install time.
installFlags = "sysconfdir=$(out)/etc fc_cachedir=$(TMPDIR)/dummy RUN_FC_CACHE_TEST=false"; installFlags = [ "sysconfdir=$(out)/etc" "fc_cachedir=$(TMPDIR)/dummy" "RUN_FC_CACHE_TEST=false" ];
passthru = { passthru = {
# Empty for backward compatibility, there was no versioning before 2.11 # Empty for backward compatibility, there was no versioning before 2.11

View file

@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
++ stdenv.lib.optionals (!javaSupport) [ "--disable-java" "--without-java" ]; ++ stdenv.lib.optionals (!javaSupport) [ "--disable-java" "--without-java" ];
patches = [ ./libguestfs-syms.patch ]; patches = [ ./libguestfs-syms.patch ];
NIX_CFLAGS_COMPILE="-I${libxml2.dev}/include/libxml2/"; NIX_CFLAGS_COMPILE="-I${libxml2.dev}/include/libxml2/";
installFlags = "REALLY_INSTALL=yes"; installFlags = [ "REALLY_INSTALL=yes" ];
enableParallelBuilding = true; enableParallelBuilding = true;
postInstall = '' postInstall = ''

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation {
sourceRoot = "OSM-binary-1.3.3/src"; sourceRoot = "OSM-binary-1.3.3/src";
installFlags = "PREFIX=$(out)"; installFlags = [ "PREFIX=$(out)" ];
meta = { meta = {
homepage = https://github.com/scrosby/OSM-binary; homepage = https://github.com/scrosby/OSM-binary;

View file

@ -50,11 +50,11 @@ else stdenv.mkDerivation {
buildInputs = stdenv.lib.optional (stdenv.hostPlatform.system == "x86_64-darwin") unzip; buildInputs = stdenv.lib.optional (stdenv.hostPlatform.system == "x86_64-darwin") unzip;
# linux-specific # linux-specific
installFlags = stdenv.lib.optionalString (isLinux) installFlags = stdenv.lib.optional isLinux
"prefix=$(out)"; "prefix=$(out)";
patchPhase = stdenv.lib.optionalString (isLinux) patchPhase = stdenv.lib.optionalString isLinux
"${gnused}/bin/sed -i 's/ldconfig//' Makefile"; "${gnused}/bin/sed -i 's/ldconfig//' Makefile";
postInstall = stdenv.lib.optionalString (isLinux) postInstall = stdenv.lib.optionalString isLinux
"mv -v share $out"; "mv -v share $out";
passthru = { passthru = {

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
configureFlags = [ "--enable-libcurl" ]; # optional but strongly recommended configureFlags = [ "--enable-libcurl" ]; # optional but strongly recommended
installFlags = "prefix=$(out)"; installFlags = [ "prefix=$(out)" ];
preCheck = '' preCheck = ''
patchShebangs test/ patchShebangs test/

View file

@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "0ax02fzqpaxr7d30l5xbndy1s5vgg1ag643c7zwiw2wj1czrxil8"; sha256 = "0ax02fzqpaxr7d30l5xbndy1s5vgg1ag643c7zwiw2wj1czrxil8";
}; };
installFlags = "INSTBASEDIR=$(out)"; installFlags = [ "INSTBASEDIR=$(out)" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A library for displaying messages"; description = "A library for displaying messages";

View file

@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "0yd6bl6qw675sxa81nxw6plhpjf9d2ywlm8a5z66zyjf28sl7sds"; sha256 = "0yd6bl6qw675sxa81nxw6plhpjf9d2ywlm8a5z66zyjf28sl7sds";
}; };
installFlags = "INSTBASEDIR=$(out)"; installFlags = [ "INSTBASEDIR=$(out)" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A library for parsing command line options"; description = "A library for parsing command line options";

View file

@ -18,7 +18,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ ocaml findlib ]; buildInputs = [ ocaml findlib ];
installFlags = "LIBDIR=$(OCAMLFIND_DESTDIR)"; installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
createFindlibDestdir = true; createFindlibDestdir = true;

View file

@ -26,7 +26,7 @@ stdenv.mkDerivation {
createFindlibDestdir = true; createFindlibDestdir = true;
dontBuild = true; dontBuild = true;
installFlags = "-C src"; installFlags = [ "-C" "src" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://gallium.inria.fr/~fpottier/pprint/; homepage = http://gallium.inria.fr/~fpottier/pprint/;

View file

@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
createFindlibDestdir = true; createFindlibDestdir = true;
installFlags = "LIBDIR=$(OCAMLFIND_DESTDIR)"; installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
meta = { meta = {
description = "A simple parser and type-checker for polomorphic extension of the SMT-LIB 2 language"; description = "A simple parser and type-checker for polomorphic extension of the SMT-LIB 2 language";

View file

@ -18,7 +18,7 @@ stdenv.mkDerivation {
dontBuild = true; dontBuild = true;
installFlags = "PREFIX=$(out)"; installFlags = [ "PREFIX=$(out)" ];
dontStrip = true; dontStrip = true;

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation {
postPatch = "sed -e 's,/usr/bin/install,install,g' -i src/Makefile"; postPatch = "sed -e 's,/usr/bin/install,install,g' -i src/Makefile";
preBuild = "cd src"; preBuild = "cd src";
installFlags = "DESTDIR=$(out)"; installFlags = [ "DESTDIR=$(out)" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
license = licenses.gpl3Plus; license = licenses.gpl3Plus;

View file

@ -57,7 +57,7 @@ let noweb = stdenv.mkDerivation rec {
# HACK: This is ugly, but functional. # HACK: This is ugly, but functional.
PATH=$out/bin:$PATH make -BC xdoc PATH=$out/bin:$PATH make -BC xdoc
make $installFlags install-man make "''${installFlags[@]}" install-man
ln -s "$tex" "$out/share/texmf" ln -s "$tex" "$out/share/texmf"
''; '';

View file

@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
createFindlibDestdir = true; createFindlibDestdir = true;
dontStrip = true; dontStrip = true;
installFlags = "SEMVER=${version} PREFIX=$(out)"; installFlags = [ "SEMVER=${version}" "PREFIX=$(out)" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://github.com/afiniate/trv; homepage = https://github.com/afiniate/trv;

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ ncurses5 ]; buildInputs = [ ncurses5 ];
installFlags = "bindir=$(out)/bin"; installFlags = [ "bindir=$(out)/bin" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://rephial.org/; homepage = http://rephial.org/;

View file

@ -26,11 +26,10 @@ stdenv.mkDerivation rec {
installTargets = "install-cups"; installTargets = "install-cups";
installFlags = installFlags = [
'' "CUPS_FILTERS=$(out)/lib/cups/filter"
CUPS_FILTERS=$(out)/lib/cups/filter "CUPS_BACKENDS=$(out)/lib/cups/backend"
CUPS_BACKENDS=$(out)/lib/cups/backend ];
'';
meta = { meta = {
description = "Foomatic printing filters"; description = "Foomatic printing filters";

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
buildInputs = [ xorgproto libX11 libXext libXrandr ]; buildInputs = [ xorgproto libX11 libXext libXrandr ];
installFlags = "DESTDIR=\${out} PREFIX="; installFlags = [ "DESTDIR=\${out}" "PREFIX=" ];
postPatch = "sed -i '/chmod u+s/d' Makefile"; postPatch = "sed -i '/chmod u+s/d' Makefile";

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
configureFlags = [ "--disable-xmlto" ]; configureFlags = [ "--disable-xmlto" ];
installFlags = "ASOUND_STATE_DIR=$(TMPDIR)/dummy"; installFlags = [ "ASOUND_STATE_DIR=$(TMPDIR)/dummy" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://www.alsa-project.org/; homepage = http://www.alsa-project.org/;

View file

@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
configureFlags = [ "--disable-xmlto" "--with-udev-rules-dir=$(out)/lib/udev/rules.d" ]; configureFlags = [ "--disable-xmlto" "--with-udev-rules-dir=$(out)/lib/udev/rules.d" ];
installFlags = "ASOUND_STATE_DIR=$(TMPDIR)/dummy"; installFlags = [ "ASOUND_STATE_DIR=$(TMPDIR)/dummy" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://www.alsa-project.org/; homepage = http://www.alsa-project.org/;

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
makeFlags = [ "DESTDIR=$(out)"]; makeFlags = [ "DESTDIR=$(out)"];
installFlags = ''PREFIX=""''; installFlags = [ "PREFIX=\"\"" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://sourceforge.net/projects/linuxconsole/; homepage = https://sourceforge.net/projects/linuxconsole/;

View file

@ -61,7 +61,7 @@ stdenv.mkDerivation {
doInstallCheck = false; # same doInstallCheck = false; # same
separateDebugInfo = true; separateDebugInfo = true;
installFlags = "install install-man ASCIIDOC8=1 prefix=$(out)"; installFlags = [ "install" "install-man" "ASCIIDOC8=1" "prefix=$(out)" ];
preFixup = '' preFixup = ''
wrapProgram $out/bin/perf \ wrapProgram $out/bin/perf \

View file

@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
--replace 'man_prefix=$(prefix)' "man_prefix=$doc" --replace 'man_prefix=$(prefix)' "man_prefix=$doc"
''; '';
installFlags = "RAISE_SETFCAP=no"; installFlags = [ "RAISE_SETFCAP=no" ];
postInstall = '' postInstall = ''
rm "$lib"/lib/*.a rm "$lib"/lib/*.a

View file

@ -17,8 +17,8 @@ stdenv.mkDerivation rec {
configureFlags = [ "--enable-shared" ]; configureFlags = [ "--enable-shared" ];
installFlags = "etcdir=$(out)/etc vardir=$(out)/var/lib/isns"; installFlags = [ "etcdir=$(out)/etc" "vardir=$(out)/var/lib/isns" ];
installTargets = "install install_hdrs install_lib"; installTargets = [ "install" "install_hdrs" "install_lib" ];
meta = { meta = {
description = "iSNS server and client for Linux"; description = "iSNS server and client for Linux";

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
makefile = "Makefile.psm"; makefile = "Makefile.psm";
makeFlags = [ "PAXBIN=${paxctl}/bin/paxctl" "BINDIR=$(out)/bin" "RUNDIR=$(out)/lib/paxtest" ]; makeFlags = [ "PAXBIN=${paxctl}/bin/paxctl" "BINDIR=$(out)/bin" "RUNDIR=$(out)/lib/paxtest" ];
installFlags = ''DESTDIR=""''; installFlags = [ "DESTDIR=\"\"" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Test various memory protection measures"; description = "Test various memory protection measures";

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation {
NIX_CFLAGS_COMPILE = "-DSYSV"; NIX_CFLAGS_COMPILE = "-DSYSV";
installFlags = "BINDIR=$(out)/sbin MANDIR=$(out)/share/man INSTALL=install"; installFlags = [ "BINDIR=$(out)/sbin" "MANDIR=$(out)/share/man" "INSTALL=install" ];
preConfigure = preConfigure =
'' ''

View file

@ -20,8 +20,8 @@ stdenv.mkDerivation rec {
outputs = [ "out" "man" "doc" ]; outputs = [ "out" "man" "doc" ];
installFlags = "PREFIX=$(out) RMQ_ERLAPP_DIR=$(out)"; installFlags = [ "PREFIX=$(out)" "RMQ_ERLAPP_DIR=$(out)" ];
installTargets = "install install-man"; installTargets = [ "install" "install-man" ];
runtimePath = stdenv.lib.makeBinPath [getconf erlang socat]; runtimePath = stdenv.lib.makeBinPath [getconf erlang socat];
postInstall = '' postInstall = ''

View file

@ -16,8 +16,9 @@ stdenv.mkDerivation rec {
--replace '-$GIT' "" --replace '-$GIT' ""
''; '';
installFlags = [ "LIBEXECDIR=${placeholder "out"}/modules" ];
preInstall = '' preInstall = ''
installFlags="LIBEXECDIR=$out/modules $installFlags"
mkdir -p $out/modules $out/bin mkdir -p $out/modules $out/bin
''; '';

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
buildInputs = [ zsh ]; buildInputs = [ zsh ];
installFlags = "PREFIX=$(out)"; installFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Fish shell like syntax highlighting for Zsh"; description = "Fish shell like syntax highlighting for Zsh";

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
*/ */
patches = [ ./0001-makefile-fix-installation.patch ]; patches = [ ./0001-makefile-fix-installation.patch ];
installFlags = "DESTDIR=$(out)"; installFlags = [ "DESTDIR=$(out)" ];
meta = { meta = {
homepage = http://members.chello.nl/~k.holtman/afio.html; homepage = http://members.chello.nl/~k.holtman/afio.html;

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
preBuild = "substituteInPlace Makefile --replace g++ c++"; preBuild = "substituteInPlace Makefile --replace g++ c++";
installFlags = "PREFIX=$(out)"; installFlags = [ "PREFIX=$(out)" ];
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=reserved-user-defined-literal"; NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=reserved-user-defined-literal";

View file

@ -40,7 +40,7 @@ stdenv.mkDerivation {
#patches = [ ./purity.patch ]; #patches = [ ./purity.patch ];
# To prevent make install from failing. # To prevent make install from failing.
preInstall = "installFlags=\"OWNER= GROUP= confdir=$out/etc\""; installFlags = [ "OWNER=" "GROUP=" "confdir=${placeholder "out"}/etc" ];
# Install systemd stuff. # Install systemd stuff.
#installTargets = "install install_systemd_generators install_systemd_units install_tmpfiles_configuration"; #installTargets = "install install_systemd_generators install_systemd_units install_tmpfiles_configuration";

View file

@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
cd squashfs-tools cd squashfs-tools
''; '';
installFlags = "INSTALL_DIR=\${out}/bin"; installFlags = [ "INSTALL_DIR=\${out}/bin" ];
makeFlags = [ "XZ_SUPPORT=1" ] makeFlags = [ "XZ_SUPPORT=1" ]
++ stdenv.lib.optional lz4Support "LZ4_SUPPORT=1"; ++ stdenv.lib.optional lz4Support "LZ4_SUPPORT=1";

View file

@ -29,7 +29,7 @@ stdenv.mkDerivation {
preBuild = "cd squashfs-tools"; preBuild = "cd squashfs-tools";
installFlags = "INSTALL_DIR=\${out}/bin"; installFlags = [ "INSTALL_DIR=\${out}/bin" ];
makeFlags = [ "XZ_SUPPORT=1" "ZSTD_SUPPORT=1" ] makeFlags = [ "XZ_SUPPORT=1" "ZSTD_SUPPORT=1" ]
++ stdenv.lib.optional lz4Support "LZ4_SUPPORT=1"; ++ stdenv.lib.optional lz4Support "LZ4_SUPPORT=1";

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
buildInputs = [ git ronn ]; buildInputs = [ git ronn ];
installFlags = "DESTDIR=$(out)"; installFlags = [ "DESTDIR=$(out)" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://github.com/schlomo/automirror; homepage = https://github.com/schlomo/automirror;

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-DIFCONFIGPATH=\"${nettools}/bin/\""; NIX_CFLAGS_COMPILE = "-DIFCONFIGPATH=\"${nettools}/bin/\"";
installFlags = "prefix=\${out}"; installFlags = [ "prefix=\${out}" ];
meta = { meta = {
homepage = http://code.kryo.se/iodine/; homepage = http://code.kryo.se/iodine/;

View file

@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
EOF EOF
''; '';
installFlags = "SYSCONFDIR=$(out)/etc"; installFlags = [ "SYSCONFDIR=$(out)/etc" ];
postInstall = '' postInstall = ''
wrapProgram "$out/sbin/resolvconf" --set PATH "${coreutils}/bin" wrapProgram "$out/sbin/resolvconf" --set PATH "${coreutils}/bin"

View file

@ -30,7 +30,7 @@ stdenv.mkDerivation {
--replace '$(INSTALL) -s' '$(INSTALL) -s --strip-program $(STRIP)' --replace '$(INSTALL) -s' '$(INSTALL) -s --strip-program $(STRIP)'
''; '';
installFlags = "etcdir=$(out)/etc"; installFlags = [ "etcdir=$(out)/etc" ];
installTargets = [ "install" "install-sendmail" ]; installTargets = [ "install" "install-sendmail" ];

View file

@ -12,8 +12,8 @@ stdenv.mkDerivation {
}; };
buildInputs = [ libxml2 file p7zip unrar unzip ]; buildInputs = [ libxml2 file p7zip unrar unzip ];
buildFlags = if stdenv.cc.isClang then [ "CC=clang" ] else null; buildFlags = stdenv.lib.optional stdenv.cc.isClang "CC=clang";
installFlags = "PREFIX=\${out}"; installFlags = [ "PREFIX=\${out}" ];
patchPhase = '' patchPhase = ''
substituteInPlace rarcrack.c --replace "file -i" "${file}/bin/file -i" substituteInPlace rarcrack.c --replace "file -i" "${file}/bin/file -i"

View file

@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
"--localstatedir=/var" "--localstatedir=/var"
]; ];
installFlags = "sysconfdir=$(out)/etc localstatedir=$(TMPDIR)"; installFlags = [ "sysconfdir=$(out)/etc" "localstatedir=$(TMPDIR)" ];
meta = { meta = {
homepage = "https://www.ucolick.org/~will/#super"; homepage = "https://www.ucolick.org/~will/#super";

View file

@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
substituteInPlace docs/Makefile --replace /usr/share /share substituteInPlace docs/Makefile --replace /usr/share /share
''; '';
installFlags = "DESTDIR=$(out)"; installFlags = [ "DESTDIR=$(out)" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A pre-kernel/VMM module that uses Intel(R) TXT to perform a measured and verified launch of an OS kernel/VMM"; description = "A pre-kernel/VMM module that uses Intel(R) TXT to perform a measured and verified launch of an OS kernel/VMM";

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
buildInputs = [ groff ]; buildInputs = [ groff ];
installFlags = ''DESTDIR=$(out)''; installFlags = [ "DESTDIR=$(out)" ];
postConfigure = '' postConfigure = ''
sed -e s@/usr/man/@/share/man/@ -i Makefile sed -e s@/usr/man/@/share/man/@ -i Makefile

View file

@ -12,8 +12,8 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];
unpackPhase = "tar xf $src"; unpackPhase = "tar xf $src";
installTargets = "install install.man"; installTargets = [ "install" "install.man" ];
installFlags = "BINDIR=$(out)/bin MANDIR=$(out)/share/man/man1"; installFlags = [ "BINDIR=$(out)/bin" "MANDIR=$(out)/share/man/man1" ];
preBuild = '' preBuild = ''
sed -i '1i#include <stdlib.h>\n#include <string.h>' untex.c sed -i '1i#include <stdlib.h>\n#include <string.h>' untex.c
mkdir -p $out/bin $out/share/man/man1 mkdir -p $out/bin $out/share/man/man1