3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/documentation/bgnet/default.nix

33 lines
694 B
Nix
Raw Normal View History

2016-06-12 20:28:40 +01:00
{ stdenv, lib, fetchurl, python, zip, fop }:
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "bgnet";
2016-06-12 20:28:40 +01:00
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 ];
2016-06-12 20:28:40 +01:00
};
}