nixpkgs/pkgs/applications/misc/kapow/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

27 lines
677 B
Nix

{ lib, stdenv, qmake, fetchFromGitHub, qtbase, qttools, wrapQtAppsHook }:
stdenv.mkDerivation rec {
pname = "kapow";
version = "1.5.10";
src = fetchFromGitHub {
owner = "gottcode";
repo = pname;
rev = "v${version}";
sha256 = "1fz9fb4w21ax8hjs6dwfn2410ig4lqvzdlijq0jcj3jbgxd4i1gw";
};
nativeBuildInputs = [ qmake qttools wrapQtAppsHook ];
buildInputs = [ qtbase ];
meta = with lib; {
description = "Punch clock to track time spent on projects";
mainProgram = "kapow";
homepage = "https://gottcode.org/kapow/";
maintainers = with maintainers; [ orivej ];
platforms = platforms.linux;
license = licenses.gpl3Plus;
};
}