Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, pkg-config 2, freetype, glib, imagemagick, libjpeg, libpng, libxml2, zlib 3}: 4 5stdenv.mkDerivation rec { 6 pname = "libwmf"; 7 version = "0.2.13"; 8 9 outputs = [ "out" "dev" ]; 10 11 src = fetchFromGitHub { 12 owner = "caolanm"; 13 repo = pname; 14 rev = "v${version}"; 15 sha256 = "sha256-vffohx57OvQKu8DfNXNBm9bPsA8KgkQWs/3mmFn7L6M="; 16 }; 17 18 nativeBuildInputs = [ pkg-config ]; 19 buildInputs = [ zlib imagemagick libpng glib freetype libjpeg libxml2 ]; 20 enableParallelBuilding = true; 21 22 meta = with lib; { 23 description = "WMF library from wvWare"; 24 homepage = "https://wvware.sourceforge.net/libwmf.html"; 25 downloadPage = "https://github.com/caolanm/libwmf/releases"; 26 license = licenses.gpl2Plus; 27 platforms = platforms.unix; 28 }; 29}