nixpkgs/pkgs/applications/networking/soulseek/nicotine-plus/default.nix

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

57 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, wrapGAppsHook
, gdk-pixbuf
, gettext
, gobject-introspection
, gtk3
, 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";
version = "3.2.2";
2019-02-06 21:52:01 +00:00
src = fetchFromGitHub {
owner = "nicotine-plus";
2019-02-06 21:52:01 +00:00
repo = "nicotine-plus";
2021-05-08 08:28:06 +00:00
rev = version;
sha256 = "sha256-aD5LQ0l6bet/iQKiu1mta4fUeijfip9IdzbGnTkCNdQ=";
2019-02-06 21:52:01 +00:00
};
2021-05-08 08:28:06 +00:00
nativeBuildInputs = [ gettext wrapGAppsHook ];
propagatedBuildInputs = [
gdk-pixbuf
gobject-introspection
gtk3
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+=(
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}"
)
'';
2021-05-08 08:28:06 +00:00
doCheck = false;
meta = with lib; {
broken = stdenv.isDarwin;
2019-02-06 21:52:01 +00:00
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";
2021-05-08 08:28:06 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ehmry klntsky ];
2019-02-06 21:52:01 +00:00
};
}