Files
nixpkgs/pkgs/by-name/sp/spice-up/package.nix
whispers 362e335dbe spice-up: drop unused libsoup 2.4 dependency, modernize
Upstream no longer actually uses libsoup 2.4, as reported in
https://github.com/Philip-Scott/Spice-up/issues/328. Since this is the
case, and libsoup 2.4 is likely to be removed soon due to having had
known vulnerabilities for years, we drop the dependency to keep this
package working.
2026-05-30 15:17:15 -04:00

80 lines
1.6 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
meson,
ninja,
pkg-config,
python3,
vala,
wrapGAppsHook3,
glib,
gtk3,
json-glib,
libevdev,
libgee,
libgudev,
pantheon,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "spice-up";
version = "1.9.1";
src = fetchFromGitHub {
owner = "Philip-Scott";
repo = "Spice-up";
tag = finalAttrs.version;
hash = "sha256-FI6YMbqZfaU19k8pS2eoNCnX8O8F99SHHOxMwHC5fTc=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
python3
vala
wrapGAppsHook3
];
buildInputs = [
glib
gtk3
json-glib
libevdev
libgee
libgudev
pantheon.granite
];
# Drop dependency on libsoup 2.4, which is insecure. It's no longer actually
# used upstream, so this is harmless.
# https://github.com/Philip-Scott/Spice-up/issues/328
postPatch = ''
substituteInPlace meson.build --replace-fail "soup_dep = dependency('libsoup-2.4')" ""
substituteInPlace src/meson.build --replace-fail "soup_dep," ""
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Create simple and beautiful presentations";
homepage = "https://github.com/Philip-Scott/Spice-up";
maintainers = with lib.maintainers; [
samdroid-apps
xiorcale
];
teams = [ lib.teams.pantheon ];
platforms = lib.platforms.linux;
# The COPYING file has GPLv3; some files have GPLv2+ and some have GPLv3+
license = lib.licenses.gpl3Plus;
mainProgram = "com.github.philip_scott.spice-up";
};
})