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.

45 lines
1.2 KiB
Nix
Raw Normal View History

2021-05-08 10:28:06 +02:00
{ lib, fetchFromGitHub, python3Packages, gettext, gdk-pixbuf
, gobject-introspection, gtk3, wrapGAppsHook }:
2019-02-06 22:52:01 +01:00
2021-01-15 06:42:41 +01:00
with lib;
2019-02-06 22:52:01 +01:00
2021-05-08 10:28:06 +02:00
python3Packages.buildPythonApplication rec {
2019-02-06 22:52:01 +01:00
pname = "nicotine-plus";
2022-02-11 17:53:32 +01:00
version = "3.2.1";
2019-02-06 22:52:01 +01:00
src = fetchFromGitHub {
owner = "Nicotine-Plus";
repo = "nicotine-plus";
2021-05-08 10:28:06 +02:00
rev = version;
2022-02-11 17:53:32 +01:00
hash = "sha256-3NXlNd3Zy++efnvcnfIOUP83mdJ5h8BmE4a2uWn5CPQ=";
2019-02-06 22:52:01 +01:00
};
2021-05-08 10:28:06 +02:00
nativeBuildInputs = [ gettext wrapGAppsHook ];
propagatedBuildInputs = [ gtk3 gdk-pixbuf gobject-introspection ]
++ (with python3Packages; [ pygobject3 ]);
2019-02-06 22:52:01 +01:00
2021-12-29 22:18:27 +01:00
2021-05-08 10:28:06 +02:00
postInstall = ''
2021-12-29 22:18:27 +01:00
ln -s $out/bin/nicotine $out/bin/nicotine-plus
test -e $out/share/applications/org.nicotine_plus.Nicotine.desktop && exit 1
install -D data/org.nicotine_plus.Nicotine.desktop -t $out/share/applications
2019-02-06 22:52:01 +01:00
'';
preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}"
)
'';
2021-05-08 10:28:06 +02:00
doCheck = false;
2019-02-06 22:52:01 +01:00
meta = {
description = "A graphical client for the SoulSeek peer-to-peer system";
homepage = "https://www.nicotine-plus.org";
2021-05-08 10:28:06 +02:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ehmry klntsky ];
2019-02-06 22:52:01 +01:00
platforms = platforms.unix;
};
}