depot/pkgs/development/libraries/pdfhummus/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

56 lines
944 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, qtbase
, zlib
, freetype
, libjpeg
, libtiff
, libpng
}:
stdenv.mkDerivation rec {
pname = "pdfhummus";
version = "4.6.7";
src = fetchFromGitHub {
owner = "galkahana";
repo = "PDF-Writer";
rev = "v${version}";
hash = "sha256-XOoMh1YL4wJQ6Uliy0sdcrlqJbbbnZ0gmjuaXS1h+qQ=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
qtbase
];
propagatedBuildInputs = [
zlib
freetype
libjpeg
libtiff
libpng
];
dontWrapQtApps = true;
cmakeFlags = [
"-DUSE_BUNDLED=OFF"
# Use bundled LibAesgm
"-DUSE_UNBUNDLED_FALLBACK_BUNDLED=ON"
];
meta = with lib; {
description = "Fast and Free C++ Library for Creating, Parsing an Manipulating PDF Files and Streams";
homepage = "https://www.pdfhummus.com";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ rewine ];
};
}