nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 32 lines 656 B view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "smu"; 9 version = "1.5"; 10 11 src = fetchFromGitHub { 12 owner = "Gottox"; 13 repo = "smu"; 14 rev = "v${version}"; 15 sha256 = "1jm7lhnzjx4q7gcwlkvsbffcy0zppywyh50d71ami6dnq182vvcc"; 16 }; 17 18 # _FORTIFY_SOURCE requires compiling with optimization (-O) 19 env.NIX_CFLAGS_COMPILE = "-O"; 20 21 makeFlags = [ 22 "PREFIX=${placeholder "out"}" 23 ]; 24 25 meta = with lib; { 26 description = "Simple markup - markdown like syntax"; 27 mainProgram = "smu"; 28 homepage = "https://github.com/Gottox/smu"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ oxzi ]; 31 }; 32}