mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
11 lines
271 B
Nix
11 lines
271 B
Nix
{ lib, myLib }:
|
|
with lib;
|
|
{
|
|
package' = types.package // {
|
|
merge = loc: defs:
|
|
let res = mergeDefaultOption loc defs;
|
|
in if builtins.isPath res || (builtins.isString res && ! builtins.hasContext res)
|
|
then toDerivation res
|
|
else res;
|
|
};
|
|
}
|