2018-08-20 19:43:41 +01:00
|
|
|
|
{ stdenv, fetchcvs, lib, groff, mandoc, zlib, buildPackages
|
2018-05-02 04:19:33 +01:00
|
|
|
|
, yacc, flex, libressl, bash, less, writeText }:
|
2018-04-12 06:14:15 +01:00
|
|
|
|
|
|
|
|
|
let
|
|
|
|
|
fetchNetBSD = path: version: sha256: fetchcvs {
|
|
|
|
|
cvsRoot = ":pserver:anoncvs@anoncvs.NetBSD.org:/cvsroot";
|
|
|
|
|
module = "src/${path}";
|
|
|
|
|
inherit sha256;
|
|
|
|
|
tag = "netbsd-${builtins.replaceStrings ["."] ["-"] version}-RELEASE";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
netBSDDerivation = attrs: stdenv.mkDerivation ((rec {
|
2018-05-01 01:59:33 +01:00
|
|
|
|
name = "bsd-${attrs.pname or (baseNameOf attrs.path)}-netbsd-${attrs.version}";
|
2018-04-28 02:03:47 +01:00
|
|
|
|
src = attrs.src or fetchNetBSD attrs.path attrs.version attrs.sha256;
|
2018-04-12 06:14:15 +01:00
|
|
|
|
|
|
|
|
|
extraPaths = [ ];
|
2018-05-01 01:59:33 +01:00
|
|
|
|
setOutputFlags = false;
|
2018-04-12 06:14:15 +01:00
|
|
|
|
|
2018-04-27 08:05:56 +01:00
|
|
|
|
nativeBuildInputs = [ makeMinimal mandoc groff install stat
|
|
|
|
|
yacc flex tsort lorder ];
|
2018-04-12 06:14:15 +01:00
|
|
|
|
buildInputs = [ compat ];
|
|
|
|
|
installFlags = [ "includes" ];
|
|
|
|
|
|
|
|
|
|
# Definitions passed to share/mk/*.mk. Should be pretty simple -
|
|
|
|
|
# eventually maybe move it to a configure script.
|
|
|
|
|
DESTDIR = "$(out)";
|
|
|
|
|
TOOLDIR = "$(out)";
|
|
|
|
|
USETOOLS = "never";
|
2018-05-01 01:59:33 +01:00
|
|
|
|
NOCLANGERROR = "yes";
|
|
|
|
|
NOGCCERROR = "yes";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
LEX = "flex";
|
2018-05-01 01:59:33 +01:00
|
|
|
|
MKUNPRIVED = "yes";
|
|
|
|
|
HOST_SH = "${bash}/bin/sh";
|
|
|
|
|
OBJCOPY = if stdenv.isDarwin then "true" else "objcopy";
|
2018-08-20 19:43:41 +01:00
|
|
|
|
MACHINE_ARCH = stdenv.hostPlatform.parsed.cpu.name;
|
|
|
|
|
MACHINE_CPU = stdenv.hostPlatform.parsed.cpu.name;
|
2018-04-12 06:14:15 +01:00
|
|
|
|
|
2018-05-02 04:19:33 +01:00
|
|
|
|
INSTALL_FILE = "install -U -c";
|
|
|
|
|
INSTALL_DIR = "xinstall -U -d";
|
|
|
|
|
INSTALL_LINK = "install -U -l h";
|
|
|
|
|
INSTALL_SYMLINK = "install -U -l s";
|
|
|
|
|
|
2018-09-21 12:42:46 +01:00
|
|
|
|
HOST_CC = "${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}cc";
|
|
|
|
|
HOST_CXX = "${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}c++";
|
|
|
|
|
|
2018-04-12 06:14:15 +01:00
|
|
|
|
# libs will be provided by cc-wrapper
|
2018-05-01 01:59:33 +01:00
|
|
|
|
LIBCRT0 = "";
|
|
|
|
|
LIBCRTI = "";
|
|
|
|
|
LIBCRTEND = "";
|
|
|
|
|
LIBCRTBEGIN = "";
|
|
|
|
|
LIBC = "";
|
|
|
|
|
LIBUTIL = "";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
LIBSSL = "";
|
|
|
|
|
LIBCRYPTO = "";
|
2018-04-27 08:05:56 +01:00
|
|
|
|
LIBCRYPT = "";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
LIBCURSES = "";
|
2018-04-27 08:05:56 +01:00
|
|
|
|
LIBTERMINFO = "";
|
|
|
|
|
LIBM = "";
|
2018-04-30 05:11:37 +01:00
|
|
|
|
LIBL = "";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
_GCC_CRTBEGIN = "";
|
|
|
|
|
_GCC_CRTBEGINS = "";
|
|
|
|
|
_GCC_CRTEND = "";
|
|
|
|
|
_GCC_CRTENDS = "";
|
|
|
|
|
_GCC_LIBGCCDIR = "";
|
|
|
|
|
_GCC_CRTI = "";
|
|
|
|
|
_GCC_CRTDIR = "";
|
|
|
|
|
_GCC_CRTN = "";
|
|
|
|
|
|
2018-05-01 01:59:33 +01:00
|
|
|
|
"LIBDO.terminfo" = "_external";
|
|
|
|
|
"LIBDO.curses" = "_external";
|
|
|
|
|
|
2018-04-12 06:14:15 +01:00
|
|
|
|
# all dirs will be prefixed with DESTDIR
|
|
|
|
|
BINDIR = "/bin";
|
|
|
|
|
LIBDIR = "/lib";
|
|
|
|
|
SHLIBDIR = "/lib";
|
2018-05-01 01:59:33 +01:00
|
|
|
|
INCSDIR = "/include";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
MANDIR = "/share/man";
|
|
|
|
|
INFODIR = "/share/info";
|
|
|
|
|
DOCDIR = "/share/doc";
|
|
|
|
|
LOCALEDIR = "/share/locale";
|
|
|
|
|
X11BINDIR = "/bin";
|
|
|
|
|
X11USRLIBDIR = "/lib";
|
|
|
|
|
X11MANDIR = "/share/man";
|
|
|
|
|
|
|
|
|
|
# NetBSD makefiles should be able to detect this
|
|
|
|
|
# but without they end up using gcc on Darwin stdenv
|
|
|
|
|
preConfigure = ''
|
|
|
|
|
export HAVE_${if stdenv.cc.isGNU then "GCC" else "LLVM"}=${lib.head (lib.splitString "." (lib.getVersion stdenv.cc.cc))}
|
2018-05-01 01:59:33 +01:00
|
|
|
|
|
2018-04-27 08:05:56 +01:00
|
|
|
|
# Parallel building. Needs the space.
|
|
|
|
|
export makeFlags+=" -j $NIX_BUILD_CORES"
|
2018-04-12 06:14:15 +01:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
|
# merge together all extra paths
|
|
|
|
|
# there should be a better way to do this
|
|
|
|
|
sourceRoot=$PWD/$sourceRoot
|
|
|
|
|
export NETBSDSRCDIR=$sourceRoot
|
|
|
|
|
export BSDSRCDIR=$NETBSDSRCDIR
|
2018-05-01 01:59:33 +01:00
|
|
|
|
export _SRC_TOP_=$NETBSDSRCDIR
|
2018-04-12 06:14:15 +01:00
|
|
|
|
chmod -R u+w $sourceRoot
|
|
|
|
|
for path in $extraPaths; do
|
|
|
|
|
cd $path
|
|
|
|
|
find . -type d -exec mkdir -p $sourceRoot/\{} \;
|
|
|
|
|
find . -type f -exec cp -pr \{} $sourceRoot/\{} \;
|
|
|
|
|
chmod -R u+w $sourceRoot
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
cd $sourceRoot
|
|
|
|
|
if [ -d ${attrs.path} ]
|
|
|
|
|
then sourceRoot=$sourceRoot/${attrs.path}
|
|
|
|
|
fi
|
|
|
|
|
'';
|
|
|
|
|
|
2018-05-01 01:59:33 +01:00
|
|
|
|
preFixup = ''
|
2018-04-12 06:14:15 +01:00
|
|
|
|
# Remove lingering /usr references
|
|
|
|
|
if [ -d $out/usr ]; then
|
|
|
|
|
cd $out/usr
|
|
|
|
|
find . -type d -exec mkdir -p $out/\{} \;
|
|
|
|
|
find . -type f -exec mv \{} $out/\{} \;
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
find $out -type d -empty -delete
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
maintainers = with maintainers; [matthewbauer];
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
license = licenses.bsd2;
|
|
|
|
|
};
|
|
|
|
|
}) // attrs);
|
|
|
|
|
|
2018-05-01 01:59:33 +01:00
|
|
|
|
##
|
|
|
|
|
## BOOTSTRAPPING
|
|
|
|
|
##
|
2018-04-12 06:14:15 +01:00
|
|
|
|
makeMinimal = netBSDDerivation rec {
|
|
|
|
|
path = "tools/make";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "1xbzfd4i7allrkk1if74a8ymgpizyj0gkvdigzzj37qar7la7nc1";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
|
|
|
|
|
buildInputs = [];
|
|
|
|
|
nativeBuildInputs = [];
|
|
|
|
|
|
2018-05-01 01:59:33 +01:00
|
|
|
|
postPatch = ''
|
2018-04-12 06:14:15 +01:00
|
|
|
|
patchShebangs configure
|
2018-05-01 01:59:33 +01:00
|
|
|
|
${make.postPatch}
|
|
|
|
|
'';
|
|
|
|
|
buildPhase = ''
|
2018-05-02 04:19:33 +01:00
|
|
|
|
runHook preBuild
|
2018-05-01 01:59:33 +01:00
|
|
|
|
|
|
|
|
|
sh ./buildmake.sh
|
|
|
|
|
|
2018-05-02 04:19:33 +01:00
|
|
|
|
runHook postBuild
|
2018-04-12 06:14:15 +01:00
|
|
|
|
'';
|
|
|
|
|
installPhase = ''
|
2018-05-01 01:59:33 +01:00
|
|
|
|
runHook preInstall
|
|
|
|
|
|
2018-04-12 06:14:15 +01:00
|
|
|
|
install -D nbmake $out/bin/nbmake
|
|
|
|
|
ln -s $out/bin/nbmake $out/bin/make
|
|
|
|
|
mkdir -p $out/share
|
2018-05-01 01:59:33 +01:00
|
|
|
|
cp -r $NETBSDSRCDIR/share/mk $out/share/mk
|
|
|
|
|
|
|
|
|
|
runHook postInstall
|
2018-04-12 06:14:15 +01:00
|
|
|
|
'';
|
|
|
|
|
extraPaths = [ make.src ] ++ make.extraPaths;
|
|
|
|
|
};
|
|
|
|
|
|
2018-05-31 17:13:35 +01:00
|
|
|
|
compat = netBSDDerivation rec {
|
2018-04-12 06:14:15 +01:00
|
|
|
|
path = "tools/compat";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "050449lq5gpxqsripdqip5ks49g5ypjga188nd3ss8dg1zf7ydz3";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
|
2018-05-07 18:07:19 +01:00
|
|
|
|
setupHooks = [
|
|
|
|
|
../../../build-support/setup-hooks/role.bash
|
|
|
|
|
./compat-setup-hook.sh
|
|
|
|
|
];
|
2018-04-12 06:14:15 +01:00
|
|
|
|
|
|
|
|
|
# override defaults to prevent infinite recursion
|
|
|
|
|
nativeBuildInputs = [ makeMinimal ];
|
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
|
|
|
|
|
# temporarily use gnuinstall for bootstrapping
|
|
|
|
|
# bsdinstall will be built later
|
2018-06-17 04:25:10 +01:00
|
|
|
|
makeFlags = [ "INSTALL=${buildPackages.coreutils}/bin/install" ];
|
2018-05-01 01:59:33 +01:00
|
|
|
|
installFlags = [];
|
2018-04-12 06:14:15 +01:00
|
|
|
|
RENAME = "-D";
|
|
|
|
|
|
2018-05-31 17:13:35 +01:00
|
|
|
|
patches = [ ./compat.patch ];
|
|
|
|
|
|
2018-04-12 06:14:15 +01:00
|
|
|
|
postInstall = ''
|
|
|
|
|
mv $out/include/compat/* $out/include
|
|
|
|
|
rmdir $out/include/compat
|
|
|
|
|
|
|
|
|
|
# why aren't these installed by netbsd?
|
|
|
|
|
install -D compat_defs.h $out/include/compat_defs.h
|
|
|
|
|
install -D $NETBSDSRCDIR/include/cdbw.h $out/include/cdbw.h
|
|
|
|
|
install -D $NETBSDSRCDIR/sys/sys/cdbr.h $out/include/cdbr.h
|
|
|
|
|
install -D $NETBSDSRCDIR/sys/sys/featuretest.h \
|
|
|
|
|
$out/include/sys/featuretest.h
|
|
|
|
|
install -D $NETBSDSRCDIR/sys/sys/md5.h $out/include/md5.h
|
|
|
|
|
install -D $NETBSDSRCDIR/sys/sys/rmd160.h $out/include/rmd160.h
|
|
|
|
|
install -D $NETBSDSRCDIR/sys/sys/sha1.h $out/include/sha1.h
|
|
|
|
|
install -D $NETBSDSRCDIR/sys/sys/sha2.h $out/include/sha2.h
|
2018-04-28 02:03:47 +01:00
|
|
|
|
install -D $NETBSDSRCDIR/sys/sys/queue.h $out/include/sys/queue.h
|
2018-04-24 22:53:56 +01:00
|
|
|
|
install -D $NETBSDSRCDIR/include/vis.h $out/include/vis.h
|
2018-04-26 18:29:58 +01:00
|
|
|
|
install -D $NETBSDSRCDIR/include/db.h $out/include/db.h
|
2018-04-27 08:05:56 +01:00
|
|
|
|
install -D $NETBSDSRCDIR/include/netconfig.h $out/include/netconfig.h
|
|
|
|
|
install -D $NETBSDSRCDIR/include/rpc/types.h $out/include/rpc/types.h
|
|
|
|
|
install -D $NETBSDSRCDIR/include/utmpx.h $out/include/utmpx.h
|
|
|
|
|
install -D $NETBSDSRCDIR/include/tzfile.h $out/include/tzfile.h
|
2018-05-31 22:15:50 +01:00
|
|
|
|
install -D $NETBSDSRCDIR/sys/sys/tree.h $out/include/sys/tree.h
|
2018-04-27 08:05:56 +01:00
|
|
|
|
|
2018-05-31 17:13:35 +01:00
|
|
|
|
mkdir -p $out/lib/pkgconfig
|
|
|
|
|
substitute ${./libbsd-overlay.pc} $out/lib/pkgconfig/libbsd-overlay.pc \
|
|
|
|
|
--subst-var-by out $out \
|
|
|
|
|
--subst-var-by version ${version}
|
|
|
|
|
|
2018-04-27 08:05:56 +01:00
|
|
|
|
# Remove lingering /usr references
|
|
|
|
|
if [ -d $out/usr ]; then
|
|
|
|
|
cd $out/usr
|
|
|
|
|
find . -type d -exec mkdir -p $out/\{} \;
|
|
|
|
|
find . -type f -exec mv \{} $out/\{} \;
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
find $out -type d -empty -delete
|
2018-04-12 06:14:15 +01:00
|
|
|
|
'';
|
|
|
|
|
extraPaths = [ libc.src libutil.src
|
2018-09-21 03:11:12 +01:00
|
|
|
|
(fetchNetBSD "include" "8.0" "128m77k16i7frvk8kifhmxzk7a37m7z1s0bbmja3ywga6sx6v6sq")
|
|
|
|
|
(fetchNetBSD "external/bsd/flex" "8.0" "0yxcjshz9nj827qhmjwwjmzvmmqgaf0d25b42k7lj84vliwrgyr6")
|
|
|
|
|
(fetchNetBSD "sys/sys" "8.0" "0b0yjjy0c0cvk5nyffppqwxlwh2s1qr2xzl97a9ldck00dibar94")
|
2018-04-12 06:14:15 +01:00
|
|
|
|
] ++ libutil.extraPaths ++ libc.extraPaths;
|
|
|
|
|
};
|
|
|
|
|
|
2018-05-02 04:19:33 +01:00
|
|
|
|
# HACK to ensure parent directories exist. This emulates GNU
|
|
|
|
|
# install’s -D option. No alternative seems to exist in BSD install.
|
|
|
|
|
install = let binstall = writeText "binstall" ''
|
2018-09-21 05:00:45 +01:00
|
|
|
|
#!/bin/sh
|
2018-05-02 04:19:33 +01:00
|
|
|
|
for last in $@; do true; done
|
|
|
|
|
mkdir -p $(dirname $last)
|
|
|
|
|
xinstall "$@"
|
|
|
|
|
''; in netBSDDerivation {
|
2018-04-12 06:14:15 +01:00
|
|
|
|
path = "usr.bin/xinstall";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "1f6pbz3qv1qcrchdxif8p5lbmnwl8b9nq615hsd3cyl4avd5bfqj";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
extraPaths = [ mtree.src make.src ];
|
2018-04-26 18:57:53 +01:00
|
|
|
|
nativeBuildInputs = [ makeMinimal mandoc groff ];
|
|
|
|
|
buildInputs = [ compat fts ];
|
2018-05-01 01:59:33 +01:00
|
|
|
|
installPhase = ''
|
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
|
|
install -D install.1 $out/share/man/man1/install.1
|
2018-05-02 04:19:33 +01:00
|
|
|
|
install -D xinstall $out/bin/xinstall
|
|
|
|
|
install -D -m 0550 ${binstall} $out/bin/binstall
|
|
|
|
|
ln -s $out/bin/binstall $out/bin/install
|
2018-05-01 01:59:33 +01:00
|
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
|
'';
|
2018-04-12 06:14:15 +01:00
|
|
|
|
};
|
2018-04-26 18:57:53 +01:00
|
|
|
|
|
|
|
|
|
fts = netBSDDerivation {
|
|
|
|
|
pname = "fts";
|
|
|
|
|
path = "include/fts.h";
|
|
|
|
|
sha256 = "01d4fpxvz1pgzfk5xznz5dcm0x0gdzwcsfm1h3d0xc9kc6hj2q77";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-04-26 18:57:53 +01:00
|
|
|
|
nativeBuildInputs = [ ];
|
|
|
|
|
propagatedBuildInputs = [ compat ];
|
|
|
|
|
extraPaths = [
|
2018-09-21 03:11:12 +01:00
|
|
|
|
(fetchNetBSD "lib/libc/gen/fts.c" "8.0" "1a8hmf26242nmv05ipn3ircxb0jqmmi66rh78kkyi9vjwkfl3qn7")
|
|
|
|
|
(fetchNetBSD "lib/libc/include/namespace.h" "8.0" "1sjvh9nw3prnk4rmdwrfsxh6gdb9lmilkn46jcfh3q5c8glqzrd7")
|
2018-09-21 02:58:14 +01:00
|
|
|
|
(fetchNetBSD "lib/libc/gen/fts.3" "8.0" "1asxw0n3fhjdadwkkq3xplfgqgl3q32w1lyrvbakfa3gs0wz5zc1")
|
2018-04-26 18:57:53 +01:00
|
|
|
|
];
|
|
|
|
|
buildPhase = ''
|
|
|
|
|
cc -c -Iinclude -Ilib/libc/include lib/libc/gen/fts.c \
|
|
|
|
|
-o lib/libc/gen/fts.o
|
|
|
|
|
ar -rsc libfts.a lib/libc/gen/fts.o
|
|
|
|
|
'';
|
|
|
|
|
installPhase = ''
|
2018-05-01 01:59:33 +01:00
|
|
|
|
runHook preInstall
|
|
|
|
|
|
2018-04-26 18:57:53 +01:00
|
|
|
|
install -D lib/libc/gen/fts.3 $out/share/man/man3/fts.3
|
|
|
|
|
install -D include/fts.h $out/include/fts.h
|
|
|
|
|
install -D lib/libc/include/namespace.h $out/include/namespace.h
|
|
|
|
|
install -D libfts.a $out/lib/libfts.a
|
2018-05-01 01:59:33 +01:00
|
|
|
|
|
|
|
|
|
runHook postInstall
|
2018-04-26 18:57:53 +01:00
|
|
|
|
'';
|
2018-05-07 18:07:19 +01:00
|
|
|
|
setupHooks = [
|
|
|
|
|
../../../build-support/setup-hooks/role.bash
|
|
|
|
|
./fts-setup-hook.sh
|
|
|
|
|
];
|
2018-04-26 18:57:53 +01:00
|
|
|
|
};
|
2018-04-27 08:05:56 +01:00
|
|
|
|
|
|
|
|
|
stat = netBSDDerivation {
|
|
|
|
|
path = "usr.bin/stat";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-04-27 08:05:56 +01:00
|
|
|
|
sha256 = "0z4r96id2r4cfy443rw2s1n52n186xm0lqvs8s3qjf4314z7r7yh";
|
|
|
|
|
nativeBuildInputs = [ makeMinimal mandoc groff install ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
tsort = netBSDDerivation {
|
|
|
|
|
path = "usr.bin/tsort";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-04-27 08:05:56 +01:00
|
|
|
|
sha256 = "1dqvf9gin29nnq3c4byxc7lfd062pg7m84843zdy6n0z63hnnwiq";
|
|
|
|
|
nativeBuildInputs = [ makeMinimal mandoc groff install ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
lorder = netBSDDerivation {
|
|
|
|
|
path = "usr.bin/lorder";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-04-27 08:05:56 +01:00
|
|
|
|
sha256 = "0rjf9blihhm0n699vr2bg88m4yjhkbxh6fxliaay3wxkgnydjwn2";
|
|
|
|
|
nativeBuildInputs = [ makeMinimal mandoc groff install ];
|
|
|
|
|
};
|
2018-05-01 01:59:33 +01:00
|
|
|
|
##
|
|
|
|
|
## END BOOTSTRAPPING
|
|
|
|
|
##
|
2018-04-12 06:14:15 +01:00
|
|
|
|
|
|
|
|
|
libutil = netBSDDerivation {
|
|
|
|
|
path = "lib/libutil";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "077syyxd303m4x7avs5nxzk4c9n13d5lyk5aicsacqjvx79qrk3i";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
extraPaths = [
|
2018-09-21 02:58:14 +01:00
|
|
|
|
(fetchNetBSD "common/lib/libutil" "8.0" "0q3ixrf36lip1dx0gafs0a03qfs5cs7n0myqq7af4jpjd6kh1831")
|
2018-04-12 06:14:15 +01:00
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
libc = netBSDDerivation {
|
|
|
|
|
path = "lib/libc";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "0lgbc58qgn8kwm3l011x1ml1kgcf7jsgq7hbf0hxhlbvxq5bljl3";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
extraPaths = [
|
2018-09-21 03:11:12 +01:00
|
|
|
|
(fetchNetBSD "common/lib/libc" "8.0" "1kbhj0vxixvdy9fvsr5y70ri4mlkmim1v9m98sqjlzc1vdiqfqc8")
|
2018-04-12 06:14:15 +01:00
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
make = netBSDDerivation {
|
|
|
|
|
path = "usr.bin/make";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "103643qs3w5kiahir6cca2rkm5ink81qbg071qyzk63qvspfq10c";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-05-01 01:59:33 +01:00
|
|
|
|
postPatch = ''
|
2018-04-12 06:14:15 +01:00
|
|
|
|
# make needs this to pick up our sys make files
|
2018-04-27 08:05:56 +01:00
|
|
|
|
export NIX_CFLAGS_COMPILE+=" -D_PATH_DEFSYSPATH=\"$out/share/mk\""
|
2018-04-12 06:14:15 +01:00
|
|
|
|
|
|
|
|
|
substituteInPlace $NETBSDSRCDIR/share/mk/bsd.prog.mk \
|
2018-05-01 01:59:33 +01:00
|
|
|
|
--replace '-Wl,-dynamic-linker=''${_SHLINKER}' "" \
|
|
|
|
|
--replace '-Wl,-rpath,''${SHLIBDIR}' ""
|
2018-05-02 04:19:33 +01:00
|
|
|
|
substituteInPlace $NETBSDSRCDIR/share/mk/bsd.lib.mk \
|
|
|
|
|
--replace '_INSTRANLIB=''${empty(PRESERVE):?-a "''${RANLIB} -t":}' '_INSTRANLIB='
|
2018-04-27 08:05:56 +01:00
|
|
|
|
'' + lib.optionalString stdenv.isDarwin ''
|
2018-04-12 06:14:15 +01:00
|
|
|
|
substituteInPlace $NETBSDSRCDIR/share/mk/bsd.sys.mk \
|
2018-05-01 01:59:33 +01:00
|
|
|
|
--replace '-Wl,--fatal-warnings' "" \
|
|
|
|
|
--replace '-Wl,--warn-shared-textrel' ""
|
2018-04-12 06:14:15 +01:00
|
|
|
|
substituteInPlace $NETBSDSRCDIR/share/mk/bsd.lib.mk \
|
|
|
|
|
--replace '-Wl,-soname,''${_LIB}.so.''${SHLIB_SOVERSION}' "" \
|
|
|
|
|
--replace '-Wl,--whole-archive' "" \
|
2018-05-01 01:59:33 +01:00
|
|
|
|
--replace '-Wl,--no-whole-archive' "" \
|
|
|
|
|
--replace '-Wl,--warn-shared-textrel' "" \
|
|
|
|
|
--replace '-Wl,-Map=''${_LIB}.so.''${SHLIB_SOVERSION}.map' "" \
|
|
|
|
|
--replace '-Wl,-rpath,''${SHLIBDIR}' ""
|
|
|
|
|
'';
|
2018-04-12 06:14:15 +01:00
|
|
|
|
postInstall = ''
|
2018-05-01 01:59:33 +01:00
|
|
|
|
(cd $NETBSDSRCDIR/share/mk && make FILESDIR=/share/mk install)
|
2018-04-12 06:14:15 +01:00
|
|
|
|
'';
|
|
|
|
|
extraPaths = [
|
2018-09-21 03:11:12 +01:00
|
|
|
|
(fetchNetBSD "share/mk" "8.0" "033q4w3rmvwznz6m7fn9xcf13chyhwwl8ijj3a9mrn80fkwm55qs")
|
2018-04-12 06:14:15 +01:00
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
mtree = netBSDDerivation {
|
|
|
|
|
path = "usr.sbin/mtree";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "0hanmzm8bgwz2bhsinmsgfmgy6nbdhprwmgwbyjm6bl17vgn7vid";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
};
|
|
|
|
|
|
2018-04-27 23:52:54 +01:00
|
|
|
|
who = netBSDDerivation {
|
|
|
|
|
path = "usr.bin/who";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "0ll76rbblps9hqmncxvw5qx0hhwfz678g70vgfyng8ahxz27rhd9";
|
2018-05-01 01:59:33 +01:00
|
|
|
|
postPatch = lib.optionalString stdenv.isLinux ''
|
2018-04-27 23:52:54 +01:00
|
|
|
|
substituteInPlace $NETBSDSRCDIR/usr.bin/who/utmpentry.c \
|
|
|
|
|
--replace "utmptime = st.st_mtimespec" "utmptime = st.st_mtim" \
|
2018-05-01 01:59:33 +01:00
|
|
|
|
--replace "timespeccmp(&st.st_mtimespec, &utmptime, >)" "st.st_mtim.tv_sec == utmptime.tv_sec ? st.st_mtim.tv_nsec > utmptime.tv_nsec : st.st_mtim.tv_sec > utmptime.tv_sec"
|
|
|
|
|
'' + lib.optionalString stdenv.isDarwin ''
|
|
|
|
|
substituteInPlace $NETBSDSRCDIR/usr.bin/who/utmpentry.c \
|
|
|
|
|
--replace "timespeccmp(&st.st_mtimespec, &utmpxtime, >)" "st.st_mtimespec.tv_sec == utmpxtime.tv_sec ? st.st_mtimespec.tv_nsec > utmpxtime.tv_nsec : st.st_mtimespec.tv_sec > utmpxtime.tv_sec"
|
|
|
|
|
'' + ''
|
|
|
|
|
substituteInPlace $NETBSDSRCDIR/usr.bin/who/utmpentry.c \
|
|
|
|
|
--replace "strncpy(e->name, up->ut_name, sizeof(up->ut_name))" "strncpy(e->name, up->ut_user, sizeof(up->ut_user))" \
|
|
|
|
|
--replace "timespecclear(&utmptime)" "utmptime.tv_sec = utmptime.tv_nsec = 0" \
|
|
|
|
|
--replace "timespecclear(&utmpxtime)" "utmpxtime.tv_sec = utmpxtime.tv_nsec = 0"
|
2018-04-27 23:52:54 +01:00
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2018-04-12 06:14:15 +01:00
|
|
|
|
in rec {
|
2018-05-01 03:43:01 +01:00
|
|
|
|
inherit compat install netBSDDerivation fts;
|
2018-04-12 06:14:15 +01:00
|
|
|
|
|
|
|
|
|
getent = netBSDDerivation {
|
|
|
|
|
path = "usr.bin/getent";
|
|
|
|
|
sha256 = "1ylhw4dnpyrmcy8n5kjcxywm8qc9p124dqnm17x4magiqx1kh9iz";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
patches = [ ./getent.patch ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
getconf = netBSDDerivation {
|
|
|
|
|
path = "usr.bin/getconf";
|
|
|
|
|
sha256 = "122vslz4j3h2mfs921nr2s6m078zcj697yrb75rwp2hnw3qz4s8q";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
};
|
|
|
|
|
|
2018-04-30 05:11:37 +01:00
|
|
|
|
dict = netBSDDerivation {
|
|
|
|
|
path = "share/dict";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "1pk0y3xc5ihc2k89wjkh33qqx3w9q34k03k2qcffvbqh1l6wm36l";
|
2018-04-30 05:11:37 +01:00
|
|
|
|
makeFlags = [ "BINDIR=/share" ];
|
|
|
|
|
};
|
|
|
|
|
|
2018-04-12 06:14:15 +01:00
|
|
|
|
games = netBSDDerivation {
|
|
|
|
|
path = "games";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "1vb4ahmiywgd3q3lzwb34mdd7agdlhsmw077alddkqinvyyxq1jz";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-05-01 01:59:33 +01:00
|
|
|
|
makeFlags = [ "BINDIR=/bin"
|
2018-05-02 04:19:33 +01:00
|
|
|
|
"SCRIPTSDIR=/bin" ];
|
2018-05-01 01:59:33 +01:00
|
|
|
|
postPatch = ''
|
2018-04-12 06:14:15 +01:00
|
|
|
|
sed -i '1i #include <time.h>' adventure/save.c
|
2018-04-27 08:05:56 +01:00
|
|
|
|
|
2018-04-30 05:11:37 +01:00
|
|
|
|
for f in $(find . -name pathnames.h); do
|
|
|
|
|
substituteInPlace $f \
|
|
|
|
|
--replace /usr/share/games $out/share/games \
|
|
|
|
|
--replace /usr/games $out/bin \
|
|
|
|
|
--replace /usr/libexec $out/libexec \
|
2018-05-02 04:19:33 +01:00
|
|
|
|
--replace /usr/bin/more ${less}/bin/less \
|
2018-04-30 05:11:37 +01:00
|
|
|
|
--replace /usr/share/dict ${dict}/share/dict
|
|
|
|
|
done
|
2018-05-02 04:19:33 +01:00
|
|
|
|
substituteInPlace boggle/boggle/bog.h \
|
|
|
|
|
--replace /usr/share/games $out/share/games
|
2018-04-30 05:11:37 +01:00
|
|
|
|
substituteInPlace ching/ching/ching.sh \
|
|
|
|
|
--replace /usr/share $out/share \
|
|
|
|
|
--replace /usr/libexec $out/libexec
|
|
|
|
|
substituteInPlace hunt/huntd/driver.c \
|
|
|
|
|
--replace "(void) setpgrp(getpid(), getpid());" ""
|
|
|
|
|
|
2018-04-27 23:32:20 +01:00
|
|
|
|
# Disable some games that don't build. They should be possible
|
|
|
|
|
# to build but need to look at how to implement stuff in
|
|
|
|
|
# Linux. macOS is missing gettime. TODO try to get these
|
|
|
|
|
# working.
|
2018-04-29 20:27:26 +01:00
|
|
|
|
disableGame() {
|
|
|
|
|
substituteInPlace Makefile --replace $1 ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
disableGame atc
|
|
|
|
|
disableGame dm
|
|
|
|
|
disableGame dab
|
2018-05-01 03:43:01 +01:00
|
|
|
|
disableGame sail
|
|
|
|
|
disableGame trek
|
|
|
|
|
${lib.optionalString stdenv.isLinux "disableGame boggle"}
|
|
|
|
|
${lib.optionalString stdenv.isLinux "disableGame hunt"}
|
|
|
|
|
${lib.optionalString stdenv.isLinux "disableGame larn"}
|
|
|
|
|
${lib.optionalString stdenv.isLinux "disableGame phantasia"}
|
|
|
|
|
${lib.optionalString stdenv.isLinux "disableGame rogue"}
|
2018-04-29 20:27:26 +01:00
|
|
|
|
${lib.optionalString stdenv.isDarwin "disableGame adventure"}
|
|
|
|
|
${lib.optionalString stdenv.isDarwin "disableGame factor"}
|
|
|
|
|
${lib.optionalString stdenv.isDarwin "disableGame gomoku"}
|
|
|
|
|
${lib.optionalString stdenv.isDarwin "disableGame mille"}
|
2018-04-12 06:14:15 +01:00
|
|
|
|
'';
|
2018-04-30 05:11:37 +01:00
|
|
|
|
|
2018-05-01 01:59:33 +01:00
|
|
|
|
# HACK strfile needs to be installed first & in the path. The
|
|
|
|
|
# Makefile should do this for us but haven't gotten it to work
|
2018-04-30 05:11:37 +01:00
|
|
|
|
preBuild = ''
|
2018-05-01 01:59:33 +01:00
|
|
|
|
(cd fortune/strfile && make && make BINDIR=/bin install)
|
2018-04-30 05:11:37 +01:00
|
|
|
|
export PATH=$out/bin:$PATH
|
|
|
|
|
'';
|
|
|
|
|
|
2018-05-02 06:05:54 +01:00
|
|
|
|
postInstall = ''
|
|
|
|
|
substituteInPlace $out/usr/share/games/quiz.db/index \
|
|
|
|
|
--replace /usr $out
|
|
|
|
|
'';
|
|
|
|
|
|
2018-04-27 08:05:56 +01:00
|
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
|
"-D__noinline="
|
|
|
|
|
"-D__scanflike(a,b)="
|
|
|
|
|
"-D__va_list=va_list"
|
|
|
|
|
"-DOXTABS=XTABS"
|
|
|
|
|
"-DRANDOM_MAX=RAND_MAX"
|
|
|
|
|
"-DINFTIM=-1"
|
2018-08-20 19:43:41 +01:00
|
|
|
|
(lib.optionalString stdenv.hostPlatform.isMusl "-include sys/ttydefaults.h -include sys/file.h")
|
2018-04-30 05:11:37 +01:00
|
|
|
|
"-DBE32TOH(x)=((void)0)"
|
|
|
|
|
"-DBE64TOH(x)=((void)0)"
|
|
|
|
|
"-D__c99inline=__inline"
|
2018-04-27 08:05:56 +01:00
|
|
|
|
];
|
2018-04-30 05:11:37 +01:00
|
|
|
|
|
2018-04-27 08:05:56 +01:00
|
|
|
|
buildInputs = [ compat libcurses libterminfo libressl ];
|
2018-04-30 05:11:37 +01:00
|
|
|
|
extraPaths = [ dict.src who.src ];
|
2018-04-12 06:14:15 +01:00
|
|
|
|
};
|
|
|
|
|
|
2018-05-01 01:59:33 +01:00
|
|
|
|
finger = netBSDDerivation {
|
|
|
|
|
path = "usr.bin/finger";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "1mbxjdzcbx7xsbn3x1qm1cd0kna07yh61wqxmrrphjhl5gv13ra3";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-05-01 01:59:33 +01:00
|
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
|
(if stdenv.isLinux then "-DSUPPORT_UTMP" else "-USUPPORT_UTMP")
|
|
|
|
|
(if stdenv.isDarwin then "-DSUPPORT_UTMPX" else "-USUPPORT_UTMPX")
|
|
|
|
|
];
|
|
|
|
|
postPatch = ''
|
|
|
|
|
NIX_CFLAGS_COMPILE+=" -I$NETBSDSRCDIR/include"
|
|
|
|
|
|
|
|
|
|
substituteInPlace extern.h \
|
|
|
|
|
--replace psort _psort
|
|
|
|
|
|
|
|
|
|
${who.postPatch}
|
|
|
|
|
'';
|
|
|
|
|
extraPaths = [ who.src ]
|
2018-09-21 03:11:12 +01:00
|
|
|
|
++ lib.optional stdenv.isDarwin (fetchNetBSD "include/utmp.h" "8.0" "05690fzz0825p2bq0sfyb01mxwd0wa06qryqgqkwpqk9y2xzc7px");
|
2018-05-01 01:59:33 +01:00
|
|
|
|
};
|
2018-04-12 06:14:15 +01:00
|
|
|
|
|
|
|
|
|
fingerd = netBSDDerivation {
|
2018-04-27 08:05:56 +01:00
|
|
|
|
path = "libexec/fingerd";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "0blcahhgyj1lm0mimrbvgmq3wkjvqk5wy85sdvbs99zxg7da1190";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
libedit = netBSDDerivation {
|
|
|
|
|
path = "lib/libedit";
|
2018-04-26 18:31:06 +01:00
|
|
|
|
buildInputs = [ libterminfo libcurses ];
|
|
|
|
|
propagatedBuildInputs = [ compat ];
|
2018-05-01 01:59:33 +01:00
|
|
|
|
makeFlags = [ "INCSDIR=/include" ];
|
|
|
|
|
postPatch = ''
|
2018-04-12 06:14:15 +01:00
|
|
|
|
sed -i '1i #undef bool_t' el.h
|
2018-04-27 08:05:56 +01:00
|
|
|
|
substituteInPlace config.h \
|
|
|
|
|
--replace "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" ""
|
2018-04-12 06:14:15 +01:00
|
|
|
|
'';
|
2018-04-27 08:05:56 +01:00
|
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
|
"-D__noinline="
|
|
|
|
|
"-D__scanflike(a,b)="
|
|
|
|
|
"-D__va_list=va_list"
|
|
|
|
|
];
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "0pmqh2mkfp70bwchiwyrkdyq9jcihx12g1awd6alqi9bpr3f9xmd";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
libterminfo = netBSDDerivation {
|
|
|
|
|
path = "lib/libterminfo";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "14gp0d6fh6zjnbac2yjhyq5m6rca7gm6q1s9gilhzpdgl9m7vb9r";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
buildInputs = [ compat tic nbperf ];
|
2018-04-28 02:50:15 +01:00
|
|
|
|
MKPIC = if stdenv.isDarwin then "no" else "yes";
|
2018-05-01 01:59:33 +01:00
|
|
|
|
makeFlags = [ "INCSDIR=/include" ];
|
|
|
|
|
postPatch = ''
|
|
|
|
|
substituteInPlace term.c --replace /usr/share $out/share
|
2018-09-21 04:56:45 +01:00
|
|
|
|
substituteInPlace setupterm.c --replace '#include <curses.h>' 'void use_env(bool);'
|
|
|
|
|
|
2018-04-30 05:11:37 +01:00
|
|
|
|
'';
|
2018-05-01 01:59:33 +01:00
|
|
|
|
postInstall = ''
|
|
|
|
|
(cd $NETBSDSRCDIR/share/terminfo && make && make BINDIR=/share install)
|
2018-04-30 05:11:37 +01:00
|
|
|
|
'';
|
2018-04-12 06:14:15 +01:00
|
|
|
|
extraPaths = [
|
2018-09-21 03:11:12 +01:00
|
|
|
|
(fetchNetBSD "share/terminfo" "8.0" "18db0fk1dw691vk6lsm6dksm4cf08g8kdm0gc4052ysdagg2m6sm")
|
2018-04-12 06:14:15 +01:00
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
libcurses = netBSDDerivation {
|
|
|
|
|
path = "lib/libcurses";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "0azhzh1910v24dqx45zmh4z4dl63fgsykajrbikx5xfvvmkcq7xs";
|
2018-04-26 18:31:06 +01:00
|
|
|
|
buildInputs = [ libterminfo ];
|
2018-05-01 01:59:33 +01:00
|
|
|
|
makeFlags = [ "INCSDIR=/include" ];
|
2018-04-27 08:05:56 +01:00
|
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
|
"-D__scanflike(a,b)="
|
|
|
|
|
"-D__va_list=va_list"
|
|
|
|
|
"-D__warn_references(a,b)="
|
2018-04-28 02:50:15 +01:00
|
|
|
|
] ++ lib.optional stdenv.isDarwin "-D__strong_alias(a,b)=";
|
2018-04-26 18:31:06 +01:00
|
|
|
|
propagatedBuildInputs = [ compat ];
|
2018-04-12 06:14:15 +01:00
|
|
|
|
MKDOC = "no"; # missing vfontedpr
|
2018-04-28 02:50:15 +01:00
|
|
|
|
MKPIC = if stdenv.isDarwin then "no" else "yes";
|
2018-05-01 01:59:33 +01:00
|
|
|
|
postPatch = lib.optionalString (!stdenv.isDarwin) ''
|
2018-04-27 08:05:56 +01:00
|
|
|
|
substituteInPlace printw.c \
|
2018-09-21 05:20:31 +01:00
|
|
|
|
--replace "funopen2(win, NULL, winwrite, NULL, NULL, NULL)" NULL \
|
2018-04-27 08:05:56 +01:00
|
|
|
|
--replace "__strong_alias(vwprintw, vw_printw)" 'extern int vwprintw(WINDOW*, const char*, va_list) __attribute__ ((alias ("vw_printw")));'
|
|
|
|
|
substituteInPlace scanw.c \
|
|
|
|
|
--replace "__strong_alias(vwscanw, vw_scanw)" 'extern int vwscanw(WINDOW*, const char*, va_list) __attribute__ ((alias ("vw_scanw")));'
|
|
|
|
|
'';
|
2018-04-12 06:14:15 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nbperf = netBSDDerivation {
|
|
|
|
|
path = "usr.bin/nbperf";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
sha256 = "0gzm0zv2400lasnsswnjw9bwzyizhxzdbrcjwcl1k65aj86aqyqb";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
tic = netBSDDerivation {
|
|
|
|
|
path = "tools/tic";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-04-12 06:14:15 +01:00
|
|
|
|
sha256 = "092y7db7k4kh2jq8qc55126r5qqvlb8lq8mhmy5ipbi36hwb4zrz";
|
|
|
|
|
HOSTPROG = "tic";
|
|
|
|
|
buildInputs = [ compat nbperf ];
|
|
|
|
|
extraPaths = [
|
|
|
|
|
libterminfo.src
|
2018-09-21 03:11:12 +01:00
|
|
|
|
(fetchNetBSD "usr.bin/tic" "8.0" "0diirnzmdnpc5bixyb34c9rid9paw2a4zfczqrpqrfvjsf1nnljf")
|
|
|
|
|
(fetchNetBSD "tools/Makefile.host" "8.0" "1p23dsc4qrv93vc6gzid9w2479jwswry9qfn88505s0pdd7h6nvp")
|
2018-04-12 06:14:15 +01:00
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2018-05-02 04:20:19 +01:00
|
|
|
|
misc = netBSDDerivation {
|
|
|
|
|
path = "share/misc";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-09-21 03:11:12 +01:00
|
|
|
|
sha256 = "0d34b3irjbqsqfk8v8aaj36fjyvwyx410igl26jcx2ryh3ispch8";
|
2018-05-02 06:39:30 +01:00
|
|
|
|
makeFlags = [ "BINDIR=/share" ];
|
2018-05-02 04:20:19 +01:00
|
|
|
|
};
|
|
|
|
|
|
2018-06-11 19:44:49 +01:00
|
|
|
|
locale = netBSDDerivation {
|
|
|
|
|
path = "usr.bin/locale";
|
2018-09-21 02:58:14 +01:00
|
|
|
|
version = "8.0";
|
2018-06-11 19:44:49 +01:00
|
|
|
|
sha256 = "0kk6v9k2bygq0wf9gbinliqzqpzs9bgxn0ndyl2wcv3hh2bmsr9p";
|
|
|
|
|
patches = [ ./locale.patch ];
|
|
|
|
|
};
|
|
|
|
|
|
2018-04-12 06:14:15 +01:00
|
|
|
|
}
|