From b3ca115ebd711d5eb800c828e93e2e420496acca Mon Sep 17 00:00:00 2001 From: geistesk Date: Sat, 16 Nov 2019 22:27:22 +0100 Subject: [PATCH] smu: init at 1.5 --- pkgs/tools/text/smu/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/tools/text/smu/default.nix diff --git a/pkgs/tools/text/smu/default.nix b/pkgs/tools/text/smu/default.nix new file mode 100644 index 000000000000..a80a6d3d799b --- /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 ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6eababda4b87..2687a73843b0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6342,6 +6342,8 @@ in smesh = callPackage ../development/libraries/smesh {}; + smu = callPackage ../tools/text/smu { }; + smugline = python3Packages.smugline; snabb = callPackage ../tools/networking/snabb { } ;