about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/vrb/default.nix
blob: 1ebc37cdf2f33b2d4033f3e8a0ac5ba69a3d2e1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "vrb";
  version = "0.5.1";

  src = fetchurl {
    url = "http://vrb.sourceforge.net/download/${pname}-${version}.tar.bz2";
    sha256 = "d579ed1998ef2d78e2ef8481a748d26e1fa12cdda806d2e31d8ec66ffb0e289f";
  };

  patches = [
    ./removed_options.patch
    ./unused-but-set-variable.patch
  ];

  postPatch = ''
    patchShebangs configure
  '';

  postInstall = ''
    mkdir -p $out/share/man/man3
    cp -p vrb/man/man3/*.3 $out/share/man/man3/
  '';

  meta = with lib; {
    description = "A virtual ring buffer library written in C";
    license     = licenses.lgpl21;
    homepage    = "http://vrb.sourceforge.net/";
    maintainers = [ maintainers.bobvanderlinden ];
    platforms   = platforms.linux;
  };
}