1{ lib
2, stdenv
3, fetchFromGitHub
4}:
5
6stdenv.mkDerivation (finalAttrs: {
7 pname = "dev86";
8 version = "unstable-2022-07-19";
9
10 src = fetchFromGitHub {
11 owner = "jbruchon";
12 repo = "dev86";
13 rev = "f5cd3e5c17a0d3cd8298bac8e30bed6e59c4e57a";
14 hash = "sha256-CWeboFkJkpKHZ/wkuvMj5a+5qB2uzAtoYy8OdyYErMg=";
15 };
16
17 makeFlags = [ "PREFIX=${placeholder "out"}" ];
18
19 # Parallel builds are not supported due to build process structure: tools are
20 # built sequentially in submakefiles and are reusing the same targets as
21 # dependencies. Building dependencies in parallel from different submakes is
22 # not synchronized and fails:
23 # make[3]: Entering directory '/build/dev86-0.16.21/libc'
24 # Unable to execute as86.
25 enableParallelBuilding = false;
26
27 meta = {
28 homepage = "https://github.com/jbruchon/dev86";
29 description =
30 "C compiler, assembler and linker environment for the production of 8086 executables";
31 license = lib.licenses.gpl2Plus;
32 maintainers = [ lib.maintainers.AndersonTorres ];
33 platforms = lib.platforms.linux;
34 };
35})