git.iko.soy/typeable/nixpkgs
on master help sign in
text_cmds: init at 99
commit348215569af3449425de7754dc8898286fe6a1a5 authorMatthew Bauer <mjbauer95@gmail.com> dateSun 15 Apr 2018, 22:22 (9 years ago) parent438631e
2 files changed+27
pkgs/os-specific/darwin/apple-source-releases/default.nix+2 pkgs/os-specific/darwin/apple-source-releases/text_cmds/default.nix+25
pkgs/os-specific/darwin/apple-source-releases/default.nix+2
@@ -46,6 +46,7 @@ let
4646 system_cmds = "550.6";
4747 diskdev_cmds = "593";
4848 top = "108";
49+ text_cmds = "99";
4950 };
5051 "osx-10.11.5" = {
5152 Libc = "1082.50.1"; # 10.11.6 still unreleased :/
@@ -250,6 +251,7 @@ let
250251 file_cmds = applePackage "file_cmds" "osx-10.11.6" "1zfxbmasps529pnfdjvc13p7ws2cfx8pidkplypkswyff0nff4wp" {};
251252 shell_cmds = applePackage "shell_cmds" "osx-10.11.6" "0084k271v66h4jqp7q7rmjvv7w4mvhx3aq860qs8jbd30canm86n" {};
252253 system_cmds = applePackage "system_cmds" "osx-10.11.6" "1h46j2c5v02pkv5d9fyv6cpgyg0lczvwicrx6r9s210cl03l77jl" {};
254+ text_cmds = applePackage "text_cmds" "osx-10.11.6" "1f93m7dd0ghqb2hwh905mjhzblyfr7dwffw98xhgmv1mfdnigxg0" {};
253255 top = applePackage "top" "osx-10.11.6" "0i9120rfwapgwdvjbfg0ya143i29s1m8zbddsxh39pdc59xnsg5l" {};
254256
255257 security_systemkeychain = applePackage "security_systemkeychain" "osx-10.10.5" "0xviskdgxsail15npi0billyiysvljlmg38mmhnr7qi4ymnnjr90" {};
pkgs/os-specific/darwin/apple-source-releases/text_cmds/default.nixnew file+25
@@ -0,0 +1,25 @@
1+{ stdenv, appleDerivation, fetchurl, xcbuild, ncurses, bzip2, zlib, lzma }:
2+
3+appleDerivation {
4+ buildInputs = [ xcbuild ncurses bzip2 zlib lzma ];
5+
6+ # patches to use ncursees
7+ # disables md5
8+ patchPhase = ''
9+ substituteInPlace text_cmds.xcodeproj/project.pbxproj \
10+ --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>"; };' \
11+ --replace 'FC7A7EB5149875E00086576A /* PBXTargetDependency */,' ""
12+ '';
13+
14+ installPhase = ''
15+ mkdir -p $out/bin
16+ for f in Products/Release/*; do
17+ install -D $f $out/bin/$(basename $f)
18+ done
19+ '';
20+
21+ meta = {
22+ platforms = stdenv.lib.platforms.darwin;
23+ maintainers = with stdenv.lib.maintainers; [ matthewbauer ];
24+ };
25+}