Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 35 lines 806 B view raw
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "vrb"; 5 version = "0.5.1"; 6 7 src = fetchurl { 8 url = "http://vrb.sourceforge.net/download/${pname}-${version}.tar.bz2"; 9 sha256 = "d579ed1998ef2d78e2ef8481a748d26e1fa12cdda806d2e31d8ec66ffb0e289f"; 10 }; 11 12 patches = [ 13 ./removed_options.patch 14 ./unused-but-set-variable.patch 15 ]; 16 17 postPatch = '' 18 patchShebangs configure 19 ''; 20 21 postInstall = '' 22 mkdir -p $out/share/man/man3 23 cp -p vrb/man/man3/*.3 $out/share/man/man3/ 24 ''; 25 26 meta = with lib; { 27 description = "Virtual ring buffer library written in C"; 28 mainProgram = "vbuf"; 29 license = licenses.lgpl21; 30 homepage = "http://vrb.sourceforge.net/"; 31 maintainers = [ maintainers.bobvanderlinden ]; 32 platforms = platforms.linux; 33 }; 34} 35