Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 32 lines 930 B view raw
1{ lib, stdenv, fetchurl, expat, zlib, boost, libiconv, darwin }: 2 3stdenv.mkDerivation rec { 4 pname = "exempi"; 5 version = "2.6.3"; 6 7 src = fetchurl { 8 url = "https://libopenraw.freedesktop.org/download/${pname}-${version}.tar.bz2"; 9 sha256 = "sha256-sHSdsYqeeM93FzeVSoOM3NsdVBWIi6wbqcr4y6d8ZWw="; 10 }; 11 12 configureFlags = [ 13 "--with-boost=${boost.dev}" 14 ] ++ lib.optionals (!doCheck) [ 15 "--enable-unittest=no" 16 ]; 17 18 buildInputs = [ expat zlib boost ] 19 ++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.CoreServices ]; 20 21 doCheck = stdenv.isLinux && stdenv.is64bit; 22 dontDisableStatic = doCheck; 23 24 enableParallelBuilding = true; 25 26 meta = with lib; { 27 description = "An implementation of XMP (Adobe's Extensible Metadata Platform)"; 28 homepage = "https://libopenraw.freedesktop.org/exempi/"; 29 platforms = platforms.linux ++ platforms.darwin; 30 license = licenses.bsd3; 31 }; 32}