From 420da2d9761a4155c3ad1aae40df8dc566d2fac2 Mon Sep 17 00:00:00 2001 From: "Graham J. Norris" Date: Tue, 27 Feb 2024 09:54:56 +0100 Subject: maintainers: add grahamnorris --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index bce165d7657a6..a89c5de314dc6 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -7283,6 +7283,12 @@ githubId = 76716; name = "Graham Christensen"; }; + grahamnorris = { + email = "oss@grahamjnorris.com"; + github = "grahamnorris"; + githubId = 66037909; + name = "Graham J. Norris"; + }; gravndal = { email = "gaute.ravndal+nixos@gmail.com"; github = "gravndal"; -- cgit 1.4.1 From c22f28f85a3227da0717a4df59b4b05d3d058e9a Mon Sep 17 00:00:00 2001 From: "Graham J. Norris" Date: Tue, 27 Feb 2024 09:43:42 +0100 Subject: flashgbx: init at 3.37 --- pkgs/by-name/fl/flashgbx/package.nix | 63 ++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 pkgs/by-name/fl/flashgbx/package.nix diff --git a/pkgs/by-name/fl/flashgbx/package.nix b/pkgs/by-name/fl/flashgbx/package.nix new file mode 100644 index 0000000000000..c816f7d005280 --- /dev/null +++ b/pkgs/by-name/fl/flashgbx/package.nix @@ -0,0 +1,63 @@ +{ lib +, python3Packages +, fetchFromGitHub +, makeDesktopItem +, copyDesktopItems +, qt6 +}: + +python3Packages.buildPythonApplication rec { + pname = "flashgbx"; + version = "3.37"; + + src = fetchFromGitHub { + repo = "FlashGBX"; + owner = "lesserkuma"; + rev = version; + hash = "sha256-3527QmSSpGotFHKTg0yb6MgHKSze+9BECQWqZM3qKsw="; + }; + + desktopItems = [ + (makeDesktopItem { + name = "flashgbx"; + desktopName = "FlashGBX UI"; + icon = "flashgbx"; + exec = meta.mainProgram; + comment = "UI for reading and writing Game Boy and Game Boy Advance cartridges"; + categories = [ "Utility" ]; + }) + ]; + + postInstall = + '' + install -D FlashGBX/res/icon.png $out/share/icons/hicolor/256x256/apps/flashgbx.png + ''; + + pyproject = true; + + nativeBuildInputs = [ + python3Packages.setuptools + copyDesktopItems + qt6.wrapQtAppsHook + ]; + + propagatedBuildInputs = with python3Packages; [ + pillow + pyserial + pyside6 + python-dateutil + requests + setuptools + qt6.qtbase + ] ++ lib.optionals stdenv.isLinux [ + qt6.qtwayland + ]; + + meta = with lib; { + description = "GUI for reading and writing GB and GBA cartridges with the GBxCart RW"; + homepage = "https://github.com/lesserkuma/FlashGBX"; + license = licenses.gpl3Only; + mainProgram = "flashgbx"; + maintainers = with maintainers; [ grahamnorris ]; + }; +} -- cgit 1.4.1