2019-11-16 22:27:22 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-11-29 19:24:13 +01:00
|
|
|
pname = "smu";
|
2019-11-16 22:27:22 +01:00
|
|
|
version = "1.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Gottox";
|
|
|
|
repo = "smu";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1jm7lhnzjx4q7gcwlkvsbffcy0zppywyh50d71ami6dnq182vvcc";
|
|
|
|
};
|
|
|
|
|
|
|
|
# _FORTIFY_SOURCE requires compiling with optimization (-O)
|
2023-02-19 20:23:32 +01:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-O";
|
2019-11-16 22:27:22 +01:00
|
|
|
|
2019-12-29 21:06:02 +01:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
];
|
2019-11-16 22:27:22 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "simple markup - markdown like syntax";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "smu";
|
2019-11-16 22:27:22 +01:00
|
|
|
homepage = "https://github.com/Gottox/smu";
|
|
|
|
license = licenses.mit;
|
2020-08-15 15:25:59 +02:00
|
|
|
maintainers = with maintainers; [ oxzi ];
|
2019-11-16 22:27:22 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|