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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user