Skip to content

Commit

Permalink
dosage-tracker: init at 1.8.0
Browse files Browse the repository at this point in the history
(cherry picked from commit 54dfe36)
  • Loading branch information
getchoo authored and github-actions[bot] committed Feb 6, 2025
1 parent b12d0c9 commit 10f75da
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions pkgs/by-name/do/dosage-tracker/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
lib,
stdenv,
blueprint-compiler,
desktop-file-utils,
fetchFromGitHub,
gjs,
glib,
gtk4,
libadwaita,
libportal,
meson,
ninja,
nix-update-script,
wrapGAppsHook4,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "dosage";
version = "1.8.0";

src = fetchFromGitHub {
owner = "diegopvlk";
repo = "Dosage";
tag = "v${finalAttrs.version}";
hash = "sha256-u/HnlnitLJjYxt+LqbhS2DYUDVVBamZCakBym2eNK1c=";
};

# https://github.com/NixOS/nixpkgs/issues/318830
postPatch = ''
sed -i "1 a imports.package._findEffectiveEntryPointName = () => 'io.github.diegopvlk.Dosage';" src/io.github.diegopvlk.Dosage.in
'';

strictDeps = true;

nativeBuildInputs = [
blueprint-compiler
desktop-file-utils
gjs
glib # For `glib-compile-schemas`
gtk4 # For `gtk-update-icon-theme`
meson
ninja
wrapGAppsHook4
];

buildInputs = [
gjs
libadwaita
libportal
];

passthru = {
updateScript = nix-update-script { };
};

meta = {
description = "Medication tracker for Linux";
homepage = "https://github.com/diegopvlk/Dosage";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "io.github.diegopvlk.Dosage";
platforms = lib.platforms.linux;
};
})

0 comments on commit 10f75da

Please sign in to comment.