Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 55 lines 981 B view raw
1{ 2 lib, 3 stdenv, 4 fetchgit, 5 cmake, 6 SDL2, 7 SDL2_image, 8 boost, 9 libpng, 10 SDL2_mixer, 11 pkg-config, 12 libGLU, 13 libGL, 14 git, 15 jsoncpp, 16}: 17stdenv.mkDerivation { 18 pname = "pingus"; 19 version = "unstable-0.7.6.0.20191104"; 20 21 nativeBuildInputs = [ 22 cmake 23 pkg-config 24 git 25 ]; 26 buildInputs = [ 27 SDL2 28 SDL2_image 29 boost 30 libpng 31 SDL2_mixer 32 libGLU 33 libGL 34 jsoncpp 35 ]; 36 src = fetchgit { 37 url = "https://gitlab.com/pingus/pingus/"; 38 rev = "709546d9b9c4d6d5f45fc9112b45ac10c7f9417d"; 39 sha256 = "11mmzk0766riaw5qyd1r5i7s7vczbbzfccm92bvgrm99iy1sj022"; 40 fetchSubmodules = true; 41 }; 42 43 postPatch = '' 44 # Fix missing gcc-13 headers 45 sed -e '1i #include <cstdint>' -i src/util/pathname.hpp 46 ''; 47 48 meta = { 49 description = "Puzzle game with mechanics similar to Lemmings"; 50 mainProgram = "pingus"; 51 platforms = lib.platforms.linux; 52 maintainers = [ lib.maintainers.raskin ]; 53 license = lib.licenses.gpl3; 54 }; 55}