polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

default.nix (778B)


      1 { nixpkgs ? import <nixpkgs> {}
      2 }:
      3 
      4 let
      5   pkgs = nixpkgs.pkgs;
      6   stdenv = pkgs.stdenv;
      7 in
      8 stdenv.mkDerivation rec {
      9   name = "polyadvent";
     10   version = "0.1";
     11 
     12   src = ./.;
     13 
     14   makeFlags = "PREFIX=$(out)";
     15 
     16   nativeBuildInputs = with pkgs; [ tinycc pkg-config gdb ];
     17 
     18   buildInputs = with pkgs; [ SDL2 mesa libglvnd ] ++ 
     19                 (with xorg; [ libX11 libxcb libXau libXdmcp libXext libXcursor 
     20 		              libXrender libXfixes libXinerama libXi libXrandr 
     21 			      libXScrnSaver libXxf86vm ]);
     22 
     23   shellHook = ''
     24 	  export LD_LIBRARY_PATH=${pkgs.libglvnd}/lib;
     25   '';
     26 
     27   meta = with stdenv.lib; {
     28     description = "Procedural low poly fun";
     29     homepage = "https://jb55.com/polyadvent";
     30     maintainers = with maintainers; [ jb55 ];
     31     license = licenses.gpl2;
     32   };
     33 }