blob: 70dcb140970a891985792aca8a6126439a8829d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ lib
, wakatime
, buildFishPlugin
, fetchFromGitHub
}:
buildFishPlugin rec {
pname = "wakatime-fish";
version = "0.0.5";
src = fetchFromGitHub {
owner = "ik11235";
repo = "wakatime.fish";
rev = "v${version}";
hash = "sha256-BYDff4OP4Sg5I7p0GviZKSDulx468ePZigigyTdtkqM=";
};
preFixup = ''
substituteInPlace $out/share/fish/vendor_conf.d/wakatime.fish \
--replace "if type -p wakatime" "if type -p ${lib.getExe wakatime}" \
--replace "(type -p wakatime)" "${lib.getExe wakatime}"
'';
meta = with lib; {
description = "A fish plugin for wakatime";
homepage = "https://github.com/ik11235/wakatime.fish";
license = licenses.mit;
maintainers = with maintainers; [ ocfox ];
};
}
|