2016-06-12 21:28:40 +02:00
|
|
|
|
{ stdenv, lib, fetchurl, python, zip, fop }:
|
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
|
pname = "bgnet";
|
2016-06-12 21:28:40 +02:00
|
|
|
|
version = "3.0.21";
|
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 03:11:51 +02:00
|
|
|
|
url = "https://beej.us/guide/bgnet/bgnet.tgz";
|
2016-06-12 21:28:40 +02:00
|
|
|
|
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";
|
2020-04-01 03:11:51 +02:00
|
|
|
|
homepage = "https://beej.us/guide/bgnet/";
|
2016-06-12 21:28:40 +02:00
|
|
|
|
license = lib.licenses.unfree;
|
|
|
|
|
|
2018-02-12 07:18:12 +01:00
|
|
|
|
maintainers = with lib.maintainers; [ Profpatsch ];
|
2016-06-12 21:28:40 +02:00
|
|
|
|
};
|
|
|
|
|
}
|