Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 28 lines 730 B view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation { 8 pname = "gpu-switch-unstable"; 9 version = "2017-04-28"; 10 src = fetchFromGitHub { 11 owner = "0xbb"; 12 repo = "gpu-switch"; 13 rev = "a365f56d435c8ef84c4dd2ab935ede4992359e31"; 14 sha256 = "1jnh43nijkqd83h7piq7225ixziggyzaalabgissyxdyz6szcn0r"; 15 }; 16 installPhase = '' 17 mkdir -p $out/bin 18 cp gpu-switch $out/bin/ 19 ''; 20 meta = with lib; { 21 description = "Application that allows to switch between the graphic cards of dual-GPU MacBook Pro models"; 22 mainProgram = "gpu-switch"; 23 homepage = "https://github.com/0xbb/gpu-switch"; 24 license = licenses.mit; 25 platforms = platforms.linux; 26 maintainers = [ maintainers.msiedlarek ]; 27 }; 28}