Merge pull request #291763 from grahamnorris/add-flashgbx

flashgbx: init at 3.37

authored by Peder Bergebakken Sundt and committed by GitHub 7d20c0c8 c48015a6

+69
+6
maintainers/maintainer-list.nix
··· 7600 7600 githubId = 76716; 7601 7601 name = "Graham Christensen"; 7602 7602 }; 7603 + grahamnorris = { 7604 + email = "oss@grahamjnorris.com"; 7605 + github = "grahamnorris"; 7606 + githubId = 66037909; 7607 + name = "Graham J. Norris"; 7608 + }; 7603 7609 gravndal = { 7604 7610 email = "gaute.ravndal+nixos@gmail.com"; 7605 7611 github = "gravndal";
+63
pkgs/by-name/fl/flashgbx/package.nix
··· 1 + { lib 2 + , python3Packages 3 + , fetchFromGitHub 4 + , makeDesktopItem 5 + , copyDesktopItems 6 + , qt6 7 + }: 8 + 9 + python3Packages.buildPythonApplication rec { 10 + pname = "flashgbx"; 11 + version = "3.37"; 12 + 13 + src = fetchFromGitHub { 14 + repo = "FlashGBX"; 15 + owner = "lesserkuma"; 16 + rev = version; 17 + hash = "sha256-3527QmSSpGotFHKTg0yb6MgHKSze+9BECQWqZM3qKsw="; 18 + }; 19 + 20 + desktopItems = [ 21 + (makeDesktopItem { 22 + name = "flashgbx"; 23 + desktopName = "FlashGBX UI"; 24 + icon = "flashgbx"; 25 + exec = meta.mainProgram; 26 + comment = "UI for reading and writing Game Boy and Game Boy Advance cartridges"; 27 + categories = [ "Utility" ]; 28 + }) 29 + ]; 30 + 31 + postInstall = 32 + '' 33 + install -D FlashGBX/res/icon.png $out/share/icons/hicolor/256x256/apps/flashgbx.png 34 + ''; 35 + 36 + pyproject = true; 37 + 38 + nativeBuildInputs = [ 39 + python3Packages.setuptools 40 + copyDesktopItems 41 + qt6.wrapQtAppsHook 42 + ]; 43 + 44 + propagatedBuildInputs = with python3Packages; [ 45 + pillow 46 + pyserial 47 + pyside6 48 + python-dateutil 49 + requests 50 + setuptools 51 + qt6.qtbase 52 + ] ++ lib.optionals stdenv.isLinux [ 53 + qt6.qtwayland 54 + ]; 55 + 56 + meta = with lib; { 57 + description = "GUI for reading and writing GB and GBA cartridges with the GBxCart RW"; 58 + homepage = "https://github.com/lesserkuma/FlashGBX"; 59 + license = licenses.gpl3Only; 60 + mainProgram = "flashgbx"; 61 + maintainers = with maintainers; [ grahamnorris ]; 62 + }; 63 + }