mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
mle: fix on darwin
This commit is contained in:
parent
95af2245a3
commit
fc5bf74480
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user