nixpkgs/pkgs/tools/X11/xnotify/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

56 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, writeText
, fontconfig
, imlib2
, libX11
, libXft
, libXinerama
, conf ? null
}:
stdenv.mkDerivation rec {
pname = "xnotify";
version = "0.9.3";
src = fetchFromGitHub {
owner = "phillbush";
repo = "xnotify";
rev = "v${version}";
hash = "sha256-RfnmiAEFTPqQZursyVPDIZ6J3KBouvaaxyhTc1liqBc=";
};
buildInputs = [
fontconfig
imlib2
libX11
libXft
libXinerama
];
postPatch = with lib;
let
configFile =
if isDerivation conf || builtins.isPath conf
then conf else writeText "config.h" conf;
in
optionalString (conf != null) "cp ${configFile} config.h";
makeFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
description = "Tool to read notifications from stdin and pop them up on the screen";
longDescription = ''
XNotify displays a notification on the screen. XNotify receives a
notification specification in stdin and shows a notification for the user
on the screen.
'';
homepage = "https://github.com/phillbush/xnotify";
license = licenses.mit;
maintainers = with maintainers; [ azahi ];
platforms = platforms.unix;
mainProgram = "xnotify";
};
}