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

contrib: use mkDerivation for agenix cli #139

Merged
merged 1 commit into from
Feb 11, 2023
Merged

contrib: use mkDerivation for agenix cli #139

merged 1 commit into from
Feb 11, 2023

Conversation

ryantm
Copy link
Owner

@ryantm ryantm commented Jan 29, 2023

I want to move toward a world where we test the agenix cli. I feel this is a reasonable organizational step, so we can separate the nix code from the bash code.

@ryantm ryantm force-pushed the rtm-1-29-cli-test branch 2 times, most recently from 0ad4e72 to 278528b Compare January 29, 2023 20:56
@ryantm ryantm changed the title contrib: move agenix script into own file contrib: use mkDerivation for agenix cli Jan 29, 2023
@ryantm ryantm force-pushed the rtm-1-29-cli-test branch 3 times, most recently from 9ac24cf to 8fb773a Compare January 29, 2023 21:49
@Kranzes
Copy link

Kranzes commented Jan 31, 2023

Maybe use pkgs.writeShellApplication instead?

* use mkDerivation
* separate shell code in own file
* use shellcheck to lint shell code
* remove rage version check since rage is greater than 0.5.0 on all
  maintained nixpkgs
@ryantm
Copy link
Owner Author

ryantm commented Feb 11, 2023

Maybe use pkgs.writeShellApplication instead?

It looks like that makes it annoying to add meta information and a version.

Copy link
Collaborator

@cole-h cole-h left a comment

Choose a reason for hiding this comment

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

Great idea!

@ryantm ryantm merged commit ea17cc7 into main Feb 11, 2023
@ryantm ryantm deleted the rtm-1-29-cli-test branch February 11, 2023 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants