1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00
nixpkgs/pkgs/misc/emulators/mednaffe/default.nix

31 lines
924 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, makeWrapper, autoreconfHook, pkgconfig, wrapGAppsHook
, gtk2 ? null, gtk3 ? null, mednafen }:
with stdenv.lib;
2016-03-22 05:35:20 +00:00
stdenv.mkDerivation rec {
pname = "mednaffe";
2020-03-03 12:12:44 +00:00
version = "0.8.8";
2016-03-22 05:35:20 +00:00
src = fetchFromGitHub {
owner = "AmatCoder";
repo = "mednaffe";
2020-03-03 12:12:44 +00:00
rev = "${version}";
sha256 = "15qk3a3l1phr8bap2ayh3c0vyvw2jwhny1iz1ajq2adyjpm9fhr7";
2016-03-22 05:35:20 +00:00
};
nativeBuildInputs = [ autoreconfHook makeWrapper pkgconfig wrapGAppsHook ];
buildInputs = [ gtk2 gtk3 mednafen ];
2016-03-22 05:35:20 +00:00
configureFlags = [ (enableFeature (gtk3 != null) "gtk3") ];
postInstall = "wrapProgram $out/bin/mednaffe --set PATH ${mednafen}/bin";
2016-03-22 05:35:20 +00:00
meta = {
description = "GTK-based frontend for mednafen emulator";
2020-03-03 12:12:44 +00:00
homepage = "https://github.com/AmatCoder/mednaffe";
license = licenses.gpl3Plus;
2020-03-03 12:12:44 +00:00
maintainers = with maintainers; [ sheenobu yegortimoshenko AndersonTorres ];
2016-03-22 05:35:20 +00:00
platforms = platforms.linux;
};
}