2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python2, makeWrapper }:
|
2018-09-16 20:47:47 +01:00
|
|
|
|
|
|
|
python2.pkgs.buildPythonApplication rec {
|
2020-03-29 11:34:50 +01:00
|
|
|
pname = "headphones";
|
2018-09-16 20:47:47 +01:00
|
|
|
version = "0.5.19";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rembo10";
|
|
|
|
repo = "headphones";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0z39gyan3ksdhnjxxs7byamrzmrk8cn15g300iqigzvgidff1lq0";
|
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ python2 ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -R {data,headphones,lib,Headphones.py} $out/
|
|
|
|
|
|
|
|
makeWrapper $out/Headphones.py $out/bin/headphones
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-16 20:47:47 +01:00
|
|
|
description = "Automatic music downloader for SABnzbd";
|
|
|
|
license = licenses.gpl3;
|
2019-07-02 05:12:25 +01:00
|
|
|
homepage = "https://github.com/rembo10/headphones";
|
2018-09-16 20:47:47 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ rembo10 ];
|
|
|
|
};
|
|
|
|
}
|