This commit is contained in:
Waldemar Tomme 2025-10-20 17:14:28 +05:30 committed by GitHub
commit d38208d84d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,6 +34,12 @@ in
example = [ "doc" "info" "devdoc" ];
description = "List of additional package outputs to be installed as user packages.";
};
extraSetup = mkOption {
type = types.lines;
default = "";
description = "Shell fragments to be run after the system environment has been created. This should only be used for things that need to modify the internals of the environment, e.g. generating MIME caches. The environment being built can be accessed at $out.";
};
};
};
@ -80,6 +86,8 @@ in
inherit (cfg) extraOutputsToInstall;
postBuild = cfg.extraSetup;
meta = {
description = "Environment of packages installed through Nix-on-Droid.";
};