2022-12-28 21:21:41 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jre, nix-update-script }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "0.1.2";
|
2022-12-28 21:21:41 +00: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";
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-k7ECqrZj7MXbQN5HCcVNcKbLe9LjigQboYs65gf4awA=";
|
2022-12-28 21:21:41 +00: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"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|