nixpkgs/pkgs/os-specific/linux/btfs/default.nix
R. RyanTM 38bff390bc btfs: 2.19 -> 2.20
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/btfs/versions
2019-09-26 01:00:08 -07:00

33 lines
848 B
Nix

{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
, python3, boost, fuse, libtorrentRasterbar, curl }:
stdenv.mkDerivation rec {
pname = "btfs";
version = "2.20";
src = fetchFromGitHub {
owner = "johang";
repo = pname;
rev = "v${version}";
sha256 = "1xil18nmivakdv6rz4sd3203gzfisdvj79spni59kv7dby64rxdz";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [
boost fuse libtorrentRasterbar curl
];
preInstall = ''
substituteInPlace scripts/btplay \
--replace "/usr/bin/env python" "${python3.interpreter}"
'';
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;
};
}