depot/pkgs/applications/networking/instant-messengers/pidgin/pidgin-plugins/purple-plugin-pack/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

42 lines
1 KiB
Nix

{ lib
, stdenv
, fetchurl
, meson
, ninja
, pidgin
}:
stdenv.mkDerivation rec {
pname = "purple-plugin-pack";
version = "2.8.0";
src = fetchurl {
url = "mirror://sourceforge/pidgin/purple-plugin-pack-2.8.0.tar.xz";
hash = "sha256-gszemnJRp1t+A6P5qSkBTY4AjBtvRuWGOPX0dto+JC0=";
};
postPatch = ''
substituteInPlace meson.build \
--replace "PURPLE.get_pkgconfig_variable('plugindir')" "'$out/lib/purple-2'" \
--replace "PURPLE.get_pkgconfig_variable('datadir')" "'$out/share'" \
--replace "PIDGIN.get_pkgconfig_variable('plugindir')" "'$out/lib/pidgin'" \
--replace "PIDGIN.get_pkgconfig_variable('datadir')" "'$out/share'"
'';
nativeBuildInputs = [
meson
ninja
];
buildInputs = [
pidgin
];
meta = with lib; {
homepage = "https://keep.imfreedom.org/pidgin/purple-plugin-pack";
description = "Collection of plugins for purple-based clients such as Pidgin";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ bdimcheff ];
};
}