2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, expat, zlib, boost, libiconv, darwin }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "exempi";
|
|
|
|
version = "2.5.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://libopenraw.freedesktop.org/download/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "07i29xmg8bqriviaf4vi1mwha4lrw85kfla29cfym14fp3z8aqa0";
|
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-boost=${boost.dev}"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ expat zlib boost ]
|
2021-02-05 17:12:51 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.CoreServices ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = stdenv.isLinux;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|