nixpkgs/pkgs/os-specific/linux/usermount/default.nix
2021-08-29 11:28:34 +02:00

30 lines
806 B
Nix

{ lib, stdenv, fetchgit, pkg-config, dbus, libnotify, udisks2, gdk-pixbuf }:
stdenv.mkDerivation {
pname = "usermount";
version = "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;
};
}