From a9454f539b02b99d4192ff9964050368bda5e13f Mon Sep 17 00:00:00 2001 From: "Travis A. Everett" Date: Thu, 30 Sep 2021 18:48:58 -0500 Subject: [PATCH] resholve: actually import resholveScript* --- pkgs/development/misc/resholve/test.nix | 31 ++----------------------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 3 insertions(+), 30 deletions(-) diff --git a/pkgs/development/misc/resholve/test.nix b/pkgs/development/misc/resholve/test.nix index ca8a51c705d6..dd847462420b 100644 --- a/pkgs/development/misc/resholve/test.nix +++ b/pkgs/development/misc/resholve/test.nix @@ -3,6 +3,8 @@ , callPackage , resholve , resholvePackage +, resholveScript +, resholveScriptBin , shunit2 , coreutils , gnused @@ -22,35 +24,6 @@ }: let - inherit (callPackage ./default.nix { }) - resholve resholvePackage resholveScript resholveScriptBin; - - # ourCoreutils = coreutils.override { singleBinary = false; }; - - /* - TODO: wrapped copy of find so that we can eventually test - our ability to see through wrappers. Unused for now. - Note: grep can serve the negative case; grep doesn't match, and - egrep is a shell wrapper for grep. - */ - # wrapfind = runCommand "wrapped-find" { } '' - # source ${makeWrapper}/nix-support/setup-hook - # makeWrapper ${findutils}/bin/find $out/bin/wrapped-find - # ''; - /* TODO: - unrelated, but is there already a function (or would - there be demand for one?) along the lines of: - wrap = { drv, executable(s?), args ? { } }: that: - - generates a sane output name - - sources makewrapper - - retargets real executable if already wrapped - - wraps the executable - - I wonder because my first thought here was overrideAttrs, - but I realized rebuilding just for a custom wrapper is an - ongoing waste of time. If it is a common pattern in the - wild, it would be a nice QoL improvement. - */ in rec { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7fbbf150eee8..8fe9d3850fd2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8767,7 +8767,7 @@ with pkgs; rescuetime = libsForQt5.callPackage ../applications/misc/rescuetime { }; inherit (callPackage ../development/misc/resholve { }) - resholve resholvePackage; + resholve resholvePackage resholveScript resholveScriptBin; restool = callPackage ../os-specific/linux/restool {};