3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/soulseek/nicotine-plus/default.nix

45 lines
1.2 KiB
Nix
Raw Normal View History

2021-05-08 09:28:06 +01:00
{ lib, fetchFromGitHub, python3Packages, gettext, gdk-pixbuf
, gobject-introspection, gtk3, wrapGAppsHook }:
2019-02-06 21:52:01 +00:00
2021-01-15 05:42:41 +00:00
with lib;
2019-02-06 21:52:01 +00:00
2021-05-08 09:28:06 +01:00
python3Packages.buildPythonApplication rec {
2019-02-06 21:52:01 +00:00
pname = "nicotine-plus";
2021-12-26 02:03:55 +00:00
version = "3.2.0";
2019-02-06 21:52:01 +00:00
src = fetchFromGitHub {
owner = "Nicotine-Plus";
repo = "nicotine-plus";
2021-05-08 09:28:06 +01:00
rev = version;
2021-12-26 02:03:55 +00:00
hash = "sha256-E8b2VRlnMWmBHu919QDPBYuMbrjov9t//bHi1Y/F0Ak=";
2019-02-06 21:52:01 +00:00
};
2021-05-08 09:28:06 +01:00
nativeBuildInputs = [ gettext wrapGAppsHook ];
propagatedBuildInputs = [ gtk3 gdk-pixbuf gobject-introspection ]
++ (with python3Packages; [ pygobject3 ]);
2019-02-06 21:52:01 +00:00
2021-12-29 21:18:27 +00:00
2021-05-08 09:28:06 +01:00
postInstall = ''
2021-12-29 21:18:27 +00: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 21:52:01 +00:00
'';
preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}"
)
'';
2021-05-08 09:28:06 +01:00
doCheck = false;
2019-02-06 21:52:01 +00:00
meta = {
description = "A graphical client for the SoulSeek peer-to-peer system";
homepage = "https://www.nicotine-plus.org";
2021-05-08 09:28:06 +01:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ehmry klntsky ];
2019-02-06 21:52:01 +00:00
platforms = platforms.unix;
};
}