ecwolf: replace fetchurl with fetchFromBitbucket
This change makes ecwolf’s src slightly simpler. It also makes ecwolf’s src more future proof. When ECWolf 2.0 is released, the “1.x” in the maniacsvault.net URL is likely to change, but the Bitbuck repo isn’t likely to change. Additionally, this change reduces the difference between ecwolf’s default.nix and lzwolf’s default.nix (LZWolf is a fork of ECWolf). Finally, this change makes nixpkgs rely on bitbucket.org instead of maniacsvault.net. bitbucket.org is probably more reliable than maniacsvault.net.
This commit is contained in:
parent
30ace348c0
commit
aeb8fd1296
1 changed files with 6 additions and 4 deletions
|
@ -1,12 +1,14 @@
|
|||
{ 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, SDL, SDL_mixer, gtk2 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ecwolf";
|
||||
version = "1.3.3";
|
||||
|
||||
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 = "7RjWoABZkN5J7GpG7ie7F3rSrI3Kp3I8KRalZAE92pQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake copyDesktopItems pkg-config ];
|
||||
|
|
Loading…
Reference in a new issue