mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
b2f3e10a35
Using primusrun will work as expected in a multilib environment. Even if the initial program executes a antoehr program of the another architecture. Assuming the program does not modify LD_LIBRARY_PATH inappropriately. This does not update virtualgl for seemless multilib. I was unable to get a mixed 64/32 bit environment to work with VirtualGL. The mechanism VirtualGL uses to inject the fake GL library would fail if both 32bit and 64 bit libraries were in the environment. Instead the bumblebee package creates a optirun32 executable that can be used to run a 32bit executable with optimus on a 64 bit host. This is not created if the host is 32bit. For my usage, gaming under wine, the primusrun executable works as expected regardless of 32bit/64bit.
21 lines
411 B
Nix
21 lines
411 B
Nix
{ stdenv, fetchgit
|
|
, x11, mesa
|
|
, nvidia
|
|
}:
|
|
let
|
|
version = "1.0.0748176";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "primus-lib-${version}";
|
|
src = fetchgit {
|
|
url = git://github.com/amonakov/primus.git;
|
|
rev = "074817614c014e3a99259388cb18fd54648b659a";
|
|
sha256 = "0mrh432md6zrm16avxyk57mgszrqpgwdjahspchvlaccqxp3x82v";
|
|
};
|
|
|
|
inherit nvidia mesa;
|
|
|
|
buildInputs = [ x11 mesa ];
|
|
builder = ./builder.sh;
|
|
}
|