lol

Merge pull request #266336 from DamienCassou/signaturepdf

authored by

Damien Cassou and committed by
GitHub
ef355dde 45761053

+58
+58
pkgs/by-name/si/signaturepdf/package.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , php 5 + , makeWrapper 6 + , imagemagick 7 + , librsvg 8 + , potrace 9 + , pdftk 10 + , ghostscript 11 + }: 12 + 13 + stdenv.mkDerivation rec { 14 + pname = "signaturepdf"; 15 + version = "1.5.0"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "24eme"; 19 + repo = "${pname}"; 20 + rev = "v${version}"; 21 + hash = "sha256-7yhvTxpjxHcmRxTE7avM+dN+yz9iVr8Ea/e2yfkBURA="; 22 + }; 23 + 24 + nativeBuildInputs = [ makeWrapper ]; 25 + 26 + dontConfigure = true; 27 + dontBuild = true; 28 + 29 + installPhase = '' 30 + runHook preInstall 31 + mkdir -p $out/share/signaturepdf $out/bin 32 + 33 + cp --target-directory=$out/share/signaturepdf --recursive \ 34 + app.php config locale public templates vendor 35 + 36 + makeWrapper ${lib.getExe php} $out/bin/signaturepdf \ 37 + --inherit-argv0 \ 38 + --chdir $out/share/signaturepdf \ 39 + --prefix PATH : ${lib.makeBinPath [ imagemagick librsvg potrace pdftk ghostscript ]} \ 40 + --run 'port=$1' \ 41 + --run '[ $# -ge 1 ] || ( echo "Usage $0 <port> -d upload_max_filesize=24M -d post_max_size=24M -d max_file_uploads=201" >&2 && exit 1 )' \ 42 + --run 'shift' \ 43 + --run 'echo "You may now open a web browser on http://localhost:$port"' \ 44 + --add-flags '-S "localhost:$port" -t public' 45 + 46 + runHook preInstall 47 + ''; 48 + 49 + meta = with lib; { 50 + description = "Web software for signing PDFs and also organize pages, edit metadata and compress pdf"; 51 + homepage = "https://pdf.24eme.fr/"; 52 + changelog = 53 + "https://github.com/24eme/signaturepdf/releases/tag/v${version}"; 54 + license = licenses.agpl3; 55 + platforms = platforms.all; 56 + maintainers = with maintainers; [ DamienCassou ]; 57 + }; 58 + }