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
perkeep: 20170505 -> 0.10.1 #43840
perkeep: 20170505 -> 0.10.1 #43840
Conversation
sha256 = "1pchwizx1sdli59g8r0p4djfjkchcvh8msfpp3ibvz3xl250jh0n"; | ||
}; | ||
|
||
in | ||
stdenv.mkDerivation rec { |
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.
Can you use buildGoPackage here? Otherwise the result will depend on the go compiler at runtime.
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.
Sure, let me give that a try, I'll ping you once I addressed your comment. Thx @Mic92 for the review!
cp -a ${gotool} ./vendor/github.com/kisielk/gotool | ||
mkdir -p ./vendor/golang.org/x/tools/go | ||
cp -a ${gcimporter15}/go/gcimporter15 ./vendor/golang.org/x/tools/go/gcimporter15 | ||
buildInputs = [ git go ]; |
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.
Where does it use git
?
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.
It does not look like it was strictly required: https://perkeep.googlesource.com/perkeep/+/master/make.go#668
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.
Nice catch, I will remove git as a dependency.
b733968
to
2fc646c
Compare
|
||
buildInputs = [ git go ]; | ||
buildInputs = [ go ]; |
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.
@Mic92 go
was imported in the stdenv.mkDerivation
because perkeep insists on using a specific version of Go. How to tell buildGoPackage
to use a specific version of Go? It's always adding go
to both nativeBuildInputs and buildInputs, so I'm not sure that my setting it here actually makes it use this go version or not.
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.
Use buildGo110Package
instead of buildGoPackage
for example
5b112f0
to
f79997a
Compare
Also rewrite the derivation to use buildGoPackage
@Mic92 PTAL. |
Motivation for this change
Updating perkeep to the latest version
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)cc @cstrahan