at 18.09-beta 703 B view raw
1{ stdenv, lib, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 name = "gpu-switch-unstable-${version}"; 5 version = "2017-04-28"; 6 src = fetchFromGitHub { 7 owner = "0xbb"; 8 repo = "gpu-switch"; 9 rev = "a365f56d435c8ef84c4dd2ab935ede4992359e31"; 10 sha256 = "1jnh43nijkqd83h7piq7225ixziggyzaalabgissyxdyz6szcn0r"; 11 }; 12 installPhase = '' 13 mkdir -p $out/bin 14 cp gpu-switch $out/bin/ 15 ''; 16 meta = with lib; { 17 description = "Application that allows to switch between the graphic cards of dual-GPU MacBook Pro models"; 18 homepage = https://github.com/0xbb/gpu-switch; 19 license = licenses.mit; 20 platforms = platforms.linux; 21 maintainers = [ maintainers.msiedlarek ]; 22 }; 23}