mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 10:53:52 +00:00
* On FreeBSD, bash is usually installed in /usr/local.
svn path=/nixpkgs/trunk/; revision=30467
This commit is contained in:
parent
13551f95b5
commit
34a00e28da
@ -1,10 +1,14 @@
|
||||
{system, allPackages ? import ../../..}:
|
||||
{ system, allPackages ? import ../../.. }:
|
||||
|
||||
rec {
|
||||
|
||||
shell = "/bin/bash";
|
||||
shell =
|
||||
if system == "i686-freebsd" || system == "x86_64-freebsd"
|
||||
then "/usr/local/bin/bash"
|
||||
else "/bin/bash";
|
||||
|
||||
path = (if system == "i386-sunos" then [ "/usr/gnu" ] else []) ++
|
||||
path =
|
||||
(if system == "i386-sunos" then [ "/usr/gnu" ] else []) ++
|
||||
(if system == "i686-netbsd" then [ "/usr/pkg" ] else []) ++
|
||||
["/" "/usr" "/usr/local"];
|
||||
|
||||
@ -88,6 +92,7 @@ rec {
|
||||
preHook =
|
||||
if system == "i686-darwin" || system == "powerpc-darwin" || system == "x86_64-darwin" then prehookDarwin else
|
||||
if system == "i686-freebsd" then prehookFreeBSD else
|
||||
if system == "x86_64-freebsd" then prehookFreeBSD else
|
||||
if system == "i686-openbsd" then prehookOpenBSD else
|
||||
if system == "i686-netbsd" then prehookNetBSD else
|
||||
prehookBase;
|
||||
|
Loading…
Reference in New Issue
Block a user