diff options
author | Janik <80165193+Janik-Haag@users.noreply.github.com> | 2023-11-18 16:17:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-18 16:17:35 +0100 |
commit | 9661e33f2926277abd5e8290bb4d47be65400dc3 (patch) | |
tree | 553a6681892db1f756358f8a2bb3b84474b03cc3 /pkgs | |
parent | c9df0f703524e82ca3de484ae70385b8fa47dd20 (diff) | |
parent | f4131a43fa19fe90810b92de49dbd2569f2e83dc (diff) |
Merge pull request #263683 from jfvillablanca/hof
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/ho/hof/package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/ho/hof/package.nix b/pkgs/by-name/ho/hof/package.nix new file mode 100644 index 0000000000000..d5ca54ea5beb2 --- /dev/null +++ b/pkgs/by-name/ho/hof/package.nix @@ -0,0 +1,40 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, installShellFiles +}: + +buildGoModule rec { + pname = "hof"; + version = "0.6.9-beta.1"; + + src = fetchFromGitHub { + owner = "hofstadter-io"; + repo = "hof"; + rev = "v${version}"; + hash = "sha256-4yVP6DRHrsp52VxBhr7qppPhInYEsvPbIfxxQcRwHTw="; + }; + + nativeBuildInputs = [ installShellFiles ]; + + vendorHash = "sha256-cDUcYwcxPn+9TEP5lhVJXofijCZX94Is+Qt41PqUgjI="; + + subPackages = [ "./cmd/hof/main.go" ]; + + postInstall = '' + mv $out/bin/main $out/bin/hof + local INSTALL="$out/bin/hof" + installShellCompletion --cmd hof \ + --bash <($out/bin/hof completion bash) \ + --fish <($out/bin/hof completion fish) \ + --zsh <($out/bin/hof completion zsh) + ''; + + meta = with lib; { + homepage = "https://github.com/hofstadter-io/hof"; + description = "Framework that joins data models, schemas, code generation, and a task engine. Language and technology agnostic"; + license = licenses.asl20; + maintainers = with maintainers; [ jfvillablanca ]; + mainProgram = "hof"; + }; +} |