nixpkgs/pkgs/by-name/ne/nestopia-ue/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, SDL2
, alsa-lib
, autoconf-archive
, autoreconfHook
, fetchFromGitHub
, fltk
, libGL
, libGLU
, libao
, libarchive
, libepoxy
, makeWrapper
, pkg-config
, stdenv
, unzip
, wrapGAppsHook3
, xdg-utils
2017-09-03 12:22:39 +00:00
}:
2014-12-23 10:30:22 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "nestopia";
2024-03-30 02:30:27 +00:00
version = "1.52.1";
2017-09-03 12:22:39 +00:00
src = fetchFromGitHub {
owner = "0ldsk00l";
2017-09-03 12:22:39 +00:00
repo = "nestopia";
rev = finalAttrs.version;
2024-03-30 02:30:27 +00:00
hash = "sha256-r8Z0Ejf5vWcdvxkUkUKJtipQIRoiwoRj0Bx06Gnxd08=";
2014-12-23 10:30:22 +00:00
};
2017-09-03 12:22:39 +00:00
buildInputs = [
SDL2
alsa-lib
fltk
libepoxy
libGLU
libGL
2017-09-03 12:22:39 +00:00
libarchive
libao
2021-02-01 08:05:09 +00:00
xdg-utils
2017-09-03 15:38:19 +00:00
];
nativeBuildInputs = [
SDL2
autoconf-archive
autoreconfHook
fltk
2021-01-17 02:30:45 +00:00
pkg-config
2017-09-03 15:38:19 +00:00
makeWrapper
wrapGAppsHook3
unzip
2017-09-03 12:22:39 +00:00
];
2014-12-23 10:30:22 +00:00
strictDeps = true;
preInstall = ''
2014-12-23 10:30:22 +00:00
mkdir -p $out/{bin,share/nestopia}
'';
preFixup = ''
for f in $out/bin/*; do
wrapProgram $f \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share"
done
'';
meta = {
homepage = "http://0ldsk00l.ca/nestopia/";
description = "Cross-platform Nestopia emulator core with a GUI";
changelog = "https://raw.githubusercontent.com/0ldsk00l/nestopia/${finalAttrs.src.rev}/ChangeLog";
license = lib.licenses.gpl2Plus;
mainProgram = "nestopia";
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.linux;
2014-12-23 10:30:22 +00:00
};
})