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

38 lines
1 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-05-08 09:28:06 +01:00
version = "3.0.6";
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;
sha256 = "sha256-NL6TXFRB7OeqNEfdANkEqh+MCOF1+ehR+6RO1XsIix8=";
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-05-08 09:28:06 +01:00
postInstall = ''
2019-02-06 21:52:01 +00:00
mv $out/bin/nicotine $out/bin/nicotine-plus
2021-05-08 09:28:06 +01:00
substituteInPlace $out/share/applications/org.nicotine_plus.Nicotine.desktop \
--replace "Exec=nicotine" "Exec=$out/bin/nicotine-plus"
2019-02-06 21:52:01 +00:00
'';
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;
};
}