@@ -0,0 +1,30 @@
1+{ stdenv, fetchurl, intltool, glib, pkgconfig, udev, utillinux, acl }:
2+stdenv.mkDerivation {
3+ name = "udevil-0.4.4";
4+ src = fetchurl {
5+ url = https://github.com/IgnorantGuru/udevil/archive/0.4.4.tar.gz;
6+ sha256 = "0z1bhaayambrcn7bgnrqk445k50ifabmw8q4i9qj49nnbcvxhbxd";
7+ };
8+ buildInputs = [ intltool glib pkgconfig udev ];
9+ configurePhase = ''
10+ substituteInPlace src/Makefile.am --replace "-o root -g root" ""
11+ substituteInPlace src/Makefile.in --replace "-o root -g root" ""
12+ ./configure \
13+ --prefix=$out \
14+ --with-mount-prog=${utillinux}/bin/mount \
15+ --with-umount-prog=${utillinux}/bin/umount \
16+ --with-losetup-prog=${utillinux}/bin/losetup \
17+ --with-setfacl-prog=${acl}/bin/setfacl \
18+ --sysconfdir=$prefix/etc
19+ '';
20+ preConfigure = ''
21+ cat src/Makefile.am
22+ exit 2
23+ '';
24+ meta = {
25+ description = "A command line Linux program which mounts and unmounts removable devices without a password, shows device info, and monitors device changes";
26+ homepage = https://ignorantguru.github.io/udevil/;
27+ platforms = stdenv.lib.platforms.linux;
28+ license = stdenv.lib.licenses.gpl3;
29+ };
30+}