Refactor Nix package definitions for webcomix, colordle, dosage, protonup-qt, qbit-manage, and steam by removing unused variables, improving formatting, and ensuring consistency in dependency handling. Notable changes include the removal of unnecessary checks and whitespace adjustments.
This commit is contained in:
@@ -28,27 +28,36 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [
|
||||
gtk4
|
||||
libadwaita
|
||||
(python3.withPackages (ps: with ps; [
|
||||
pygobject3
|
||||
pycairo
|
||||
]))
|
||||
(python3.withPackages (
|
||||
ps: with ps; [
|
||||
pygobject3
|
||||
pycairo
|
||||
]
|
||||
))
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
|
||||
mkdir -p $out/bin $out/share/hexcolordle-gtk $out/share/applications $out/share/metainfo
|
||||
cp -r * $out/share/hexcolordle-gtk/
|
||||
|
||||
|
||||
# Install desktop file and metainfo
|
||||
cp net.krafting.HexColordle.desktop $out/share/applications/
|
||||
cp net.krafting.HexColordle.metainfo.xml $out/share/metainfo/
|
||||
|
||||
|
||||
# Create wrapper for the main Python file
|
||||
makeWrapper ${python3.withPackages (ps: with ps; [pygobject3 pycairo])}/bin/python3 $out/bin/hexcolordle-gtk \
|
||||
makeWrapper ${
|
||||
python3.withPackages (
|
||||
ps: with ps; [
|
||||
pygobject3
|
||||
pycairo
|
||||
]
|
||||
)
|
||||
}/bin/python3 $out/bin/hexcolordle-gtk \
|
||||
--add-flags "$out/share/hexcolordle-gtk/HexColordle.py" \
|
||||
--prefix PYTHONPATH : "$out/share/hexcolordle-gtk"
|
||||
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user