oizys/pkgs/oizys/default.nix

31 lines
519 B
Nix
Raw Normal View History

2024-05-03 10:51:57 -05:00
{
2024-05-24 11:50:18 -05:00
lib,
2024-05-05 17:10:01 -05:00
installShellFiles,
2024-05-03 10:51:57 -05:00
buildGoModule,
2024-05-24 11:50:18 -05:00
makeWrapper,
2024-05-05 17:10:01 -05:00
...
2024-05-03 10:51:57 -05:00
}:
2024-06-18 10:13:24 -05:00
let
2024-07-15 16:24:46 -05:00
inherit (lib) cleanSource;
2024-06-17 16:15:37 -05:00
in
2024-05-03 10:51:57 -05:00
buildGoModule {
pname = "oizys";
version = "unstable";
2024-05-03 10:51:57 -05:00
2024-06-18 10:13:24 -05:00
src = cleanSource ./.;
2024-07-15 16:24:46 -05:00
vendorHash = "sha256-+4OtpcKHfomBAXRrJOvkhQdCSwU0W6+5OJuS4o12r5E=";
2024-05-05 17:10:01 -05:00
2024-05-24 11:50:18 -05:00
nativeBuildInputs = [
installShellFiles
makeWrapper
];
2024-05-05 17:10:01 -05:00
postInstall = ''
installShellCompletion --cmd oizys \
2024-05-24 11:50:18 -05:00
--zsh <(OIZYS_SKIP_CHECK=true $out/bin/oizys completion zsh)
'';
2024-08-09 11:57:03 -05:00
meta = {
description = "nix begat oizys";
};
2024-07-18 11:46:02 -05:00
}