diff options
Diffstat (limited to 'pkgs/servers/headphones/default.nix')
-rw-r--r-- | pkgs/servers/headphones/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/servers/headphones/default.nix b/pkgs/servers/headphones/default.nix new file mode 100644 index 0000000000000..eff1155fc2059 --- /dev/null +++ b/pkgs/servers/headphones/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchFromGitHub, python2, makeWrapper }: + +python2.pkgs.buildPythonApplication rec { + name = "headphones-${version}"; + 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 stdenv.lib; { + description = "Automatic music downloader for SABnzbd"; + license = licenses.gpl3; + homepage = https:/github.com/rembo10/headphones; + maintainers = with stdenv.lib.maintainers; [ rembo10 ]; + }; +} |