2015-06-15 08:50:34 +02:00
|
|
|
{ stdenv, fetchurl, jre }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "subsonic";
|
2019-11-29 17:42:22 +01:00
|
|
|
version = "6.1.6";
|
2015-06-15 08:50:34 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/subsonic/subsonic-${version}-standalone.tar.gz";
|
2019-11-29 17:42:22 +01:00
|
|
|
sha256 = "180qdk8mnc147az8v9rmc1kgf8b13mmq88l195gjdwiqpflqzdyz";
|
2015-06-15 08:50:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit jre;
|
|
|
|
|
|
|
|
# Create temporary directory to extract tarball into to satisfy Nix's need
|
|
|
|
# for a directory to be created in the unpack phase.
|
|
|
|
unpackPhase = ''
|
2018-12-18 15:11:23 +01:00
|
|
|
runHook preUnpack
|
2019-08-15 14:41:18 +02:00
|
|
|
mkdir ${pname}-${version}
|
|
|
|
tar -C ${pname}-${version} -xzf $src
|
2018-12-18 15:11:23 +01:00
|
|
|
runHook postUnpack
|
2015-06-15 08:50:34 +02:00
|
|
|
'';
|
|
|
|
installPhase = ''
|
2018-12-18 15:11:23 +01:00
|
|
|
runHook preInstall
|
2015-06-15 08:50:34 +02:00
|
|
|
mkdir $out
|
2019-08-15 14:41:18 +02:00
|
|
|
cp -r ${pname}-${version}/* $out
|
2018-12-18 15:11:23 +01:00
|
|
|
runHook postInstall
|
2015-06-15 08:50:34 +02:00
|
|
|
'';
|
|
|
|
|
2018-12-18 15:11:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://subsonic.org";
|
2015-06-15 08:50:34 +02:00
|
|
|
description = "Personal media streamer";
|
2018-12-18 15:11:23 +01:00
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ telotortium ];
|
|
|
|
platforms = platforms.unix;
|
2015-06-15 08:50:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = ["unpackPhase" "installPhase"];
|
|
|
|
}
|