mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
34 lines
811 B
Nix
34 lines
811 B
Nix
{ lib, fetchFromGitHub, python2, makeWrapper }:
|
|
|
|
python2.pkgs.buildPythonApplication rec {
|
|
pname = "headphones";
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Automatic music downloader for SABnzbd";
|
|
license = licenses.gpl3;
|
|
homepage = "https://github.com/rembo10/headphones";
|
|
maintainers = with lib.maintainers; [ rembo10 ];
|
|
};
|
|
}
|