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

avro-c++: Init at 1.7.5 #14811

Merged
merged 1 commit into from
Apr 19, 2016
Merged

avro-c++: Init at 1.7.5 #14811

merged 1 commit into from
Apr 19, 2016

Conversation

rasendubi
Copy link
Member

Things done
  • Tested using sandboxing (nix-build --option build-use-chroot true or nix.useChroot on NixOS)
  • Built on platform(s)
    • NixOS
    • OS X
    • 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.

@@ -0,0 +1,26 @@
{ stdenv, fetchurl, cmake, boost155, python
Copy link
Contributor

Choose a reason for hiding this comment

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

If you're only interested in the python interpreter, I believe the preferred method of getting at it is passing in pythonPackages and using pythonPackages.python in the build inputs.

@joachifm
Copy link
Contributor

Apart from a few minor issues, this looks superficially okay

@rasendubi
Copy link
Member Author

@joachifm, I've addressed all questions.

{ stdenv, fetchurl, cmake, boost155, pythonPackages
}:

let version = "1.7.5"; in
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to update this, but the idiom is

stdenv.mkDerivation rec {
  name = "foo-${version}";
  version = "4.2";
}

Note the rec keyword allows you to refer to keys within the same attrset.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yay, I know. I just looked through sample packages in nixpkgs manual and found next style is more common:

let version = "4.2"; in

stdenv.mkDerivation {
  name = "foo-${version}";
}

Copy link
Contributor

Choose a reason for hiding this comment

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

rec is used way more, but it doesn't matter.

@joachifm joachifm merged commit 1451bb8 into NixOS:master Apr 19, 2016
@rasendubi rasendubi deleted the avro-cpp branch April 19, 2016 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: package (new) This PR adds a new package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants