From 6ec73592f730ce16734fb4e9c502c2781dfa2e2d Mon Sep 17 00:00:00 2001 From: ene Date: Sat, 25 Feb 2023 17:05:21 +0100 Subject: Fix(packages): Use a custom function for packaging ll --- lib/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib') diff --git a/lib/default.nix b/lib/default.nix index 0e2caf1b..35e02d45 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -17,4 +17,17 @@ patchShebangs "$out/bin/${name}" wrapProgram "$out/bin/${name}" --prefix PATH : ${pkgs.lib.makeBinPath dependencies} ''; + + makeShellScriptWithLibraryUnwrapped = { + name, + script, + ... + }: + pkgs.runCommandLocal name { + nativeBuildInputs = []; + } '' + install -m755 ${script} -D "$out/bin/${name}" + sed -i 's|%SHELL_LIBRARY_PATH|${shell-library}/lib|' "$out/bin/${name}" + patchShebangs "$out/bin/${name}" + ''; } -- cgit 1.4.1