2021-01-17 02:09:27 +00:00
|
|
|
{ lib, stdenv, fetchurl, intltool, glib, pkg-config, udev, util-linux, acl }:
|
2015-07-19 13:21:30 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "udevil-0.4.4";
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/IgnorantGuru/udevil/archive/0.4.4.tar.gz";
|
2015-07-19 13:21:30 +01:00
|
|
|
sha256 = "0z1bhaayambrcn7bgnrqk445k50ifabmw8q4i9qj49nnbcvxhbxd";
|
|
|
|
};
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ intltool glib udev ];
|
2015-07-19 13:21:30 +01:00
|
|
|
configurePhase = ''
|
|
|
|
substituteInPlace src/Makefile.in --replace "-o root -g root" ""
|
2017-06-17 10:47:42 +01:00
|
|
|
# do not set setuid bit in nix store
|
2017-06-16 12:54:39 +01:00
|
|
|
substituteInPlace src/Makefile.in --replace 4755 0755
|
2015-07-19 13:21:30 +01:00
|
|
|
./configure \
|
|
|
|
--prefix=$out \
|
2020-11-24 15:29:28 +00:00
|
|
|
--with-mount-prog=${util-linux}/bin/mount \
|
|
|
|
--with-umount-prog=${util-linux}/bin/umount \
|
|
|
|
--with-losetup-prog=${util-linux}/bin/losetup \
|
2016-02-01 18:45:55 +00:00
|
|
|
--with-setfacl-prog=${acl.bin}/bin/setfacl \
|
2015-07-19 13:21:30 +01:00
|
|
|
--sysconfdir=$prefix/etc
|
|
|
|
'';
|
2015-12-14 11:49:14 +00:00
|
|
|
patches = [ ./device-info-sys-stat.patch ];
|
2015-07-19 13:21:30 +01:00
|
|
|
meta = {
|
|
|
|
description = "A command line Linux program which mounts and unmounts removable devices without a password, shows device info, and monitors device changes";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://ignorantguru.github.io/udevil/";
|
2021-01-15 05:42:41 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.gpl3;
|
2015-07-19 13:21:30 +01:00
|
|
|
};
|
|
|
|
}
|