at 18.03-beta 33 lines 861 B view raw
1{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, 2 python, boost, fuse, libtorrentRasterbar, curl }: 3 4stdenv.mkDerivation rec { 5 name = "btfs-${version}"; 6 version = "2.18"; 7 8 src = fetchFromGitHub { 9 owner = "johang"; 10 repo = "btfs"; 11 rev = "v${version}"; 12 sha256 = "1cn21bxx43iqvac6scmwhkw0bql092sl48r6qfidbmhbw30xl5yf"; 13 }; 14 15 nativeBuildInputs = [ pkgconfig ]; 16 buildInputs = [ 17 boost autoreconfHook 18 fuse libtorrentRasterbar curl 19 ]; 20 21 preInstall = '' 22 substituteInPlace scripts/btplay \ 23 --replace "/usr/bin/env python" "${python}/bin/python" 24 ''; 25 26 meta = with stdenv.lib; { 27 description = "A bittorrent filesystem based on FUSE"; 28 homepage = https://github.com/johang/btfs; 29 license = licenses.gpl3; 30 maintainers = with maintainers; [ rnhmjoj ]; 31 platforms = platforms.linux; 32 }; 33}