11 src = fetchFromGitHub {
12 owner = "jandedobbeleer";
14 rev = "refs/tags/v${version}";
15 hash = "sha256-xr6ULlOBmRF1s/oge+AnANLGkP30U6T1tgoBvnCLf/4=";
18 vendorHash = "sha256-iSbQn86b1xZwlyo5nKYI7LEH5AyWCw7MLgD3Q0mtFfk=";
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 engine/image_test.go engine/migrate_glyphs_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 = "A 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 ];