diff --git a/pkgs/applications/misc/udevil/default.nix b/pkgs/applications/misc/udevil/default.nix index 5ba80348d1fc..75c02d3ba6dd 100644 --- a/pkgs/applications/misc/udevil/default.nix +++ b/pkgs/applications/misc/udevil/default.nix @@ -21,6 +21,7 @@ stdenv.mkDerivation { cat src/Makefile.am exit 2 ''; + patches = [ ./device-info-sys-stat.patch ]; meta = { description = "A command line Linux program which mounts and unmounts removable devices without a password, shows device info, and monitors device changes"; homepage = https://ignorantguru.github.io/udevil/; diff --git a/pkgs/applications/misc/udevil/device-info-sys-stat.patch b/pkgs/applications/misc/udevil/device-info-sys-stat.patch new file mode 100644 index 000000000000..554682108e39 --- /dev/null +++ b/pkgs/applications/misc/udevil/device-info-sys-stat.patch @@ -0,0 +1,14 @@ +diff --git a/src/device-info.h b/src/device-info.h +index 6cb3683..ddac24c 100644 +--- a/src/device-info.h ++++ b/src/device-info.h +@@ -18,7 +18,8 @@ + // intltool + #include + +- ++// stat ++#include + + typedef struct device_t { + struct udev_device *udevice;