2023-04-04 07:22:46 +00:00
|
|
|
{ stdenv, cmake, ninja, libglvnd, libGLU, xorg, spdlog }:
|
2023-04-03 07:56:41 +00:00
|
|
|
|
|
|
|
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
|
2023-04-04 07:22:46 +00:00
|
|
|
spdlog
|
2023-04-03 07:56:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
env
|
|
|
|
'';
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DCMAKE_CURRENT_SOURCE_DIR=${./.}" ];
|
|
|
|
}
|