2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, appleDerivation, xcbuildHook, ncurses, bzip2, zlib, lzma }:
|
2018-04-16 04:22:28 +01:00
|
|
|
|
|
|
|
appleDerivation {
|
2018-07-06 23:53:50 +01:00
|
|
|
nativeBuildInputs = [ xcbuildHook ];
|
|
|
|
buildInputs = [ ncurses bzip2 zlib lzma ];
|
2018-04-16 04:22:28 +01:00
|
|
|
|
|
|
|
# patches to use ncursees
|
|
|
|
# disables md5
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace text_cmds.xcodeproj/project.pbxproj \
|
|
|
|
--replace 'FC6C98FB149A94EB00DDCC47 /* libcurses.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcurses.dylib; path = /usr/lib/libcurses.dylib; sourceTree = "<absolute>"; };' 'FC6C98FB149A94EB00DDCC47 /* libncurses.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libncurses.dylib; path = /usr/lib/libncurses.dylib; sourceTree = "<absolute>"; };' \
|
|
|
|
--replace 'FC7A7EB5149875E00086576A /* PBXTargetDependency */,' ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
for f in Products/Release/*; do
|
2018-12-30 05:58:10 +00:00
|
|
|
if [ -f $f ]; then
|
|
|
|
install -D $f $out/bin/$(basename $f)
|
|
|
|
fi
|
2018-04-16 04:22:28 +01:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.darwin;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ matthewbauer ];
|
|
|
|
};
|
|
|
|
}
|