summaryrefslogtreecommitdiffstats
path: root/pkgs/stdenv/native
diff options
context:
space:
mode:
authorSander van der Burg <s.vanderburg@tudelft.nl>2010-02-04 13:47:46 +0000
committerSander van der Burg <s.vanderburg@tudelft.nl>2010-02-04 13:47:46 +0000
commit318091ed2b7b68429ab1204722c7cd14ef7fe211 (patch)
treeaa293a4db709b56a2f49d01ba6f6c017d0fd9f88 /pkgs/stdenv/native
parenta709fd64e5fbaa8c4b3b9bb4b9d4cfd1e61a0fcb (diff)
Added all necessary aliases to match the Linux stdenv as closely as possible on OpenBSD
svn path=/nixpkgs/branches/stdenv-updates/; revision=19814
Diffstat (limited to 'pkgs/stdenv/native')
-rw-r--r--pkgs/stdenv/native/default.nix76
1 files changed, 68 insertions, 8 deletions
diff --git a/pkgs/stdenv/native/default.nix b/pkgs/stdenv/native/default.nix
index 6f4ae7837dff..e5b89d3fc9ce 100644
--- a/pkgs/stdenv/native/default.nix
+++ b/pkgs/stdenv/native/default.nix
@@ -34,8 +34,6 @@ rec {
* gmake
* gsed
* gtar
- * gsed
- * gtar
* gzip
*
* The aliases are derived by using the derivealiases-freebsd.sh script
@@ -179,15 +177,77 @@ rec {
export NIX_GCC_NEEDS_GREP=1
'';
+ /* OpenBSD needs the following packages installed from the OpenBSD packages
+ * collection (pkg_add -r ...):
+ *
+ * bash
+ * fileutils (there is no coreutils package)
+ * gdiff
+ * findutils
+ * gawk
+ * ggrep
+ * gmake
+ * gsed
+ * gtar
+ *
+ * The aliases are derived by using the derivealiases-openbsd.sh script
+ *
+ * The following packages seem to be fine in the default install:
+ *
+ * gcc (included with OpenBSD)
+ * binutils (OpenBSD uses GNU binutils)
+ * bzip2 (included with openBSD)
+ * patch (included with OpenBSD)
+ * gzip (included with OpenBSD
+ *
+ * Moreover a symlink to /bin/bash is required and /bin/sh has to be a symlink to /bin/bash
+ */
+
prehookOpenBSD = builtins.toFile "prehook-openbsd.sh" ''
source ${prehookBase}
- alias make=gmake
- alias grep=ggrep
- alias mv=gmv
- alias ln=gln
- alias sed=gsed
- alias tar=gtar
+ alias chgrp='gchgrp'
+ alias chmod='gchmod'
+ alias chown='gchown'
+ alias cp='gcp'
+ alias dd='gdd'
+ alias df='gdf'
+ alias dir='gdir'
+ alias dircolors='gdircolors'
+ alias du='gdu'
+ alias install='ginstall'
+ alias ln='gln'
+ alias ls='gls'
+ alias mkdir='gmkdir'
+ alias mkfifo='gmkfifo'
+ alias mknod='gmknod'
+ alias mv='gmv'
+ alias rm='grm'
+ alias rmdir='grmdir'
+ alias shred='gshred'
+ alias sync='gsync'
+ alias touch='gtouch'
+ alias vdir='gvdir'
+
+ alias find='gfind'
+ alias locate='glocate'
+ alias updatedb='gupdatedb'
+ alias xargs='gxargs'
+
+ alias cmp='gcmp'
+ alias diff='gdiff'
+ alias diff3='gdiff3'
+ alias sdiff='gsdiff'
+
+ alias egrep='gegrep'
+ alias fgrep='gfgrep'
+ alias grep='ggrep'
+
+ alias make='gmake'
+
+ alias sed='gsed'
+
+ alias tar='gtar'
export MAKE=gmake
shopt -s expand_aliases