depot/third_party/nixpkgs/pkgs/development/libraries/vrb/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

35 lines
806 B
Nix

{ 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 = "Virtual ring buffer library written in C";
mainProgram = "vbuf";
license = licenses.lgpl21;
homepage = "http://vrb.sourceforge.net/";
maintainers = [ maintainers.bobvanderlinden ];
platforms = platforms.linux;
};
}