mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{ lib
|
|
, darwin
|
|
, fetchzip
|
|
, ocamlPackages
|
|
, soupault
|
|
, stdenv
|
|
, testers
|
|
}:
|
|
|
|
let
|
|
pname = "soupault";
|
|
|
|
version = "4.9.0";
|
|
in
|
|
ocamlPackages.buildDunePackage {
|
|
inherit pname version;
|
|
|
|
minimalOCamlVersion = "4.13";
|
|
|
|
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=";
|
|
};
|
|
|
|
nativeBuildInputs = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ darwin.sigtool ];
|
|
|
|
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";
|
|
};
|
|
}
|