uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
48
pkgs/shells/dgsh/default.nix
Normal file
48
pkgs/shells/dgsh/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ lib, stdenv, fetchFromGitHub, autoconf, automake, pkg-config,
|
||||
libtool, check, bison, git, gperf,
|
||||
perl, texinfo, help2man, gettext, ncurses
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "dgsh-unstable";
|
||||
version = "2017-02-05";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dspinellis";
|
||||
repo = "dgsh";
|
||||
rev = "bc4fc2e8009c069ee4df5140c32a2fc15d0acdec";
|
||||
sha256 = "0k3hmnarz56wphw45mabn5zcc427l5p77jldh1qqy89pxqy1wnql";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
patches = [ ./glibc-2.26.patch ];
|
||||
|
||||
nativeBuildInputs = [ autoconf automake pkg-config libtool check
|
||||
bison git gettext gperf perl texinfo help2man ncurses
|
||||
];
|
||||
|
||||
configurePhase = ''
|
||||
cp -r ./unix-tools/coreutils/gnulib gnulib
|
||||
perl -pi -e \
|
||||
's#./bootstrap #./bootstrap --no-bootstrap-sync --skip-po --no-git --gnulib-srcdir='$PWD/gnulib' #g' \
|
||||
unix-tools/Makefile
|
||||
find . -name \*.diff | xargs rm -f
|
||||
rm -rf unix-tools/*/gnulib
|
||||
patchShebangs unix-tools/diffutils/man/help2man
|
||||
export RSYNC=true # set to rsync binary, eventhough it is not used.
|
||||
make PREFIX=$out config
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "The Directed Graph Shell";
|
||||
homepage = "http://www.dmst.aueb.gr/dds/sw/dgsh";
|
||||
license = with licenses; asl20;
|
||||
maintainers = with maintainers; [ vrthra ];
|
||||
platforms = with platforms; all;
|
||||
# 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 >
|
||||
# 68 | #error "Please port gnulib freadseek.c to your platform! Look at the definition of getc, getc_unlocked on your system, then report >
|
||||
broken = true; # marked 2022-05-06
|
||||
};
|
||||
}
|
||||
12
pkgs/shells/dgsh/glibc-2.26.patch
Normal file
12
pkgs/shells/dgsh/glibc-2.26.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff --git a/core-tools/src/dgsh-httpval.c b/core-tools/src/dgsh-httpval.c
|
||||
index 8b5dce3..7b43c3d 100644
|
||||
--- a/core-tools/src/dgsh-httpval.c
|
||||
+++ b/core-tools/src/dgsh-httpval.c
|
||||
@@ -40,6 +40,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
+#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
Loading…
Add table
Add a link
Reference in a new issue