3
0
Fork 0
forked from mirrors/nixpkgs

treewide: installTargets is a list

This commit is contained in:
Robin Gloster 2019-11-04 12:23:53 +01:00 committed by Jan Tojnar
parent ba0a3edf7f
commit 755db0b689
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4
18 changed files with 20 additions and 38 deletions

View file

@ -97,7 +97,7 @@ stdenv.mkDerivation rec {
done
'';
installTargets = "tags install";
installTargets = [ "tags" "install" ];
postInstall = ''
mkdir -p $out/share/emacs/site-lisp

View file

@ -18,7 +18,7 @@ stdenv.mkDerivation {
patches = [ ./10_fix_buffer_overflow_wordole_c.patch ];
installTargets = "global_install";
installTargets = [ "global_install" ];
meta = {
homepage = http://www.winfield.demon.nl/;

View file

@ -225,10 +225,7 @@ stdenv.mkDerivation ({
doCheck = false; # requires a lot of tools, causes a dependency cycle for stdenv
installTargets =
if stripped
then "install-strip"
else "install";
installTargets = optional stripped "install-strip";
# https://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";

View file

@ -231,10 +231,7 @@ stdenv.mkDerivation ({
doCheck = false; # requires a lot of tools, causes a dependency cycle for stdenv
installTargets =
if stripped
then "install-strip"
else "install";
installTargets = optional stripped "install-strip";
# https://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";

View file

@ -242,10 +242,7 @@ stdenv.mkDerivation ({
doCheck = false; # requires a lot of tools, causes a dependency cycle for stdenv
installTargets =
if stripped
then "install-strip"
else "install";
installTargets = optional stripped "install-strip";
# https://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";

View file

@ -250,10 +250,7 @@ stdenv.mkDerivation ({
doCheck = false; # requires a lot of tools, causes a dependency cycle for stdenv
installTargets =
if stripped
then "install-strip"
else "install";
installTargets = optional stripped "install-strip";
# https://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";

View file

@ -221,10 +221,7 @@ stdenv.mkDerivation ({
doCheck = false; # requires a lot of tools, causes a dependency cycle for stdenv
installTargets =
if stripped
then "install-strip"
else "install";
installTargets = optional stripped "install-strip";
# https://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";

View file

@ -207,10 +207,7 @@ stdenv.mkDerivation ({
dontStrip = !stripped;
installTargets =
if stripped
then "install-strip"
else "install";
installTargets = optional stripped "install-strip";
# https://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";

View file

@ -24,7 +24,7 @@
, configureFlags ? [], configurePhase ? "", preConfigure ? "", postConfigure ? ""
, buildPhase ? "", preBuild ? "", postBuild ? ""
, installPhase ? "", preInstall ? "", postInstall ? ""
, installTargets ? "install install-docs"
, installTargets ? [ "install" "install-docs" ]
, checkPhase ? "", preCheck ? "", postCheck ? ""
, fixupPhase ? "", preFixup ? "", postFixup ? ""
, meta ? {}
@ -141,7 +141,7 @@ in stdenv.mkDerivation ({
// optionalAttrs (preCheck != "") { inherit preCheck; }
// optionalAttrs (postCheck != "") { inherit postCheck; }
// optionalAttrs (installPhase != "") { inherit installPhase; }
// optionalAttrs (installTargets != "") { inherit installTargets; }
// optionalAttrs (installTargets != []) { inherit installTargets; }
// optionalAttrs (preInstall != "") { inherit preInstall; }
// optionalAttrs (fixupPhase != "") { inherit fixupPhase; }
// optionalAttrs (preFixup != "") { inherit preFixup; }

View file

@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
doCheck = true;
preInstall = "rm libcryptopp.a"; # built for checks but we don't install static lib into the nix store
installTargets = "install-lib";
installTargets = [ "install-lib" ];
installFlags = [ "LDCONF=true" ];
postInstall = optionalString (!stdenv.hostPlatform.isDarwin) ''
ln -sr $out/lib/libcryptopp.so.${version} $out/lib/libcryptopp.so.${versions.majorMinor version}

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
buildFlags = stdenv.lib.optional stdenv.isDarwin "LDFLAGS= CFLAGS_EXTRA=";
installFlags = [ "PREFIX=$(out)" ];
installTargets = if stdenv.isDarwin then "install-osx" else "install";
installTargets = stdenv.lib.optional stdenv.isDarwin "install-osx";
doCheck = true;

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation {
buildInputs = [ ocaml findlib ];
installTargets = "ocamlfind-install";
installTargets = [ "ocamlfind-install" ];
createFindlibDestdir = true;

View file

@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
"--with-libtool-opts=${stdenv.lib.optionalString enableShared "-shared"}"
];
installTargets = "install${stdenv.lib.optionalString withLibrary "-full"}";
installTargets = [ "install${stdenv.lib.optionalString withLibrary "-full"}" ];
meta = {
homepage = https://invisible-island.net/dialog/dialog.html;

View file

@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
substituteInPlace foomaticrip.c --replace /bin/bash ${stdenv.shell}
'';
installTargets = "install-cups";
installTargets = [ "install-cups" ];
installFlags = [
"CUPS_FILTERS=$(out)/lib/cups/filter"

View file

@ -67,7 +67,7 @@ stdenv.mkDerivation rec {
preInstall = ''
mkdir -p "$out/lib/udev/rules.d"
'';
installTargets = "install udev-install";
installTargets = [ "install" "udev-install" ];
postFixup = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath"

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
# Perl for running test suite.
buildInputs = [ perl ];
installTargets = "install install.man";
installTargets = [ "install" "install.man" ];
doCheck = true;

View file

@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
"--disable-checks"
];
installTargets = "install-staged"; # install does also try to change permissions of /etc/* files
installTargets = [ "install-staged" ]; # install does also try to change permissions of /etc/* files
# fcron tries to install pid into system directory on install
installFlags = [

View file

@ -11242,7 +11242,7 @@ let
outputs = [ "out" "dev" ]; # no "devdoc"
installTargets = "install";
installTargets = [ "install" ];
meta = with stdenv.lib; {
homepage = "https://www.mhonarc.org/";
@ -20609,7 +20609,7 @@ let
};
propagatedBuildInputs = [ XMLParser XMLSAX ];
# Avoid creating perllocal.pod, which contains a timestamp
installTargets = "pure_install";
installTargets = [ "pure_install" ];
meta = {
description = "SAX Driver for Expat";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];