blob: e2b69cc7b86bc1cb1a17cc4cc012f267bbd30b93 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{ lib
, fetchFromGitea
, fetchpatch
, ocamlPackages
, soupault
, testers
}:
let
pname = "soupault";
version = "4.7.0";
in
ocamlPackages.buildDunePackage {
inherit pname version;
minimalOCamlVersion = "4.13";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "PataphysicalSociety";
repo = pname;
rev = version;
sha256 = "nwXyOwDUbkMnyHPrvCvmToyONdbg5kJm2mt5rWrB6HA=";
};
patches = lib.lists.optional
(lib.strings.versionAtLeast "2.0.0" ocamlPackages.camomile.version)
(fetchpatch {
name = "camomile-1_x";
url = "https://files.baturin.org/software/soupault/soupault-4.7.0-camomile-1.x.patch";
sha256 = "V7+OUjXqWtXwjUa35MlY9iyAlqOkst9Th7DgfDXkXZg=";
});
buildInputs = with ocamlPackages; [
base64
camomile
containers
csv
digestif
ezjsonm
fileutils
fmt
jingoo
lambdasoup
lua-ml
logs
markup
odate
otoml
re
spelll
tsort
yaml
];
passthru.tests.version = testers.testVersion {
package = soupault;
command = "soupault --version-number";
};
meta = {
description = "A tool that helps you create and manage static websites";
homepage = "https://soupault.app/";
changelog = "https://codeberg.org/PataphysicalSociety/soupault/src/branch/main/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ toastal ];
mainProgram = "soupault";
};
}
|