lol

bgnet: 3.0.21 -> 3.1.2

Also builds from source now, the old tarball was long gone.

+15 -12
+15 -12
pkgs/data/documentation/bgnet/default.nix
··· 1 - { stdenv, lib, fetchurl, python, zip, fop }: 1 + { stdenv, lib, fetchFromGitHub, python3, pandoc }: 2 2 3 3 stdenv.mkDerivation { 4 4 pname = "bgnet"; 5 - version = "3.0.21"; 5 + # to be found in the Makefile 6 + version = "3.1.2"; 6 7 7 - src = fetchurl { 8 - url = "https://beej.us/guide/bgnet/bgnet.tgz"; 9 - sha256 = "00ggr5prc5i3w9gaaw2sadfq6haq7lmh0vdilaxx8xz9z5znxvyv"; 8 + src = fetchFromGitHub { 9 + owner = "beejjorgensen"; 10 + repo = "bgnet"; 11 + rev = "782a785a35d43c355951b8151628d7c64e4d0346"; 12 + sha256 = "19w0r3zr71ydd29amqwn8q3npgrpy5kkshyshyji2hw5hky6iy92"; 10 13 }; 11 14 12 - buildInputs = [ python zip fop ]; 15 + buildPhase = '' 16 + # build scripts need some love 17 + patchShebangs bin/preproc 13 18 14 - preBuild = '' 15 - sed -i "s/#disable=1/disable=1/" bin/bgvalidate 16 - # build scripts need some love 17 - patchShebangs . 19 + make -C src bgnet.html 18 20 ''; 19 21 20 22 installPhase = '' 21 - mkdir -p $out 22 - mv * $out/ 23 + install -Dm644 src/bgnet.html $out/share/doc/bgnet/html/index.html 23 24 ''; 25 + 26 + nativeBuildInputs = [ python3 pandoc ]; 24 27 25 28 meta = { 26 29 description = "Beej’s Guide to Network Programming";