forked from meterriblecrew/packages
navidrome-bin: 0.45.1 -> 0.46.0
parent
828a26c33d
commit
d5ac2e7678
|
@ -1,20 +1,26 @@
|
||||||
{ lib, stdenv, fetchurl, ffmpeg, ffmpegSupport ? true, makeWrapper }:
|
{ lib, stdenv, pkgs, fetchurl, ffmpeg, ffmpegSupport ? true, makeWrapper, nixosTests }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "navidrome";
|
pname = "navidrome-bin";
|
||||||
version = "0.45.1";
|
version = "0.46.0";
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://github.com/deluan/navidrome/releases/download/v${version}/navidrome_${version}_Linux_x86_64.tar.gz";
|
src = fetchurl (if pkgs.system == "x86_64-linux"
|
||||||
sha256 = "sha256-TZcXq51sKoeLPmcRpv4VILDmS6dsS7lxlJzTDH0tEWM=";
|
then {
|
||||||
};
|
url = "https://github.com/navidrome/navidrome/releases/download/v${version}/navidrome_${version}_Linux_x86_64.tar.gz";
|
||||||
|
sha256 = "sha256-baBSQZnlcC5zq7wKWbia8xEMqZuCgkn/zyQWwtfHn/w=";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
url = "https://github.com/navidrome/navidrome/releases/download/v${version}/navidrome_${version}_Linux_arm64.tar.gz";
|
||||||
|
sha256 = "sha256-Km58BMc2ngv6CLqXkNpDIxC+nFb/fbvz7iBF0/xNcsU=";
|
||||||
|
});
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
tar xvf $src navidrome
|
tar xvf $src navidrome
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -31,11 +37,13 @@ stdenv.mkDerivation rec {
|
||||||
--prefix PATH : ${makeBinPath (optional ffmpegSupport ffmpeg)}
|
--prefix PATH : ${makeBinPath (optional ffmpegSupport ffmpeg)}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests.navidrome = nixosTests.navidrome;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Navidrome Music Server and Streamer compatible with Subsonic/Airsonic";
|
description = "Navidrome Music Server and Streamer compatible with Subsonic/Airsonic";
|
||||||
homepage = "https://www.navidrome.org/";
|
homepage = "https://www.navidrome.org/";
|
||||||
license = licenses.gpl3Only;
|
license = licenses.gpl3Only;
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" "aarch64-linux" ];
|
||||||
maintainers = with maintainers; [ aciceri ];
|
maintainers = with maintainers; [ aciceri ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue