From 8f05641d12be5bf8283af4162eeb4b26f8ac68e1 Mon Sep 17 00:00:00 2001 From: Arjan Schrijver Date: Wed, 14 Sep 2022 13:58:23 +0200 Subject: [PATCH] oh-my-posh: Add themes from source package to store Fixes #190711 --- pkgs/development/tools/oh-my-posh/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/tools/oh-my-posh/default.nix b/pkgs/development/tools/oh-my-posh/default.nix index 14c9f00cf240..23d8650547ed 100644 --- a/pkgs/development/tools/oh-my-posh/default.nix +++ b/pkgs/development/tools/oh-my-posh/default.nix @@ -17,6 +17,13 @@ buildGoModule rec { ldflags = [ "-s" "-w" "-X" "main.Version=${version}" ]; + tags = [ "netgo" "osusergo" "static_build" ]; + + postInstall = '' + mkdir -p $out/share/oh-my-posh + cp -r ${src}/themes $out/share/oh-my-posh/ + ''; + meta = with lib; { description = "A prompt theme engine for any shell"; homepage = "https://ohmyposh.dev";