@@ -0,0 +1,34 @@
1+{ stdenv, fetchurl, jre }:
2+
3+let version = "5.2.1"; in
4+
5+stdenv.mkDerivation rec {
6+ name = "subsonic-${version}";
7+ inherit version;
8+
9+ src = fetchurl {
10+ url = "mirror://sourceforge/subsonic/subsonic-${version}-standalone.tar.gz";
11+ sha256 = "523fa8357c961c1ae742a15f0ceaabdd41fcba9137c29d244957922af90ee791";
12+ };
13+
14+ inherit jre;
15+
16+ # Create temporary directory to extract tarball into to satisfy Nix's need
17+ # for a directory to be created in the unpack phase.
18+ unpackPhase = ''
19+ mkdir ${name}
20+ tar -C ${name} -xzf $src
21+ '';
22+ installPhase = ''
23+ mkdir $out
24+ cp -r ${name}/* $out
25+ '';
26+
27+ meta = {
28+ homepage = http://subsonic.org;
29+ description = "Personal media streamer";
30+ license = stdenv.lib.licenses.gpl3;
31+ };
32+
33+ phases = ["unpackPhase" "installPhase"];
34+}