25 lines
417 B
Nix
25 lines
417 B
Nix
{ stdenv, cmake, ninja, libglvnd, libGLU, xorg }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "assignment-2a";
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = [ cmake ninja ];
|
|
buildInputs = [
|
|
libglvnd
|
|
libGLU
|
|
xorg.libX11
|
|
xorg.libXcursor
|
|
xorg.libXext
|
|
xorg.libXi
|
|
xorg.libXinerama
|
|
xorg.libXrandr
|
|
xorg.libXrender
|
|
];
|
|
|
|
preBuild = ''
|
|
env
|
|
'';
|
|
|
|
cmakeFlags = [ "-DCMAKE_CURRENT_SOURCE_DIR=${./.}" ];
|
|
}
|