dell-command-configure: fix self inclusive src

This commit is contained in:
Felix Buehler 2024-04-28 16:18:50 +02:00
parent d40ab11e88
commit 6f6cfd54ea

View File

@ -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}