about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/documentation/bgnet/default.nix
blob: a53ead29c1e8f0187d4442314525de8983ea707b (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
{ stdenv, lib, fetchurl, python, zip, fop }:

stdenv.mkDerivation rec {
  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 = "Beej’s Guide to Network Programming";
    homepage = https://beej.us/guide/bgnet/;
    license = lib.licenses.unfree;

    maintainers = with lib.maintainers; [ Profpatsch ];
  };
}