forked from DGNum/infrastructure
fix(stirling-pdf): Make it build again
This commit is contained in:
parent
3014fb79dc
commit
99825b89ca
1 changed files with 4 additions and 31 deletions
|
@ -1,42 +1,15 @@
|
||||||
{ pkgs, nixpkgs, ... }:
|
{ nixpkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
dgn-id = "5891e1bbda792e0546f8d785cdd4d3f570a01579";
|
dgn-id = "f756a0f47e704db815a7af6786f6eb0aec628d6b";
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
services.stirling-pdf = {
|
services.stirling-pdf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
package = nixpkgs.unstable.stirling-pdf.overrideAttrs (old: rec {
|
package = nixpkgs.unstable.stirling-pdf.overrideAttrs (old: {
|
||||||
version = "0.26.1";
|
patches = (old.patches or [ ]) ++ [
|
||||||
|
|
||||||
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")
|
(builtins.fetchurl "https://git.dgnum.eu/DGNum/Stirling-PDF/commit/${dgn-id}.patch")
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue