nixpkgs/pkgs/development/tools/oh-my-posh/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
647 B
Nix
Raw Normal View History

2022-08-01 18:21:38 +03:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "oh-my-posh";
2022-09-18 21:14:10 +03:00
version = "9.4.0";
2022-08-01 18:21:38 +03:00
src = fetchFromGitHub {
owner = "jandedobbeleer";
repo = pname;
rev = "v${version}";
2022-09-18 21:14:10 +03:00
sha256 = "sha256-biMqihvGW+rsNhM/kXQb3px5aRtyvAI0cxDQ9KDK7y4=";
2022-08-01 18:21:38 +03:00
};
2022-09-16 03:03:11 +03:00
vendorSha256 = "sha256-A4+sshIzPla7udHfnMmbFqn+fW3SOCrI6g7tArzmh1E=";
2022-08-01 18:21:38 +03:00
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 ];
};
}