depot/third_party/nixpkgs/pkgs/servers/headphones/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

39 lines
959 B
Nix

{ lib, fetchFromGitHub, python3, makeWrapper }:
python3.pkgs.buildPythonApplication rec {
pname = "headphones";
version = "0.6.0";
format = "other";
src = fetchFromGitHub {
owner = "rembo10";
repo = "headphones";
rev = "v${version}";
sha256 = "0wx0kj9brcd4i9fdc4hmp39cgr27qybya6bp108cfgfv9x7150iw";
};
dontBuild = true;
doCheck = false;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/opt/headphones
cp -R {data,headphones,lib,Headphones.py} $out/opt/headphones
echo v${version} > $out/opt/headphones/version.txt
makeWrapper $out/opt/headphones/Headphones.py $out/bin/headphones
runHook postInstall
'';
meta = with lib; {
description = "Automatic music downloader for SABnzbd";
license = licenses.gpl3Plus;
homepage = "https://github.com/rembo10/headphones";
maintainers = with lib.maintainers; [ rembo10 ];
};
}