mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-12-17 22:41:14 +01:00
Merge ac78a46109 into 1c306c07b3
This commit is contained in:
commit
d38208d84d
1 changed files with 8 additions and 0 deletions
|
|
@ -34,6 +34,12 @@ in
|
||||||
example = [ "doc" "info" "devdoc" ];
|
example = [ "doc" "info" "devdoc" ];
|
||||||
description = "List of additional package outputs to be installed as user packages.";
|
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;
|
inherit (cfg) extraOutputsToInstall;
|
||||||
|
|
||||||
|
postBuild = cfg.extraSetup;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Environment of packages installed through Nix-on-Droid.";
|
description = "Environment of packages installed through Nix-on-Droid.";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue