Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 31 lines 767 B view raw
1{ 2 lib, 3 wakatime-cli, 4 buildFishPlugin, 5 fetchFromGitHub, 6}: 7 8buildFishPlugin rec { 9 pname = "wakatime-fish"; 10 version = "0.0.6"; 11 12 src = fetchFromGitHub { 13 owner = "ik11235"; 14 repo = "wakatime.fish"; 15 rev = "v${version}"; 16 hash = "sha256-Hsr69n4fCvPc64NztgaBZQuR0znkzlL8Uotw9Jf2S1o="; 17 }; 18 19 preFixup = '' 20 substituteInPlace $out/share/fish/vendor_conf.d/wakatime.fish \ 21 --replace-fail "if type -p wakatime" "if type -p ${lib.getExe wakatime-cli}" \ 22 --replace-fail "(type -p wakatime)" "${lib.getExe wakatime-cli}" 23 ''; 24 25 meta = with lib; { 26 description = "Fish plugin for wakatime"; 27 homepage = "https://github.com/ik11235/wakatime.fish"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ ocfox ]; 30 }; 31}