Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkgs/applications/misc/udevil/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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/;
Expand Down
14 changes: 14 additions & 0 deletions pkgs/applications/misc/udevil/device-info-sys-stat.patch
Original file line number Diff line number Diff line change
@@ -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 <glib/gi18n.h>

-
+// stat
+#include <sys/stat.h>

typedef struct device_t {
struct udev_device *udevice;