forked from mirrors/nixpkgs
glestae: reimplement using mkDerivation
This commit is contained in:
parent
f3e821c6e5
commit
33d825aaea
|
@ -1,55 +1,34 @@
|
||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl
|
||||||
, mesa, cmake, lua5, SDL, openal, libvorbis, libogg, zlib, physfs
|
, mesa, cmake, lua5, SDL, openal, libvorbis, libogg, zlib, physfs
|
||||||
, freetype, libpng, libjpeg, glew, wxGTK28, libxml2, libpthreadstubs
|
, freetype, libpng, libjpeg, glew, wxGTK28, libxml2, libpthreadstubs
|
||||||
, ...}:
|
}:
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name = "glestae-${version}";
|
||||||
sourceInfo = rec {
|
version = "0.3.2";
|
||||||
baseName="glestae";
|
|
||||||
project="${baseName}";
|
src = fetchurl {
|
||||||
version="0.3.2";
|
url = "mirror://sourceforge/project/glestae/${version}/glestae-src-${version}.tar.bz2";
|
||||||
name="${baseName}-${version}";
|
sha256 = "1k02vf88mms0zbprvy1b1qdwjzmdag5rd1p43f0gpk1sms6isn94";
|
||||||
nameSuffix="-src";
|
|
||||||
extension="tar.bz2";
|
|
||||||
url="mirror://sourceforge/project/${project}/${version}/${baseName}${nameSuffix}-${version}.${extension}";
|
|
||||||
hash="1k02vf88mms0zbprvy1b1qdwjzmdag5rd1p43f0gpk1sms6isn94";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
buildInputs =
|
||||||
inherit buildInputs;
|
[ mesa cmake lua5 SDL openal libvorbis libogg zlib physfs
|
||||||
|
freetype libpng libjpeg glew wxGTK28 libxml2 libpthreadstubs
|
||||||
/* doConfigure should be removed if not needed */
|
];
|
||||||
phaseNames = ["doCmake" "doMakeInstall"];
|
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DLUA_LIBRARIES=-llua"
|
"-DLUA_LIBRARIES=-llua"
|
||||||
"-DGAE_DATA_DIR=$out/share/glestae"
|
"-DGAE_DATA_DIR=$out/share/glestae"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A 3D RTS - fork of inactive Glest project";
|
description = "A 3D RTS - fork of inactive Glest project";
|
||||||
maintainers = [ a.lib.maintainers.raskin ];
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
||||||
platforms = a.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
# Note that some data seems to be under separate redistributable licenses
|
# Note that some data seems to be under separate redistributable licenses
|
||||||
license = a.lib.licenses.gpl2Plus;
|
license = stdenv.lib.licenses.gpl2Plus;
|
||||||
broken = true;
|
broken = true;
|
||||||
|
downloadPage = "http://sourceforge.net/projects/glestae/files/0.3.2/";
|
||||||
};
|
};
|
||||||
passthru = {
|
}
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://sourceforge.net/projects/glestae/files/0.3.2/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) x
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue