2022-01-18 11:41:07 +00:00
|
|
|
{ lib, fetchFromGitHub, python3, makeWrapper }:
|
2018-09-16 19:47:47 +00:00
|
|
|
|
2022-01-18 11:41:07 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-03-29 10:34:50 +00:00
|
|
|
pname = "headphones";
|
2022-01-18 11:41:07 +00:00
|
|
|
version = "0.6.0-alpha.1";
|
2018-09-16 19:47:47 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rembo10";
|
|
|
|
repo = "headphones";
|
|
|
|
rev = "v${version}";
|
2022-01-18 11:41:07 +00:00
|
|
|
sha256 = "sha256-+mWtceQoHSMRkA8izZnKM0cgbt0P5Hr3arKOevpKvqc=";
|
2018-09-16 19:47:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-10-15 04:46:57 +00:00
|
|
|
mkdir -p $out/bin $out/opt/headphones
|
|
|
|
cp -R {data,headphones,lib,Headphones.py} $out/opt/headphones
|
2018-09-16 19:47:47 +00:00
|
|
|
|
2021-10-15 04:46:57 +00:00
|
|
|
echo v${version} > $out/opt/headphones/version.txt
|
|
|
|
|
|
|
|
makeWrapper $out/opt/headphones/Headphones.py $out/bin/headphones
|
2018-09-16 19:47:47 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-16 19:47:47 +00:00
|
|
|
description = "Automatic music downloader for SABnzbd";
|
|
|
|
license = licenses.gpl3;
|
2019-07-02 04:12:25 +00:00
|
|
|
homepage = "https://github.com/rembo10/headphones";
|
2021-01-15 07:07:56 +00:00
|
|
|
maintainers = with lib.maintainers; [ rembo10 ];
|
2018-09-16 19:47:47 +00:00
|
|
|
};
|
|
|
|
}
|