Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "pdfcpu"; 5 version = "0.4.1"; 6 7 src = fetchFromGitHub { 8 owner = "pdfcpu"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-4crBl0aQFsSB1D3iuAVcwcet8KSUB3/tUi1kD1VmpAI="; 12 }; 13 14 vendorHash = "sha256-qFupm0ymDw9neAu6Xl3fQ/mMWn9f40Vdf7uOLOBkcaE="; 15 16 # No tests 17 doCheck = false; 18 doInstallCheck = true; 19 installCheckPhase = '' 20 export HOME=$(mktemp -d) 21 echo checking the version print of pdfcpu 22 $out/bin/pdfcpu version | grep ${version} 23 ''; 24 25 subPackages = [ "cmd/pdfcpu" ]; 26 27 meta = with lib; { 28 description = "A PDF processor written in Go"; 29 homepage = "https://pdfcpu.io"; 30 license = licenses.asl20; 31 maintainers = with maintainers; [ doronbehar ]; 32 }; 33}