2022-09-09 14:08:57 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "oh-my-posh";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "9.1.0";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jandedobbeleer";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-14 18:05:37 +00:00
|
|
|
sha256 = "sha256-waqEXmKGxGgAjJ+USsK/sfLSJV3XPAhkdXCqb45Gs+M=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-t4FpvXsGVsTYoGM8wY2JelscnlmDzrLMPYk7zGUfo58=";
|
|
|
|
|
|
|
|
sourceRoot = "source/src";
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X" "main.Version=${version}" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A prompt theme engine for any shell";
|
|
|
|
homepage = "https://ohmyposh.dev";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lucperkins ];
|
|
|
|
};
|
|
|
|
}
|