depot/third_party/nixpkgs/pkgs/development/libraries/exempi/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

33 lines
958 B
Nix

{ 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.isDarwin [ libiconv darwin.apple_sdk.frameworks.CoreServices ];
doCheck = stdenv.isLinux && stdenv.is64bit;
dontDisableStatic = doCheck;
enableParallelBuilding = true;
meta = with lib; {
description = "An implementation of XMP (Adobe's Extensible Metadata Platform)";
mainProgram = "exempi";
homepage = "https://libopenraw.freedesktop.org/exempi/";
platforms = platforms.linux ++ platforms.darwin;
license = licenses.bsd3;
};
}