nixpkgs/pkgs/os-specific/linux/usermount/default.nix

29 lines
797 B
Nix
Raw Normal View History

2019-05-22 13:03:39 +02:00
{ stdenv, fetchgit, pkgconfig, 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 = [ pkgconfig ];
2019-05-22 13:03:39 +02:00
buildInputs = [ dbus libnotify udisks2 gdk-pixbuf ];
2019-10-30 12:34:47 +01:00
NIX_CFLAGS_COMPILE = "-DENABLE_NOTIFICATIONS";
installPhase = ''
mkdir -p $out/bin
mv usermount $out/bin/
'';
meta = {
homepage = "https://github.com/tom5760/usermount";
2014-11-11 14:20:43 +01:00
description = "A simple tool to automatically mount removable drives using UDisks2 and D-Bus";
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.linux;
};
}