summary refs log tree commit diff
path: root/pkgs/development/libraries/exiv2/default.nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-07-28 21:06:16 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-07-28 21:24:34 +0200
commitaeed03b6f09b215efdc2152a072f73c27428cb41 (patch)
tree39aae43e86c7e133b63d7ea5c9e48aaecc944951 /pkgs/development/libraries/exiv2/default.nix
parent9f038da2bbbb0a0f693d4acbcb615ea95657daab (diff)
downloadnixpkgs-aeed03b6f09b215efdc2152a072f73c27428cb41.tar
nixpkgs-aeed03b6f09b215efdc2152a072f73c27428cb41.tar.gz
nixpkgs-aeed03b6f09b215efdc2152a072f73c27428cb41.tar.bz2
nixpkgs-aeed03b6f09b215efdc2152a072f73c27428cb41.tar.lz
nixpkgs-aeed03b6f09b215efdc2152a072f73c27428cb41.tar.xz
nixpkgs-aeed03b6f09b215efdc2152a072f73c27428cb41.tar.zst
nixpkgs-aeed03b6f09b215efdc2152a072f73c27428cb41.zip
exiv2: More outputs, remove reference to gcc
Diffstat (limited to 'pkgs/development/libraries/exiv2/default.nix')
-rw-r--r--pkgs/development/libraries/exiv2/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/development/libraries/exiv2/default.nix b/pkgs/development/libraries/exiv2/default.nix
index 930bfc99f28..54f92429f90 100644
--- a/pkgs/development/libraries/exiv2/default.nix
+++ b/pkgs/development/libraries/exiv2/default.nix
@@ -11,13 +11,14 @@
 , graphviz
 , libxslt
 , libiconv
+, removeReferencesTo
 }:
 
 stdenv.mkDerivation rec {
   pname = "exiv2";
   version = "0.27.4";
 
-  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;
@@ -90,8 +92,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";