diff options
author | Travis A. Everett <travis.a.everett@gmail.com> | 2022-04-08 01:45:09 -0500 |
---|---|---|
committer | Yt <raphael@megzari.com> | 2022-04-08 21:13:20 -0400 |
commit | 09d441d21c547254cbd6eb2f2ba8f079b2a16a32 (patch) | |
tree | 3b50406c0ef6ab62c460343313ad735c0201049f /pkgs/development/misc/resholve/default.nix | |
parent | 9a83d8ce9490bc240518440f66e9366c6cab1de7 (diff) |
resholve: 0.6.9 -> 0.8.0
Also track upstream .nix changes over same window.
Diffstat (limited to 'pkgs/development/misc/resholve/default.nix')
-rw-r--r-- | pkgs/development/misc/resholve/default.nix | 42 |
1 files changed, 5 insertions, 37 deletions
diff --git a/pkgs/development/misc/resholve/default.nix b/pkgs/development/misc/resholve/default.nix index 714c4ecabe082..b2ee3c1d1b574 100644 --- a/pkgs/development/misc/resholve/default.nix +++ b/pkgs/development/misc/resholve/default.nix @@ -1,5 +1,5 @@ { callPackage -, writeTextFile +, ... }: let @@ -7,47 +7,15 @@ let deps = callPackage ./deps.nix { }; in rec { + # resholve itself resholve = callPackage ./resholve.nix { inherit (source) rSrc version; inherit (deps.oil) oildev; + inherit resholve-utils; }; + # funcs to validate and phrase invocations of resholve + # and use those invocations to build packages resholve-utils = callPackage ./resholve-utils.nix { inherit resholve; }; - resholvePackage = callPackage ./resholve-package.nix { - inherit resholve resholve-utils; - }; - resholveScript = name: partialSolution: text: - writeTextFile { - inherit name text; - executable = true; - checkPhase = '' - ( - PS4=$'\x1f'"\033[33m[resholve context]\033[0m " - set -x - ${resholve-utils.makeInvocation name (partialSolution // { - scripts = [ "${placeholder "out"}" ]; - })} - ) - ${partialSolution.interpreter} -n $out - ''; - }; - resholveScriptBin = name: partialSolution: text: - writeTextFile rec { - inherit name text; - executable = true; - destination = "/bin/${name}"; - checkPhase = '' - ( - cd "$out" - PS4=$'\x1f'"\033[33m[resholve context]\033[0m " - set -x - : changing directory to $PWD - ${resholve-utils.makeInvocation name (partialSolution // { - scripts = [ "bin/${name}" ]; - })} - ) - ${partialSolution.interpreter} -n $out/bin/${name} - ''; - }; } |