blob: 19897468082b1359975c42d40f62c88d4f198d0f (
plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "nvrh";
version = "0.1.23";
src = fetchFromGitHub {
owner = "mikew";
repo = "nvrh";
tag = "v${finalAttrs.version}";
hash = "sha256-9pWeoFah8bxbngqETgi8uGbvUqKUhdiRHmOuxpPmJNs=";
};
vendorHash = "sha256-DuGMlRdVUMKwghPQjVP3A+epnsA5a15jl84Y8LTPkTM=";
preBuild = ''
cp manifest.json src/
'';
ldflags = [
"-s"
"-w"
];
postInstall = ''
mv $out/bin/src $out/bin/nvrh
'';
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Aims to be similar to VSCode Remote, but for Neovim";
homepage = "https://github.com/mikew/nvrh";
changelog = "https://github.com/mikew/nvrh/blob/${finalAttrs.src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
mainProgram = "nvrh";
};
})
|