~ehmry/sigil

be676c173561907ba96a5cb1140da6383ac671f0 — Emery Hemingway 4 years ago f939ff7 ncurses
WiP ncurses
2 files changed, 18 insertions(+), 0 deletions(-)

M overlay/default.nix
A overlay/ncurses/genode.patch
M overlay/default.nix => overlay/default.nix +6 -0
@@ 77,6 77,12 @@ in {
    targetLlvmLibraries = targetPackages.llvmPackages_8.libraries;
  });

  ncurses = overrideHostAttrs ncurses (attrs: {
    nativeBuildInputs = [ buildPackages.breakpointHook ];
    patches = attrs.patches ++ [ ./ncurses/genode.patch ];
    configureFlags = attrs.configureFlags ++ [ "--without-cxx" ];
  });

  openssl = overrideHostAttrs openssl (attrs: {
    outputs = [ "out" ]
      ++ builtins.filter (x: x != "bin" && x != "out") attrs.outputs;

A overlay/ncurses/genode.patch => overlay/ncurses/genode.patch +12 -0
@@ 0,0 1,12 @@
diff -ur a/configure b/configure
--- a/configure	2020-02-12 15:20:22.000000000 +0530
+++ b/configure	2020-05-28 23:24:05.461176897 +0530
@@ -6012,7 +6012,7 @@
 		MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
 		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
 		;;
-	(dragonfly*|freebsd*)
+	(dragonfly*|freebsd*|genode*)
 		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
 		if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
 			LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"