Merge pull request #307479 from Stunkymonkey/self-inclusive-src-dell-command-configure

dell-command-configure: fix self inclusive src
This commit is contained in:
Sandro 2024-04-28 23:35:59 +02:00 committed by GitHub
commit 1f149e08f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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}