Files
nixpkgs/pkgs/by-name/no/notify-osd/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

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;
};
})