From fc5bf74480f52f243b4c9b80fd4be2b95f060079 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Mon, 18 Apr 2022 16:33:51 +0300 Subject: mle: fix on darwin --- pkgs/applications/editors/mle/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'pkgs/applications/editors') diff --git a/pkgs/applications/editors/mle/default.nix b/pkgs/applications/editors/mle/default.nix index d57e4d36b4e..55249dde579 100644 --- a/pkgs/applications/editors/mle/default.nix +++ b/pkgs/applications/editors/mle/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, termbox, pcre, uthash, lua5_3 }: +{ lib, stdenv, fetchFromGitHub, termbox, pcre, uthash, lua5_3, makeWrapper, installShellFiles }: stdenv.mkDerivation rec { pname = "mle"; @@ -18,12 +18,22 @@ stdenv.mkDerivation rec { patchShebangs tests/* ''; + nativeBuildInputs = [ makeWrapper installShellFiles ]; + buildInputs = [ termbox pcre uthash lua5_3 ]; doCheck = true; installFlags = [ "prefix=${placeholder "out"}" ]; + postInstall = '' + installManPage mle.1 + ''; + + postFixup = lib.optionalString stdenv.isDarwin '' + wrapProgram $out/bin/mle --prefix DYLD_LIBRARY_PATH : ${termbox}/lib + ''; + meta = with lib; { description = "Small, flexible terminal-based text editor"; homepage = "https://github.com/adsr/mle"; -- cgit 1.4.1