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

jazzy: init at 0.9.0 #31073

Merged
merged 1 commit into from Nov 26, 2017
Merged

jazzy: init at 0.9.0 #31073

merged 1 commit into from Nov 26, 2017

Conversation

peterromfeldhk
Copy link
Contributor

@peterromfeldhk peterromfeldhk commented Nov 1, 2017

Motivation for this change
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.

@disassembler
Copy link
Member

I'm probably not passing the right parameters, but if I run jazzy without any arguments, I get some not executable errors:

sam at sarov in ~/nixpkgs/master (master)
$ /nix/store/c5wbnaqrn1h0cgjbqycckj38aq50piaf-jazzy-0.9.0/bin/jazzy
/nix/store/c5wbnaqrn1h0cgjbqycckj38aq50piaf-jazzy-0.9.0/lib/ruby/gems/2.3.0/gems/jazzy-0.9.0/bin/sourcekitten: /nix/store/c5wbnaqrn1h0cgjbqycckj38aq50piaf-jazzy-0.9.0/lib/ruby/gems/2.3.0/gems/jazzy-0.9.0/bin/sourcekitten: cannot execute binary file
/nix/store/c5wbnaqrn1h0cgjbqycckj38aq50piaf-jazzy-0.9.0/lib/ruby/gems/2.3.0/gems/jazzy-0.9.0/lib/jazzy/executable.rb:36:in `execute_command': /nix/store/c5wbnaqrn1h0cgjbqycckj38aq50piaf-jazzy-0.9.0/lib/ruby/gems/2.3.0/gems/jazzy-0.9.0/bin/sourcekitten ["doc", "--"] (RuntimeError)

/nix/store/c5wbnaqrn1h0cgjbqycckj38aq50piaf-jazzy-0.9.0/lib/ruby/gems/2.3.0/gems/jazzy-0.9.0/bin/sourcekitten: /nix/store/c5wbnaqrn1h0cgjbqycckj38aq50piaf-jazzy-0.9.0/lib/ruby/gems/2.3.0/gems/jazzy-0.9.0/bin/sourcekitten: cannot execute binary file
	from /nix/store/c5wbnaqrn1h0cgjbqycckj38aq50piaf-jazzy-0.9.0/lib/ruby/gems/2.3.0/gems/jazzy-0.9.0/lib/jazzy/sourcekitten.rb:221:in `run_sourcekitten'
	from /nix/store/c5wbnaqrn1h0cgjbqycckj38aq50piaf-jazzy-0.9.0/lib/ruby/gems/2.3.0/gems/jazzy-0.9.0/lib/jazzy/doc_builder.rb:66:in `block in build'
	from /nix/store/c5wbnaqrn1h0cgjbqycckj38aq50piaf-jazzy-0.9.0/lib/ruby/gems/2.3.0/gems/jazzy-0.9.0/lib/jazzy/doc_builder.rb:64:in `chdir'
	from /nix/store/c5wbnaqrn1h0cgjbqycckj38aq50piaf-jazzy-0.9.0/lib/ruby/gems/2.3.0/gems/jazzy-0.9.0/lib/jazzy/doc_builder.rb:64:in `build'
	from /nix/store/c5wbnaqrn1h0cgjbqycckj38aq50piaf-jazzy-0.9.0/lib/ruby/gems/2.3.0/gems/jazzy-0.9.0/bin/jazzy:15:in `<top (required)>'
	from /nix/store/c5wbnaqrn1h0cgjbqycckj38aq50piaf-jazzy-0.9.0/bin/jazzy:18:in `load'
	from /nix/store/c5wbnaqrn1h0cgjbqycckj38aq50piaf-jazzy-0.9.0/bin/jazzy:18:in `<main>'

@peterromfeldhk
Copy link
Contributor Author

oh yeah i need to change it darwin only, it requires xcode

@Mic92
Copy link
Member

Mic92 commented Nov 25, 2017

@GrahamcOfBorg build jazzy

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Failure for system: x86_64-linux


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

(use ‘--show-trace’ to show detailed location information)

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success for system: x86_64-darwin

  Gem home: /nix/store/yr63157d2jcragxc0yirmh8n932cmkd5-ruby2.3.5-jazzy-0.9.0/lib/ruby/gems/2.3.0
Successfully installed jazzy-0.9.0
1 gem installed
post-installation fixup
patching script interpreter paths in /nix/store/yr63157d2jcragxc0yirmh8n932cmkd5-ruby2.3.5-jazzy-0.9.0
/nix/store/yr63157d2jcragxc0yirmh8n932cmkd5-ruby2.3.5-jazzy-0.9.0/lib/ruby/gems/2.3.0/gems/jazzy-0.9.0/bin/jazzy: interpreter directive changed from "/usr/bin/env ruby" to "/nix/store/4mwv2ixrwcc3n5dywfdyim66g0y7yhyw-ruby-2.3.5/bin/ruby"
copying 4 missing paths (0.02 MiB) to ‘mac1’...
building ‘/nix/store/ympgkpyya8pjkf0s9hg0jybfh7r5qggv-jazzy-0.9.0.drv’ on ‘mac1’
created 143 symlinks in user environment
/nix/store/p8960b0l28ryajq7xkx7syx5bpi7ai7s-jazzy-0.9.0

@Mic92 Mic92 merged commit ab48481 into NixOS:master Nov 26, 2017
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

4 participants