diff options
author | Oliver Charles <ollie@ocharles.org.uk> | 2015-07-19 13:21:30 +0100 |
---|---|---|
committer | Oliver Charles <ollie@ocharles.org.uk> | 2015-07-19 13:39:00 +0100 |
commit | a296639b9e3e4ad3e9f8d54e7863425e8fa943a1 (patch) | |
tree | 5c8c1102c78a2a8ae287798cd088469627e39872 /pkgs/applications/misc/udevil | |
parent | 20882964f518acb2aba364a25d03c96fd149821a (diff) |
udevil: New package
Diffstat (limited to 'pkgs/applications/misc/udevil')
-rw-r--r-- | pkgs/applications/misc/udevil/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/misc/udevil/default.nix b/pkgs/applications/misc/udevil/default.nix new file mode 100644 index 0000000000000..5ba80348d1fcb --- /dev/null +++ b/pkgs/applications/misc/udevil/default.nix @@ -0,0 +1,30 @@ +{ 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.am --replace "-o root -g root" "" + substituteInPlace src/Makefile.in --replace "-o root -g root" "" + ./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/setfacl \ + --sysconfdir=$prefix/etc + ''; + preConfigure = '' + cat src/Makefile.am + exit 2 + ''; + 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; + }; +} |