0eaa97ffad
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
37 lines
941 B
Nix
37 lines
941 B
Nix
{ stdenv, fetchurl, ffmpeg, ffmpegSupport ? true, makeWrapper }:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "navidrome";
|
|
version = "0.29.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/deluan/navidrome/releases/download/v${version}/navidrome_${version}_Linux_x86_64.tar.gz";
|
|
sha256 = "0dpv68wvrslgfgh18mb8ficji6k1i9jiid9bfw786andf4rwghyc";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
unpackPhase = ''
|
|
tar xvf $src navidrome
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp navidrome $out/bin
|
|
'';
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/navidrome \
|
|
--prefix PATH : ${makeBinPath (optional ffmpegSupport ffmpeg)}
|
|
'';
|
|
|
|
meta = {
|
|
description = "Navidrome Music Server and Streamer compatible with Subsonic/Airsonic";
|
|
homepage = "https://www.navidrome.org/";
|
|
license = licenses.gpl3;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with maintainers; [ aciceri ];
|
|
};
|
|
}
|