oh-my-posh: add changelog to meta
This commit is contained in:
parent
7080d3ab55
commit
1975974432
1 changed files with 20 additions and 5 deletions
|
@ -1,4 +1,8 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "oh-my-posh";
|
||||
|
@ -7,7 +11,7 @@ buildGoModule rec {
|
|||
src = fetchFromGitHub {
|
||||
owner = "jandedobbeleer";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-xhSNt6ia+M4vNXOdHCVKPSM/ypb4CP4HWY9oXlsM/UM=";
|
||||
};
|
||||
|
||||
|
@ -15,11 +19,21 @@ buildGoModule rec {
|
|||
|
||||
sourceRoot = "source/src";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
ldflags = [ "-s" "-w" "-X" "main.Version=${version}" ];
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.Version=${version}"
|
||||
];
|
||||
|
||||
tags = [ "netgo" "osusergo" "static_build" ];
|
||||
tags = [
|
||||
"netgo"
|
||||
"osusergo"
|
||||
"static_build"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/oh-my-posh
|
||||
|
@ -33,6 +47,7 @@ buildGoModule rec {
|
|||
meta = with lib; {
|
||||
description = "A prompt theme engine for any shell";
|
||||
homepage = "https://ohmyposh.dev";
|
||||
changelog = "https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ lucperkins urandom ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue