Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tanka: init at v0.11.1 #94659

Merged
merged 1 commit into from Aug 8, 2020
Merged

tanka: init at v0.11.1 #94659

merged 1 commit into from Aug 8, 2020

Conversation

mikefaille
Copy link
Contributor

Motivation for this change

Tanka is a tool built by Grafana and Redhat to facilitate Kubernetes assets on jsonnet format.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@mikefaille
Copy link
Contributor Author

mikefaille commented Aug 4, 2020 via email

@mikefaille
Copy link
Contributor Author

mikefaille commented Aug 4, 2020 via email

@timstott
Copy link
Contributor

timstott commented Aug 6, 2020

Result of nixpkgs-review pr 94659 1

1 package built:
- tanka

Copy link
Contributor

@danieldk danieldk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be enabled for all Unix platforms.

Also, it seems that the tk command supports bash completions. Would be nice to add them as well. Something like the following in postInstall should work (untested):

echo "complete -C $out/bin/tk tk" > tk.bash
installShellCompletion tk.bash

(And add installShellFiles to nativeBuildInputs).

homepage = "https://github.com/grafana/tanka/";
license = licenses.asl20;
maintainers = with maintainers; [ mikefaille ];
platforms = platforms.linux ++ platforms.darwin;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to suspect that this doesn't work on other Unixes?

Suggested change
platforms = platforms.linux ++ platforms.darwin;
platforms = platforms.unix;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BSD systems works for Nix ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some people are working on it. Once there is more mature support, it would be nice to have these derivations (that probably work just fine) work immediately.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be a pleasure to support BSD :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done !

Copy link
Contributor

@danieldk danieldk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Result of nixpkgs-review pr 94659 1

1 package built:
- tanka

Would by nice to have shell completion as suggested in my other comment. Maybe you can open another PR for that?

@danieldk danieldk merged commit d802cc5 into NixOS:master Aug 8, 2020
@mikefaille
Copy link
Contributor Author

@danieldk Yes, I would try, It seems it injects complete -C /nix/store/r7gdn4z1c7wc4xznwvy7cs0bllqx8bda-tanka-0.11.1/bin/tk tk
on ~/.bashrc when we type tk complete

@mikefaille
Copy link
Contributor Author

Oh, I just seen the comment above.

@mikefaille mikefaille mentioned this pull request Aug 10, 2020
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants