+/config
my dotfiles and nix configuration
git clone https://git.julia.blue/+/config
387acb1
main
1{ stdenv , lib , python3 , fetchFromGitHub , 2makeDesktopItem , copyDesktopItems , writeShellScript , ...} :let 3# TODO: simplify with wrapProgram 4wrapper = writeShellScript "eontimer-wrapper" '' 5export QT_QPA_PLATFORM =xcb 6exec @out@/bin/EonTimer 7'' ; 8in python3 . pkgs . buildPythonApplication rec { 9pname = "eontimer" ; 10version = "3.0.0-rc.6" ; 11pyproject = true ; 12 13src = fetchFromGitHub { 14owner = "DasAmpharos" ; 15repo = "EonTimer" ; 16rev = version ; 17hash = "sha256-+XN/VGGlEg2gVncRZrWDOZ2bfxt8xyIu22F2wHlG6YI=" ; 18}; 19 20build-system = [ 21python3 . pkgs . setuptools 22python3 . pkgs . wheel 23]; 24 25dependencies = with python3 . pkgs ; [ 26altgraph 27certifi 28charset-normalizer 29idna 30libsass 31macholib 32packaging 33pillow 34pipdeptree 35platformdirs 36pyinstaller 37pyinstaller-hooks-contrib 38pyside6 39requests 40setuptools 41shiboken6 42urllib3 43]; 44 45nativeBuildInputs = [ 46python3 . pkgs . pyinstaller 47copyDesktopItems 48]; 49 50buildPhase = '' 51runHook preBuild 52 53pyinstaller --clean --noconfirm EonTimer.spec 54 55runHook postBuild 56'' ; 57 58installPhase = '' 59runHook preInstall 60 61mkdir -p $ out /bin 62cp dist/EonTimer $ out /bin/ 63mkdir -p $ out /share/icons/hicolor/scalable/apps 64cp $ src /docs/icon.svg $ out /share/icons/hicolor/scalable/apps/eontimer.svg 65install -Dm755 -T ${ wrapper } $ out /bin/eontimer 66substituteInPlace $ out /bin/eontimer --subst-var out 67 68runHook postInstall 69'' ; 70 71desktopItems = [ 72( makeDesktopItem { name = pname ; desktopName = "EonTimer" ; exec = pname ; icon = "eontimer" ; }) 73]; 74 75meta = { 76description = "Pokémon RNG Timer" ; 77homepage = "https://github.com/DasAmpharos/EonTimer" ; 78license = lib . licenses . mit ; 79broken = stdenv . hostPlatform . isDarwin ; 80}; 81} 82