26 lines
436 B
Nix
26 lines
436 B
Nix
{ stdenv, cmake, ninja, libglvnd, libGLU, xorg, spdlog }:
|
|
|
|
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
|
|
spdlog
|
|
];
|
|
|
|
preBuild = ''
|
|
env
|
|
'';
|
|
|
|
cmakeFlags = [ "-DCMAKE_CURRENT_SOURCE_DIR=${./.}" ];
|
|
}
|