evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / dr / dreamchess / package.nix
blob65df152c7a16fc4249a59269d4bdb12b2b18523c
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , bison
6 , flex
7 , gettext
8 , SDL2
9 , SDL2_image
10 , SDL2_mixer
11 , expat
12 , glew
13 , freetype
14 , libSM
15 , libXext
16 , libGL
17 , libGLU
18 , xorg
21 stdenv.mkDerivation (finalAttrs: {
22   pname = "dreamchess";
23   version = "0.3.0";
24   src = fetchFromGitHub {
25     owner = "dreamchess";
26     repo = "dreamchess";
27     rev = "${finalAttrs.version}";
28     hash = "sha256-qus/RjwdAl9SuDXfLVKTPImqrvPF3xSDVlbXYLM3JNE=";
29   };
31   buildInputs = [
32     SDL2
33     SDL2_image
34     SDL2_mixer
35     expat
36     glew
37     freetype
38     libSM
39     libXext
40     libGL
41     libGLU
42     xorg.libxcb
43     xorg.libX11
44   ];
45   nativeBuildInputs = [
46     cmake
47     bison
48     flex
49     gettext
50   ];
51   cmakeFlags = [
52     (lib.cmakeBool "CMAKE_VERBOSE_MAKEFILE" true)
53     (lib.cmakeFeature "OpenGL_GL_PREFERENCE" "GLVND")
54     (lib.cmakeFeature "CMAKE_INSTALL_DATAROOTDIR" "${placeholder "out"}/share")
55   ];
57   doInstallCheck = true;
59   postInstallCheck = ''
60     stat "''${!outputBin}/bin/${finalAttrs.meta.mainProgram}"
61   '';
63   meta = {
64     homepage = "https://github.com/dreamchess/dreamchess";
65     description = "OpenGL Chess Game";
66     license = lib.licenses.gpl3Only;
67     maintainers = with lib.maintainers; [ spk ];
68     platforms = lib.platforms.linux;
69     mainProgram = "dreamchess";
70   };