2019-05-22 12:03:39 +01:00
|
|
|
{ stdenv, fetchgit, pkgconfig, dbus, libnotify, udisks2, gdk-pixbuf }:
|
2014-05-29 12:38:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "usermount-0.1";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/tom5760/usermount.git";
|
|
|
|
rev = "0d6aba3c1f8fec80de502f5b92fd8b28041cc8e4";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "0gpp0vwiwr7kgbhh26jspv3255662mnvnav6g8i2h0qxar8hf8w2";
|
2014-05-29 12:38:13 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2019-05-22 12:03:39 +01:00
|
|
|
buildInputs = [ dbus libnotify udisks2 gdk-pixbuf ];
|
2014-05-29 12:38:13 +01:00
|
|
|
|
2019-10-30 11:34:47 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-DENABLE_NOTIFICATIONS";
|
2014-05-29 12:38:13 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv usermount $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/tom5760/usermount";
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "A simple tool to automatically mount removable drives using UDisks2 and D-Bus";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2014-05-29 12:38:13 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|