libpng: improve multi-output handling
This commit is contained in:
parent
b993903ce8
commit
ae154ae8ef
@ -21,17 +21,14 @@ in stdenv.mkDerivation rec {
|
|||||||
postPatch = whenPatched "gunzip < ${patch_src} | patch -Np1";
|
postPatch = whenPatched "gunzip < ${patch_src} | patch -Np1";
|
||||||
|
|
||||||
outputs = [ "dev" "out" "man" ];
|
outputs = [ "dev" "out" "man" ];
|
||||||
|
outputBin = "dev";
|
||||||
|
|
||||||
propagatedBuildInputs = [ zlib ];
|
propagatedBuildInputs = [ zlib ];
|
||||||
|
|
||||||
preConfigure = "export bin=$dev";
|
|
||||||
|
|
||||||
# it's hard to cross-run tests and some check programs didn't compile anyway
|
# it's hard to cross-run tests and some check programs didn't compile anyway
|
||||||
makeFlags = stdenv.lib.optional (!doCheck) "check_PROGRAMS=";
|
makeFlags = stdenv.lib.optional (!doCheck) "check_PROGRAMS=";
|
||||||
doCheck = ! stdenv ? cross;
|
doCheck = ! stdenv ? cross;
|
||||||
|
|
||||||
postInstall = ''mv "$out/bin" "$dev/bin"'';
|
|
||||||
|
|
||||||
passthru = { inherit zlib; };
|
passthru = { inherit zlib; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user