summary refs log tree commit diff
path: root/pkgs/os-specific/linux/usermount/default.nix
blob: d0c690a952748ed878def54cceb89c429f9db8c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, stdenv, fetchgit, pkg-config, dbus, libnotify, udisks2, gdk-pixbuf }:

stdenv.mkDerivation {
  name = "usermount-0.1";

  src = fetchgit {
    url = "https://github.com/tom5760/usermount.git";
    rev = "0d6aba3c1f8fec80de502f5b92fd8b28041cc8e4";
    sha256 = "0gpp0vwiwr7kgbhh26jspv3255662mnvnav6g8i2h0qxar8hf8w2";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ dbus libnotify udisks2 gdk-pixbuf ];

  NIX_CFLAGS_COMPILE = "-DENABLE_NOTIFICATIONS";

  installPhase = ''
    mkdir -p $out/bin
    mv usermount $out/bin/
  '';

  meta = {
    homepage = "https://github.com/tom5760/usermount";
    description = "A simple tool to automatically mount removable drives using UDisks2 and D-Bus";
    license = lib.licenses.mit;
    platforms = lib.platforms.linux;
  };
}