oh-my-posh: add changelog to meta

This commit is contained in:
Fabian Affolter 2022-12-04 12:57:13 +01:00 committed by GitHub
parent 7080d3ab55
commit 1975974432
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];
};