1 { stdenv, lib, fetchurl, dev86, sharutils }:
3 stdenv.mkDerivation rec {
7 url = "https://www.joonet.de/lilo/ftp/sources/lilo-${version}.tar.gz";
8 hash = "sha256-4VjxneRWDJNevgUHwht5v/F2GLkjDYB2/oxf/5/b1bE=";
10 nativeBuildInputs = [ dev86 sharutils ];
12 # Workaround build failure on -fno-common toolchains:
13 # ld: identify.o:(.bss+0x0): multiple definition of `identify';
14 # common.o:(.bss+0x160): first defined here
15 env.NIX_CFLAGS_COMPILE = "-fcommon";
18 "DESTDIR=${placeholder "out"}"
25 homepage = "https://www.joonet.de/lilo/";
26 description = "Linux bootloader";
27 license = licenses.bsd3;
28 platforms = platforms.linux;
29 maintainers = with maintainers; [ kaction ];