nix: replace paths dynamically
This commit is contained in:
parent
6daa866beb
commit
7451890fd7
4 changed files with 8 additions and 148 deletions
|
|
@ -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 = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue