depot/third_party/nixpkgs/pkgs/data/documentation/bgnet/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

32 lines
698 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ stdenv, lib, fetchurl, python, zip, fop }:
stdenv.mkDerivation {
pname = "bgnet";
version = "3.0.21";
src = fetchurl {
url = "https://beej.us/guide/bgnet/bgnet.tgz";
sha256 = "00ggr5prc5i3w9gaaw2sadfq6haq7lmh0vdilaxx8xz9z5znxvyv";
};
buildInputs = [ python zip fop ];
preBuild = ''
sed -i "s/#disable=1/disable=1/" bin/bgvalidate
# build scripts need some love
patchShebangs .
'';
installPhase = ''
mkdir -p $out
mv * $out/
'';
meta = {
description = "Beejs Guide to Network Programming";
homepage = "https://beej.us/guide/bgnet/";
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ Profpatsch ];
};
}