nixpkgs/pkgs/applications/emulators/fuse-emulator/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

31 lines
866 B
Nix

{ lib, stdenv, fetchurl, perl, pkg-config, wrapGAppsHook
, SDL, bzip2, glib, gtk3, libgcrypt, libpng, libspectrum, libxml2, zlib
}:
stdenv.mkDerivation rec {
pname = "fuse-emulator";
version = "1.6.0";
src = fetchurl {
url = "mirror://sourceforge/${pname}/fuse-${version}.tar.gz";
sha256 = "sha256-Oo/t8v/pR8VxVhusVaWa2tTFkzj3TkSbfnpn2coEcJY=";
};
nativeBuildInputs = [ perl pkg-config wrapGAppsHook ];
buildInputs = [ SDL bzip2 glib gtk3 libgcrypt libpng libspectrum libxml2 zlib ];
configureFlags = [ "--enable-desktop-integration" ];
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://fuse-emulator.sourceforge.net/";
description = "ZX Spectrum emulator";
mainProgram = "fuse";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ orivej ];
};
}