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