summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2026-01-18 00:09:46 +0000
committerGitHub <noreply@github.com>2026-01-18 00:09:46 +0000
commit70c09395689ff758e6ae06ce77497ab0eb65b9cd (patch)
tree8b208013af37904690580f5ecf1c6de9c6a2ebff
parent0be16e628bf696d718f652262668040ed1d1b5fa (diff)
parentacfecd6c5ac72b4be1c24e61ccd4c2b09eaf5790 (diff)
[Backport release-25.11] zensical: init at 0.0.15 (#481183)
-rw-r--r--maintainers/maintainer-list.nix6
-rw-r--r--pkgs/by-name/ze/zensical/package.nix59
2 files changed, 65 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index 43eaa108f3c0..f67af84e0922 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -1321,6 +1321,12 @@
githubId = 8614547;
name = "Ali Caglayan";
};
+ aljazerzen = {
+ email = "aljaz@erzen.si";
+ github = "aljazerzen";
+ githubId = 11072061;
+ name = "Aljaž Mur Eržen";
+ };
alkasm = {
email = "alexreynolds00@gmail.com";
github = "alkasm";
diff --git a/pkgs/by-name/ze/zensical/package.nix b/pkgs/by-name/ze/zensical/package.nix
new file mode 100644
index 000000000000..b8e890f3115b
--- /dev/null
+++ b/pkgs/by-name/ze/zensical/package.nix
@@ -0,0 +1,59 @@
+{
+ lib,
+ fetchPypi,
+ rustPlatform,
+ python3Packages,
+ versionCheckHook,
+}:
+
+python3Packages.buildPythonApplication rec {
+ pname = "zensical";
+ version = "0.0.15";
+ pyproject = true;
+
+ # We fetch from PyPi, because GitHub repo does not contain all sources.
+ # The publish process also copies in assets from zensical/ui.
+ # We could combine sources, but then nix-update won't work.
+ src = fetchPypi {
+ inherit pname version;
+ hash = "sha256-syAMkbMDcGccULi0qkHCDlX/KBS5AD7iPJtvkjoMGb4=";
+ };
+
+ cargoDeps = rustPlatform.fetchCargoVendor {
+ inherit pname version src;
+ hash = "sha256-Sg4gl23aK6yPZ3Hdi+IzTGnx8wEAkSL0SrKGVdMRJ2s=";
+ };
+
+ nativeBuildInputs = with rustPlatform; [
+ maturinBuildHook
+ cargoSetupHook
+ ];
+
+ dependencies = with python3Packages; [
+ click
+ deepmerge
+ markdown
+ pygments
+ pymdown-extensions
+ pyyaml
+ ];
+
+ nativeCheckInputs = [ versionCheckHook ];
+ versionCheckProgramArg = "--version";
+
+ meta = {
+ description = "Static site generator for documentation";
+ longDescription = ''
+ Zensical is a modern static site generator designed to simplify
+ building and maintaining project documentation. It's built by
+ the creators of Material for MkDocs and shares the same core
+ design principles and philosophy – batteries included, easy to
+ use, with powerful customization options.
+ '';
+ homepage = "https://zensical.org";
+ changelog = "https://github.com/zensical/zensical/releases/tag/${version}";
+ license = lib.licenses.mit;
+ maintainers = with lib.maintainers; [ aljazerzen ];
+ mainProgram = "zensical";
+ };
+}