oizys/pkgs/oizys/default.nix
2024-07-18 11:46:02 -05:00

28 lines
467 B
Nix

{
lib,
installShellFiles,
buildGoModule,
makeWrapper,
...
}:
let
inherit (lib) cleanSource;
in
buildGoModule {
pname = "oizys";
version = "unstable";
src = cleanSource ./.;
vendorHash = "sha256-+4OtpcKHfomBAXRrJOvkhQdCSwU0W6+5OJuS4o12r5E=";
nativeBuildInputs = [
installShellFiles
makeWrapper
];
postInstall = ''
installShellCompletion --cmd oizys \
--zsh <(OIZYS_SKIP_CHECK=true $out/bin/oizys completion zsh)
'';
}