nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 expat,
6 zlib,
7 boost,
8 libiconv,
9}:
10
11stdenv.mkDerivation rec {
12 pname = "exempi";
13 version = "2.6.6";
14
15 src = fetchurl {
16 url = "https://libopenraw.freedesktop.org/download/${pname}-${version}.tar.bz2";
17 sha256 = "sha256-dRO35Cw72QpY132TjGDS6Hxo+BZG58uLEtcf4zQ5HG8=";
18 };
19
20 configureFlags = [
21 "--with-boost=${boost.dev}"
22 ]
23 ++ lib.optionals (!doCheck) [
24 "--enable-unittest=no"
25 ];
26
27 buildInputs = [
28 expat
29 zlib
30 boost
31 ]
32 ++ lib.optionals stdenv.hostPlatform.isDarwin [
33 libiconv
34 ];
35
36 doCheck = stdenv.hostPlatform.isLinux && stdenv.hostPlatform.is64bit;
37 dontDisableStatic = doCheck;
38
39 enableParallelBuilding = true;
40
41 meta = {
42 description = "Implementation of XMP (Adobe's Extensible Metadata Platform)";
43 mainProgram = "exempi";
44 homepage = "https://libopenraw.freedesktop.org/exempi/";
45 platforms = lib.platforms.linux ++ lib.platforms.darwin;
46 license = lib.licenses.bsd3;
47 };
48}