nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

gotenberg: 8.9.1 -> 8.16.0

authored by pyrox.dev and committed by

Sandro Jäckel 348d126d 8b0d463c

+17 -4
+17 -4
pkgs/by-name/go/gotenberg/package.nix
··· 12 12 makeFontsConf, 13 13 liberation_ttf_v2, 14 14 exiftool, 15 + pdfcpu, 15 16 nixosTests, 16 17 nix-update-script, 17 18 }: ··· 24 23 in 25 24 buildGoModule rec { 26 25 pname = "gotenberg"; 27 - version = "8.9.1"; 26 + version = "8.16.0"; 28 27 29 28 src = fetchFromGitHub { 30 29 owner = "gotenberg"; 31 30 repo = "gotenberg"; 32 31 tag = "v${version}"; 33 - hash = "sha256-y54DtOYIzFAk05TvXFcLdStfAXim3sVHBkW+R8CrtMM="; 32 + hash = "sha256-m8aDhfcUa3QFr+7hzlQFL2wPfcx5RE+3dl5RHzWwau0="; 34 33 }; 35 34 36 - vendorHash = "sha256-BYcdqZ8TNEG6popRt+Dg5xW5Q7RmYvdlV+niUNenRG0="; 35 + vendorHash = "sha256-EM+Rpo4Zf+aqA56aFeuQ0tbvpTgZhmfv+B7qYI6PXWc="; 37 36 38 37 postPatch = '' 39 38 find ./pkg -name '*_test.go' -exec sed -i -e 's#/tests#${src}#g' {} \; 39 + substituteInPlace pkg/gotenberg/fs_test.go \ 40 + --replace-fail "/tmp" "/build" 40 41 ''; 41 42 42 43 nativeBuildInputs = [ makeBinaryWrapper ]; ··· 55 52 pdftk 56 53 qpdf 57 54 unoconv 55 + pdfcpu 58 56 mktemp 59 57 jre' 60 58 ]; ··· 66 62 export QPDF_BIN_PATH=${getExe qpdf} 67 63 export UNOCONVERTER_BIN_PATH=${getExe unoconv} 68 64 export EXIFTOOL_BIN_PATH=${getExe exiftool} 65 + export PDFCPU_BIN_PATH=${getExe pdfcpu} 69 66 # LibreOffice needs all of these set to work properly 70 67 export LIBREOFFICE_BIN_PATH=${libreoffice'} 71 68 export FONTCONFIG_FILE=${fontsConf} ··· 75 70 ''; 76 71 77 72 # These tests fail with a panic, so disable them. 78 - checkFlags = [ "-skip=^TestChromiumBrowser_(screenshot|pdf)$" ]; 73 + checkFlags = 74 + let 75 + skippedTests = [ 76 + "TestChromiumBrowser_(screenshot|pdf)" 77 + "TestNewContext" 78 + ]; 79 + in 80 + [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; 79 81 80 82 preFixup = '' 81 83 wrapProgram $out/bin/gotenberg \ ··· 90 78 --set QPDF_BIN_PATH "${getExe qpdf}" \ 91 79 --set UNOCONVERTER_BIN_PATH "${getExe unoconv}" \ 92 80 --set EXIFTOOL_BIN_PATH "${getExe exiftool}" \ 81 + --set PDFCPU_BIN_PATH "${getExe pdfcpu}" \ 93 82 --set JAVA_HOME "${jre'}" 94 83 ''; 95 84