Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at staging-python 48 lines 1.7 kB view raw
1{ lib, stdenv, fetchFromGitHub, autoconf, automake, pkg-config, 2 libtool, check, bison, git, gperf, 3 perl, texinfo, help2man, gettext, ncurses 4}: 5 6stdenv.mkDerivation { 7 pname = "dgsh-unstable"; 8 version = "2017-02-05"; 9 10 src = fetchFromGitHub { 11 owner = "dspinellis"; 12 repo = "dgsh"; 13 rev = "bc4fc2e8009c069ee4df5140c32a2fc15d0acdec"; 14 sha256 = "0k3hmnarz56wphw45mabn5zcc427l5p77jldh1qqy89pxqy1wnql"; 15 fetchSubmodules = true; 16 }; 17 18 patches = [ ./glibc-2.26.patch ]; 19 20 nativeBuildInputs = [ autoconf automake pkg-config libtool check 21 bison git gettext gperf perl texinfo help2man ncurses 22 ]; 23 24 configurePhase = '' 25 cp -r ./unix-tools/coreutils/gnulib gnulib 26 perl -pi -e \ 27 's#./bootstrap #./bootstrap --no-bootstrap-sync --skip-po --no-git --gnulib-srcdir='$PWD/gnulib' #g' \ 28 unix-tools/Makefile 29 find . -name \*.diff | xargs rm -f 30 rm -rf unix-tools/*/gnulib 31 patchShebangs unix-tools/diffutils/man/help2man 32 export RSYNC=true # set to rsync binary, eventhough it is not used. 33 make PREFIX=$out config 34 ''; 35 36 enableParallelBuilding = true; 37 38 meta = with lib; { 39 description = "The Directed Graph Shell"; 40 homepage = "http://www.dmst.aueb.gr/dds/sw/dgsh"; 41 license = with licenses; asl20; 42 maintainers = with maintainers; [ vrthra ]; 43 platforms = with platforms; all; 44 # lib/freadseek.c:68:3: error: #error "Please port gnulib freadseek.c to your platform! Look at the definition of getc, getc_unlocked on your > 45 # 68 | #error "Please port gnulib freadseek.c to your platform! Look at the definition of getc, getc_unlocked on your system, then report > 46 broken = true; # marked 2022-05-06 47 }; 48}