{ buildGoModule, fetchFromGitHub, installShellFiles, ... }: buildGoModule rec { name = "aliae"; version = "0.21.0"; src = fetchFromGitHub { owner = "JanDeDobbeleer"; repo = name; rev = "v${version}"; sha256 = "Xg3fJs10euju26iJky5UGGGKov47Q16IZQP28ubNca0="; }; nativeBuildInputs = [ installShellFiles ]; sourceRoot = "${src.name}/src"; vendorHash = "sha256-sXZ6Rdqy6VtYlQ3UoNWpgdri61b6aX+uAzLVa/y1lbU="; postInstall = '' mv $out/bin/{src,aliae} installShellCompletion --cmd aliae \ --bash <($out/bin/aliae completion bash) \ --fish <($out/bin/aliae completion fish) \ --zsh <($out/bin/aliae completion zsh) ''; }