Skip to content

Commit c37b586

Browse files
mpls: init at 0.12.0 (#381544)
2 parents 09ec1c4 + 96c93af commit c37b586

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10823,6 +10823,13 @@
1082310823
githubId = 42114389;
1082410824
name = "Jerry Starke";
1082510825
};
10826+
jervw = {
10827+
email = "[email protected]";
10828+
github = "jervw";
10829+
githubId = 53620688;
10830+
name = "Jere Vuola";
10831+
keys = [ { fingerprint = "56C2 5B5B 2075 6352 B4B0 E17E F188 3717 47DA 5895"; } ];
10832+
};
1082610833
jeschli = {
1082710834
email = "[email protected]";
1082810835
github = "0mbi";

pkgs/by-name/mp/mpls/package.nix

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
nix-update-script,
6+
versionCheckHook,
7+
}:
8+
buildGoModule rec {
9+
pname = "mpls";
10+
version = "0.12.0";
11+
12+
src = fetchFromGitHub {
13+
owner = "mhersson";
14+
repo = "mpls";
15+
tag = "v${version}";
16+
hash = "sha256-2NOP5k3N2T2T8zg/6SlKDRJsWt+LcjAOmYe/tMrjCnc=";
17+
};
18+
19+
vendorHash = "sha256-6iXZWLCF0LfchcGSFrCtILLeR1Yx7oxD/7JIYyrrkHM=";
20+
21+
ldflags = [
22+
"-s"
23+
"-w"
24+
"-X github.com/mhersson/mpls/cmd.Version=${version}"
25+
"-X github.com/mhersson/mpls/internal/mpls.Version=${version}"
26+
];
27+
28+
nativeInstallCheckInputs = [ versionCheckHook ];
29+
versionCheckProgramArg = "--version";
30+
doInstallCheck = true;
31+
32+
passthru.updateScript = nix-update-script { };
33+
34+
meta = {
35+
description = "Live preview of markdown using Language Server Protocol";
36+
homepage = "https://github.com/mhersson/mpls";
37+
changelog = "https://github.com/mhersson/mpls/releases/tag/${src.tag}";
38+
license = lib.licenses.asl20;
39+
maintainers = with lib.maintainers; [ jervw ];
40+
mainProgram = "mpls";
41+
};
42+
}

0 commit comments

Comments
 (0)