diff options
author | Mikołaj Siedlarek <mikolaj@siedlarek.pl> | 2018-03-29 20:07:04 +0200 |
---|---|---|
committer | Mikołaj Siedlarek <mikolaj@siedlarek.pl> | 2018-03-29 20:07:04 +0200 |
commit | 055c2f28f0cb08241644e1f64efe0523fdd96375 (patch) | |
tree | cac2d4b33f0cd8721b051dd66ae59da01fb9290f /pkgs/os-specific/linux/gpu-switch | |
parent | 68c4605f1a251b97cb0fcde251ce52d498e2cef8 (diff) |
gpu-switch: init at 2017-04-28
Diffstat (limited to 'pkgs/os-specific/linux/gpu-switch')
-rw-r--r-- | pkgs/os-specific/linux/gpu-switch/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/gpu-switch/default.nix b/pkgs/os-specific/linux/gpu-switch/default.nix new file mode 100644 index 0000000000000..d56253c6cedd1 --- /dev/null +++ b/pkgs/os-specific/linux/gpu-switch/default.nix @@ -0,0 +1,23 @@ +{ stdenv, lib, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "gpu-switch-unstable-${version}"; + 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"; + homepage = https://github.com/0xbb/gpu-switch; + license = licenses.mit; + platforms = platforms.linux; + maintainers = [ maintainers.msiedlarek ]; + }; +} |