git.iko.soy/typeable/nixpkgs
on master help sign in
udevil: New package
commita296639b9e3e4ad3e9f8d54e7863425e8fa943a1 authorOliver Charles <ollie@ocharles.org.uk> dateSun 19 Jul 2015, 13:21 (11 years ago) parent2088296
2 files changed+32
pkgs/applications/misc/udevil/default.nix+30 pkgs/top-level/all-packages.nix+2
pkgs/applications/misc/udevil/default.nixnew file+30
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -15107,4 +15107,6 @@ let
1510715107
1510815108 hbase = callPackage ../servers/hbase {};
1510915109
15110+ udevil = callPackage ../applications/misc/udevil {};
15111+
1511015112}; in self; in pkgs