Merge #131868: exiv2: Add lib/static outputs, remove reference to gcc

This commit is contained in:
Vladimír Čunát 2022-02-18 15:02:38 +01:00
commit 2c1ce60477
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -11,13 +11,14 @@
, graphviz
, libxslt
, libiconv
, removeReferencesTo
}:
stdenv.mkDerivation rec {
pname = "exiv2";
version = "0.27.5";
outputs = [ "out" "dev" "doc" "man" ];
outputs = [ "out" "lib" "dev" "doc" "man" "static" ];
src = fetchFromGitHub {
owner = "exiv2";
@ -32,6 +33,7 @@ stdenv.mkDerivation rec {
gettext
graphviz
libxslt
removeReferencesTo
];
buildInputs = lib.optional stdenv.isDarwin libiconv;
@ -94,8 +96,15 @@ stdenv.mkDerivation rec {
rm *
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; {
homepage = "https://www.exiv2.org/";
description = "A library and command-line utility to manage image metadata";