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

sway module: make it useful to end user #30800

Merged
merged 3 commits into from Oct 25, 2017
Merged

sway module: make it useful to end user #30800

merged 3 commits into from Oct 25, 2017

Conversation

ghost
Copy link

@ghost ghost commented Oct 25, 2017

Motivation for this change

Make programs.sway module more useful. Now it's fine for starting sway directly from console which is recommended way to start sway https://github.com/swaywm/sway/wiki#login-managers
This way services.xserver is not required at all (there is XWayland package if X11 compatibility is needed)
Nevertheless config.services.xserver.windowManager.sway efforts (#19663, #30493 (comment)) should not be phased out, since some people would prefer to use login manager as they may need to run some Xorg window manager in addition to sway or their setup relies on complex xsession procedure which display manager does. But for other cases it's far from ideal, since login managers depend on running Xorg.

Change list

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.

@ghost ghost changed the title Sway sway module: make it useful to end user Oct 25, 2017
@grahamc
Copy link
Member

grahamc commented Oct 25, 2017

@GrahamcOfBorg wlc sway

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.

build flags: -j1 -l1 SHELL=/nix/store/h404wfcz8rzzlq8vr4z7plcijwzfci72-bash-4.4-p12/bin/bash
Scanning dependencies of target man-swaylock.1
[  1%] swaylock.1
a2x: WARNING: --destination-dir option is only applicable to HTML based outputs
a2x: ERROR: "xsltproc"  --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0  "/nix/store/nlp6x6w8ypx829yrj48qxxkvv5zl3g8a-asciidoc-8.6.9/etc/asciidoc/docbook-xsl/manpage.xsl" "/tmp/nix-build-sway-0.14.0.drv-0/sway-0.14.0-src/build/bin/swaylock.1.xml" returned non-zero exit status 5
make[2]: *** [swaylock/CMakeFiles/man-swaylock.1.dir/build.make:61: bin/swaylock.1] Error 1
make[1]: *** [CMakeFiles/Makefile2:915: swaylock/CMakeFiles/man-swaylock.1.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
builder for ‘/nix/store/s4c566rw5ndfyf32pnbfxx3kvz7m4hyv-sway-0.14.0.drv’ failed with exit code 2
error: build of ‘/nix/store/s4c566rw5ndfyf32pnbfxx3kvz7m4hyv-sway-0.14.0.drv’ failed

@Mic92
Copy link
Member

Mic92 commented Oct 25, 2017

sway fails to build documentation:

[  1%] swaylock.1
a2x: WARNING: --destination-dir option is only applicable to HTML based outputs
a2x: ERROR: "xsltproc"  --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0  "/nix/store/nlp6x6w8ypx829yrj48qxxkvv5zl3g8a-asciidoc-8.6.9/etc/asciidoc/docbook-xsl/manpage.xsl" "/build/sway-0.14.0-src/build/bin/swaylock.1.xml" returned non-zero exit status 5
make[2]: *** [swaylock/CMakeFiles/man-swaylock.1.dir/build.make:61: bin/swaylock.1] Error 1
make[1]: *** [CMakeFiles/Makefile2:915: swaylock/CMakeFiles/man-swaylock.1.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
builder for '/nix/store/vx1kwab0zndlbfjnqrx2k9iydaz6ap82-sway-0.14.0.drv' failed with exit code 2
cannot build derivation '/nix/store/jrghrqm8yvkdd16k3qn1jph89jalbfk7-sway-wrapped.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/jkz6lnwz4jb28pzys6mf28nwlpga19h8-nixos-system-turingmachine-18.03.git.17eb514.drv': 1 dependencies couldn't be built
error: build of '/nix/store/jkz6lnwz4jb28pzys6mf28nwlpga19h8-nixos-system-turingmachine-18.03.git.17eb514.drv' failed

@Mic92
Copy link
Member

Mic92 commented Oct 25, 2017

I really like this bot: @grahamc

@ghost
Copy link
Author

ghost commented Oct 25, 2017

@grahamc @Mic92 Ah sorry, forgot to test in chroot.

@Mic92 Mic92 merged commit cb217f8 into NixOS:master Oct 25, 2017
@ghost
Copy link
Author

ghost commented Oct 25, 2017

@Mic92 Could you please also add https://github.com/gnidorah/nixpkgs/commit/e220dc265e1f710c111809896a25044e248145f5? This will be a go for people using default sway config. Thank you much!

@Mic92
Copy link
Member

Mic92 commented Oct 25, 2017

done

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

3 participants