Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notify-osd: 0.9.34 → 0.9.35+20.04.20191129 #369308

Merged
merged 3 commits into from
Jan 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 34 additions & 12 deletions pkgs/by-name/no/notify-osd/package.nix
Original file line number Diff line number Diff line change
@@ -1,50 +1,72 @@
{
lib,
stdenv,
fetchurl,
fetchzip,
pkg-config,
glib,
libwnck,
libnotify,
libtool,
dbus-glib,
makeWrapper,
gnome-common,
gsettings-desktop-schemas,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "notify-osd";
version = "0.9.34";
version = "0.9.35+20.04.20191129";

src = fetchurl {
url = "https://launchpad.net/notify-osd/precise/${version}/+download/notify-osd-${version}.tar.gz";
sha256 = "0g5a7a680b05x27apz0y1ldl5csxpp152wqi42s107jymbp0s20j";
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
];

configureFlags = [ "--libexecdir=$(out)/bin" ];
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 = with lib; {
meta = {
description = "Daemon that displays passive pop-up notifications";
mainProgram = "notify-osd";
homepage = "https://launchpad.net/notify-osd";
license = licenses.gpl3;
maintainers = [ maintainers.bodil ];
platforms = platforms.linux;
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ bodil ];
platforms = lib.platforms.linux;
};
}
})