2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
2024-04-21 15:54:59 +00:00
|
|
|
, darwin
|
|
|
|
, fetchzip
|
2022-05-18 14:49:53 +00:00
|
|
|
, ocamlPackages
|
2022-10-30 15:09:59 +00:00
|
|
|
, soupault
|
2024-04-21 15:54:59 +00:00
|
|
|
, stdenv
|
2022-10-30 15:09:59 +00:00
|
|
|
, testers
|
2022-05-18 14:49:53 +00:00
|
|
|
}:
|
2021-08-27 14:25:00 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
let
|
2021-08-27 14:25:00 +00:00
|
|
|
pname = "soupault";
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "4.9.0";
|
2023-02-02 18:25:31 +00:00
|
|
|
in
|
|
|
|
ocamlPackages.buildDunePackage {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
minimalOCamlVersion = "4.13";
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
src = fetchzip {
|
|
|
|
urls = [
|
|
|
|
"https://github.com/PataphysicalSociety/soupault/archive/${version}.tar.gz"
|
|
|
|
"https://codeberg.org/PataphysicalSociety/soupault/archive/${version}.tar.gz"
|
|
|
|
];
|
|
|
|
hash = "sha256-vGTJUbAeYs/EYFykNSmCc4c9G66/Lz3BsUYnZQ8feFo=";
|
2021-08-27 14:25:00 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ darwin.sigtool ];
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
buildInputs = with ocamlPackages; [
|
|
|
|
base64
|
2022-05-18 14:49:53 +00:00
|
|
|
camomile
|
2021-08-27 14:25:00 +00:00
|
|
|
containers
|
2023-10-09 19:29:22 +00:00
|
|
|
csv
|
2023-02-02 18:25:31 +00:00
|
|
|
digestif
|
2021-08-27 14:25:00 +00:00
|
|
|
ezjsonm
|
|
|
|
fileutils
|
|
|
|
fmt
|
|
|
|
jingoo
|
|
|
|
lambdasoup
|
|
|
|
lua-ml
|
|
|
|
logs
|
2021-10-28 06:52:43 +00:00
|
|
|
markup
|
2021-08-27 14:25:00 +00:00
|
|
|
odate
|
|
|
|
otoml
|
|
|
|
re
|
|
|
|
spelll
|
|
|
|
tsort
|
|
|
|
yaml
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = soupault;
|
|
|
|
command = "soupault --version-number";
|
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
meta = {
|
2021-08-27 14:25:00 +00:00
|
|
|
description = "A tool that helps you create and manage static websites";
|
|
|
|
homepage = "https://soupault.app/";
|
2022-06-16 17:23:12 +00:00
|
|
|
changelog = "https://codeberg.org/PataphysicalSociety/soupault/src/branch/main/CHANGELOG.md";
|
2022-05-18 14:49:53 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ toastal ];
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "soupault";
|
2021-08-27 14:25:00 +00:00
|
|
|
};
|
|
|
|
}
|