csci5607/assignment-2a/default.nix

27 lines
436 B
Nix
Raw Normal View History

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=${./.}" ];
}