2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, autoPatchelfHook
|
|
|
|
, dpkg
|
|
|
|
, fetchurl
|
|
|
|
, freeglut
|
|
|
|
, gcc-unwrapped
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, makeWrapper
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
majMin = stdenv.lib.versions.majorMinor version;
|
2020-05-03 17:38:23 +00:00
|
|
|
version = "7.6.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit version;
|
|
|
|
pname = "fahviewer";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.foldingathome.org/releases/public/release/fahviewer/debian-stable-64bit/v${majMin}/fahviewer_${version}_amd64.deb";
|
2020-05-03 17:38:23 +00:00
|
|
|
sha256 = "04wr86g11wpmsczzwzak4gvalcihb47rn3zp6qriawhxyac9nf93";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
dpkg
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
freeglut
|
|
|
|
gcc-unwrapped.lib
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
dpkg-deb -x ${src} ./
|
|
|
|
sed -e 's|/usr/bin|$out/bin|g' -i usr/share/applications/FAHViewer.desktop
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cp -ar usr $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Folding@home viewer";
|
|
|
|
homepage = "https://foldingathome.org/";
|
|
|
|
license = stdenv.lib.licenses.unfree;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.zimbatm ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|