mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
xnotify: init at unstable-2022-02-18
This commit is contained in:
parent
6aa5e1abb5
commit
26329f9ae8
59
pkgs/tools/X11/xnotify/default.nix
Normal file
59
pkgs/tools/X11/xnotify/default.nix
Normal file
@ -0,0 +1,59 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, writeText
|
||||
, fontconfig
|
||||
, imlib2
|
||||
, libX11
|
||||
, libXft
|
||||
, libXinerama
|
||||
, conf ? null
|
||||
, nix-update-script
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xnotify";
|
||||
version = "unstable-2022-02-18";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "phillbush";
|
||||
repo = "xnotify";
|
||||
rev = "58c7d5763c3fb1c32a76560c85d20a25f59d4687";
|
||||
sha256 = "sha256-BSZesuBGAWYp3IMiiZi6CAyZEiz3sBJLQe6/JnxviLs=";
|
||||
};
|
||||
|
||||
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)" ];
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
attrPath = pname;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A 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;
|
||||
};
|
||||
}
|
@ -31388,6 +31388,8 @@ with pkgs;
|
||||
|
||||
xnee = callPackage ../tools/X11/xnee { };
|
||||
|
||||
xnotify = callPackage ../tools/X11/xnotify { };
|
||||
|
||||
xvidcap = callPackage ../applications/video/xvidcap {
|
||||
inherit (gnome2) scrollkeeper libglade;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user