diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/misc')
-rw-r--r-- | nixpkgs/pkgs/servers/misc/airsonic/default.nix | 24 | ||||
-rw-r--r-- | nixpkgs/pkgs/servers/misc/client-ip-echo/client-ip-echo.nix | 16 | ||||
-rw-r--r-- | nixpkgs/pkgs/servers/misc/client-ip-echo/default.nix | 2 | ||||
-rw-r--r-- | nixpkgs/pkgs/servers/misc/subsonic/default.nix | 38 | ||||
-rw-r--r-- | nixpkgs/pkgs/servers/misc/taskserver/default.nix | 43 |
5 files changed, 123 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/misc/airsonic/default.nix b/nixpkgs/pkgs/servers/misc/airsonic/default.nix new file mode 100644 index 000000000000..059a6b8f0aaa --- /dev/null +++ b/nixpkgs/pkgs/servers/misc/airsonic/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "airsonic-${version}"; + version = "10.1.2"; + + src = fetchurl { + url = "https://github.com/airsonic/airsonic/releases/download/v${version}/airsonic.war"; + sha256 = "0hpk801dipmzsswgx0y6m0xhwn5iz97agnb2bzbr5xhkl4a0d33k"; + }; + + 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 ]; + }; +} diff --git a/nixpkgs/pkgs/servers/misc/client-ip-echo/client-ip-echo.nix b/nixpkgs/pkgs/servers/misc/client-ip-echo/client-ip-echo.nix new file mode 100644 index 000000000000..1f5c6a20843a --- /dev/null +++ b/nixpkgs/pkgs/servers/misc/client-ip-echo/client-ip-echo.nix @@ -0,0 +1,16 @@ +{ mkDerivation, fetchFromGitHub, base, bytestring, network, stdenv }: +mkDerivation { + pname = "client-ip-echo"; + version = "0.1.0.3"; + src = fetchFromGitHub { + owner = "jerith666"; + repo = "client-ip-echo"; + rev = "8d1a79d94a962b3266c1db51200913c2295d8922"; + sha256 = "1g1s7i68n3906m3yjfygw96j64n8nh88lmf77blnz0xzrq4y3bgf"; + }; + isLibrary = false; + isExecutable = true; + executableHaskellDepends = [ base bytestring network ]; + description = "accepts TCP connections and echoes the client's IP address back to it"; + license = stdenv.lib.licenses.lgpl3; +} diff --git a/nixpkgs/pkgs/servers/misc/client-ip-echo/default.nix b/nixpkgs/pkgs/servers/misc/client-ip-echo/default.nix new file mode 100644 index 000000000000..5bc0ea45e2b6 --- /dev/null +++ b/nixpkgs/pkgs/servers/misc/client-ip-echo/default.nix @@ -0,0 +1,2 @@ +{ pkgs }: +pkgs.haskellPackages.callPackage ./client-ip-echo.nix { } diff --git a/nixpkgs/pkgs/servers/misc/subsonic/default.nix b/nixpkgs/pkgs/servers/misc/subsonic/default.nix new file mode 100644 index 000000000000..50e754791e6d --- /dev/null +++ b/nixpkgs/pkgs/servers/misc/subsonic/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchurl, jre }: + +stdenv.mkDerivation rec { + name = "subsonic-${version}"; + version = "6.1.5"; + + src = fetchurl { + url = "mirror://sourceforge/subsonic/subsonic-${version}-standalone.tar.gz"; + sha256 = "1xz3flxd5hxcvvg1izzxpv5rxwb5zprk92vsgvmcniy7j7r66936"; + }; + + 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 = '' + runHook preUnpack + mkdir ${name} + tar -C ${name} -xzf $src + runHook postUnpack + ''; + installPhase = '' + runHook preInstall + mkdir $out + cp -r ${name}/* $out + runHook postInstall + ''; + + meta = with stdenv.lib; { + homepage = http://subsonic.org; + description = "Personal media streamer"; + license = licenses.unfree; + maintainers = with maintainers; [ telotortium ]; + platforms = platforms.unix; + }; + + phases = ["unpackPhase" "installPhase"]; +} diff --git a/nixpkgs/pkgs/servers/misc/taskserver/default.nix b/nixpkgs/pkgs/servers/misc/taskserver/default.nix new file mode 100644 index 000000000000..63925d30c644 --- /dev/null +++ b/nixpkgs/pkgs/servers/misc/taskserver/default.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchurl, cmake, libuuid, gnutls, makeWrapper }: + +stdenv.mkDerivation rec { + name = "taskserver-${version}"; + version = "1.1.0"; + + enableParallelBuilding = true; + + src = fetchurl { + url = "http://www.taskwarrior.org/download/taskd-${version}.tar.gz"; + sha256 = "1d110q9vw8g5syzihxymik7hd27z1592wkpz55kya6lphzk8i13v"; + }; + + patchPhase = '' + pkipath=$out/share/taskd/pki + mkdir -p $pkipath + cp -r pki/* $pkipath + echo "patching paths in pki/generate" + sed -i "s#^\.#$pkipath#" $pkipath/generate + for f in $pkipath/generate* ;do + i=$(basename $f) + echo patching $i + sed -i \ + -e 's/which/type -p/g' \ + -e 's#^\. ./vars#if test -e ./vars;then . ./vars; else echo "cannot find ./vars - copy the template from '$pkipath'/vars into the working directory";exit 1; fi#' $f + + echo wrapping $i + makeWrapper $pkipath/$i $out/bin/taskd-pki-$i \ + --prefix PATH : ${stdenv.lib.makeBinPath [ gnutls ]} + done + ''; + + buildInputs = [ makeWrapper ]; + nativeBuildInputs = [ cmake libuuid gnutls ]; + + meta = { + description = "Server for synchronising Taskwarrior clients"; + homepage = https://taskwarrior.org; + license = stdenv.lib.licenses.mit; + platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ makefu ]; + }; +} |