1 { lib, fetchFromGitHub, python3, makeWrapper }:
3 python3.pkgs.buildPythonApplication rec {
8 src = fetchFromGitHub {
12 sha256 = "195v0ylhqd49bqq3dpig5nh0kivmwgmn0977fknix9j14jpvmd3b";
18 nativeBuildInputs = [ makeWrapper ];
23 mkdir -p $out/bin $out/opt/headphones
24 cp -R {data,headphones,lib,Headphones.py} $out/opt/headphones
26 echo v${version} > $out/opt/headphones/version.txt
28 makeWrapper $out/opt/headphones/Headphones.py $out/bin/headphones
34 description = "Automatic music downloader for SABnzbd";
35 license = licenses.gpl3Plus;
36 homepage = "https://github.com/rembo10/headphones";
37 maintainers = with lib.maintainers; [ rembo10 ];
38 mainProgram = "headphones";