nix: replace paths dynamically

This commit is contained in:
Mihai Fufezan 2022-06-02 00:42:05 +03:00
parent 6daa866beb
commit 7451890fd7
No known key found for this signature in database
GPG key ID: 5899325F2F120900
4 changed files with 8 additions and 148 deletions

View file

@ -53,9 +53,11 @@ stdenv.mkDerivation {
++ lib.optional (!enableXWayland) "-DNO_XWAYLAND=true";
# enables building with nix-supplied wlroots instead of submodule
patches = [ ./wlroots.patch ];
prePatch = ''
sed -Ei 's/"\.\.\/wlroots\/include\/([a-zA-Z0-9./_-]+)"/<\1>/g' src/includes.hpp
'';
postPatch = ''
make config
make protocols
'';
postBuild = ''