|
1 | 1 | { |
2 | 2 | lib, |
3 | 3 | stdenv, |
4 | | - fetchurl, |
| 4 | + fetchzip, |
5 | 5 | pkg-config, |
6 | 6 | glib, |
7 | 7 | libwnck, |
8 | 8 | libnotify, |
| 9 | + libtool, |
9 | 10 | dbus-glib, |
10 | 11 | makeWrapper, |
| 12 | + gnome-common, |
11 | 13 | gsettings-desktop-schemas, |
12 | 14 | }: |
13 | 15 |
|
14 | | -stdenv.mkDerivation rec { |
| 16 | +stdenv.mkDerivation (finalAttrs: { |
15 | 17 | pname = "notify-osd"; |
16 | | - version = "0.9.34"; |
| 18 | + version = "0.9.35+20.04.20191129"; |
17 | 19 |
|
18 | | - src = fetchurl { |
19 | | - url = "https://launchpad.net/notify-osd/precise/${version}/+download/notify-osd-${version}.tar.gz"; |
20 | | - sha256 = "0g5a7a680b05x27apz0y1ldl5csxpp152wqi42s107jymbp0s20j"; |
| 20 | + src = fetchzip { |
| 21 | + url = "https://launchpad.net/ubuntu/+archive/primary/+files/notify-osd_${finalAttrs.version}.orig.tar.gz"; |
| 22 | + sha256 = "sha256-aSU83HoWhHZtob8NFHFYNUIIZAecvQ/p0z62KMlQNCU="; |
| 23 | + stripRoot = false; |
21 | 24 | }; |
22 | 25 |
|
23 | 26 | nativeBuildInputs = [ |
24 | 27 | pkg-config |
25 | 28 | makeWrapper |
| 29 | + libtool |
26 | 30 | ]; |
| 31 | + |
27 | 32 | buildInputs = [ |
28 | 33 | glib |
29 | 34 | libwnck |
30 | 35 | libnotify |
31 | 36 | dbus-glib |
32 | 37 | gsettings-desktop-schemas |
| 38 | + gnome-common |
33 | 39 | ]; |
34 | 40 |
|
35 | | - configureFlags = [ "--libexecdir=$(out)/bin" ]; |
| 41 | + env = { |
| 42 | + NIX_CFLAGS_COMPILE = "-fpermissive"; |
| 43 | + }; |
| 44 | + |
| 45 | + # deprecated function: g_memdup |
| 46 | + postPatch = '' |
| 47 | + substituteInPlace src/stack.c \ |
| 48 | + --replace-fail "g_memdup" "g_memdup2" |
| 49 | + ''; |
| 50 | + |
| 51 | + preConfigure = '' |
| 52 | + NOCONFIGURE=1 ./autogen.sh |
| 53 | + ''; |
| 54 | + |
| 55 | + configureFlags = [ |
| 56 | + ''--libexecdir=$(out)/bin'' |
| 57 | + ]; |
36 | 58 |
|
37 | 59 | preFixup = '' |
38 | 60 | wrapProgram "$out/bin/notify-osd" \ |
39 | 61 | --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" |
40 | 62 | ''; |
41 | 63 |
|
42 | | - meta = with lib; { |
| 64 | + meta = { |
43 | 65 | description = "Daemon that displays passive pop-up notifications"; |
44 | 66 | mainProgram = "notify-osd"; |
45 | 67 | homepage = "https://launchpad.net/notify-osd"; |
46 | | - license = licenses.gpl3; |
47 | | - maintainers = [ maintainers.bodil ]; |
48 | | - platforms = platforms.linux; |
| 68 | + license = lib.licenses.gpl3; |
| 69 | + maintainers = with lib.maintainers; [ bodil ]; |
| 70 | + platforms = lib.platforms.linux; |
49 | 71 | }; |
50 | | -} |
| 72 | +}) |
0 commit comments