depot/third_party/nixpkgs/pkgs/by-name/ni/nicotine-plus/package.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

54 lines
1.3 KiB
Nix

{ lib
, fetchFromGitHub
, wrapGAppsHook4
, gdk-pixbuf
, gettext
, gobject-introspection
, gtk4
, python3Packages
}:
python3Packages.buildPythonApplication rec {
pname = "nicotine-plus";
version = "3.3.2";
src = fetchFromGitHub {
owner = "nicotine-plus";
repo = "nicotine-plus";
rev = "refs/tags/${version}";
hash = "sha256-dl4fTa+CXsycC+hhSkIzQQxrSkBDPsdrmKdrHPakGig=";
};
nativeBuildInputs = [ gettext wrapGAppsHook4 gobject-introspection ];
propagatedBuildInputs = [
gdk-pixbuf
gobject-introspection
gtk4
python3Packages.pygobject3
];
postInstall = ''
ln -s $out/bin/nicotine $out/bin/nicotine-plus
'';
preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${gtk4}/share/gsettings-schemas/${gtk4.name}"
)
'';
doCheck = false;
meta = with lib; {
description = "A graphical client for the SoulSeek peer-to-peer system";
longDescription = ''
Nicotine+ aims to be a pleasant, free and open source (FOSS) alternative
to the official Soulseek client, providing additional functionality while
keeping current with the Soulseek protocol.
'';
homepage = "https://www.nicotine-plus.org";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ klntsky ];
};
}