Files
nixpkgs/pkgs/by-name/li/libspectre/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
880 B
Nix

{
fetchurl,
lib,
stdenv,
pkg-config,
ghostscript,
cairo,
}:
stdenv.mkDerivation rec {
pname = "libspectre";
version = "0.2.12";
src = fetchurl {
url = "https://libspectre.freedesktop.org/releases/${pname}-${version}.tar.gz";
hash = "sha256-VadRfNNXK9JWXfDPRQlEoE1Sc7J567NpqJU5GVfw+WA=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
# Need `libgs.so'.
ghostscript
];
doCheck = true;
checkInputs = [
cairo
];
meta = {
homepage = "http://libspectre.freedesktop.org/";
description = "PostScript rendering library";
longDescription = ''
libspectre is a small library for rendering Postscript
documents. It provides a convenient easy to use API for
handling and rendering Postscript documents.
'';
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
};
}