From 66229110d15ec81a0c8a5949d67f167dcd2c0d80 Mon Sep 17 00:00:00 2001 From: Ben Burdette Date: Fri, 23 Oct 2020 16:59:19 -0600 Subject: [PATCH] timekeeper: init at v1.0 --- maintainers/maintainer-list.nix | 6 +++ .../office/timekeeper/default.nix | 44 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 3 files changed, 52 insertions(+) create mode 100644 pkgs/applications/office/timekeeper/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index e0c9d2bdf189..d944b78b320b 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -1260,6 +1260,12 @@ githubId = 7214361; name = "Roman Gerasimenko"; }; + bburdette = { + email = "bburdette@protonmail.com"; + github = "bburdette"; + githubId = 157330; + name = "Ben Burdette"; + }; bzizou = { email = "Bruno@bzizou.net"; github = "bzizou"; diff --git a/pkgs/applications/office/timekeeper/default.nix b/pkgs/applications/office/timekeeper/default.nix new file mode 100644 index 000000000000..60b4bad60bb4 --- /dev/null +++ b/pkgs/applications/office/timekeeper/default.nix @@ -0,0 +1,44 @@ +{ stdenv +, fetchFromGitHub +, poco +, pkg-config +, gnome2 +, gtkmm2 +, lib +}: + +stdenv.mkDerivation rec { + pname = "timekeeper"; + version = "1.0"; + + src = fetchFromGitHub { + owner = "bburdette"; + repo = "TimeKeeper"; + rev = "v${version}"; + fetchSubmodules = true; + sha256 = "03rvzkygnn7igcindbb5bcmfy0l83n0awkzprsnhlb6ndxax3k9w"; + }; + + nativeBuildInputs = [ + poco + pkg-config + ]; + + buildInputs = [ + gtkmm2 + gnome2.libglademm + gnome2.libglade + ]; + + installPhase = '' + install -Dm755 TimeKeeper/TimeKeeper $out/bin/timekeeper + ''; + + meta = with stdenv.lib; { + description = "Log hours worked and make reports"; + homepage = "https://github.com/bburdette/TimeKeeper"; + maintainers = with maintainers; [ bburdette ]; + platforms = [ "x86_64-linux" ]; + license = licenses.bsd3; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1128de292db6..e2cf0788ebb6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7379,6 +7379,8 @@ in timetable = callPackage ../applications/office/timetable { }; + timekeeper = callPackage ../applications/office/timekeeper { }; + timezonemap = callPackage ../development/libraries/timezonemap { }; tzupdate = callPackage ../applications/misc/tzupdate { };