Added 'bumblebee', a package that facilitates NVidia Optimus graphics with X11.

Note: it relies heavily on 'virtualgl'. This also makes the approach taken
by bumblebee not very effective.
So, this package is actually mainly useful for shutting down your card so that
it does not consume power/produce heat.

See the comments in bumblebee/default.nix

svn path=/nixpkgs/trunk/; revision=32036
This commit is contained in:
Arie Middelkoop
2012-02-05 00:51:35 +00:00
parent b4d5957ac4
commit 3f1054b1ec
9 changed files with 282 additions and 9 deletions
@@ -0,0 +1,24 @@
{ stdenv, fetchurl }:
let name = "libbsd-0.3.0";
in stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "http://libbsd.freedesktop.org/releases/${name}.tar.gz";
sha256 = "fbf36ed40443e1d0d795adbae8d461952509e610c3ccf0866ae160b723f7fe38";
};
patchPhase = ''
substituteInPlace Makefile \
--replace "/usr" "$out" \
--replace "{exec_prefix}" "{prefix}"
'';
meta = {
description = "Common functions found on BSD systems";
homepage = http://libbsd.freedesktop.org/;
license = "BSD3";
};
}