mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-12 18:43:15 -06:00
28 lines
467 B
Nix
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)
|
|
'';
|
|
|
|
}
|