mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
keeperrl: alpha28 -> alpha34
This commit is contained in:
parent
37b95c8d49
commit
8b713a9958
|
@ -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" ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue