blob: ccdd0048e2aaa31bc21231d024d99d868f423db7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ lib, stdenv, fetchurl, expat, zlib, boost, libiconv, darwin }:
stdenv.mkDerivation rec {
pname = "exempi";
version = "2.6.5";
src = fetchurl {
url = "https://libopenraw.freedesktop.org/download/${pname}-${version}.tar.bz2";
sha256 = "sha256-6fmj1Cv/c7XrD3fsIs0BY8PiGUnMQUrR8ZoEZd3kH/4=";
};
configureFlags = [
"--with-boost=${boost.dev}"
] ++ lib.optionals (!doCheck) [
"--enable-unittest=no"
];
buildInputs = [ expat zlib boost ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv darwin.apple_sdk.frameworks.CoreServices ];
doCheck = stdenv.hostPlatform.isLinux && stdenv.hostPlatform.is64bit;
dontDisableStatic = doCheck;
enableParallelBuilding = true;
meta = with lib; {
description = "Implementation of XMP (Adobe's Extensible Metadata Platform)";
mainProgram = "exempi";
homepage = "https://libopenraw.freedesktop.org/exempi/";
platforms = platforms.linux ++ platforms.darwin;
license = licenses.bsd3;
};
}
|