nixpkgs/pkgs/by-name/ni/nicotine-plus/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
2024-03-09 23:04:02 +00:00
, wrapGAppsHook4
, gdk-pixbuf
, gettext
, gobject-introspection
2024-03-09 23:04:02 +00:00
, gtk4
, python3Packages
}:
2019-02-06 21:52:01 +00:00
2021-05-08 08:28:06 +00:00
python3Packages.buildPythonApplication rec {
2019-02-06 21:52:01 +00:00
pname = "nicotine-plus";
2024-05-13 06:53:01 +00:00
version = "3.3.4";
2019-02-06 21:52:01 +00:00
src = fetchFromGitHub {
owner = "nicotine-plus";
2019-02-06 21:52:01 +00:00
repo = "nicotine-plus";
2022-08-21 11:48:49 +00:00
rev = "refs/tags/${version}";
2024-05-13 06:53:01 +00:00
hash = "sha256-3OMcCMHx+uRid9MF2LMaqUOVQEDlvJiLIVDpCunhxw8=";
2019-02-06 21:52:01 +00:00
};
2024-03-09 23:04:02 +00:00
nativeBuildInputs = [ gettext wrapGAppsHook4 gobject-introspection ];
2021-05-08 08:28:06 +00:00
propagatedBuildInputs = [
gdk-pixbuf
gobject-introspection
2024-03-09 23:04:02 +00:00
gtk4
python3Packages.pygobject3
];
2021-12-29 21:18:27 +00:00
2021-05-08 08:28:06 +00:00
postInstall = ''
2021-12-29 21:18:27 +00:00
ln -s $out/bin/nicotine $out/bin/nicotine-plus
2019-02-06 21:52:01 +00:00
'';
preFixup = ''
gappsWrapperArgs+=(
2024-03-09 23:04:02 +00:00
--prefix XDG_DATA_DIRS : "${gtk4}/share/gsettings-schemas/${gtk4.name}"
)
'';
2021-05-08 08:28:06 +00:00
doCheck = false;
meta = with lib; {
2019-02-06 21:52:01 +00:00
description = "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";
2021-05-08 08:28:06 +00:00
license = licenses.gpl3Plus;
2024-02-09 11:39:43 +00:00
maintainers = with maintainers; [ klntsky ];
2019-02-06 21:52:01 +00:00
};
}