nix-community / nixpkgs-wayland

Automated, pre-built packages for Wayland (sway/wlroots) tools for NixOS. [maintainers=@colemickens, @Artturin]
496 stars 44 forks source link

wlroots doesn't compile due to nixpkgs addition of patch file #434

Closed dmayle closed 7 months ago

dmayle commented 7 months ago

I'm trying to add nixpkgs-wayland to my flake for configuring my system (as an overlay), but sway-unwrapped from this repo won't compile because there is a wlroots patch for tinywl (part of sway I think?) that fails to match against the version of wlroots specified by this repo.

The link to the change in nixpkgs: https://github.com/NixOS/nixpkgs/commit/3e1dba866f8346b38bc236483b1d80cee352be3d

The error I'm seeing:

warning: Git tree '/home/douglas/src/nix-config' is dirty
building the system configuration...
warning: Git tree '/home/douglas/src/nix-config' is dirty
error: builder for '/nix/store/5j31796pbl0dr5p7a03hs206w5y2yzrq-wlroots-da5f53b46176f05731e94dec5f079c1ce7a57ed5.drv' failed with exit code 1;
       last 8 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/di2saw5y8mlmsaw5d85f85h8xc2yq5rr-source
       > source root is source
       > Running phase: patchPhase
       > applying patch /nix/store/q3361ghpg04ibyfzwb9608zjy9g6w9pc-tinywl-fix-wlroots-dependency-constraint-in-Makefile.patch
       > patching file tinywl/Makefile
       > Hunk #1 FAILED at 1.
       > 1 out of 1 hunk FAILED -- saving rejects to file tinywl/Makefile.rej
       For full logs, run 'nix log /nix/store/5j31796pbl0dr5p7a03hs206w5y2yzrq-wlroots-da5f53b46176f05731e94dec5f079c1ce7a57ed5.drv'.
error: 1 dependencies of derivation '/nix/store/1340ab3ka2d4k8nrpjnasvrhxdl6mjcv-sway-unwrapped-+22d0dd8.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4ygjk61a62bgjcpfc4jsyw5w1ray8va4-sway-unwrapped-+22d0dd8.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1fw4dva129a8g48d0m6xjbzw69spvczp-sway-+22d0dd8.drv' failed to build
error: 1 dependencies of derivation '/nix/store/x56z573b52vlvmzc4f9din41vxg7jbvs-sway-+22d0dd8.drv' failed to build
error (ignored): error: cannot unlink '/tmp/nix-build-nvidia-settings-545.29.06.drv-2/source/src/_out/Linux_x86_64': Directory not empty
error: 1 dependencies of derivation '/nix/store/3kpb371afwyq2h6y504zpcl128in3kj8-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/12d0f5bbr24v8wjavhkp6j2p8lyan0iw-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yydivyfljlvs963fql1imgcnjsl2xd3c-nixos-system-beast-24.05.20231225.e1fa12d.drv' failed to build
warning: Git tree '/home/douglas/src/nix-config' is dirty
error: builder for '/nix/store/5j31796pbl0dr5p7a03hs206w5y2yzrq-wlroots-da5f53b46176f05731e94dec5f079c1ce7a57ed5.drv' failed with exit code 1;
       last 8 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/di2saw5y8mlmsaw5d85f85h8xc2yq5rr-source
       > source root is source
       > Running phase: patchPhase
       > applying patch /nix/store/q3361ghpg04ibyfzwb9608zjy9g6w9pc-tinywl-fix-wlroots-dependency-constraint-in-Makefile.patch
       > patching file tinywl/Makefile
       > Hunk #1 FAILED at 1.
       > 1 out of 1 hunk FAILED -- saving rejects to file tinywl/Makefile.rej
       For full logs, run 'nix-store -l /nix/store/5j31796pbl0dr5p7a03hs206w5y2yzrq-wlroots-da5f53b46176f05731e94dec5f079c1ce7a57ed5.drv'.
error: 1 dependencies of derivation '/nix/store/4ygjk61a62bgjcpfc4jsyw5w1ray8va4-sway-unwrapped-+22d0dd8.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1fw4dva129a8g48d0m6xjbzw69spvczp-sway-+22d0dd8.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3kiagv0f4rvgmglsraamjdhz6wi8wblv-activation-script.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8jpgyxj5ws8bd374h1b93dc2ic39fa0r-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/hp5sy1ikh1hslm1didsngqawi75kc84p-sway.conf.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3fhhhqmh3rcgk67iqyghcg4ic2ysxk8c-swayidle.sh.drv' failed to build
error: 1 dependencies of derivation '/nix/store/s57xyyi7hli42568sqi363406d3zsg76-waybar-+41ebdc3.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9jkz6gxigybdd4ssyd18s941v4nxlmqc-home-manager-generation.drv' failed to build
Scrumplex commented 7 months ago

See #435