uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
59
pkgs/applications/science/misc/foldingathome/client.nix
Normal file
59
pkgs/applications/science/misc/foldingathome/client.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{ lib, stdenv
|
||||
, autoPatchelfHook
|
||||
, buildFHSUserEnv
|
||||
, dpkg
|
||||
, fetchurl
|
||||
, gcc-unwrapped
|
||||
, ocl-icd
|
||||
, zlib
|
||||
, extraPkgs ? []
|
||||
}:
|
||||
let
|
||||
majMin = lib.versions.majorMinor version;
|
||||
version = "7.6.13";
|
||||
|
||||
fahclient = stdenv.mkDerivation rec {
|
||||
inherit version;
|
||||
pname = "fahclient";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/v${majMin}/fahclient_${version}_amd64.deb";
|
||||
sha256 = "1j2cnsyassvifp6ymwd9kxwqw09hks24834gf7nljfncyy9g4g0i";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
dpkg
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gcc-unwrapped.lib
|
||||
zlib
|
||||
];
|
||||
|
||||
unpackPhase = "dpkg-deb -x ${src} ./";
|
||||
installPhase = "cp -ar usr $out";
|
||||
};
|
||||
in
|
||||
buildFHSUserEnv {
|
||||
name = fahclient.name;
|
||||
|
||||
targetPkgs = pkgs': [
|
||||
fahclient
|
||||
ocl-icd
|
||||
] ++ extraPkgs;
|
||||
|
||||
runScript = "/bin/FAHClient";
|
||||
|
||||
extraInstallCommands = ''
|
||||
mv $out/bin/$name $out/bin/FAHClient
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Folding@home client";
|
||||
homepage = "https://foldingathome.org/";
|
||||
license = lib.licenses.unfree;
|
||||
maintainers = [ lib.maintainers.zimbatm ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
58
pkgs/applications/science/misc/foldingathome/control.nix
Normal file
58
pkgs/applications/science/misc/foldingathome/control.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ lib, stdenv
|
||||
, autoPatchelfHook
|
||||
, dpkg
|
||||
, fahviewer
|
||||
, fetchurl
|
||||
, makeWrapper
|
||||
, python2
|
||||
}:
|
||||
let
|
||||
majMin = lib.versions.majorMinor version;
|
||||
version = "7.6.21";
|
||||
|
||||
python = python2.withPackages
|
||||
(
|
||||
ps: [
|
||||
ps.pycairo
|
||||
ps.pygobject2
|
||||
ps.pygtk
|
||||
]
|
||||
);
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
inherit version;
|
||||
pname = "fahcontrol";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.foldingathome.org/releases/public/release/fahcontrol/debian-stable-64bit/v${majMin}/fahcontrol_${version}-1_all.deb";
|
||||
sha256 = "1vfrdqkrvdlyxaw3f6z92w5dllrv6810lmf8yhcmjcwmphipvf71";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
dpkg
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [ fahviewer python ];
|
||||
|
||||
unpackPhase = ''
|
||||
dpkg-deb -x ${src} ./
|
||||
'';
|
||||
|
||||
installPhase = "cp -ar usr $out";
|
||||
|
||||
postFixup = ''
|
||||
sed -e "s|/usr/bin|$out/bin|g" -i $out/share/applications/FAHControl.desktop
|
||||
wrapProgram "$out/bin/FAHControl" \
|
||||
--suffix PATH : "${fahviewer.outPath}/bin" \
|
||||
--set PYTHONPATH "$out/lib/python2.7/dist-packages"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Folding@home control";
|
||||
homepage = "https://foldingathome.org/";
|
||||
license = lib.licenses.unfree;
|
||||
maintainers = [ lib.maintainers.zimbatm ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
55
pkgs/applications/science/misc/foldingathome/viewer.nix
Normal file
55
pkgs/applications/science/misc/foldingathome/viewer.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ lib, stdenv
|
||||
, autoPatchelfHook
|
||||
, dpkg
|
||||
, fetchurl
|
||||
, freeglut
|
||||
, gcc-unwrapped
|
||||
, libGL
|
||||
, libGLU
|
||||
, makeWrapper
|
||||
, zlib
|
||||
}:
|
||||
let
|
||||
majMin = lib.versions.majorMinor version;
|
||||
version = "7.6.21";
|
||||
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";
|
||||
sha256 = "00fd00pf6fcpplcaahvy9ir60mk69d9rcmwsyq3jrv9mxqm9aq7p";
|
||||
};
|
||||
|
||||
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 = lib.licenses.unfree;
|
||||
maintainers = [ lib.maintainers.zimbatm ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue