summary refs log tree commit diff
path: root/pkgs/tools/text/smu/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/text/smu/default.nix')
-rw-r--r--pkgs/tools/text/smu/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/text/smu/default.nix b/pkgs/tools/text/smu/default.nix
new file mode 100644
index 0000000000000..a80a6d3d799bb
--- /dev/null
+++ b/pkgs/tools/text/smu/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, lib, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  name = "smu";
+  version = "1.5";
+
+  src = fetchFromGitHub {
+    owner = "Gottox";
+    repo = "smu";
+    rev = "v${version}";
+    sha256 = "1jm7lhnzjx4q7gcwlkvsbffcy0zppywyh50d71ami6dnq182vvcc";
+  };
+
+  # _FORTIFY_SOURCE requires compiling with optimization (-O)
+  NIX_CFLAGS_COMPILE = "-O";
+
+  makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
+
+  meta = with lib; {
+    description = "simple markup - markdown like syntax";
+    homepage = "https://github.com/Gottox/smu";
+    license = licenses.mit;
+    maintainers = with maintainers; [ geistesk ];
+  };
+}
+