push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,65 @@
{
lib,
stdenv,
fetchFromGitHub,
acl,
glib,
intltool,
pkg-config,
udev,
util-linux,
}:
stdenv.mkDerivation rec {
pname = "udevil";
version = "0.4.4";
src = fetchFromGitHub {
owner = "IgnorantGuru";
repo = "udevil";
rev = version;
sha256 = "0nd44r8rbxifx4x4m24z5aji1c6k1fhw8cmf5s43wd5qys0bcdad";
};
nativeBuildInputs = [
pkg-config
intltool
];
buildInputs = [
glib
udev
];
preConfigure = ''
substituteInPlace src/Makefile.in --replace "-o root -g root" ""
# do not set setuid bit in nix store
substituteInPlace src/Makefile.in --replace 4755 0755
'';
configureFlags = [
"--with-mount-prog=${util-linux}/bin/mount"
"--with-umount-prog=${util-linux}/bin/umount"
"--with-losetup-prog=${util-linux}/bin/losetup"
"--with-setfacl-prog=${acl.bin}/bin/setfacl"
"--sysconfdir=${placeholder "out"}/etc"
];
postInstall = ''
substituteInPlace $out/lib/systemd/system/devmon@.service \
--replace /usr/bin/devmon "$out/bin/devmon"
'';
patches = [
# sys/stat.h header missing on src/device-info.h
./device-info-sys-stat.patch
];
meta = with lib; {
homepage = "https://ignorantguru.github.io/udevil/";
description = "Mount without password";
license = licenses.gpl3Plus;
maintainers = [ ];
platforms = platforms.linux;
};
}