nixpkgs-suyu/pkgs/applications/graphics/pdfcpu/default.nix

34 lines
785 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-06-20 21:13:18 +02:00
buildGoModule rec {
pname = "pdfcpu";
2021-12-08 01:05:59 +01:00
version = "0.3.13";
2019-06-20 21:13:18 +02:00
src = fetchFromGitHub {
2019-08-12 10:16:39 +02:00
owner = "pdfcpu";
2019-06-20 21:13:18 +02:00
repo = pname;
rev = "v${version}";
2021-12-08 01:05:59 +01:00
sha256 = "sha256-CFKo8YEAXAniX+jL2A0naJUOn3KAWwcrPsabdiZevhI=";
2019-06-20 21:13:18 +02:00
};
2021-04-11 15:13:49 +02:00
vendorSha256 = "sha256-p/2Bu5h2P3ebgvSC12jdR2Zpd27xCFwtB/KZV0AULAM=";
2019-06-20 21:13:18 +02:00
2020-09-02 19:24:47 +02:00
# No tests
doCheck = false;
2021-12-08 06:04:56 +01:00
doInstallCheck = true;
installCheckPhase = ''
export HOME=$(mktemp -d)
echo checking the version print of pdfcpu
$out/bin/pdfcpu version | grep ${version}
'';
2019-06-20 21:13:18 +02:00
subPackages = [ "cmd/pdfcpu" ];
meta = with lib; {
2019-06-20 21:13:18 +02:00
description = "A PDF processor written in Go";
homepage = "https://pdfcpu.io";
2019-06-20 21:13:18 +02:00
license = licenses.asl20;
maintainers = with maintainers; [ doronbehar ];
};
}