nixpkgs/pkgs/applications/networking/soulseek/nicotine-plus/default.nix
2021-12-13 10:12:32 +00:00

36 lines
912 B
Nix

{ lib, fetchFromGitHub, python3Packages, gettext, gdk-pixbuf
, gobject-introspection, gtk3, wrapGAppsHook }:
with lib;
python3Packages.buildPythonApplication rec {
pname = "nicotine-plus";
version = "3.1.1";
src = fetchFromGitHub {
owner = "Nicotine-Plus";
repo = "nicotine-plus";
rev = version;
hash = "sha256-NfI2RfxAYhA1qefml1ayfYWjbkrzUL4l9p2Rm/ROnzQ=";
};
nativeBuildInputs = [ gettext wrapGAppsHook ];
propagatedBuildInputs = [ gtk3 gdk-pixbuf gobject-introspection ]
++ (with python3Packages; [ pygobject3 ]);
postInstall = ''
mv $out/bin/nicotine $out/bin/nicotine-plus
'';
doCheck = false;
meta = {
description = "A graphical client for the SoulSeek peer-to-peer system";
homepage = "https://www.nicotine-plus.org";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ehmry klntsky ];
platforms = platforms.unix;
};
}