nixpkgs/pkgs/applications/misc/udevil/default.nix

29 lines
1.1 KiB
Nix
Raw Normal View History

2015-07-19 14:21:30 +02:00
{ stdenv, fetchurl, intltool, glib, pkgconfig, udev, utillinux, acl }:
stdenv.mkDerivation {
name = "udevil-0.4.4";
src = fetchurl {
url = https://github.com/IgnorantGuru/udevil/archive/0.4.4.tar.gz;
sha256 = "0z1bhaayambrcn7bgnrqk445k50ifabmw8q4i9qj49nnbcvxhbxd";
};
buildInputs = [ intltool glib pkgconfig udev ];
configurePhase = ''
substituteInPlace src/Makefile.in --replace "-o root -g root" ""
2017-06-17 11:47:42 +02:00
# do not set setuid bit in nix store
substituteInPlace src/Makefile.in --replace 4755 0755
2015-07-19 14:21:30 +02:00
./configure \
--prefix=$out \
--with-mount-prog=${utillinux}/bin/mount \
--with-umount-prog=${utillinux}/bin/umount \
--with-losetup-prog=${utillinux}/bin/losetup \
--with-setfacl-prog=${acl.bin}/bin/setfacl \
2015-07-19 14:21:30 +02:00
--sysconfdir=$prefix/etc
'';
2015-12-14 12:49:14 +01:00
patches = [ ./device-info-sys-stat.patch ];
2015-07-19 14:21:30 +02:00
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/;
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.gpl3;
};
}