2018-03-29 18:07:04 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "gpu-switch-unstable";
|
2018-03-29 18:07:04 +00:00
|
|
|
version = "2017-04-28";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "0xbb";
|
|
|
|
repo = "gpu-switch";
|
|
|
|
rev = "a365f56d435c8ef84c4dd2ab935ede4992359e31";
|
|
|
|
sha256 = "1jnh43nijkqd83h7piq7225ixziggyzaalabgissyxdyz6szcn0r";
|
|
|
|
};
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp gpu-switch $out/bin/
|
|
|
|
'';
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Application that allows to switch between the graphic cards of dual-GPU MacBook Pro models";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/0xbb/gpu-switch";
|
2018-03-29 18:07:04 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.msiedlarek ];
|
|
|
|
};
|
|
|
|
}
|