1{lib, stdenv, fetchurl, libX11, libxcb, pkg-config, xcbutil}:
2
3stdenv.mkDerivation rec {
4 pname = "libstartup-notification";
5 version = "0.12";
6 src = fetchurl {
7 url = "https://www.freedesktop.org/software/startup-notification/releases/startup-notification-${version}.tar.gz";
8 sha256 = "3c391f7e930c583095045cd2d10eb73a64f085c7fde9d260f2652c7cb3cfbe4a";
9 };
10
11 configureFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
12 "lf_cv_sane_realloc=yes"
13 ];
14
15 nativeBuildInputs = [ pkg-config ];
16 buildInputs = [ libX11 libxcb xcbutil ];
17
18 meta = {
19 homepage = "https://www.freedesktop.org/software/startup-notification";
20 description = "Application startup notification and feedback library";
21 license = lib.licenses.lgpl2;
22 };
23}