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

vndr: init at 20161110-cf8678f #20318

Merged
merged 1 commit into from Jan 12, 2017
Merged

vndr: init at 20161110-cf8678f #20318

merged 1 commit into from Jan 12, 2017

Conversation

vdemeester
Copy link
Member

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
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Signed-off-by: Vincent Demeester vincent@sbr.pm


buildGoPackage rec {
name = "vndr-${version}";
version = "20161110-${stdenv.lib.strings.substring 0 7 rev}";
Copy link
Contributor

@kevincox kevincox Nov 10, 2016

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;
Copy link
Contributor

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 {
Copy link
Contributor

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>
@vdemeester
Copy link
Member Author

/ping @kevincox

@kevincox
Copy link
Contributor

Looks good to me, I would like to see this merged.

@pSub pSub merged commit dd3c287 into NixOS:master Jan 12, 2017
@vdemeester vdemeester deleted the add-vndr branch January 12, 2017 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants