nicotine-plus: init at 1.4.1 (#53717)

This commit is contained in:
klntsky 2019-02-07 00:52:01 +03:00 committed by Dmitry Kalinkin
parent 87d8ba0ae6
commit 45fa569222
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{ stdenv, fetchFromGitHub, python27Packages, geoip }:
with stdenv.lib;
python27Packages.buildPythonApplication rec {
pname = "nicotine-plus";
version = "1.4.1";
src = fetchFromGitHub {
owner = "Nicotine-Plus";
repo = "nicotine-plus";
rev = "4e057d64184885c63488d4213ade3233bd33e67b";
sha256 = "11j2qm67sszfqq730czsr2zmpgkghsb50556ax1vlpm7rw3gm33c";
};
propagatedBuildInputs = with python27Packages; [
pygtk
miniupnpc
mutagen
notify
(GeoIP.override { inherit geoip; })
];
# Insert real docs directory.
# os.getcwd() is not needed
postPatch = ''
substituteInPlace ./pynicotine/gtkgui/frame.py \
--replace "paths.append(os.getcwd())" "paths.append('"$out"/doc')"
'';
postFixup = ''
mkdir -p $out/doc/
mv ./doc/NicotinePlusGuide $out/doc/
mv $out/bin/nicotine $out/bin/nicotine-plus
'';
meta = {
description = "A graphical client for the SoulSeek peer-to-peer system";
homepage = https://www.nicotine-plus.org;
license = licenses.gpl3;
maintainers = with maintainers; [ klntsky ];
platforms = platforms.unix;
};
}

View File

@ -18440,6 +18440,10 @@ in
natron = callPackage ../applications/video/natron { };
nicotine-plus = callPackage ../applications/networking/soulseek/nicotine-plus {
geoip = geoipWithDatabase;
};
notion = callPackage ../applications/window-managers/notion { };
openshift = callPackage ../applications/networking/cluster/openshift { };