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

theft: init at 0.4.3 #30568

Merged
merged 5 commits into from Oct 31, 2017
Merged

theft: init at 0.4.3 #30568

merged 5 commits into from Oct 31, 2017

Conversation

kquick
Copy link
Contributor

@kquick kquick commented Oct 19, 2017

Motivation for this change

Package is not currently in nixpkgs.

Depends on pull request #30565

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)
    N/A
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
    N/A
  • Tested execution of all binary files (usually in ./result/bin/)
    N/A
  • Fits CONTRIBUTING.md.

@kquick kquick requested a review from edolstra as a code owner October 19, 2017 06:27
install -m644 vendor/greatest.h $out/include/
'';

meta = {
Copy link
Member

Choose a reason for hiding this comment

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

If you change this to meta = with stdenv.lib; { you can get rid of all the stdenv.lib stuff below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Understood, but are you indicating this as a helpful hint, or is this a requirement for acceptance of this package? If it's not required, my preference would be for the current explicit form, but I will make this change if required.

Copy link
Member

Choose a reason for hiding this comment

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

It's pretty subjective, so no, not a requirement. I however, find it easier to read.

};

preConfigure = "patchShebangs ./scripts/mk_bits_lut";
# doCheck = true;
Copy link
Member

Choose a reason for hiding this comment

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

Any particular reason checks are not enabled? Please document that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

checks are now enabled

preConfigure = "patchShebangs ./scripts/mk_bits_lut";
# doCheck = true;

propagatedBuildInputs = [ ];
Copy link
Member

Choose a reason for hiding this comment

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

Get rid of this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed


propagatedBuildInputs = [ ];

buildInputs = [ ];
Copy link
Member

Choose a reason for hiding this comment

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

Get rid of this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed


buildInputs = [ ];

installFlags = [ "PREFIX=$(out)" ];
Copy link
Member

Choose a reason for hiding this comment

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

This should be passed to the configure phase automatically. Are you sure this is needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This package does not use autoconf or any other configuration option. The --prefix option is supplied during the configurePhase, but no corresponding specification is normally provided during the installPhase. The Makefile for this project assumes the older-style convention of specifying PREFIX when running the install target, which is what the above is intended to accomplish. This is necessary and works correctly in my testing of this derivation.

@kquick
Copy link
Contributor Author

kquick commented Oct 19, 2017

@peterhoeg, thank you for the initial review. I have update the pull request and would appreciate your feedback and re-review.

installFlags = [ "PREFIX=$(out)" ];
postInstall = ''
install -m644 vendor/greatest.h $out/include/
'';
Copy link
Member

Choose a reason for hiding this comment

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

indentation is off here

@peterhoeg peterhoeg changed the title Theft: add new theft development library theft: init at 0.4.3 Oct 31, 2017
@peterhoeg peterhoeg merged commit f8cbc64 into NixOS:master Oct 31, 2017
@peterhoeg
Copy link
Member

Thanks @kquick !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants