summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/libtapi
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-10-21 08:23:10 -0700
committerJonathan Ringer <jonringer@users.noreply.github.com>2020-10-29 14:05:46 -0700
commit16357a697fac56c6fcd743bfb8fd9a8a7f6b6532 (patch)
treeb9fa3345d83c8b044aa032367fb35435cbe21aaa /pkgs/os-specific/darwin/libtapi
parent5f4c238ea5e1efb872ffeecfb6fc80c76cf86a48 (diff)
downloadnixpkgs-16357a697fac56c6fcd743bfb8fd9a8a7f6b6532.tar
nixpkgs-16357a697fac56c6fcd743bfb8fd9a8a7f6b6532.tar.gz
nixpkgs-16357a697fac56c6fcd743bfb8fd9a8a7f6b6532.tar.bz2
nixpkgs-16357a697fac56c6fcd743bfb8fd9a8a7f6b6532.tar.lz
nixpkgs-16357a697fac56c6fcd743bfb8fd9a8a7f6b6532.tar.xz
nixpkgs-16357a697fac56c6fcd743bfb8fd9a8a7f6b6532.tar.zst
nixpkgs-16357a697fac56c6fcd743bfb8fd9a8a7f6b6532.zip
libtapi: add homepage and description, use pname
Diffstat (limited to 'pkgs/os-specific/darwin/libtapi')
-rw-r--r--pkgs/os-specific/darwin/libtapi/default.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/os-specific/darwin/libtapi/default.nix b/pkgs/os-specific/darwin/libtapi/default.nix
index 1f1e00d13f9..a6bc16d42f9 100644
--- a/pkgs/os-specific/darwin/libtapi/default.nix
+++ b/pkgs/os-specific/darwin/libtapi/default.nix
@@ -1,7 +1,9 @@
 { lib, stdenv, fetchFromGitHub, cmake, python3, ncurses }:
 
-stdenv.mkDerivation {
-  name = "libtapi-1000.10.8";
+stdenv.mkDerivation rec {
+  pname = "libtapi";
+  version = "1000.10.8"; # determined by looking at VERSION.txt
+
   src = fetchFromGitHub {
     owner = "tpoechtrager";
     repo = "apple-libtapi";
@@ -33,11 +35,13 @@ stdenv.mkDerivation {
 
   installTargets = [ "install-libtapi" "install-tapi-headers" ];
 
-  postInstall = ''
+  postInstall = lib.optionalString stdenv.isDarwin ''
     install_name_tool -id $out/lib/libtapi.dylib $out/lib/libtapi.dylib
   '';
 
   meta = with lib; {
+    description = "Replaces the Mach-O Dynamic Library Stub files in Apple's SDKs to reduce the size";
+    homepage = "https://github.com/tpoechtrager/apple-libtapi";
     license = licenses.apsl20;
     maintainers = with maintainers; [ matthewbauer ];
   };