nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 meson, 6 ninja, 7 pidgin, 8}: 9 10stdenv.mkDerivation { 11 pname = "purple-plugin-pack"; 12 version = "2.8.0"; 13 14 src = fetchurl { 15 url = "mirror://sourceforge/pidgin/purple-plugin-pack-2.8.0.tar.xz"; 16 hash = "sha256-gszemnJRp1t+A6P5qSkBTY4AjBtvRuWGOPX0dto+JC0="; 17 }; 18 19 postPatch = '' 20 substituteInPlace meson.build \ 21 --replace "PURPLE.get_pkgconfig_variable('plugindir')" "'$out/lib/purple-2'" \ 22 --replace "PURPLE.get_pkgconfig_variable('datadir')" "'$out/share'" \ 23 --replace "PIDGIN.get_pkgconfig_variable('plugindir')" "'$out/lib/pidgin'" \ 24 --replace "PIDGIN.get_pkgconfig_variable('datadir')" "'$out/share'" 25 ''; 26 27 nativeBuildInputs = [ 28 meson 29 ninja 30 ]; 31 32 buildInputs = [ 33 pidgin 34 ]; 35 36 meta = with lib; { 37 homepage = "https://keep.imfreedom.org/pidgin/purple-plugin-pack"; 38 description = "Collection of plugins for purple-based clients such as Pidgin"; 39 license = licenses.gpl2Plus; 40 platforms = platforms.linux; 41 maintainers = with maintainers; [ bdimcheff ]; 42 }; 43}