New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gnomeExtensions.taskwhisperer: init at v11 #35066
gnomeExtensions.taskwhisperer: init at v11 #35066
Conversation
sha256 = "1g1301rwnfg5jci78bjpmgxrn78ra80m1zp2inhfsm8jssr1i426"; | ||
}; | ||
|
||
propagatedBuildInputs = [ taskwarrior ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to propagate it? It will not add your environment, it means it will be added as a buildInput
to packages depending on this. Just the sed
replacement will be enough to keep it in nix store, though.
uuid = "taskwhisperer-extension@infinicode.de"; | ||
|
||
installPhase = '' | ||
sed -i "s,\['task',\['${taskwarrior}/bin/task',g" taskService.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are additional mentions of task binary in the extra/*
files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also it would be better to use patch and substituteAll
– it makes it easier to track if the replacement is necessary. See for example
nixpkgs/pkgs/applications/video/gnome-mplayer/default.nix
Lines 18 to 24 in f2fd4a5
patches = [ | |
(substituteAll { | |
src = ./fix-paths.patch; | |
mencoder = "${mplayer}/bin/mencoder"; | |
mplayer = "${mplayer}/bin/mplayer"; | |
}) | |
]; |
cp -r icons $out/share/gnome-shell/extensions/${uuid} | ||
cp -r locale $out/share/gnome-shell/extensions/${uuid} | ||
cp -r schemas $out/share/gnome-shell/extensions/${uuid} | ||
cp -r translation $out/share/gnome-shell/extensions/${uuid} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably is not needed for installation (https://extensions.gnome.org/extension-data/taskwhisperer-extension%40infinicode.de.v10.shell-extension.zip). Ugh, they should just provide a makefile.
c50c774
to
58385e8
Compare
@jtojnar Thanks for the review. PR updated. |
cp -r schemas $out/share/gnome-shell/extensions/${uuid} | ||
cp metadata.json $out/share/gnome-shell/extensions/${uuid} | ||
cp settings.ui $out/share/gnome-shell/extensions/${uuid} | ||
''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stylesheet.css
is missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Add the TaskWhisperer GNOME Shell extension.
58385e8
to
05d9196
Compare
Thanks. |
Motivation for this change
Add the TaskWhisperer GNOME Shell extension.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)