1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/servers/headphones/default.nix

36 lines
916 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, python2, makeWrapper }:
2018-09-16 20:47:47 +01:00
python2.pkgs.buildPythonApplication rec {
2020-03-29 11:34:50 +01:00
pname = "headphones";
2021-10-15 05:46:57 +01:00
version = "0.5.20";
2018-09-16 20:47:47 +01:00
src = fetchFromGitHub {
owner = "rembo10";
repo = "headphones";
rev = "v${version}";
2021-10-15 05:46:57 +01:00
sha256 = "0m234fr1i8bb8mgmjsdpkbaa3l16y23ca6s7nyyl5ismmjxhi4mz";
2018-09-16 20:47:47 +01:00
};
dontBuild = true;
doCheck = false;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ python2 ];
installPhase = ''
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
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.gpl3;
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 ];
2018-09-16 20:47:47 +01:00
};
}