2016-02-14 12:48:15 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, autoconf, automake,
|
|
|
|
python, boost, fuse, libtorrentRasterbar, curl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "btfs-${version}";
|
2016-02-28 01:39:05 +00:00
|
|
|
version = "2.8";
|
2016-02-14 12:48:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "johang";
|
|
|
|
repo = "btfs";
|
2016-02-28 01:39:05 +00:00
|
|
|
rev = "0567010e553b290eaa50b1afaa717dd7656c82de";
|
|
|
|
sha256 = "1x3x1v7fhcfcpffprf63sb720nxci2ap2cq92jy1xd68kmshdmwd";
|
2016-02-14 12:48:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pkgconfig autoconf automake boost
|
|
|
|
fuse libtorrentRasterbar curl
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
autoreconf -i
|
|
|
|
substituteInPlace scripts/btplay \
|
2016-02-28 01:39:05 +00:00
|
|
|
--replace "/usr/bin/env python" "${python}/bin/python"
|
2016-02-14 12:48:15 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A bittorrent filesystem based on FUSE";
|
|
|
|
homepage = "https://github.com/johang/btfs";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|