Merge #131868: exiv2: Add lib/static outputs, remove reference to gcc
This commit is contained in:
@@ -11,13 +11,14 @@
|
|||||||
, graphviz
|
, graphviz
|
||||||
, libxslt
|
, libxslt
|
||||||
, libiconv
|
, libiconv
|
||||||
|
, removeReferencesTo
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "exiv2";
|
pname = "exiv2";
|
||||||
version = "0.27.5";
|
version = "0.27.5";
|
||||||
|
|
||||||
outputs = [ "out" "dev" "doc" "man" ];
|
outputs = [ "out" "lib" "dev" "doc" "man" "static" ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "exiv2";
|
owner = "exiv2";
|
||||||
@@ -32,6 +33,7 @@ stdenv.mkDerivation rec {
|
|||||||
gettext
|
gettext
|
||||||
graphviz
|
graphviz
|
||||||
libxslt
|
libxslt
|
||||||
|
removeReferencesTo
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
||||||
@@ -94,8 +96,15 @@ stdenv.mkDerivation rec {
|
|||||||
rm *
|
rm *
|
||||||
mv .exiv2 exiv2
|
mv .exiv2 exiv2
|
||||||
)
|
)
|
||||||
|
|
||||||
|
mkdir -p $static/lib
|
||||||
|
mv $lib/lib/*.a $static/lib/
|
||||||
|
|
||||||
|
remove-references-to -t ${stdenv.cc.cc} $lib/lib/*.so.*.*.* $out/bin/exiv2 $static/lib/*.a
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
disallowedReferences = [ stdenv.cc.cc ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://www.exiv2.org/";
|
homepage = "https://www.exiv2.org/";
|
||||||
description = "A library and command-line utility to manage image metadata";
|
description = "A library and command-line utility to manage image metadata";
|
||||||
|
|||||||
Reference in New Issue
Block a user