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.

43 lines
1.0 KiB
Nix
Raw Normal View History

{ fetchurl
, jre
, lib
, makeBinaryWrapper
, nix-update-script
, stdenv
}:
2022-12-19 21:23:36 +00:00
stdenv.mkDerivation (finalAttrs: {
2023-08-17 03:24:28 +00:00
version = "0.1.6";
2022-12-19 21:23:36 +00:00
pname = "open-pdf-sign";
src = fetchurl {
url = "https://github.com/open-pdf-sign/open-pdf-sign/releases/download/v${finalAttrs.version}/open-pdf-sign.jar";
hash = "sha256-GpMDgN4P8neHOQsXtg2AKXNeCMnv3nEHH50ZVU0uVvY=";
2022-12-19 21:23:36 +00:00
};
nativeBuildInputs = [
makeBinaryWrapper
];
2022-12-19 21:23:36 +00:00
buildCommand = ''
install -Dm644 $src $out/lib/open-pdf-sign.jar
mkdir -p $out/bin
makeWrapper ${lib.getExe jre} $out/bin/open-pdf-sign \
2022-12-19 21:23:36 +00:00
--add-flags "-jar $out/lib/open-pdf-sign.jar"
'';
2022-12-25 18:33:23 +00:00
passthru = {
updateScript = nix-update-script { };
2022-12-25 18:33:23 +00:00
};
meta = {
2022-12-19 21:23:36 +00:00
description = "Digitally sign PDF files from your commandline";
homepage = "https://github.com/open-pdf-sign/open-pdf-sign";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ drupol ];
platforms = lib.platforms.unix;
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
2022-12-19 21:23:36 +00:00
};
})