mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 14:13:14 -06:00
30 lines
519 B
Nix
30 lines
519 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)
|
|
'';
|
|
meta = {
|
|
description = "nix begat oizys";
|
|
};
|
|
}
|