Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
73 lines
1.4 KiB
Nix
73 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchzip,
|
|
pkg-config,
|
|
glib,
|
|
libwnck,
|
|
libnotify,
|
|
libtool,
|
|
dbus-glib,
|
|
makeWrapper,
|
|
gnome-common,
|
|
gsettings-desktop-schemas,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "notify-osd";
|
|
version = "0.9.35+20.04.20191129";
|
|
|
|
src = fetchzip {
|
|
url = "https://launchpad.net/ubuntu/+archive/primary/+files/notify-osd_${finalAttrs.version}.orig.tar.gz";
|
|
sha256 = "sha256-aSU83HoWhHZtob8NFHFYNUIIZAecvQ/p0z62KMlQNCU=";
|
|
stripRoot = false;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
makeWrapper
|
|
libtool
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
libwnck
|
|
libnotify
|
|
dbus-glib
|
|
gsettings-desktop-schemas
|
|
gnome-common
|
|
];
|
|
|
|
env = {
|
|
NIX_CFLAGS_COMPILE = "-fpermissive";
|
|
};
|
|
|
|
# deprecated function: g_memdup
|
|
postPatch = ''
|
|
substituteInPlace src/stack.c \
|
|
--replace-fail "g_memdup" "g_memdup2"
|
|
'';
|
|
|
|
preConfigure = ''
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
'';
|
|
|
|
configureFlags = [
|
|
''--libexecdir=$(out)/bin''
|
|
];
|
|
|
|
preFixup = ''
|
|
wrapProgram "$out/bin/notify-osd" \
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Daemon that displays passive pop-up notifications";
|
|
mainProgram = "notify-osd";
|
|
homepage = "https://launchpad.net/notify-osd";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ bodil ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|