ecwolf: cleanup, format

+13 -14
+13 -14
pkgs/games/ecwolf/default.nix
··· 1 - {stdenv, lib, fetchurl, makeDesktopItem, copyDesktopItems, cmake, pkg-config, zlib, bzip2, libjpeg, SDL, SDL_mixer, gtk2}: 2 3 - let 4 - desktopItem = makeDesktopItem { 5 - name = "ecwolf"; 6 - exec = "ecwolf"; 7 - comment = "Enhanced Wolfenstein 3D port"; 8 - desktopName = "Wolfenstein 3D"; 9 - categories = "Game;"; 10 - }; 11 - in 12 stdenv.mkDerivation rec { 13 pname = "ecwolf"; 14 version = "1.3.3"; ··· 18 sha256 = "1sbdv672dz47la5a5qwmdi1v258k9kc5dkx7cdj2b6gk8nbm2srl"; 19 }; 20 21 - nativeBuildInputs = [ cmake pkg-config ]; 22 - buildInputs = [ zlib bzip2 libjpeg SDL SDL_mixer gtk2 copyDesktopItems ]; 23 24 - desktopItems = [ desktopItem ]; 25 26 # Change the location where the ecwolf executable looks for the ecwolf.pk3 27 # file. ··· 35 sed -i -e "s|ecwolf.pk3|$out/share/ecwolf/ecwolf.pk3|" src/version.h 36 '' 37 # Disable app bundle creation on Darwin. It fails, and it is not needed to run it from the Nix store 38 - + lib.optionalString (stdenv.isDarwin) '' 39 sed -i -e "s|include(\''${CMAKE_CURRENT_SOURCE_DIR}/macosx/install.txt)||" src/CMakeLists.txt 40 ''; 41
··· 1 + { stdenv, lib, fetchurl, makeDesktopItem, copyDesktopItems, cmake, pkg-config, zlib, bzip2, libjpeg, SDL, SDL_mixer, gtk2 }: 2 3 stdenv.mkDerivation rec { 4 pname = "ecwolf"; 5 version = "1.3.3"; ··· 9 sha256 = "1sbdv672dz47la5a5qwmdi1v258k9kc5dkx7cdj2b6gk8nbm2srl"; 10 }; 11 12 + nativeBuildInputs = [ cmake copyDesktopItems pkg-config ]; 13 + buildInputs = [ zlib bzip2 libjpeg SDL SDL_mixer gtk2 ]; 14 15 + desktopItems = [ 16 + (makeDesktopItem { 17 + name = "ecwolf"; 18 + exec = "ecwolf"; 19 + comment = "Enhanced Wolfenstein 3D port"; 20 + desktopName = "Wolfenstein 3D"; 21 + categories = "Game;"; 22 + }) 23 + ]; 24 25 # Change the location where the ecwolf executable looks for the ecwolf.pk3 26 # file. ··· 34 sed -i -e "s|ecwolf.pk3|$out/share/ecwolf/ecwolf.pk3|" src/version.h 35 '' 36 # Disable app bundle creation on Darwin. It fails, and it is not needed to run it from the Nix store 37 + + lib.optionalString stdenv.isDarwin '' 38 sed -i -e "s|include(\''${CMAKE_CURRENT_SOURCE_DIR}/macosx/install.txt)||" src/CMakeLists.txt 39 ''; 40