Merge pull request #263683 from jfvillablanca/hof

authored by

Janik and committed by
GitHub
9661e33f c9df0f70

+40
+40
pkgs/by-name/ho/hof/package.nix
···
··· 1 + { lib 2 + , buildGoModule 3 + , fetchFromGitHub 4 + , installShellFiles 5 + }: 6 + 7 + buildGoModule rec { 8 + pname = "hof"; 9 + version = "0.6.9-beta.1"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "hofstadter-io"; 13 + repo = "hof"; 14 + rev = "v${version}"; 15 + hash = "sha256-4yVP6DRHrsp52VxBhr7qppPhInYEsvPbIfxxQcRwHTw="; 16 + }; 17 + 18 + nativeBuildInputs = [ installShellFiles ]; 19 + 20 + vendorHash = "sha256-cDUcYwcxPn+9TEP5lhVJXofijCZX94Is+Qt41PqUgjI="; 21 + 22 + subPackages = [ "./cmd/hof/main.go" ]; 23 + 24 + postInstall = '' 25 + mv $out/bin/main $out/bin/hof 26 + local INSTALL="$out/bin/hof" 27 + installShellCompletion --cmd hof \ 28 + --bash <($out/bin/hof completion bash) \ 29 + --fish <($out/bin/hof completion fish) \ 30 + --zsh <($out/bin/hof completion zsh) 31 + ''; 32 + 33 + meta = with lib; { 34 + homepage = "https://github.com/hofstadter-io/hof"; 35 + description = "Framework that joins data models, schemas, code generation, and a task engine. Language and technology agnostic"; 36 + license = licenses.asl20; 37 + maintainers = with maintainers; [ jfvillablanca ]; 38 + mainProgram = "hof"; 39 + }; 40 + }