02f39c0210
svn path=/nixpkgs/trunk/; revision=9515
16 lines
376 B
Bash
Executable file
16 lines
376 B
Bash
Executable file
source $stdenv/setup
|
|
|
|
tar -zxvf $src
|
|
cd ext3cow-tools/
|
|
|
|
echo "Using: $kernel"
|
|
|
|
kernelslashed=$(echo $kernel | sed 's/\//\\\//g')
|
|
sed -i "s/linux\/ext3cow_fs.h/$kernelslashed\/lib\/modules\/2.6.21.5-default\/build\/include\/linux\/ext3cow_fs.h/" ext3cow_tools.h #ugh dirty header rewrite....
|
|
|
|
make
|
|
|
|
ensureDir $out/bin/
|
|
cp ss $out/bin/snapshot
|
|
cp tt $out/bin/
|
|
cp e2d $out/bin/
|