nixpkgs/pkgs/servers/headphones/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
991 B
Nix
Raw Normal View History

2022-01-18 11:41:07 +00:00
{ lib, fetchFromGitHub, python3, makeWrapper }:
2018-09-16 20:47:47 +01:00
2022-01-18 11:41:07 +00:00
python3.pkgs.buildPythonApplication rec {
2020-03-29 11:34:50 +01:00
pname = "headphones";
2024-05-26 17:05:54 +01:00
version = "0.6.3";
2022-09-16 23:37:19 +01:00
format = "other";
2018-09-16 20:47:47 +01:00
src = fetchFromGitHub {
owner = "rembo10";
repo = "headphones";
rev = "v${version}";
2024-05-26 17:05:54 +01:00
sha256 = "195v0ylhqd49bqq3dpig5nh0kivmwgmn0977fknix9j14jpvmd3b";
2018-09-16 20:47:47 +01:00
};
dontBuild = true;
doCheck = false;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
2021-10-15 05:46:57 +01:00
mkdir -p $out/bin $out/opt/headphones
cp -R {data,headphones,lib,Headphones.py} $out/opt/headphones
2018-09-16 20:47:47 +01:00
2021-10-15 05:46:57 +01:00
echo v${version} > $out/opt/headphones/version.txt
makeWrapper $out/opt/headphones/Headphones.py $out/bin/headphones
runHook postInstall
2018-09-16 20:47:47 +01:00
'';
meta = with lib; {
2018-09-16 20:47:47 +01:00
description = "Automatic music downloader for SABnzbd";
license = licenses.gpl3Plus;
2019-07-02 05:12:25 +01:00
homepage = "https://github.com/rembo10/headphones";
2021-01-15 07:07:56 +00:00
maintainers = with lib.maintainers; [ rembo10 ];
2023-11-27 01:17:53 +00:00
mainProgram = "headphones";
2018-09-16 20:47:47 +01:00
};
}