diff options
author | Laurent Arnoud <laurent@spkdev.net> | 2024-05-14 22:21:53 +0200 |
---|---|---|
committer | Laurent Arnoud <laurent@spkdev.net> | 2024-05-22 14:28:51 +0200 |
commit | 5cfeab887c3e3e725d8eedb686bdaea7e28a064e (patch) | |
tree | 97f0a6bcbf4aecaf8664668bff32e4a422711037 /pkgs/by-name/dr | |
parent | 6ca18af3b350ca2f23a603c00b98c625490caf13 (diff) |
dreamchess: init at 0.3.0
Diffstat (limited to 'pkgs/by-name/dr')
-rw-r--r-- | pkgs/by-name/dr/dreamchess/package.nix | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/pkgs/by-name/dr/dreamchess/package.nix b/pkgs/by-name/dr/dreamchess/package.nix new file mode 100644 index 0000000000000..f8829ac9587e3 --- /dev/null +++ b/pkgs/by-name/dr/dreamchess/package.nix @@ -0,0 +1,71 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, bison +, flex +, gettext +, SDL2 +, SDL2_image +, SDL2_mixer +, expat +, glew +, freetype +, libSM +, libXext +, libGL +, libGLU +, xorg +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "dreamchess"; + version = "0.3.0"; + src = fetchFromGitHub { + owner = "dreamchess"; + repo = "dreamchess"; + rev = "${finalAttrs.version}"; + hash = "sha256-qus/RjwdAl9SuDXfLVKTPImqrvPF3xSDVlbXYLM3JNE="; + }; + + buildInputs = [ + SDL2 + SDL2_image + SDL2_mixer + expat + glew + freetype + libSM + libXext + libGL + libGLU + xorg.libxcb + xorg.libX11 + ]; + nativeBuildInputs = [ + cmake + bison + flex + gettext + ]; + cmakeFlags = [ + (lib.cmakeBool "CMAKE_VERBOSE_MAKEFILE" true) + (lib.cmakeFeature "OpenGL_GL_PREFERENCE" "GLVND") + (lib.cmakeFeature "CMAKE_INSTALL_DATAROOTDIR" "${placeholder "out"}/share") + ]; + + doInstallCheck = true; + + postInstallCheck = '' + stat "''${!outputBin}/bin/${finalAttrs.meta.mainProgram}" + ''; + + meta = { + homepage = "https://github.com/dreamchess/dreamchess"; + description = "An OpenGL Chess Game"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ spk ]; + platforms = lib.platforms.linux; + mainProgram = "dreamchess"; + }; +}) |