Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "smu"; 5 version = "1.5"; 6 7 src = fetchFromGitHub { 8 owner = "Gottox"; 9 repo = "smu"; 10 rev = "v${version}"; 11 sha256 = "1jm7lhnzjx4q7gcwlkvsbffcy0zppywyh50d71ami6dnq182vvcc"; 12 }; 13 14 # _FORTIFY_SOURCE requires compiling with optimization (-O) 15 env.NIX_CFLAGS_COMPILE = "-O"; 16 17 makeFlags = [ 18 "PREFIX=${placeholder "out"}" 19 ]; 20 21 meta = with lib; { 22 description = "simple markup - markdown like syntax"; 23 homepage = "https://github.com/Gottox/smu"; 24 license = licenses.mit; 25 maintainers = with maintainers; [ oxzi ]; 26 }; 27} 28