2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenv, fetchurl, expat, zlib, boost, libiconv, darwin }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "exempi";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "2.6.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://libopenraw.freedesktop.org/download/${pname}-${version}.tar.bz2";
|
2024-02-29 20:09:43 +00:00
|
|
|
sha256 = "sha256-6fmj1Cv/c7XrD3fsIs0BY8PiGUnMQUrR8ZoEZd3kH/4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-boost=${boost.dev}"
|
2021-05-28 09:39:13 +00:00
|
|
|
] ++ lib.optionals (!doCheck) [
|
|
|
|
"--enable-unittest=no"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
doCheck = stdenv.isLinux && stdenv.is64bit;
|
2022-11-21 17:40:18 +00:00
|
|
|
dontDisableStatic = doCheck;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Implementation of XMP (Adobe's Extensible Metadata Platform)";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "exempi";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://libopenraw.freedesktop.org/exempi/";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|