depot/third_party/nixpkgs/pkgs/development/libraries/exempi/default.nix
Default email ec92d4d331 Project import generated by Copybara.
GitOrigin-RevId: 540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3
2021-05-28 11:39:13 +02:00

29 lines
883 B
Nix

{ lib, stdenv, fetchurl, fetchpatch, expat, zlib, boost, libiconv, darwin }:
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}"
] ++ lib.optionals (!doCheck) [
"--enable-unittest=no"
];
buildInputs = [ expat zlib boost ]
++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.CoreServices ];
doCheck = stdenv.isLinux && stdenv.is64bit;
meta = with lib; {
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;
};
}