2021-03-03 23:49:39 +00:00
|
|
|
{ lib, stdenv, substituteAll, fetchFromGitHub, taskwarrior, gettext, runtimeShell }:
|
2018-02-17 06:55:06 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "gnome-shell-extension-taskwhisperer";
|
2020-10-07 22:08:08 +00:00
|
|
|
version = "16";
|
2018-02-17 06:55:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cinatic";
|
|
|
|
repo = "taskwhisperer";
|
|
|
|
rev = "v${version}";
|
2020-10-07 22:08:08 +00:00
|
|
|
sha256 = "05w2dfpr5vrydb7ij4nd2gb7c31nxix3j48rb798r4jzl1rakyah";
|
2018-02-17 06:55:06 +00:00
|
|
|
};
|
|
|
|
|
2019-04-02 22:13:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
taskwarrior
|
|
|
|
];
|
2018-02-17 06:55:06 +00:00
|
|
|
|
|
|
|
uuid = "taskwhisperer-extension@infinicode.de";
|
|
|
|
|
2019-04-02 22:13:02 +00:00
|
|
|
makeFlags = [
|
2019-09-03 16:38:57 +00:00
|
|
|
"INSTALLBASE=${placeholder "out"}/share/gnome-shell/extensions"
|
2019-04-02 22:13:02 +00:00
|
|
|
];
|
2018-02-17 06:55:06 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
task = "${taskwarrior}/bin/task";
|
2019-09-08 23:38:31 +00:00
|
|
|
shell = runtimeShell;
|
2018-02-17 06:55:06 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-02-17 06:55:06 +00:00
|
|
|
description = "GNOME Shell TaskWarrior GUI";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ jonafato ];
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/cinatic/taskwhisperer";
|
2018-02-17 06:55:06 +00:00
|
|
|
};
|
|
|
|
}
|