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

Feature/builtins fetchgit #72

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

kraem
Copy link

@kraem kraem commented May 23, 2020

This hopefully solves #69

Works in tandem with https://github.com/kraem/nixpkgs/blob/bb4b2da585dd0186b3c1cec9fb9f7f9227cf428c/pkgs/development/ruby-modules/gem/default.nix#L67-L70
I'll create a PR in nixpkgs for that as soon as this has been reviewed and approved 👍

edit
Apparently the bin wrappers in nixpkgs for gems needs some more work before this is ready. The gems gets installed, but in in the wrong path in /nix/store.
/edit

edit2
Now works in tandem with this fork nixpkgs. Haven't tried with private git gems that have executables yet.
/edit2

The responsibility for fetching the repo and calculating a sha256 is now transfered to nix's builtins.fetchGit which doesn't do it in a sandbox but can use the current users ssh credentials.

All gems fetched from git now gets the type buitlins-git, but the old type git is saved in bundlerEnv for backwards compatibility.

Thanks a lot for your time to explain how all of this fits together @manveru

I haven't written many lines ruby before so I'm sure there are a lot of things that could look nicer.

@kraem kraem force-pushed the feature/builtins-fetchgit branch from b0cfe1f to ccfc8e6 Compare May 24, 2020 22:33
By doing this Bundix can make use of fetchGit's ability to clone private
repos. The responsibility for fetching a sha256 of the checkout is moved
from Bundix -> builtins.fetchGit.

Signed-off-by: kraem <[email protected]>
Signed-off-by: kraem <[email protected]>
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.

1 participant