simgear: fix sha256sum and clean up
This commit is contained in:
parent
95c69d4c90
commit
58168ed93b
@ -1,51 +1,27 @@
|
|||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl, plib, freeglut, xproto, libX11, libXext, xextproto, libXi
|
||||||
, plib, freeglut, xproto, libX11, libXext, xextproto, libXi , inputproto
|
, inputproto, libICE, libSM, libXt, libXmu, mesa, boost, zlib, libjpeg, freealut
|
||||||
, libICE, libSM, libXt, libXmu, mesa, boost, zlib, libjpeg , freealut
|
|
||||||
, openscenegraph, openal, expat, cmake, apr
|
, openscenegraph, openal, expat, cmake, apr
|
||||||
, ...}:
|
}:
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name = "simgear-${version}";
|
||||||
sourceInfo = rec {
|
|
||||||
baseName="simgear";
|
|
||||||
version = "3.0.0";
|
version = "3.0.0";
|
||||||
name="${baseName}-${version}";
|
|
||||||
extension="tar.bz2";
|
src = fetchurl {
|
||||||
url="http://mirrors.ibiblio.org/pub/mirrors/simgear/ftp/Source/${name}.${extension}";
|
url = "http://mirrors.ibiblio.org/pub/mirrors/simgear/ftp/Source/${name}.tar.bz2";
|
||||||
hash="05l0wvi0s4a98ihmjbpcc66rj6qy3hrsqkjs388bddf2ws3qyi09";
|
sha256 = "1ssrcmvk3a4dv0k4vjzndmirwmdgzk689d7wpmjm423nydmwajh0";
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
buildInputs = [ plib freeglut xproto libX11 libXext xextproto libXi inputproto
|
||||||
inherit buildInputs;
|
libICE libSM libXt libXmu mesa boost zlib libjpeg freealut
|
||||||
|
openscenegraph openal expat cmake apr ];
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
meta = with stdenv.lib; {
|
||||||
phaseNames = [ "doCmake" "doMakeInstall" ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Simulation construction toolkit";
|
description = "Simulation construction toolkit";
|
||||||
maintainers = with a.lib.maintainers;
|
homepage = https://gitorious.org/fg/simgear;
|
||||||
[
|
maintainers = with maintainers; [ raskin ];
|
||||||
raskin
|
platforms = platforms.linux;
|
||||||
];
|
license = licenses.lgpl2;
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux;
|
|
||||||
license = a.lib.licenses.lgpl2;
|
|
||||||
};
|
};
|
||||||
passthru = {
|
}
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "ftp://ftp.goflyflightgear.com/simgear/Source/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) x
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user