about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/btfs
diff options
context:
space:
mode:
authorrnhmjoj <micheleguerinirocco@me.com>2016-02-14 13:48:15 +0100
committerrnhmjoj <micheleguerinirocco@me.com>2016-02-14 13:48:15 +0100
commit63bd1cbb6ee5756a07dbca9655341e9f5df79622 (patch)
treebc0ffdb015137bbfc5a14078ab850f900e6eb471 /pkgs/os-specific/linux/btfs
parent5deeb7b18dbc979ed4a3cb8871cf8996cd4f751e (diff)
btfs: init at 2.7
Diffstat (limited to 'pkgs/os-specific/linux/btfs')
-rw-r--r--pkgs/os-specific/linux/btfs/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/btfs/default.nix b/pkgs/os-specific/linux/btfs/default.nix
new file mode 100644
index 0000000000000..46b015cd08ac4
--- /dev/null
+++ b/pkgs/os-specific/linux/btfs/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchFromGitHub, pkgconfig, autoconf, automake,
+  python, boost, fuse, libtorrentRasterbar, curl }:
+
+stdenv.mkDerivation rec {
+  name = "btfs-${version}";
+  version = "2.7";
+
+  src = fetchFromGitHub {
+    owner = "johang";
+    repo = "btfs";
+    rev = "e816b4718bd5c9d88a99805d19d2ad91971b2338";
+    sha256 = "1mac2dwg0pzpmg0x503a8d8gx3ridi4m1qx4jk6ssvl4g9v6p7fl";
+  };
+  
+  buildInputs = [
+    pkgconfig autoconf automake boost
+    fuse libtorrentRasterbar curl
+  ];
+
+  preConfigure = ''
+    autoreconf -i
+    substituteInPlace scripts/btplay \
+      --replace /usr/bin/python ${python}/bin/python
+  '';
+
+  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;
+  };
+}