mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
34 lines
782 B
Nix
34 lines
782 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "pdfcpu";
|
|
version = "0.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pdfcpu";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-4crBl0aQFsSB1D3iuAVcwcet8KSUB3/tUi1kD1VmpAI=";
|
|
};
|
|
|
|
vendorHash = "sha256-qFupm0ymDw9neAu6Xl3fQ/mMWn9f40Vdf7uOLOBkcaE=";
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
export HOME=$(mktemp -d)
|
|
echo checking the version print of pdfcpu
|
|
$out/bin/pdfcpu version | grep ${version}
|
|
'';
|
|
|
|
subPackages = [ "cmd/pdfcpu" ];
|
|
|
|
meta = with lib; {
|
|
description = "A PDF processor written in Go";
|
|
homepage = "https://pdfcpu.io";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
};
|
|
}
|