-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
avro-c++: Init at 1.7.5 #14811
Conversation
@@ -0,0 +1,26 @@ | |||
{ stdenv, fetchurl, cmake, boost155, python |
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.
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.
Apart from a few minor issues, this looks superficially okay |
@joachifm, I've addressed all questions. |
{ stdenv, fetchurl, cmake, boost155, pythonPackages | ||
}: | ||
|
||
let version = "1.7.5"; in |
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.
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.
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.
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}";
}
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.
rec
is used way more, but it doesn't matter.
Things done
nix-build --option build-use-chroot true
or nix.useChroot on NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)