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