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
helm: build from source #48092
helm: build from source #48092
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also rebase this branch with one commit to add yourself in the maintainers list and another one that contains helm changes. Generally, we try to prefix the commit message with the package name. Something such as
helm: build from sources
|
||
buildInputs = [ ]; | ||
# this is to get buildGoPackage to output to the standard $out folder | ||
outputs = [ "out" ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the bin
output would not be suitable? A lot of our Go packages use it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$out
used to contain go source code. I think we are no longer doing this. but changing the defaults should be something we should do treewide.
src = fetchurl { | ||
url = "https://kubernetes-helm.storage.googleapis.com/helm-v${version}-${arch}.tar.gz"; | ||
sha256 = checksum; | ||
src = fetchgit { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you use fetchFromGithub
?
buildPhase = '' | ||
mkdir -p $out/bin | ||
# this is part two of the hack to get buildGoPackage to output to the standard $out folder | ||
export bin=$out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason where are not using $bin
for everything here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is bin the right thing? Maybe it is, but stdenv
uses $out by default normally right? I had a weird issue where the stuff I put in $out
didn't end up in result-bin
fdef96b
to
bcabf3e
Compare
bcabf3e
to
c292638
Compare
LGTM. |
Success on aarch64-linux (full log) Attempted: helm Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: helm Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: helm Partial log (click to expand)
|
any idea what's going on with the mac build @LnL7? |
Arf, sorry, my bad :/ |
Success on aarch64-linux (full log) Attempted: kubernetes-helm Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: kubernetes-helm Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: kubernetes-helm Partial log (click to expand)
|
Thanks! |
@edude03, how did you generate |
That's exactly what I did actually. I do remember glide being slow but I don't remember it being hours however.
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Eric Bailey <notifications@github.com>
Sent: Thursday, January 31, 2019 01:43
To: NixOS/nixpkgs
Cc: Michael Francis; Mention
Subject: Re: [NixOS/nixpkgs] helm: build from source (#48092)
@edude03<https://github.com/edude03>, how did you generate deps.nix? I'm trying to update to 2.12.3, but when I run dep init to convert from Glide to dep, in anticipation of then running dep2nix, it takes HOURS, seems to stall, and then I give up.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#48092 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAeLk63XjXECuk8opj-YNPIBHwN_bLReks5vIdnWgaJpZM4XRfmb>.
|
Motivation for this change
By building helm from source we can support more platforms. As well, this enables building of the
tiller
andrudder
commands.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)