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

[WIP] gutenberg: init at v0.2.1 #30737

Closed
wants to merge 1 commit into from

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Oct 23, 2017

Motivation for this change

gutenberg!

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.

Doesn't build yet, won't be able to work on this in the near future so thought I'd share in case someone wants to pick it up from here.

Build fails with:

...
   Compiling aster v0.41.0
   Compiling quasi_codegen v0.32.0
   Compiling bindgen v0.26.3
   Compiling sass-sys v0.4.0
error: failed to run custom build command for `sass-sys v0.4.0`
process didn't exit successfully: `/tmp/nix-build-gutenberg-0.2.1.drv-0/gutenberg-v0.2.1-src/target/release/build/sass-sys-5d59912088df96d5/build-script-build` (exit code: 101)
--- stderr
fatal: Not a git repository (or any of the parent directories): .git
thread 'main' panicked at 'Build error:
STDERR:mkdir: cannot create directory 'lib': Permission denied
make: *** [Makefile:231: lib] Error 1

STDOUT:mkdir lib
', /nix/store/2kvac2qn3hf7i9s0q2hpgsv7gnddj48a-gutenberg-0.2.1-vendor/sass-sys/build.rs:42:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.

builder for ‘/nix/store/1gq97nk123g1wy0k2kl4avpmkrc5azdh-gutenberg-0.2.1.drv’ failed with exit code 101
error: build of ‘/nix/store/1gq97nk123g1wy0k2kl4avpmkrc5azdh-gutenberg-0.2.1.drv’ failed

Things I've tried that didn't seem to help:

  • Using fetchgit + leaveDotGit=true + fetchSubmodules=true (submodules contain syntax highlighting bits apparently, haven't looked into that or checked if they're part of the github release)
  • including libsass and pkgconfig (see https://github.com/compass-rs/sass-sys/blob/master/build.rs#L41 for what I think is cause of build failure)

It's possible(but I'm not sure, just guessing based on the 'permission denied' mkdir error above) that the build would succeed if the source was read-write instead of read-only, haven't tried this because I'm not sure how to appropriately tell rust where to find the source.

Hope this helps!


cargoSha256 = "0mjxyfx923ynxjanc3qp24w7rg44gk2z4fnfwzkqza40r02nfwnf";

buildInputs = [ cmake ];
Copy link
Member

Choose a reason for hiding this comment

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

cmake is a nativeBuildInput

description = "An opinionated static site generator with everything built-in";
homepage = https://www.getgutenberg.io/;
license = licenses.mit;
platforms = platforms.all;
Copy link
Member

Choose a reason for hiding this comment

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

No maintainer?

@dtzWill dtzWill closed this Jan 3, 2018
@mnacamura mnacamura mentioned this pull request Jan 17, 2018
8 tasks
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