Merge pull request #169200 from sikmir/mle

authored by Ben Siraphob and committed by GitHub 47d58982 efd13315

+11 -1
+11 -1
pkgs/applications/editors/mle/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, termbox, pcre, uthash, lua5_3 }: 2 3 stdenv.mkDerivation rec { 4 pname = "mle"; ··· 18 patchShebangs tests/* 19 ''; 20 21 buildInputs = [ termbox pcre uthash lua5_3 ]; 22 23 doCheck = true; 24 25 installFlags = [ "prefix=${placeholder "out"}" ]; 26 27 meta = with lib; { 28 description = "Small, flexible terminal-based text editor";
··· 1 + { lib, stdenv, fetchFromGitHub, termbox, pcre, uthash, lua5_3, makeWrapper, installShellFiles }: 2 3 stdenv.mkDerivation rec { 4 pname = "mle"; ··· 18 patchShebangs tests/* 19 ''; 20 21 + nativeBuildInputs = [ makeWrapper installShellFiles ]; 22 + 23 buildInputs = [ termbox pcre uthash lua5_3 ]; 24 25 doCheck = true; 26 27 installFlags = [ "prefix=${placeholder "out"}" ]; 28 + 29 + postInstall = '' 30 + installManPage mle.1 31 + ''; 32 + 33 + postFixup = lib.optionalString stdenv.isDarwin '' 34 + wrapProgram $out/bin/mle --prefix DYLD_LIBRARY_PATH : ${termbox}/lib 35 + ''; 36 37 meta = with lib; { 38 description = "Small, flexible terminal-based text editor";