Refactor Nix package definitions to use buildPythonApplication, update package versions, and enhance dependencies across multiple packages. Notable changes include version updates for dosage, hiit, qbittorrent-api, protonup-qt, and torf, as well as the addition of new dependencies and build inputs for colordle and qbit-manage.

This commit is contained in:
Danilo Reyes
2025-10-25 19:28:39 -06:00
parent b827ffab8f
commit a8e7517e9a
10 changed files with 159 additions and 65 deletions

View File

@@ -2,6 +2,11 @@
lib,
stdenv,
fetchFromGitLab,
makeWrapper,
python3,
gtk4,
libadwaita,
wrapGAppsHook4,
}:
stdenv.mkDerivation rec {
@@ -15,6 +20,36 @@ stdenv.mkDerivation rec {
hash = "sha256-oPGC0D7sh+H25qg2ttRtIMjI+HjZImRieWmYw+I6sQE=";
};
nativeBuildInputs = [
makeWrapper
wrapGAppsHook4
];
buildInputs = [
python3
gtk4
libadwaita
];
# This is likely a Python GTK application
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share/hexcolordle-gtk
cp -r * $out/share/hexcolordle-gtk/
# Create a wrapper script if there's a main Python file
if [ -f main.py ]; then
makeWrapper ${python3}/bin/python3 $out/bin/hexcolordle-gtk \
--add-flags "$out/share/hexcolordle-gtk/main.py"
elif [ -f hexcolordle.py ]; then
makeWrapper ${python3}/bin/python3 $out/bin/hexcolordle-gtk \
--add-flags "$out/share/hexcolordle-gtk/hexcolordle.py"
fi
runHook postInstall
'';
meta = {
description = "A game where you need to find a color by guessing its hex code";
homepage = "https://gitlab.com/Krafting/hexcolordle-gtk";