git.iko.soy/typeable/nixpkgs
on master help sign in
remove stdenv.isBSD
commite29b0da9c7492732e0dc5730c3da754baa57a1a2 authorcodyopel <codyopel@gmail.com> dateTue 24 Feb 2015, 22:15 (12 years ago) parent6a6cc70
7 files changed+18−31
pkgs/development/compilers/chicken/default.nix+2−2 pkgs/development/libraries/libffi/default.nix+4−8 pkgs/stdenv/generic/default.nix+2−7 pkgs/tools/archivers/sharutils/default.nix+1−5 pkgs/tools/archivers/zpaq/default.nix+2−2 pkgs/tools/archivers/zpaq/zpaqd.nix+2−2 pkgs/tools/system/tree/default.nix+5−5
pkgs/development/compilers/chicken/default.nix+2−2
@@ -5,9 +5,9 @@ let
55 platform = with stdenv;
66 if isDarwin then "macosx"
77 else if isCygwin then "cygwin"
8− else if isBSD then "bsd"
8+ else if (isFreeBSD || isOpenBSD) then "bsd"
99 else if isSunOS then "solaris"
10− else "linux"; # Should be a sane default
10+ else "linux"; # Should be a sane default
1111 lib = stdenv.lib;
1212in
1313stdenv.mkDerivation {
pkgs/development/libraries/libffi/default.nix+4−8
@@ -21,14 +21,13 @@ stdenv.mkDerivation rec {
2121
2222 dontStrip = stdenv ? cross; # Don't run the native `strip' when cross-compiling.
2323
24− postInstall =
25− # Install headers in the right place.
26− '' ln -s${if stdenv.isBSD then "" else "r"}v "$out/lib/"libffi*/include "$out/include"
27− '';
24+ # Install headers in the right place.
25+ postInstall = ''
26+ ln -s${if (stdenv.isFreeBSD || stdenv.isOpenBSD || stdenv.isDarwin) then "" else "r"}v "$out/lib/"libffi*/include "$out/include"
27+ '';
2828
2929 meta = {
3030 description = "A foreign function call interface library";
31−
3231 longDescription = ''
3332 The libffi library provides a portable, high level programming
3433 interface to various calling conventions. This allows a
@@ -43,12 +42,9 @@ stdenv.mkDerivation rec {
4342 interface. A layer must exist above libffi that handles type
4443 conversions for values passed between the two languages.
4544 '';
46−
4745 homepage = http://sourceware.org/libffi/;
48−
4946 # See http://github.com/atgreen/libffi/blob/master/LICENSE .
5047 license = stdenv.lib.licenses.free;
51−
5248 maintainers = [ ];
5349 platforms = stdenv.lib.platforms.all;
5450 };
pkgs/stdenv/generic/default.nix+2−7
@@ -200,14 +200,9 @@ let
200200 isCygwin = system == "i686-cygwin"
201201 || system == "x86_64-cygwin";
202202 isFreeBSD = system == "i686-freebsd"
203− || system == "x86_64-freebsd";
203+ || system == "x86_64-freebsd";
204204 isOpenBSD = system == "i686-openbsd"
205− || system == "x86_64-openbsd";
206− isBSD = system == "i686-freebsd"
207− || system == "x86_64-freebsd"
208− || system == "i686-openbsd"
209− || system == "x86_64-openbsd"
210− || system == "x86_64-darwin";
205+ || system == "x86_64-openbsd";
211206 isi686 = system == "i686-linux"
212207 || system == "i686-gnu"
213208 || system == "i686-freebsd"
pkgs/tools/archivers/sharutils/default.nix+1−5
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212 ''
1313 # Fix for building on Glibc 2.16. Won't be needed once the
1414 # gnulib in sharutils is updated.
15− sed -i ${stdenv.lib.optionalString (stdenv.isBSD && stdenv.cc.nativeTools) "''"} '/gets is a security hole/d' lib/stdio.in.h
15+ sed -i ${stdenv.lib.optionalString ((stdenv.isFreeBSD || stdenv.isOpenBSD || stdenv.isDarwin) && stdenv.cc.nativeTools) "''"} '/gets is a security hole/d' lib/stdio.in.h
1616 '';
1717
1818 # GNU Gettext is needed on non-GNU platforms.
@@ -26,7 +26,6 @@ stdenv.mkDerivation rec {
2626
2727 meta = {
2828 description = "Tools for remote synchronization and `shell archives'";
29−
3029 longDescription =
3130 '' GNU shar makes so-called shell archives out of many files, preparing
3231 them for transmission by electronic mail services. A shell archive
@@ -43,11 +42,8 @@ stdenv.mkDerivation rec {
4342 by a copy of the shell. unshar may also process files containing
4443 concatenated shell archives.
4544 '';
46−
4745 homepage = http://www.gnu.org/software/sharutils/;
48−
4946 license = stdenv.lib.licenses.gpl3Plus;
50−
5147 maintainers = [ ];
5248 platforms = stdenv.lib.platforms.all;
5349 };
pkgs/tools/archivers/zpaq/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, unzip}:
1+{ stdenv, fetchurl, unzip }:
22let
33 s = # Generated upstream information
44 rec {
@@ -12,7 +12,7 @@ let
1212 buildInputs = [
1313 unzip
1414 ];
15− isUnix = stdenv.isLinux || stdenv.isGNU || stdenv.isDarwin || stdenv.isBSD;
15+ isUnix = with stdenv; isLinux || isGNU || isDarwin || isFreeBSD || isOpenBSD;
1616 isx86 = stdenv.isi686 || stdenv.isx86_64;
1717 compileFlags = ""
1818 + (stdenv.lib.optionalString isUnix " -Dunix -pthread ")
pkgs/tools/archivers/zpaq/zpaqd.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, unzip}:
1+{ stdenv, fetchurl, unzip }:
22let
33 s = # Generated upstream information
44 rec {
@@ -12,7 +12,7 @@ let
1212 buildInputs = [
1313 unzip
1414 ];
15− isUnix = stdenv.isLinux || stdenv.isGNU || stdenv.isDarwin || stdenv.isBSD;
15+ isUnix = with stdenv; isLinux || isGNU || isDarwin || isFreeBSD || isOpenBSD;
1616 isx86 = stdenv.isi686 || stdenv.isx86_64;
1717 compileFlags = ""
1818 + (stdenv.lib.optionalString isUnix " -Dunix -pthread ")
pkgs/tools/system/tree/default.nix+5−5
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl}:
1+{ stdenv, fetchurl }:
22
33let
44 version = "1.7.0";
@@ -6,17 +6,17 @@ let
66 # These settings are found in the Makefile, but there seems to be no
77 # way to select one ore the other setting other than editing the file
88 # manually, so we have to duplicate the know how here.
9− systemFlags =
10− if stdenv.isDarwin then ''
9+ systemFlags = with stdenv;
10+ if isDarwin then ''
1111 CFLAGS="-O2 -Wall -fomit-frame-pointer"
1212 LDFLAGS=
1313 EXTRA_OBJS=strverscmp.o
14− '' else if stdenv.isCygwin then ''
14+ '' else if isCygwin then ''
1515 CFLAGS="-O2 -Wall -fomit-frame-pointer -DCYGWIN"
1616 LDFLAGS=-s
1717 TREE_DEST=tree.exe
1818 EXTRA_OBJS=strverscmp.o
19− '' else if stdenv.isBSD then ''
19+ '' else if (isFreeBSD || isOpenBSD) then ''
2020 CFLAGS="-O2 -Wall -fomit-frame-pointer"
2121 LDFLAGS=-s
2222 EXTRA_OBJS=strverscmp.o