depot/third_party/nixpkgs/pkgs/servers/misc/airsonic/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

24 lines
628 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "airsonic";
version = "10.5.0";
src = fetchurl {
url = "https://github.com/airsonic/airsonic/releases/download/v${version}/airsonic.war";
sha256 = "0nja33x3qh8zylqc7dn6x8j1wyxf7pzf9vdg9rzaq1hl6mi573jq";
};
buildCommand = ''
mkdir -p "$out/webapps"
cp "$src" "$out/webapps/airsonic.war"
'';
meta = with stdenv.lib; {
description = "Personal media streamer";
homepage = "https://airsonic.github.io";
license = stdenv.lib.licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ disassembler ];
};
}