diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2024-04-17 20:41:45 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2024-04-17 20:41:45 -0300 |
commit | 0376b74f0da92d43e4350412b0ea1219d96e9ba5 (patch) | |
tree | 5c4c4a624d7148bd6380957d19df73a16a0737c1 /pkgs/by-name/me/mednaffe | |
parent | f5d6dcb4b9cacefac1bc3679c77af114fa2e24b7 (diff) |
mednaffe: migrate to by-name
Diffstat (limited to 'pkgs/by-name/me/mednaffe')
-rw-r--r-- | pkgs/by-name/me/mednaffe/package.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/by-name/me/mednaffe/package.nix b/pkgs/by-name/me/mednaffe/package.nix new file mode 100644 index 0000000000000..75a25a4bec3b0 --- /dev/null +++ b/pkgs/by-name/me/mednaffe/package.nix @@ -0,0 +1,42 @@ +{ stdenv +, lib +, fetchFromGitHub +, autoreconfHook +, pkg-config +, mednafen +, gtk3 +, wrapGAppsHook +}: + +stdenv.mkDerivation rec { + pname = "mednaffe"; + version = "0.9.2"; + + src = fetchFromGitHub { + owner = "AmatCoder"; + repo = "mednaffe"; + rev = version; + sha256 = "sha256-zvSAt6CMcgdoPpTTA5sPlQaWUw9LUMsR2Xg9jM2UaWY="; + }; + + nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ]; + + buildInputs = [ gtk3 mednafen ]; + + enableParallelBuilding = true; + + preFixup = '' + gappsWrapperArgs+=( + --prefix PATH ':' "${mednafen}/bin" + ) + ''; + + meta = with lib; { + description = "GTK-based frontend for mednafen emulator"; + mainProgram = "mednaffe"; + homepage = "https://github.com/AmatCoder/mednaffe"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ sheenobu yana AndersonTorres ]; + platforms = platforms.unix; + }; +} |