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

DNSChain: fix broken package and improve service #22041

Closed
wants to merge 2 commits into from

Conversation

rnhmjoj
Copy link
Contributor

@rnhmjoj rnhmjoj commented Jan 23, 2017

Motivation for this change

See #21999

Things done
  • Tested using sandboxing
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change
  • Tested execution of all binary files
  • Fits CONTRIBUTING.md.

@rnhmjoj rnhmjoj mentioned this pull request Jan 23, 2017
7 tasks
'';

dns.address = mkOption {
type = types.string;
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably should be types.str unless you want the peculiar merge semantics of string

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, I meant to use str.


let
np = nodePackages.override { generated = ./package.nix; self = np; };
in
nodePackages = callPackage (import ../../top-level/node-packages.nix) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the motivation for the move to this construction instead of taking the package set as a parameter? Does override not work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it produces the error:

called with unexpected argument ‘self’, at <nixpkgs>/lib/customisation.nix:56:12

I looked how other nodejs packages handle this and switched to use callPackage.

@grahamc
Copy link
Member

grahamc commented Jan 25, 2017

Looks like there is an error building this:

output path ‘/nix/store/h7nj6knqxjvm401khn3mixzvjjdyraxd-native-dns-packet-307e77a’ has r:sha256 hash ‘0n03ll48g0w70xnxix0yc87nj7f765jkmhg5px92wr9a7fxsgapq’ when ‘0f87bfcwlqn3c7av3c6wl8dyvgnf0dzfdhrlrdmyi3pbdn827c1s’ was expected

@rnhmjoj
Copy link
Contributor Author

rnhmjoj commented Jan 25, 2017

Strange, it builds for me.

@layus
Copy link
Member

layus commented Feb 3, 2017

@grahamc Would you mind investigating the issue ? This is a split PR, and this one needs to be merged before #21999. I confirm that it also works for me.

@joachifm joachifm closed this in f7d4903 Feb 3, 2017
@rnhmjoj rnhmjoj deleted the dnschain branch June 3, 2017 10:01
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

4 participants