depot/third_party/nixpkgs/pkgs/development/libraries/exempi/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

30 lines
913 B
Nix

{ lib, stdenv, fetchurl, fetchpatch, expat, zlib, boost, libiconv, darwin }:
stdenv.mkDerivation rec {
pname = "exempi";
version = "2.6.2";
src = fetchurl {
url = "https://libopenraw.freedesktop.org/download/${pname}-${version}.tar.bz2";
sha256 = "sha256-TRfUyT3yqV2j4xcsRbelvzF90x2v0cejQBaXKMcInR0=";
};
configureFlags = [
"--with-boost=${boost.dev}"
] ++ lib.optionals (!doCheck) [
"--enable-unittest=no"
];
buildInputs = [ expat zlib boost ]
++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.CoreServices ];
doCheck = stdenv.isLinux && stdenv.is64bit;
dontDisableStatic = doCheck;
meta = with lib; {
description = "An implementation of XMP (Adobe's Extensible Metadata Platform)";
homepage = "https://libopenraw.freedesktop.org/wiki/Exempi/";
platforms = platforms.linux ++ platforms.darwin;
license = licenses.bsd3;
};
}