mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
27 lines
647 B
Nix
27 lines
647 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "oh-my-posh";
|
|
version = "9.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jandedobbeleer";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-biMqihvGW+rsNhM/kXQb3px5aRtyvAI0cxDQ9KDK7y4=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-A4+sshIzPla7udHfnMmbFqn+fW3SOCrI6g7tArzmh1E=";
|
|
|
|
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 ];
|
|
};
|
|
}
|