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

convox: init at 20171002150509 #30377

Closed
wants to merge 1 commit into from
Closed

convox: init at 20171002150509 #30377

wants to merge 1 commit into from

Conversation

shosti
Copy link
Contributor

@shosti shosti commented Oct 13, 2017

Motivation for this change

This adds the CLI tool for convox, which is a PaaS built on top of AWS.

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
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • 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.

description = "Open-source PaaS";
license = lib.licenses.asl20;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A maintainer must be set.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What’s the right way to set that? Should I add myself as a maintainer?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, just add yourself to lib/maintainers.nix, and then add a maintainers = with lib.maintainers; [ shosti ]; entry to meta.

goPackagePath = "github.com/convox/rack";
subPackages = [ "cmd/convox" ];

src = fetchurl {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use fetchFromGitHub instead, so import fetchFromGitHub instead of fetchurl at the top, and:

{
  src = fetchFromGitHub {
    owner = "convox";
    repo = "rack";
    rev = version;
    sha256 = "05hxrb36b9fxgid3n43z43k4zw11akn80kggcxkxx4ba3z6pff8q";
  };
}

@@ -0,0 +1,21 @@
{ lib, fetchurl, buildGoPackage }:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's more common or idiomatic to put stdenv instead of lib directly. Your meta then becomes:

{
  meta = with stdenv.lib; {
    description = "Open-source PaaS";
    homepage = https://convox.com;
    license = licenses.asl20;
    maintainers = with maintainers; [ shosti ];
    platforms = with platforms; linux ++ darwin;
  };
}

@shosti
Copy link
Contributor Author

shosti commented Oct 13, 2017

@vyp updated.

@shosti
Copy link
Contributor Author

shosti commented Oct 16, 2017

The build seems to be failing on OSX with cycle detected in the references of ‘/nix/store/mylihwy761a86pkpw5kmdjcgnrp84h81-convox-20171007002353’. Not sure how to go about debugging this (I don't have access to a Mac at the moment)--any ideas what could be causing it?

@joachifm
Copy link
Contributor

@shosti if you're unable to test on osx, you can simply remove it from the list of supported platforms.

Copy link
Member

@ryantm ryantm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding yourself to the maintainers needs to be fixed because that file got radically changed.

There is a new version by now 20180907231934

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

6 participants