nixpkgs/pkgs/tools/misc/open-pdf-sign/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1,014 B
Nix
Raw Normal View History

2022-12-25 19:33:23 +01:00
{ lib, stdenv, fetchurl, makeWrapper, jre, nix-update-script }:
2022-12-19 22:23:36 +01:00
stdenv.mkDerivation rec {
2022-12-25 19:33:23 +01:00
version = "0.1.1";
2022-12-19 22:23:36 +01:00
pname = "open-pdf-sign";
src = fetchurl {
url = "https://github.com/open-pdf-sign/open-pdf-sign/releases/download/v${version}/open-pdf-sign.jar";
2022-12-25 19:33:23 +01:00
sha256 = "sha256-n8ua/wUz/PquB7viaFqBu2XX1KQYago4s6JUwYRLvNA=";
2022-12-19 22:23:36 +01:00
};
nativeBuildInputs = [ makeWrapper ];
buildCommand = ''
install -Dm644 $src $out/lib/open-pdf-sign.jar
mkdir -p $out/bin
makeWrapper ${jre}/bin/java $out/bin/open-pdf-sign \
--add-flags "-jar $out/lib/open-pdf-sign.jar"
'';
2022-12-25 19:33:23 +01:00
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
2022-12-19 22:23:36 +01:00
meta = with lib; {
description = "Digitally sign PDF files from your commandline";
homepage = "https://github.com/open-pdf-sign/open-pdf-sign";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.asl20;
maintainers = with maintainers; [ drupol ];
platforms = platforms.unix;
};
}