summary refs log tree commit diff
path: root/pkgs/development/libraries/libffi
diff options
context:
space:
mode:
authorcodyopel <codyopel@gmail.com>2015-02-24 22:15:51 -0500
committercodyopel <codyopel@gmail.com>2015-02-24 22:15:51 -0500
commite29b0da9c7492732e0dc5730c3da754baa57a1a2 (patch)
treefc6846c97b9634e3e8e4c15464f8562f77da9075 /pkgs/development/libraries/libffi
parent6a6cc70978ba84e9de3ae0148cf0ab1b97a4955b (diff)
downloadnixpkgs-e29b0da9c7492732e0dc5730c3da754baa57a1a2.tar
nixpkgs-e29b0da9c7492732e0dc5730c3da754baa57a1a2.tar.gz
nixpkgs-e29b0da9c7492732e0dc5730c3da754baa57a1a2.tar.bz2
nixpkgs-e29b0da9c7492732e0dc5730c3da754baa57a1a2.tar.lz
nixpkgs-e29b0da9c7492732e0dc5730c3da754baa57a1a2.tar.xz
nixpkgs-e29b0da9c7492732e0dc5730c3da754baa57a1a2.tar.zst
nixpkgs-e29b0da9c7492732e0dc5730c3da754baa57a1a2.zip
remove stdenv.isBSD
Diffstat (limited to 'pkgs/development/libraries/libffi')
-rw-r--r--pkgs/development/libraries/libffi/default.nix12
1 files changed, 4 insertions, 8 deletions
diff --git a/pkgs/development/libraries/libffi/default.nix b/pkgs/development/libraries/libffi/default.nix
index cdcba4756aa..a1f6716009e 100644
--- a/pkgs/development/libraries/libffi/default.nix
+++ b/pkgs/development/libraries/libffi/default.nix
@@ -21,14 +21,13 @@ stdenv.mkDerivation rec {
 
   dontStrip = stdenv ? cross; # Don't run the native `strip' when cross-compiling.
 
-  postInstall =
-    # Install headers in the right place.
-    '' ln -s${if stdenv.isBSD then "" else "r"}v "$out/lib/"libffi*/include "$out/include"
-    '';
+  # Install headers in the right place.
+  postInstall = ''
+    ln -s${if (stdenv.isFreeBSD || stdenv.isOpenBSD || stdenv.isDarwin) then "" else "r"}v "$out/lib/"libffi*/include "$out/include"
+  '';
 
   meta = {
     description = "A foreign function call interface library";
-
     longDescription = ''
       The libffi library provides a portable, high level programming
       interface to various calling conventions.  This allows a
@@ -43,12 +42,9 @@ stdenv.mkDerivation rec {
       interface.  A layer must exist above libffi that handles type
       conversions for values passed between the two languages.
     '';
-
     homepage = http://sourceware.org/libffi/;
-
     # See http://github.com/atgreen/libffi/blob/master/LICENSE .
     license = stdenv.lib.licenses.free;
-
     maintainers = [ ];
     platforms = stdenv.lib.platforms.all;
   };