11 src = fetchFromGitHub {
12 owner = "jandedobbeleer";
14 rev = "refs/tags/v${version}";
15 hash = "sha256-gZCR7cDSI0gRaTnYADOLpyHe26URo27JXJjnNxr4Jwc=";
18 vendorHash = "sha256-EBLfbdTV15wSTOThzBY0d2KrSJzRaB8vNH53Uwc+XfM=";
20 sourceRoot = "${src.name}/src";
29 "-X github.com/jandedobbeleer/oh-my-posh/src/build.Version=${version}"
30 "-X github.com/jandedobbeleer/oh-my-posh/src/build.Date=1970-01-01T00:00:00Z"
40 # these tests requires internet access
41 rm image/image_test.go config/migrate_glyphs_test.go upgrade/notice_test.go
45 mv $out/bin/{src,oh-my-posh}
46 mkdir -p $out/share/oh-my-posh
47 cp -r ${src}/themes $out/share/oh-my-posh/
48 installShellCompletion --cmd oh-my-posh \
49 --bash <($out/bin/oh-my-posh completion bash) \
50 --fish <($out/bin/oh-my-posh completion fish) \
51 --zsh <($out/bin/oh-my-posh completion zsh)
55 description = "Prompt theme engine for any shell";
56 mainProgram = "oh-my-posh";
57 homepage = "https://ohmyposh.dev";
58 changelog = "https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v${version}";
59 license = licenses.mit;
60 maintainers = with maintainers; [ lucperkins urandom ];