depot/third_party/nixpkgs/pkgs/by-name/so/soupault/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

61 lines
1.3 KiB
Nix

{ lib
, darwin
, fetchzip
, ocamlPackages
, soupault
, stdenv
, testers
}:
ocamlPackages.buildDunePackage rec {
pname = "soupault";
version = "4.10.0";
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-mkbRWw4Qj7pk2MQJERA9cAuC8DXD/fOShVXz2zPtXZ4=";
};
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 = "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";
};
}