2024-05-19 18:33:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
nixosTests,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "airsonic-advanced";
|
2024-06-28 14:14:30 +00:00
|
|
|
version = "11.1.4-SNAPSHOT.20240628001308";
|
2024-05-19 18:33:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/kagemomiji/airsonic-advanced/releases/download/${version}/airsonic.war";
|
2024-06-28 14:14:30 +00:00
|
|
|
sha256 = "7fd7935b57a716754cf4008a2b4376a0f2b762deec2a56bb6e5481b5ad0a529f";
|
2024-05-19 18:33:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p "$out/webapps"
|
2024-05-20 13:37:30 +00:00
|
|
|
cp "$src" "$out/webapps/airsonic.war"
|
2024-05-19 18:33:15 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
airsonic-starts = nixosTests.airsonic;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-05-20 13:37:30 +00:00
|
|
|
description = "Free, web-based media streamer providing ubiquitous access to your music.";
|
|
|
|
homepage = "https://github.com/kagemomiji/airsonic-advanced/";
|
2024-05-19 18:33:15 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|