From 6f6cfd54eaa2f84ddd82d44da9900a0056338b84 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 28 Apr 2024 16:18:50 +0200 Subject: dell-command-configure: fix self inclusive src --- pkgs/tools/system/dell-command-configure/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkgs/tools/system') diff --git a/pkgs/tools/system/dell-command-configure/default.nix b/pkgs/tools/system/dell-command-configure/default.nix index b4cd7e5dbf63a..cd313751c7b63 100644 --- a/pkgs/tools/system/dell-command-configure/default.nix +++ b/pkgs/tools/system/dell-command-configure/default.nix @@ -55,10 +55,11 @@ let pname = "dell-command-configure-unpacked-wrapper-lib"; inherit version; - src = ./.; + unpackPhase = '' + cp ${./wrapper-lib.c} wrapper-lib.c + ''; postPatch = '' - ls -al substitute wrapper-lib.c lib.c \ --subst-var-by to "${unpacked}/srvadmin-hapi/opt/dell/srvadmin/etc/omreg.d/omreg-hapi.cfg" cc -fPIC -shared lib.c -o ${wrapperLibName} -- cgit 1.4.1