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

36 lines
912 B
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";
2021-12-04 22:57:51 +01:00
version = "3.1.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;
2021-12-04 22:57:51 +01:00
hash = "sha256-NfI2RfxAYhA1qefml1ayfYWjbkrzUL4l9p2Rm/ROnzQ=";
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-05-08 10:28:06 +02:00
postInstall = ''
2019-02-06 22:52:01 +01:00
mv $out/bin/nicotine $out/bin/nicotine-plus
'';
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;
};
}