2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, jre }:
|
2015-06-15 07:50:34 +01:00
|
|
|
|
|
|
|
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
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://subsonic.org";
|
2015-06-15 07:50:34 +01:00
|
|
|
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"];
|
|
|
|
}
|