mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
ba2ce6e73b
Taken from PR #244831 and vcunat amended the miopen override.
32 lines
1.0 KiB
Nix
32 lines
1.0 KiB
Nix
{ lib, stdenv, fetchurl, plib, freeglut, xorgproto, libX11, libXext, libXi
|
|
, libICE, libSM, libXt, libXmu, libGLU, libGL, boost179, zlib, libjpeg, freealut
|
|
, openscenegraph, openal, expat, cmake, apr, xz
|
|
, curl
|
|
}:
|
|
let
|
|
version = "2020.3.18";
|
|
shortVersion = builtins.substring 0 6 version;
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "simgear";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/flightgear/release-${shortVersion}/${pname}-${version}.tar.bz2";
|
|
sha256 = "sha256-bMHPJVaxckB5KezyurJDLG+wXuFt0ZAm6QNp8lc2Nso=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ plib freeglut xorgproto libX11 libXext libXi
|
|
libICE libSM libXt libXmu libGLU libGL boost179 zlib libjpeg freealut
|
|
openscenegraph openal expat apr curl xz ];
|
|
|
|
meta = with lib; {
|
|
description = "Simulation construction toolkit";
|
|
homepage = "https://wiki.flightgear.org/SimGear";
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = platforms.linux;
|
|
license = licenses.lgpl2;
|
|
};
|
|
}
|