2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchgit, pkg-config, dbus, libnotify, udisks2, gdk-pixbuf }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-09-26 12:46:18 +00:00
|
|
|
pname = "usermount";
|
|
|
|
version = "0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/tom5760/usermount.git";
|
|
|
|
rev = "0d6aba3c1f8fec80de502f5b92fd8b28041cc8e4";
|
|
|
|
sha256 = "0gpp0vwiwr7kgbhh26jspv3255662mnvnav6g8i2h0qxar8hf8w2";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
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";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|