megaglest: use fetchFromGitHub

This commit is contained in:
Francesco Gazzetta 2017-12-21 20:53:42 +01:00
parent a2ca2b535c
commit 484c24b324

View File

@ -1,6 +1,7 @@
{ stdenv, fetchgit, cmake, pkgconfig, git, curl, SDL, xercesc, openal, lua, vlc { stdenv, cmake, pkgconfig, git, curl, SDL, xercesc, openal, lua, vlc
, libjpeg, wxGTK, cppunit, ftgl, glew, libogg, libvorbis, buildEnv, libpng , libjpeg, wxGTK, cppunit, ftgl, glew, libogg, libvorbis, buildEnv, libpng
, fontconfig, freetype, xorg, makeWrapper, bash, which, gnome3, mesa_glu, glib , fontconfig, freetype, xorg, makeWrapper, bash, which, gnome3, mesa_glu, glib
, fetchFromGitHub
}: }:
let let
version = "3.9.2"; version = "3.9.2";
@ -18,9 +19,11 @@ in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "megaglest-${version}"; name = "megaglest-${version}";
src = fetchgit { src = fetchFromGitHub {
url = "git://github.com/MegaGlest/megaglest-source"; owner = "MegaGlest";
rev = "refs/tags/${version}"; repo = "megaglest-source";
rev = "${version}";
fetchSubmodules = true;
sha256 = "1406ns1533x5678d91s2xxxv19q7r238zsaxr37c6mv5jrx7s5jv"; sha256 = "1406ns1533x5678d91s2xxxv19q7r238zsaxr37c6mv5jrx7s5jv";
}; };