2019-04-03 00:13:02 +02:00
|
|
|
{ stdenv, substituteAll, fetchFromGitHub, taskwarrior, gettext, runtimeShell }:
|
2018-02-17 07:55:06 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gnome-shell-extension-taskwhisperer-${version}";
|
2019-04-03 00:13:02 +02:00
|
|
|
version = "12";
|
2018-02-17 07:55:06 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cinatic";
|
|
|
|
repo = "taskwhisperer";
|
|
|
|
rev = "v${version}";
|
2019-04-03 00:13:02 +02:00
|
|
|
sha256 = "187p6p498dd258avsfqqsm322g58y75pc2wbhb4jpmm9insqm1bj";
|
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
|
|
|
|
|
|
|
uuid = "taskwhisperer-extension@infinicode.de";
|
|
|
|
|
2019-04-03 00:13:02 +02:00
|
|
|
makeFlags = [
|
|
|
|
"INSTALLBASE=${placeholder ''out''}/share/gnome-shell/extensions"
|
|
|
|
];
|
2018-02-17 07:55:06 +01:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
task = "${taskwarrior}/bin/task";
|
2019-04-03 00:13:02 +02:00
|
|
|
shell = "${runtimeShell}";
|
2018-02-17 07:55:06 +01:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GNOME Shell TaskWarrior GUI";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ jonafato ];
|
|
|
|
homepage = https://github.com/cinatic/taskwhisperer;
|
|
|
|
};
|
|
|
|
}
|