From 0da4bb869e259f5e629ada1583af3dd927e7af8f Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 12 Jun 2016 21:28:40 +0200 Subject: [PATCH] bgnet: init at 3.0.21 --- pkgs/data/documentation/bgnet/default.nix | 32 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/data/documentation/bgnet/default.nix diff --git a/pkgs/data/documentation/bgnet/default.nix b/pkgs/data/documentation/bgnet/default.nix new file mode 100644 index 000000000000..e205129db194 --- /dev/null +++ b/pkgs/data/documentation/bgnet/default.nix @@ -0,0 +1,32 @@ +{ stdenv, lib, fetchurl, python, zip, fop }: + +stdenv.mkDerivation rec { + name = "bgnet-${version}"; + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index be51cff6fe5b..10dcf6e86e64 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10873,6 +10873,8 @@ let bakoma_ttf = callPackage ../data/fonts/bakoma-ttf { }; + bgnet = callPackage ../data/documentation/bgnet { }; + cacert = callPackage ../data/misc/cacert { }; caladea = callPackage ../data/fonts/caladea {};