1{ stdenv, fetchgit, pkgconfig, dbus, libnotify, udisks2, gdk_pixbuf }:
2
3stdenv.mkDerivation {
4 name = "usermount-0.1";
5
6 src = fetchgit {
7 url = "https://github.com/tom5760/usermount.git";
8 rev = "0d6aba3c1f8fec80de502f5b92fd8b28041cc8e4";
9 sha256 = "0gpp0vwiwr7kgbhh26jspv3255662mnvnav6g8i2h0qxar8hf8w2";
10 };
11
12 nativeBuildInputs = [ pkgconfig ];
13 buildInputs = [ dbus libnotify udisks2 gdk_pixbuf ];
14
15 NIX_CFLAGS_COMPILE = [ "-DENABLE_NOTIFICATIONS" ];
16
17 installPhase = ''
18 mkdir -p $out/bin
19 mv usermount $out/bin/
20 '';
21
22 meta = {
23 homepage = https://github.com/tom5760/usermount;
24 description = "A simple tool to automatically mount removable drives using UDisks2 and D-Bus";
25 license = stdenv.lib.licenses.mit;
26 platforms = stdenv.lib.platforms.linux;
27 maintainers = with stdenv.lib.maintainers; [ the-kenny ];
28 };
29}