nixpkgs/pkgs/games/crrcsim/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

29 lines
685 B
Nix

{ lib, stdenv, fetchurl, libGLU, libGL, SDL, SDL_mixer, plib, libjpeg }:
let
version = "0.9.13";
in
stdenv.mkDerivation rec {
pname = "crrcsim";
inherit version;
src = fetchurl {
url = "mirror://sourceforge/crrcsim/${pname}-${version}.tar.gz";
sha256 = "abe59b35ebb4322f3c48e6aca57dbf27074282d4928d66c0caa40d7a97391698";
};
buildInputs = [
libGLU libGL SDL SDL_mixer plib libjpeg
];
patches = [
./gcc6.patch
];
meta = {
description = "A model-airplane flight simulator";
mainProgram = "crrcsim";
maintainers = with lib.maintainers; [ raskin ];
platforms = [ "i686-linux" "x86_64-linux" ];
license = lib.licenses.gpl2;
};
}