about summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2024-04-28 16:18:50 +0200
committerFelix Buehler <account@buehler.rocks>2024-04-28 17:51:33 +0200
commit6f6cfd54eaa2f84ddd82d44da9900a0056338b84 (patch)
tree8111a88a5b552a728ca753010029e9c379ec48c2 /pkgs/tools/system
parentd40ab11e88abd79e3ce3e51e6c455f0ce64a6211 (diff)
dell-command-configure: fix self inclusive src
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/dell-command-configure/default.nix5
1 files changed, 3 insertions, 2 deletions
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}