2023-01-19 11:45:09 +00:00
|
|
|
{ lib, stdenv, fetchurl, expat, zlib, boost, libiconv, darwin }:
|
2014-01-09 16:21:19 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-30 18:02:47 +00:00
|
|
|
pname = "exempi";
|
2023-08-17 06:18:58 +00:00
|
|
|
version = "2.6.4";
|
2014-01-09 16:21:19 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-30 18:02:47 +00:00
|
|
|
url = "https://libopenraw.freedesktop.org/download/${pname}-${version}.tar.bz2";
|
2023-08-17 06:18:58 +00:00
|
|
|
sha256 = "sha256-p1FJyWth45zcsEb9XlbYjP7qtuCPiU4V6//ZlECSv9A=";
|
2014-01-09 16:21:19 +00:00
|
|
|
};
|
|
|
|
|
2015-07-27 20:04:20 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-boost=${boost.dev}"
|
2021-05-24 19:04:06 +00:00
|
|
|
] ++ lib.optionals (!doCheck) [
|
|
|
|
"--enable-unittest=no"
|
2015-07-27 20:04:20 +00:00
|
|
|
];
|
2014-10-11 08:51:47 +00:00
|
|
|
|
2017-04-21 05:10:24 +00:00
|
|
|
buildInputs = [ expat zlib boost ]
|
2021-01-21 17:00:13 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.CoreServices ];
|
2014-01-09 16:21:19 +00:00
|
|
|
|
2021-05-24 19:04:06 +00:00
|
|
|
doCheck = stdenv.isLinux && stdenv.is64bit;
|
2022-11-19 22:53:53 +00:00
|
|
|
dontDisableStatic = doCheck;
|
2018-09-28 22:15:53 +00:00
|
|
|
|
2023-01-19 11:45:19 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-11-17 09:41:21 +00:00
|
|
|
description = "An implementation of XMP (Adobe's Extensible Metadata Platform)";
|
2023-01-18 14:54:11 +00:00
|
|
|
homepage = "https://libopenraw.freedesktop.org/exempi/";
|
2017-04-21 05:10:24 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2014-01-09 16:21:19 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|