ctucx.git: nixfiles

ctucx' nixfiles

commit 327a377941dd4b3095f696e8e29001389613cc4b
parent 547b138cb3114b5ae3a3bb798f0ba60049c79082
Author: Leah (ctucx) <leah@ctu.cx>
Date: Fri, 27 May 2022 13:26:51 +0200

pkgs: add stagit
1 file changed, 23 insertions(+), 0 deletions(-)
A
pkgs/stagit.nix
|
23
+++++++++++++++++++++++
diff --git a/pkgs/stagit.nix b/pkgs/stagit.nix
@@ -0,0 +1,23 @@
+{ lib, stdenv, libgit2, md4c, fetchgit }:
+
+stdenv.mkDerivation rec {
+  name = "stagit";
+
+  src = fetchgit {
+    url = "https://cgit.ctu.cx/stagit";
+    rev = "932edf13bf1bf92c98a6c916c96858fa7080ca8b";
+    sha256 = "12ljxlcj8flfffvd6cf0md2ii7ap37xzxk7dyyh9xakilzppl2ja";
+  };
+
+  makeFlags = [ "PREFIX=$(out)" ];
+
+  buildInputs = [ libgit2 md4c ];
+
+  meta = with lib; {
+    description = "git static site generator";
+    homepage = "https://cgit.ctu.cx/stagit";
+    license = licenses.mit;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ jb55 sikmir ];
+  };
+}