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
vndr: init at 20161110-cf8678f #20318
Conversation
|
||
buildGoPackage rec { | ||
name = "vndr-${version}"; | ||
version = "20161110-${stdenv.lib.strings.substring 0 7 rev}"; |
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.
I think you can use lib.substring
here.
description = "Stupid golang vendoring tool, inspired by docker vendor script"; | ||
homepage = "https://github.com/LK4D4/vndr"; | ||
maintainers = with stdenv.lib.maintainers; [ vdemeester ]; | ||
licence = stdenv.lib.licenses.asl20; |
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.
I think you can drop the stdenv
from both of these.
|
||
goPackagePath = "github.com/LK4D4/vndr"; | ||
|
||
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.
Please use fetchFromGitHub
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
/ping @kevincox |
Looks good to me, I would like to see this merged. |
Motivation for this change
vndr is a simple golang vendoring tool, which is inspired by docker vendor script that I tend to use on several projects.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
Tested compilation of all pkgs that depend on this change usingnix-shell -p nox --run "nox-review wip"
./result/bin/
)Signed-off-by: Vincent Demeester vincent@sbr.pm