2021-05-03 20:48:10 +00:00
|
|
|
{ lib, stdenv, fetchurl, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "airsonic";
|
2020-05-15 21:57:56 +00:00
|
|
|
version = "10.6.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/airsonic/airsonic/releases/download/v${version}/airsonic.war";
|
2020-05-15 21:57:56 +00:00
|
|
|
sha256 = "0q3qnqymj3gaa6n79pvbyidn1ga99lpngp5wvhlw1aarg1m7vccl";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p "$out/webapps"
|
|
|
|
cp "$src" "$out/webapps/airsonic.war"
|
|
|
|
'';
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
passthru.tests = {
|
|
|
|
airsonic-starts = nixosTests.airsonic;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Personal media streamer";
|
|
|
|
homepage = "https://airsonic.github.io";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl3;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ disassembler ];
|
|
|
|
};
|
|
|
|
}
|