at 24.11-pre 24 lines 723 B view raw
1{ stdenv, lib, fetchFromGitHub }: 2 3stdenv.mkDerivation { 4 pname = "gpu-switch-unstable"; 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 mainProgram = "gpu-switch"; 19 homepage = "https://github.com/0xbb/gpu-switch"; 20 license = licenses.mit; 21 platforms = platforms.linux; 22 maintainers = [ maintainers.msiedlarek ]; 23 }; 24}