2009-04-17 22:36:54 +02:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
assert stdenv.system == "i686-linux";
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "folding-at-home-6.02";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.stanford.edu/group/pandegroup/folding/release/FAH6.02-Linux.tgz;
|
|
|
|
sha256 = "01nwi0lb4vv0xg4k04i2fbf5v5qgabl70jm5cgvw1ibgqjz03910";
|
|
|
|
};
|
|
|
|
|
|
|
|
unpackPhase = "tar xvzf $src";
|
|
|
|
|
|
|
|
# Otherwise it doesn't work at all, even ldd thinks it's not a dynamic executable
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
# This program, to run with '-smp', wants to execute the program mpiexec
|
|
|
|
# as "./mpiexec", although it also expects to write the data files into "."
|
|
|
|
# I suggest, if someone wants to run it, in the data directory set a link
|
|
|
|
# to the store for 'mpiexec', so './mpiexec' will work. That link better
|
|
|
|
# be considered a gcroot.
|
|
|
|
installPhase = ''
|
|
|
|
BINFILES="fah6 mpiexec";
|
|
|
|
for a in $BINFILES; do
|
2014-12-17 19:11:30 +01:00
|
|
|
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $a
|
2009-04-17 22:36:54 +02:00
|
|
|
done
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2009-04-17 22:36:54 +02:00
|
|
|
cp $BINFILES $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://folding.stanford.edu/;
|
|
|
|
description = "Folding@home distributed computing client";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.unfree;
|
2009-04-17 22:36:54 +02:00
|
|
|
};
|
|
|
|
}
|