2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, autoPatchelfHook
|
|
|
|
, dpkg
|
|
|
|
, fetchurl
|
|
|
|
, freeglut
|
|
|
|
, gcc-unwrapped
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, makeWrapper
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
let
|
2021-01-17 00:15:33 +00:00
|
|
|
majMin = lib.versions.majorMinor version;
|
2020-11-15 13:44:38 +00:00
|
|
|
version = "7.6.21";
|
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-11-15 13:44:38 +00:00
|
|
|
sha256 = "00fd00pf6fcpplcaahvy9ir60mk69d9rcmwsyq3jrv9mxqm9aq7p";
|
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} ./
|
2022-02-10 20:34:41 +00:00
|
|
|
sed -e "s|/usr/bin|$out/bin|g" -i usr/share/applications/FAHViewer.desktop
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cp -ar usr $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Folding@home viewer";
|
|
|
|
homepage = "https://foldingathome.org/";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.unfree;
|
|
|
|
maintainers = [ lib.maintainers.zimbatm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|