mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{ fetchurl
|
|
, jre
|
|
, lib
|
|
, makeBinaryWrapper
|
|
, nix-update-script
|
|
, stdenv
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
version = "0.2.0";
|
|
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-W4WymhjLrHtNK5XY8aahpZOIIh/Qp9scE3zybXF6/9o=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
makeBinaryWrapper
|
|
];
|
|
|
|
buildCommand = ''
|
|
install -Dm644 $src $out/lib/open-pdf-sign.jar
|
|
|
|
mkdir -p $out/bin
|
|
makeWrapper ${lib.getExe jre} $out/bin/open-pdf-sign \
|
|
--add-flags "-jar $out/lib/open-pdf-sign.jar"
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
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 ];
|
|
mainProgram = "open-pdf-sign";
|
|
};
|
|
})
|