Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 53 lines 1.1 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 gobject-introspection, 5 libnotify, 6 wrapGAppsHook3, 7 gtk3, 8 python3, 9}: 10 11python3.pkgs.buildPythonApplication { 12 pname = "notifymuch"; 13 version = "0.1"; 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "kspi"; 18 repo = "notifymuch"; 19 # https://github.com/kspi/notifymuch/issues/11 20 rev = "9d4aaf54599282ce80643b38195ff501120807f0"; 21 sha256 = "1lssr7iv43mp5v6nzrfbqlfzx8jcc7m636wlfyhhnd8ydd39n6k4"; 22 }; 23 24 propagatedBuildInputs = [ 25 libnotify 26 gtk3 27 ] 28 ++ (with python3.pkgs; [ 29 notmuch 30 pygobject3 31 ]); 32 33 nativeBuildInputs = [ 34 gobject-introspection 35 wrapGAppsHook3 36 ]; 37 38 dontWrapGApps = true; 39 40 preFixup = '' 41 makeWrapperArgs+=("''${gappsWrapperArgs[@]}") 42 ''; 43 44 strictDeps = false; 45 46 meta = with lib; { 47 description = "Display desktop notifications for unread mail in a notmuch database"; 48 mainProgram = "notifymuch"; 49 homepage = "https://github.com/kspi/notifymuch"; 50 maintainers = with maintainers; [ arjan-s ]; 51 license = licenses.gpl3; 52 }; 53}