Merge pull request #291763 from grahamnorris/add-flashgbx
flashgbx: init at 3.37
This commit is contained in:
commit
7d20c0c8ec
2 changed files with 69 additions and 0 deletions
|
@ -7600,6 +7600,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";
|
||||
|
|
63
pkgs/by-name/fl/flashgbx/package.nix
Normal file
63
pkgs/by-name/fl/flashgbx/package.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue