diff options
author | Dan Peebles <thetypesaretoobig@gmail.com> | 2015-02-08 01:53:52 -0500 |
---|---|---|
committer | Dan Peebles <thetypesaretoobig@gmail.com> | 2015-02-08 01:53:52 -0500 |
commit | 29f265dfd28ce5567106a7a1df3bd6c1fbd8406f (patch) | |
tree | 3973e0a11ae1737f8d307ec07651cf5c12498210 /pkgs/os-specific/darwin/apple-source-releases/adv_cmds | |
parent | f43c324cee6ed5fdbe679b70b71caaca1c4629a8 (diff) | |
download | nixlib-29f265dfd28ce5567106a7a1df3bd6c1fbd8406f.tar nixlib-29f265dfd28ce5567106a7a1df3bd6c1fbd8406f.tar.gz nixlib-29f265dfd28ce5567106a7a1df3bd6c1fbd8406f.tar.bz2 nixlib-29f265dfd28ce5567106a7a1df3bd6c1fbd8406f.tar.lz nixlib-29f265dfd28ce5567106a7a1df3bd6c1fbd8406f.tar.xz nixlib-29f265dfd28ce5567106a7a1df3bd6c1fbd8406f.tar.zst nixlib-29f265dfd28ce5567106a7a1df3bd6c1fbd8406f.zip |
Add a big bundle of packages from apple source releases. Many of them only provide headers or stubs, but are what's needed for the upcoming pure-darwin stdenv, and don't do any harm for now.
Diffstat (limited to 'pkgs/os-specific/darwin/apple-source-releases/adv_cmds')
-rw-r--r-- | pkgs/os-specific/darwin/apple-source-releases/adv_cmds/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/default.nix b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/default.nix new file mode 100644 index 000000000000..db467254f171 --- /dev/null +++ b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/default.nix @@ -0,0 +1,30 @@ +{ stdenv, appleDerivation, version }: + +appleDerivation { + # Will override the name until we provide all of adv_cmds + name = "ps-${version}"; + + buildPhase = '' + cd ps + cc -Os -Wall -I. -c -o fmt.o fmt.c + cc -Os -Wall -I. -c -o keyword.o keyword.c + cc -Os -Wall -I. -c -o nlist.o nlist.c + cc -Os -Wall -I. -c -o print.o print.c + cc -Os -Wall -I. -c -o ps.o ps.c + cc -Os -Wall -I. -c -o tasks.o tasks.c + cc -o ps fmt.o keyword.o nlist.o print.o ps.o tasks.o + ''; + + installPhase = '' + mkdir -p $out/bin $out/share/man/man1 + + cp ps $out/bin/ps + cp ps.1 $out/share/man/man1 + ''; + + + meta = { + platforms = stdenv.lib.platforms.darwin; + maintainers = with stdenv.lib.maintainers; [ gridaphobe ]; + }; +} |