2024-05-19 18:33:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
nixosTests,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "airsonic-advanced";
|
2024-07-05 17:10:10 +00:00
|
|
|
version = "11.1.4-SNAPSHOT.20240628143437";
|
2024-05-19 18:33:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/kagemomiji/airsonic-advanced/releases/download/${version}/airsonic.war";
|
2024-07-05 17:10:10 +00:00
|
|
|
sha256 = "fde2c921e26cf536405118c5114a2f42fe87ff0a019852f21c80f4c68a2431ee";
|
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;
|
|
|
|
};
|
|
|
|
|
2024-08-02 21:55:48 +00:00
|
|
|
meta = {
|
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-08-02 21:55:48 +00:00
|
|
|
sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
|
2024-05-19 18:33:15 +00:00
|
|
|
license = lib.licenses.gpl3;
|
2024-08-02 21:55:48 +00:00
|
|
|
platforms = lib.platforms.all;
|
2024-05-19 18:33:15 +00:00
|
|
|
};
|
|
|
|
}
|