nixpkgs/pkgs/applications/networking/p2p/zeronet/default.nix

36 lines
978 B
Nix
Raw Normal View History

2018-06-02 10:01:01 +01:00
{ stdenv, fetchFromGitHub, python2Packages }:
python2Packages.buildPythonApplication rec {
pname = "zeronet";
2019-03-05 08:20:44 +00:00
version = "0.6.5";
2018-08-31 11:40:23 +01:00
format = "other";
2018-06-02 10:01:01 +01:00
src = fetchFromGitHub {
owner = "HelloZeroNet";
repo = "ZeroNet";
rev = "v${version}";
2019-03-05 08:20:44 +00:00
sha256 = "1b9jg525jq40czyw9xh9ck90fl9rzrdmzl2mzhqqhz23idb60j4a";
2018-06-02 10:01:01 +01:00
};
propagatedBuildInputs = with python2Packages; [ msgpack gevent ];
buildPhase = "${python2Packages.python.interpreter} -O -m compileall .";
installPhase = ''
mkdir -p $out/share
cp -r plugins src tools *.py $out/share/
'';
postFixup = ''
makeWrapper "$out/share/zeronet.py" "$out/bin/zeronet" \
2018-08-31 11:40:23 +01:00
--set PYTHONPATH "$PYTHONPATH" \
--set PATH ${python2Packages.python}/bin
2018-06-02 10:01:01 +01:00
'';
meta = with stdenv.lib; {
description = "Decentralized websites using Bitcoin crypto and BitTorrent network";
homepage = "https://zeronet.io/";
license = licenses.gpl2;
maintainers = with maintainers; [ fgaz ];
};
}