nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 36 lines 904 B view raw
1{ fetchurl, lib, stdenv, pkg-config, ghostscript, cairo }: 2 3stdenv.mkDerivation rec { 4 pname = "libspectre"; 5 version = "0.2.7"; 6 7 src = fetchurl { 8 url = "https://libspectre.freedesktop.org/releases/${pname}-${version}.tar.gz"; 9 sha256 = "1v63lqc6bhhxwkpa43qmz8phqs8ci4dhzizyy16d3vkb20m846z8"; 10 }; 11 12 patches = [ ./libspectre-0.2.7-gs918.patch ]; 13 14 nativeBuildInputs = [ pkg-config ]; 15 16 buildInputs = [ 17 # Need `libgs.so'. 18 ghostscript cairo /*for tests*/ 19 ]; 20 21 doCheck = true; 22 23 meta = { 24 homepage = "http://libspectre.freedesktop.org/"; 25 description = "PostScript rendering library"; 26 27 longDescription = '' 28 libspectre is a small library for rendering Postscript 29 documents. It provides a convenient easy to use API for 30 handling and rendering Postscript documents. 31 ''; 32 33 license = lib.licenses.gpl2Plus; 34 platforms = lib.platforms.unix; 35 }; 36}