stockholm/krebs/5pkgs/simple/airdcpp-webclient/default.nix

29 lines
904 B
Nix
Raw Normal View History

{ stdenv, fetchurl, makeWrapper, which
2018-09-23 18:17:36 +00:00
}:
stdenv.mkDerivation rec {
name = "airdcpp-webclient-${version}";
version = "2.3.0";
2018-09-23 20:32:37 +00:00
src = fetchurl {
url = http://web-builds.airdcpp.net/stable/airdcpp_2.3.0_webui-2.3.0_64-bit_portable.tar.gz;
sha256 = "0yvcl0nc70fghc7vfsgvbpryi5q97arld8adql4way4qa0mdnyv1";
2018-09-23 18:17:36 +00:00
};
2018-09-23 20:32:37 +00:00
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p $out/{share,bin}
cp -r * $out/share
makeWrapper $out/share/airdcppd $out/bin/airdcppd --prefix PATH ${which}/bin
2018-09-23 18:17:36 +00:00
'';
nativeBuildInputs = [ makeWrapper ];
2018-09-23 18:17:36 +00:00
meta = with stdenv.lib; {
2018-09-23 20:32:37 +00:00
# to start it: airdcpp -p=<pid-file> -c=<config-store-path (must be writeable)> --configure
description = "dcpp client (statically precompiled)";
2018-09-23 18:17:36 +00:00
homepage = http://fixme;
license = licenses.gpl3;
maintainers = with maintainers; [ makefu ];
platforms = with platforms; linux;
};
}