summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/apple-source-releases/top
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-04-12 18:27:11 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-04-12 18:27:11 -0500
commit5211410e69ccf686caf0210ef68999aab9aed59e (patch)
treec61bd46b42501abb4002719e1197f37cc1988420 /pkgs/os-specific/darwin/apple-source-releases/top
parent1914ef6040cee60b6dde0654b1080e8d29c78aeb (diff)
downloadnixlib-5211410e69ccf686caf0210ef68999aab9aed59e.tar
nixlib-5211410e69ccf686caf0210ef68999aab9aed59e.tar.gz
nixlib-5211410e69ccf686caf0210ef68999aab9aed59e.tar.bz2
nixlib-5211410e69ccf686caf0210ef68999aab9aed59e.tar.lz
nixlib-5211410e69ccf686caf0210ef68999aab9aed59e.tar.xz
nixlib-5211410e69ccf686caf0210ef68999aab9aed59e.tar.zst
nixlib-5211410e69ccf686caf0210ef68999aab9aed59e.zip
top: init at 108
Diffstat (limited to 'pkgs/os-specific/darwin/apple-source-releases/top')
-rw-r--r--pkgs/os-specific/darwin/apple-source-releases/top/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/apple-source-releases/top/default.nix b/pkgs/os-specific/darwin/apple-source-releases/top/default.nix
new file mode 100644
index 000000000000..f262d0c74732
--- /dev/null
+++ b/pkgs/os-specific/darwin/apple-source-releases/top/default.nix
@@ -0,0 +1,11 @@
+{xcbuild, appleDerivation, apple_sdk, ncurses, libutil-new}:
+
+appleDerivation {
+  buildInputs = [ xcbuild apple_sdk.frameworks.IOKit ncurses libutil-new ];
+  NIX_LDFLAGS = "-lutil";
+  installPhase = ''
+    install -D Products/Release/libtop.a $out/lib/libtop.a
+    install -D Products/Release/libtop.h $out/include/libtop.h
+    install -D Products/Release/top $out/bin/top
+  '';
+}