From 8b713a9958634bf5263ee4d37ecc88d219f02c56 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Mon, 11 Jul 2022 14:29:38 +0200 Subject: [PATCH] keeperrl: alpha28 -> alpha34 --- pkgs/games/keeperrl/default.nix | 38 ++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/pkgs/games/keeperrl/default.nix b/pkgs/games/keeperrl/default.nix index f1c0f1712629..94eeb46376a6 100644 --- a/pkgs/games/keeperrl/default.nix +++ b/pkgs/games/keeperrl/default.nix @@ -1,17 +1,27 @@ -{ lib, stdenv, fetchFromGitHub, requireFile -, openal, curl, libogg, libvorbis -, SDL2, SDL2_image, zlib +{ lib +, stdenv +, fetchFromGitHub +, requireFile +, openal +, curl +, libogg +, libvorbis +, SDL2 +, SDL2_image +, zlib +, clang +, libtheora , unfree_assets ? false }: stdenv.mkDerivation rec { pname = "keeperrl"; - version = "alpha28"; + version = "alpha34"; free-src = fetchFromGitHub { owner = "miki151"; repo = "keeperrl"; rev = version; - sha256 = "0isj8ijn5a89m2r5cxk4lcsq0cydx7c0h87vgr8v5cndm3rd27cy"; + sha256 = "sha256-0sww+ppctXvxMouclG3OdXpcNgrrOZJw9z8s2GhJ+IE="; }; assets = if unfree_assets then requireFile rec { @@ -28,7 +38,7 @@ stdenv.mkDerivation rec { "nix-prefetch-url file://\$PWD/${name}". ''; - sha256 = "0115pxdzdyma2vicxgr0j21pp82gxdyrlj090s8ihp0b50f0nk53"; + sha256 = "0115pxdzdyma2vicxgr0j21pp82gxdyrlj090s8ihp0b50f0nlll"; } else null; sourceRoot = "source"; @@ -40,7 +50,7 @@ stdenv.mkDerivation rec { ''; buildInputs = [ - openal curl libogg libvorbis SDL2 SDL2_image zlib + openal curl libogg libvorbis libtheora SDL2 SDL2_image zlib clang ]; NIX_CFLAGS_COMPILE = [ @@ -49,11 +59,13 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - makeFlags = [ "OPT=true" - "RELEASE=true" - "DATA_DIR=$(out)/share" - "ENABLE_LOCAL_USER_DIR=true" - ]; + makeFlags = [ + "OPT=true" + "RELEASE=true" + "DATA_DIR=$(out)/share" + "ENABLE_LOCAL_USER_DIR=true" + "NO_STEAMWORKS=true" + ]; installPhase = '' install -Dm755 keeper $out/bin/keeper @@ -68,7 +80,7 @@ stdenv.mkDerivation rec { description = "A dungeon management rogue-like"; homepage = "https://keeperrl.com/"; license = licenses.gpl2; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ onny ]; # TODO: Add OS X platforms = [ "i686-linux" "x86_64-linux" ]; };