gh-eco icon indicating copy to clipboard operation
gh-eco copied to clipboard

readme update to reflect nixpkgs packaging

Open helium18 opened this issue 2 years ago • 4 comments

What: Packaged gh-eco for Nixpkgs :)

Why: Installing extensions from gh doesn't work on NixOS (Read only file system). Therefore I decided to package it.

How: updated the README (actual PR: https://github.com/NixOS/nixpkgs/pull/175699/files)

Checklist:

  • [x] Allow edits from maintainers option checked
  • [x] Branch name is prefixed with [your_username]/ (ex. coloradocolby/featureX)
  • [ ] Documentation added N/A
  • [ ] Tests added N/A
  • [ ] No failing actions N/A
  • [x] Merge ready

helium18 avatar Jun 04 '22 04:06 helium18

Hey thanks for doing this! Will this need to be updated every release?

jrnxf avatar Jun 04 '22 19:06 jrnxf

yes!

helium18 avatar Jun 05 '22 07:06 helium18

@helium18 do you have any documentation on how I can do that? Given you already created it I'm not sure if that means you'd be the one to constantly update it? I don't want to have to do that to you 😅

jrnxf avatar Jun 07 '22 20:06 jrnxf

here's the documentation for the go module https://ryantm.github.io/nixpkgs/languages-frameworks/go/

the default.nix file is located in pkgs/tools/misc/gh-eco You just need to update the version field and empty the sha256 and vendorSha256 fields

Then go to the repo root and run nix build -A gh-eco. This should fail with an error on the lines of specified Sha=<some_random_sha> got <some_sha>. So now you can fill the missing fields (which are sha256 and vendorSha256) in default.nix and finally run nix build -A gh-eco again and it should work now

Test the package by running ./result/bin/gh-eco in the repo root. If everything runs fine, you can now submit a PR

https://nixos.wiki/wiki/Nixpkgs/Create_and_debug_packages

I'll update the package since its a simple go module, so you don't need to worry :+1:

helium18 avatar Jun 09 '22 04:06 helium18