feat: initial commit
This commit is contained in:
commit
4df9ed2b5a
3 changed files with 101 additions and 0 deletions
18
godot-withmodules.nix
Normal file
18
godot-withmodules.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
pkgs@{
|
||||
lib,
|
||||
godot ? pkgs.godot_4,
|
||||
...
|
||||
}:
|
||||
godot.overrideAttrs (prev: {
|
||||
passthru = prev.passthru // {
|
||||
withModules =
|
||||
{ modules }:
|
||||
godot.overrideAttrs (prev: {
|
||||
postPatch =
|
||||
prev.postPatch
|
||||
+ (lib.strings.concatLines (
|
||||
builtins.map (module: "cp ${module.path} $src/modules/${module.name}") modules
|
||||
));
|
||||
});
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue