infrastructure/machines/compute01/stirling-pdf/default.nix
Tom Hubrecht d553d6efe7
All checks were successful
Check meta / check_meta (pull_request) Successful in 25s
Check meta / check_dns (pull_request) Successful in 47s
build configuration / build_vault01 (pull_request) Successful in 1m27s
build configuration / build_storage01 (pull_request) Successful in 1m29s
build configuration / build_compute01 (pull_request) Successful in 1m38s
build configuration / build_web02 (pull_request) Successful in 1m11s
build configuration / build_rescue01 (pull_request) Successful in 1m8s
build configuration / build_web01 (pull_request) Successful in 1m44s
build configuration / push_to_cache (pull_request) Successful in 3m2s
build configuration / build_rescue01 (push) Successful in 1m21s
build configuration / build_web02 (push) Successful in 1m26s
build configuration / build_compute01 (push) Successful in 1m28s
build configuration / build_storage01 (push) Successful in 1m28s
build configuration / build_vault01 (push) Successful in 1m40s
lint / check (push) Successful in 23s
build configuration / build_web01 (push) Successful in 1m47s
build configuration / push_to_cache (push) Successful in 2m53s
fix(stirling-pdf): Vendor patches and update version
2024-07-06 11:36:54 +02:00

57 lines
1.3 KiB
Nix

{ pkgs, nixpkgs, ... }:
let
dgn-id = "5891e1bbda792e0546f8d785cdd4d3f570a01579";
in
{
services.stirling-pdf = {
enable = true;
package = nixpkgs.unstable.stirling-pdf.overrideAttrs (old: rec {
version = "0.26.1";
src = pkgs.fetchFromGitHub {
owner = "Stirling-Tools";
repo = "Stirling-PDF";
rev = "v${version}";
hash = "sha256-msxP2n8Varc7/h9RVwYRBuD253JZu6/p7zQC1lmNmqc=";
};
deps = old.deps.overrideAttrs (_: {
patches = [
./01-spotless.patch
./05-java-output-test.patch
];
doCheck = false;
outputHash = "sha256-i2PJmsuJ8jqTUNwj4HoiWynaK4LlLrqjIZ67rSSYypc=";
});
patches = [
./01-spotless.patch
./02-propsfile.patch
./03-jar-timestamps.patch
(pkgs.substituteAll {
src = ./04-local-maven-deps.patch;
inherit deps;
})
./05-java-output-test.patch
(builtins.fetchurl "https://git.dgnum.eu/DGNum/Stirling-PDF/commit/${dgn-id}.patch")
];
});
domain = "pdf.dgnum.eu";
port = 8084;
nginx = {
enableACME = true;
forceSSL = true;
};
environment = {
UI_APP_NAME = "DGNum PDF";
SYSTEM_DEFAULT_LOCALE = "fr-FR";
};
};
}