diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-04-17 20:36:54 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-04-17 20:36:54 +0000 |
commit | 98f6f77709e091bab4b7b772553da7f3f81446f9 (patch) | |
tree | 9481559dfe598ab47ca7ad837d317da721cfdbeb /pkgs/misc/foldingathome | |
parent | 95a472cd55a8628210bb4d64ec4321b435e8b47d (diff) | |
download | nixpkgs-98f6f77709e091bab4b7b772553da7f3f81446f9.tar nixpkgs-98f6f77709e091bab4b7b772553da7f3f81446f9.tar.gz nixpkgs-98f6f77709e091bab4b7b772553da7f3f81446f9.tar.bz2 nixpkgs-98f6f77709e091bab4b7b772553da7f3f81446f9.tar.lz nixpkgs-98f6f77709e091bab4b7b772553da7f3f81446f9.tar.xz nixpkgs-98f6f77709e091bab4b7b772553da7f3f81446f9.tar.zst nixpkgs-98f6f77709e091bab4b7b772553da7f3f81446f9.zip |
Adding a folding-at-home client.
svn path=/nixpkgs/trunk/; revision=15122
Diffstat (limited to 'pkgs/misc/foldingathome')
-rw-r--r-- | pkgs/misc/foldingathome/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/misc/foldingathome/default.nix b/pkgs/misc/foldingathome/default.nix new file mode 100644 index 00000000000..ca4fe2657bf --- /dev/null +++ b/pkgs/misc/foldingathome/default.nix @@ -0,0 +1,37 @@ +{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 + patchelf --set-interpreter $(cat $NIX_GCC/nix-support/dynamic-linker) $a + done + ensureDir $out/bin + cp $BINFILES $out/bin + ''; + + meta = { + homepage = http://folding.stanford.edu/; + description = "Folding@home distributed computing client"; + license = "unfree"; + }; +} |