diff options
author | luftmensch-luftmensch <valentinobocchetti59@gmail.com> | 2024-06-08 10:55:00 +0200 |
---|---|---|
committer | luftmensch-luftmensch <valentinobocchetti59@gmail.com> | 2024-06-10 17:12:57 +0200 |
commit | f27bd6fd0a2bbf27fae725d0c00fc5a05fbdc433 (patch) | |
tree | eacf21b375c58bff32012e99b79214adf1a72248 /pkgs/by-name/al | |
parent | 589c31662739027f6b802f138fd12f4493ad68de (diff) |
allmark: migrate to buildGoModule
Diffstat (limited to 'pkgs/by-name/al')
-rw-r--r-- | pkgs/by-name/al/allmark/package.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/by-name/al/allmark/package.nix b/pkgs/by-name/al/allmark/package.nix new file mode 100644 index 0000000000000..1fcdfce5f6bdc --- /dev/null +++ b/pkgs/by-name/al/allmark/package.nix @@ -0,0 +1,39 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "allmark"; + version = "0.10.0"; + + src = fetchFromGitHub { + owner = "andreaskoch"; + repo = pname; + rev = "v${version}"; + hash = "sha256-JfNn/e+cSq1pkeXs7A2dMsyhwOnh7x2bwm6dv6NOjLU="; + }; + + postPatch = '' + go mod init github.com/andreaskoch/allmark + ''; + + vendorHash = null; + + postInstall = '' + mv $out/bin/{cli,allmark} + ''; + + meta = { + description = "Cross-platform markdown web server"; + homepage = "https://github.com/andreaskoch/allmark"; + changelog = "https://github.com/andreaskoch/allmark/-/releases/v${version}"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ + luftmensch-luftmensch + urandom + ]; + mainProgram = "allmark"; + }; +} |