Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145{ lib, python3Packages, fetchFromGitHub, gsettings-desktop-schemas, adwaita-icon-theme, wrapGAppsHook3, gdk-pixbuf, makeDesktopItem, copyDesktopItems,}:let version = "2.63.1";inpython3Packages.buildPythonApplication rec { inherit version; pname = "pyfa"; format = "other";
src = fetchFromGitHub { owner = "pyfa-org"; repo = "Pyfa"; tag = "v${version}"; hash = "sha256-kpTJ7cgS/W0mUtplERiEYJA+FszPILCI+0AVbk6MVAA="; };
desktopItems = [ (makeDesktopItem { name = pname; exec = "${pname} %U"; icon = "pyfa"; desktopName = pname; genericName = "Python fitting assistant for Eve Online"; categories = [ "Game" ]; }) ];
build-system = [ python3Packages.setuptools ]; dependencies = with python3Packages; [ wxpython logbook matplotlib python-dateutil requests sqlalchemy_1_4 cryptography markdown2 beautifulsoup4 pyaml roman numpy python-jose requests-cache ];
buildInputs = [ gsettings-desktop-schemas adwaita-icon-theme gdk-pixbuf ];
dontWrapGApps = true; nativeBuildInputs = [ python3Packages.pyinstaller wrapGAppsHook3 copyDesktopItems ];
# # upstream does not include setup.py # patchPhase = '' cat > setup.py <<EOF from setuptools import setup setup( name = "${pname}", version = "${version}", scripts = ["pyfa.py"], packages = setuptools.find_packages(), ) EOF '';
configurePhase = '' runHook preConfigure
python3 db_update.py
runHook postConfigure '';
buildPhase = '' runHook preBuild
pyinstaller --clean --noconfirm pyfa.spec
runHook postBuild '';
# # pyinstaller builds up dist/pyfa/pyfa binary and # dist/pyfa/apps directory with libraries and everything else. # creating a symbolic link out in $out/bin to $out/share/pyfa to avoid # exposing the innards of pyfa to the rest of the env. # installPhase = '' runHook preInstall
mkdir -p $out/bin mkdir -p $out/share/pixmaps mkdir -p $out/share/icons/hicolor/64x64/apps/
cp -r dist/pyfa $out/share/ cp imgs/gui/pyfa64.png $out/share/pixmaps/pyfa.png cp imgs/gui/pyfa64.png $out/share/icons/hicolor/64x64/apps/${pname}.png ln -sf $out/share/pyfa/pyfa $out/bin/pyfa
runHook postInstall '';
fixupPhase = '' runHook preFixup
wrapProgramShell $out/share/pyfa/pyfa \ ''${gappsWrapperArgs[@]} \
runHook postFixup '';
doCheck = true;
meta = { description = "Python fitting assistant, cross-platform fitting tool for EVE Online"; homepage = "https://github.com/pyfa-org/Pyfa"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ toasteruwu cholli paschoal ]; mainProgram = "pyfa"; platforms = lib.platforms.linux; };}