summary refs log tree commit diff
path: root/pkgs/stdenv/mingw/msys-builder.sh
blob: a801e7fbcab1be3583776f44b2807d1e7f5a9a1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
source $stdenv/setup

mkdir $out
cd $out
tar zxvf $src

# Make the Nix store available to MSYS.
# Hack: we are assuming that the stdenv is based on Cygwin.

nixdir="$(cygpath --windows /nix)"
mkdir $out/nix
cat > $out/etc/fstab <<EOF
#Win32_Path      Mount_Point
$nixdir          /nix
EOF