2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2024-04-21 15:54:59 +00:00
|
|
|
, wrapGAppsHook4
|
2022-07-14 12:49:19 +00:00
|
|
|
, gdk-pixbuf
|
|
|
|
, gettext
|
|
|
|
, gobject-introspection
|
2024-04-21 15:54:59 +00:00
|
|
|
, gtk4
|
2022-07-14 12:49:19 +00:00
|
|
|
, python3Packages
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "nicotine-plus";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "3.3.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-07-14 12:49:19 +00:00
|
|
|
owner = "nicotine-plus";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "nicotine-plus";
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-3OMcCMHx+uRid9MF2LMaqUOVQEDlvJiLIVDpCunhxw8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [ gettext wrapGAppsHook4 gobject-introspection ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
gdk-pixbuf
|
|
|
|
gobject-introspection
|
2024-04-21 15:54:59 +00:00
|
|
|
gtk4
|
2022-07-14 12:49:19 +00:00
|
|
|
python3Packages.pygobject3
|
|
|
|
];
|
2021-12-30 13:39:12 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
postInstall = ''
|
2021-12-30 13:39:12 +00:00
|
|
|
ln -s $out/bin/nicotine $out/bin/nicotine-plus
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
2024-04-21 15:54:59 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "${gtk4}/share/gsettings-schemas/${gtk4.name}"
|
2021-12-26 17:43:05 +00:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A graphical client for the SoulSeek peer-to-peer system";
|
2022-07-14 12:49:19 +00:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.nicotine-plus.org";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-02-29 20:09:43 +00:00
|
|
|
maintainers = with maintainers; [ klntsky ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|