From 19759744324a11e04aaec13ab50a6e6eef2d5ecb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 4 Dec 2022 12:57:13 +0100 Subject: [PATCH] oh-my-posh: add changelog to meta --- pkgs/development/tools/oh-my-posh/default.nix | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/oh-my-posh/default.nix b/pkgs/development/tools/oh-my-posh/default.nix index 1d356e8a7844..2c7891a1b17c 100644 --- a/pkgs/development/tools/oh-my-posh/default.nix +++ b/pkgs/development/tools/oh-my-posh/default.nix @@ -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 ]; };