2015-06-15 07:50:34 +01:00
|
|
|
{ stdenv, fetchurl, jre }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "subsonic";
|
2019-11-29 16:42:22 +00:00
|
|
|
version = "6.1.6";
|
2015-06-15 07:50:34 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/subsonic/subsonic-${version}-standalone.tar.gz";
|
2019-11-29 16:42:22 +00:00
|
|
|
sha256 = "180qdk8mnc147az8v9rmc1kgf8b13mmq88l195gjdwiqpflqzdyz";
|
2015-06-15 07:50:34 +01: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 14:11:23 +00:00
|
|
|
runHook preUnpack
|
2019-08-15 13:41:18 +01:00
|
|
|
mkdir ${pname}-${version}
|
|
|
|
tar -C ${pname}-${version} -xzf $src
|
2018-12-18 14:11:23 +00:00
|
|
|
runHook postUnpack
|
2015-06-15 07:50:34 +01:00
|
|
|
'';
|
|
|
|
installPhase = ''
|
2018-12-18 14:11:23 +00:00
|
|
|
runHook preInstall
|
2015-06-15 07:50:34 +01:00
|
|
|
mkdir $out
|
2019-08-15 13:41:18 +01:00
|
|
|
cp -r ${pname}-${version}/* $out
|
2018-12-18 14:11:23 +00:00
|
|
|
runHook postInstall
|
2015-06-15 07:50:34 +01:00
|
|
|
'';
|
|
|
|
|
2018-12-18 14:11:23 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-06-15 07:50:34 +01:00
|
|
|
homepage = http://subsonic.org;
|
|
|
|
description = "Personal media streamer";
|
2018-12-18 14:11:23 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ telotortium ];
|
|
|
|
platforms = platforms.unix;
|
2015-06-15 07:50:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = ["unpackPhase" "installPhase"];
|
|
|
|
}
|