Enhance Nix package definitions by adding new packages for inputs and steam-python, updating build inputs for colordle and dosage, and improving installation scripts. Notable changes include the addition of desktop and metainfo files for colordle, and ensuring proper GResource handling in dosage.

This commit is contained in:
Danilo Reyes
2025-10-25 20:00:10 -06:00
parent a8e7517e9a
commit d1f011ba1f
6 changed files with 189 additions and 16 deletions

View File

@@ -15,6 +15,7 @@
gtk4,
libadwaita,
wrapGAppsHook4,
makeWrapper,
}:
stdenv.mkDerivation rec {
@@ -38,18 +39,30 @@ stdenv.mkDerivation rec {
glib
appstream-glib
appstream
wrapGAppsHook4
];
buildInputs = [
gjs
gtk4
libadwaita
wrapGAppsHook4
glib
];
# Ensure GResource files are properly accessible
postInstall = ''
# The GResource files should be automatically handled by wrapGAppsHook4
# but let's make sure the GResource path is correct
wrapProgram $out/bin/io.github.diegopvlk.Dosage \
--prefix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH"
'';
meta = {
description = "Medication tracker for Linux";
homepage = "https://github.com/diegopvlk/Dosage";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ ];
mainProgram = "dosage";
mainProgram = "io.github.diegopvlk.Dosage";
platforms = lib.platforms.all;
};
}