27 lines
647 B
Nix
27 lines
647 B
Nix
|
{ lib, buildGoModule, fetchFromGitHub }:
|
||
|
|
||
|
buildGoModule rec {
|
||
|
pname = "oh-my-posh";
|
||
|
version = "9.0.0";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "jandedobbeleer";
|
||
|
repo = pname;
|
||
|
rev = "v${version}";
|
||
|
sha256 = "sha256-0f7rA/GxXgIeJ9hh/g+MpAPdPW8NzaVKLApYyrhlIVM=";
|
||
|
};
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|