feat: initial commit
This commit is contained in:
commit
fb0fc3a37f
3 changed files with 105 additions and 0 deletions
22
godot-withmodules.nix
Normal file
22
godot-withmodules.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
pkgs@{
|
||||
lib,
|
||||
godot ? pkgs.godot_4,
|
||||
...
|
||||
}:
|
||||
godot.overrideAttrs (prev: {
|
||||
passthru = prev.passthru // {
|
||||
withModules =
|
||||
modules:
|
||||
godot.overrideAttrs (prev: {
|
||||
postPatch =
|
||||
if prev ? "postPatch" then prev.postPatch else ""
|
||||
+ (lib.strings.concatLines (
|
||||
builtins.map (module:
|
||||
''
|
||||
cp -ar ${module.path} modules/${module.name}
|
||||
chmod -R u+w -- "modules/${module.name}"
|
||||
'') modules
|
||||
));
|
||||
});
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue