From 58b1a92f0825f729875cd874c5eef4ae604f91f0 Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Tue, 6 Aug 2019 16:04:24 -0400 Subject: [PATCH] simgear: 2018.3.1 -> 2019.1.1 --- .../development/libraries/simgear/default.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/simgear/default.nix b/pkgs/development/libraries/simgear/default.nix index 11612eeb2884..471bcb222347 100644 --- a/pkgs/development/libraries/simgear/default.nix +++ b/pkgs/development/libraries/simgear/default.nix @@ -3,26 +3,29 @@ , openscenegraph, openal, expat, cmake, apr , curl }: - +let + version = "2019.1.1"; + shortVersion = builtins.substring 0 6 version; +in stdenv.mkDerivation rec { - name = "simgear-${version}"; - version = "2018.3.1"; - shortVersion = "2018.3"; + pname = "simgear"; + inherit version; src = fetchurl { - url = "mirror://sourceforge/flightgear/release-${shortVersion}/${name}.tar.bz2"; - sha256 = "0sm0v8v1sw5xzkzhf0gzh6fwx93hd62h5lm9s9hgci40x7480i99"; + url = "mirror://sourceforge/flightgear/release-${shortVersion}/${pname}-${version}.tar.bz2"; + sha256 = "12sl18limlj61hlwl3bcv5ysfdpsjmd07cxchhf9xa8shk6d87i0"; }; + nativeBuildInputs = [ cmake ]; buildInputs = [ plib freeglut xorgproto libX11 libXext libXi libICE libSM libXt libXmu libGLU_combined boost zlib libjpeg freealut - openscenegraph openal expat cmake apr curl ]; + openscenegraph openal expat apr curl ]; enableParallelBuilding = true; meta = with stdenv.lib; { description = "Simulation construction toolkit"; - homepage = https://gitorious.org/fg/simgear; + homepage = "https://gitorious.org/fg/simgear"; maintainers = with maintainers; [ raskin ]; platforms = platforms.linux; license = licenses.lgpl2;