nixpkgs-suyu/pkgs/tools/graphics/glxinfo/default.nix

28 lines
582 B
Nix
Raw Normal View History

{stdenv, fetchurl, xlibsWrapper, mesa}:
2013-04-17 13:36:05 +02:00
let version = "8.1.0"; in
stdenv.mkDerivation {
name = "glxinfo-${version}";
src = fetchurl {
url = "ftp://ftp.freedesktop.org/pub/mesa/demos/${version}/mesa-demos-${version}.tar.bz2";
2013-04-17 13:36:05 +02:00
sha256 = "0a58hw5850731p4smz4zqsbvyxvgjf7n5xdbs9l1wamk8q3gl0wp";
};
buildInputs = [xlibsWrapper mesa];
configurePhase = "true";
buildPhase = "
cd src/xdemos
gcc glxinfo.c -o glxinfo -lGL -lX11
gcc glxgears.c -o glxgears -lGL -lX11
";
installPhase = "
mkdir -p $out/bin
cp glxinfo glxgears $out/bin/
";
}