1{
2 lib,
3 stdenv,
4 fetchurl,
5 perl,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "bfr";
10 version = "1.6";
11
12 src = fetchurl {
13 url = "http://www.sourcefiles.org/Utilities/Text_Utilities/bfr-${version}.tar.bz2";
14 sha256 = "0fadfssvj9klj4dq9wdrzys1k2a1z2j0p6kgnfgbjv0n1bq6h4cy";
15 };
16
17 patches = [
18 ./configure-log-compiler-errors-to-stderr.patch
19 ./fix-gcc-complaining-about-invalid-configure-example-code.patch
20
21 (fetchurl {
22 url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-misc/bfr/files/bfr-1.6-perl.patch?id=dec60bb6900d6ebdaaa6aa1dcb845b30b739f9b5";
23 sha256 = "1pk9jm3c1qzs727lh0bw61w3qbykaqg4jblywf9pvq5bypk88qfj";
24 })
25 ];
26
27 buildInputs = [ perl ];
28
29 meta = with lib; {
30 description = "General-purpose command-line pipe buffer";
31 license = lib.licenses.gpl2Only;
32 maintainers = with maintainers; [ pSub ];
33 platforms = platforms.linux;
34 };
35}