Skip to content

Commit

Permalink
Merge pull request #211602 from Jayman2000/ecwolf-1.4.0
Browse files Browse the repository at this point in the history
ecwolf: replace `fetchurl` with `fetchFromBitbucket` & 1.3.3 -> 1.4.0
  • Loading branch information
NickCao authored Jan 24, 2023
2 parents 3f84a01 + d0d65ba commit 542ef38
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions pkgs/games/ecwolf/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,32 @@
{ stdenv, lib, fetchurl, makeDesktopItem, copyDesktopItems, cmake, pkg-config, zlib, bzip2, libjpeg, SDL, SDL_mixer, gtk2 }:
{ stdenv
, lib
, fetchFromBitbucket
, makeDesktopItem
, copyDesktopItems
, cmake
, pkg-config
, zlib
, bzip2
, libjpeg
, SDL2
, SDL2_net
, SDL2_mixer
, gtk2
}:

stdenv.mkDerivation rec {
pname = "ecwolf";
version = "1.3.3";
version = "1.4.0";

src = fetchurl {
url = "https://maniacsvault.net/ecwolf/files/ecwolf/1.x/${pname}-${version}-src.tar.xz";
sha256 = "1sbdv672dz47la5a5qwmdi1v258k9kc5dkx7cdj2b6gk8nbm2srl";
src = fetchFromBitbucket {
owner = pname;
repo = pname;
rev = version;
sha256 = "n1G1zvfE1l42fbJ7ZaMdV0QXn45PjMpaaZTDQAOBtYk=";
};

nativeBuildInputs = [ cmake copyDesktopItems pkg-config ];
buildInputs = [ zlib bzip2 libjpeg SDL SDL_mixer gtk2 ];
buildInputs = [ zlib bzip2 libjpeg SDL2 SDL2_net SDL2_mixer gtk2 ];

desktopItems = [
(makeDesktopItem {
Expand Down Expand Up @@ -45,6 +61,7 @@ stdenv.mkDerivation rec {
'';

meta = with lib; {
broken = stdenv.isDarwin;
description = "Enhanched SDL-based port of Wolfenstein 3D for various platforms";
homepage = "https://maniacsvault.net/ecwolf/";
license = licenses.gpl2Plus;
Expand Down

0 comments on commit 542ef38

Please sign in to comment.