2022-03-08 18:11:32 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, dbus, libnotify, udisks2, gdk-pixbuf }:
|
2014-05-29 11:38:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-08-27 14:47:49 +00:00
|
|
|
pname = "usermount";
|
|
|
|
version = "0.1";
|
2014-05-29 11:38:13 +00:00
|
|
|
|
2022-03-08 18:11:32 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tom5760";
|
|
|
|
repo = "usermount";
|
2014-05-29 11:38:13 +00:00
|
|
|
rev = "0d6aba3c1f8fec80de502f5b92fd8b28041cc8e4";
|
2022-03-08 18:11:32 +00:00
|
|
|
sha256 = "sha256-giMHUVYdAygiemYru20VxpQixr5aGgHhevNkHvkG9z4=";
|
2014-05-29 11:38:13 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-05-22 11:03:39 +00:00
|
|
|
buildInputs = [ dbus libnotify udisks2 gdk-pixbuf ];
|
2014-05-29 11:38:13 +00:00
|
|
|
|
2019-10-30 11:34:47 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-DENABLE_NOTIFICATIONS";
|
2014-05-29 11:38:13 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv usermount $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00: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";
|
2021-01-15 14:45:37 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.linux;
|
2014-05-29 11:38:13 +00:00
|
|
|
};
|
|
|
|
}
|