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