12 stdenv.mkDerivation rec {
16 src = fetchFromGitHub {
17 owner = "IgnorantGuru";
20 sha256 = "0nd44r8rbxifx4x4m24z5aji1c6k1fhw8cmf5s43wd5qys0bcdad";
23 nativeBuildInputs = [ pkg-config intltool ];
31 substituteInPlace src/Makefile.in --replace "-o root -g root" ""
32 # do not set setuid bit in nix store
33 substituteInPlace src/Makefile.in --replace 4755 0755
37 "--with-mount-prog=${util-linux}/bin/mount"
38 "--with-umount-prog=${util-linux}/bin/umount"
39 "--with-losetup-prog=${util-linux}/bin/losetup"
40 "--with-setfacl-prog=${acl.bin}/bin/setfacl"
41 "--sysconfdir=${placeholder "out"}/etc"
45 substituteInPlace $out/lib/systemd/system/devmon@.service \
46 --replace /usr/bin/devmon "$out/bin/devmon"
50 # sys/stat.h header missing on src/device-info.h
51 ./device-info-sys-stat.patch
55 homepage = "https://ignorantguru.github.io/udevil/";
56 description = "Mount without password";
57 license = licenses.gpl3Plus;
58 maintainers = with maintainers; [ ];
59 platforms = platforms.linux;