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