forked from mirrors/nixpkgs
7bd65d54f7
While looking at the sphinx package I noticed it was heavily undermaintained, which is when we noticed nand0p has been inactive for roughly 18 months. It is therefore prudent to assume they will not be maintaining their packages, modules and tests. - Their last contribution to nixpkgs was in 2019/12 - On 2021/05/08 I wrote them an email to the address listed in the maintainer-list, which they didn't reply to.
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ stdenv, lib, fetchFromGitHub, pkg-config
|
|
, alsaLib, libpulseaudio, SDL2, SDL2_image, SDL2_mixer }:
|
|
|
|
# - set the opendune configuration at ~/.config/opendune/opendune.ini:
|
|
# [opendune]
|
|
# datadir=/path/to/opendune-data
|
|
# - download dune2 into [datadir] http://www.bestoldgames.net/eng/old-games/dune-2.php
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "opendune";
|
|
version = "0.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenDUNE";
|
|
repo = "OpenDUNE";
|
|
rev = version;
|
|
sha256 = "15rvrnszdy3db8s0dmb696l4isb3x2cpj7wcl4j09pdi59pc8p37";
|
|
};
|
|
|
|
configureFlags = [
|
|
"--with-alsa=${lib.getLib alsaLib}/lib/libasound.so"
|
|
"--with-pulse=${lib.getLib libpulseaudio}/lib/libpulse.so"
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ alsaLib libpulseaudio SDL2 SDL2_image SDL2_mixer ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm555 -t $out/bin bin/opendune
|
|
install -Dm444 -t $out/share/doc/opendune enhancement.txt README.txt
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Dune, Reinvented";
|
|
homepage = "https://github.com/OpenDUNE/OpenDUNE";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|