~jb55/polyadvent

ref: 5d1a173bea9026bf34c8e135d3fe68d122710aa7 polyadvent/default.nix -rw-r--r-- 778 bytes
5d1a173bWilliam Casarin no debug 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ nixpkgs ? import <nixpkgs> {}
}:

let
  pkgs = nixpkgs.pkgs;
  stdenv = pkgs.stdenv;
in
stdenv.mkDerivation rec {
  name = "polyadvent";
  version = "0.1";

  src = ./.;

  makeFlags = "PREFIX=$(out)";

  nativeBuildInputs = with pkgs; [ tinycc pkg-config gdb ];

  buildInputs = with pkgs; [ SDL2 mesa libglvnd ] ++ 
                (with xorg; [ libX11 libxcb libXau libXdmcp libXext libXcursor 
		              libXrender libXfixes libXinerama libXi libXrandr 
			      libXScrnSaver libXxf86vm ]);

  shellHook = ''
	  export LD_LIBRARY_PATH=${pkgs.libglvnd}/lib;
  '';

  meta = with stdenv.lib; {
    description = "Procedural low poly fun";
    homepage = "https://jb55.com/polyadvent";
    maintainers = with maintainers; [ jb55 ];
    license = licenses.gpl2;
  };
}