mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
15 lines
296 B
Nix
15 lines
296 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;
|
|
};
|
|
}
|