at 24.11-pre 31 lines 885 B view raw
1{ stdenv, lib, fetchurl, dev86, sharutils }: 2 3stdenv.mkDerivation rec { 4 pname = "lilo"; 5 version = "24.2"; 6 src = fetchurl { 7 url = "https://www.joonet.de/lilo/ftp/sources/${pname}-${version}.tar.gz"; 8 hash = "sha256-4VjxneRWDJNevgUHwht5v/F2GLkjDYB2/oxf/5/b1bE="; 9 }; 10 nativeBuildInputs = [ dev86 sharutils ]; 11 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"; 16 17 makeFlags = [ 18 "DESTDIR=${placeholder "out"}" 19 "SBIN_DIR=/bin" 20 "USRSBIN_DIR=/bin" 21 "MAN_DIR=/share/man" 22 ]; 23 24 meta = with lib; { 25 homepage = "https://www.joonet.de/lilo/"; 26 description = "Linux bootloader"; 27 license = licenses.bsd3; 28 platforms = platforms.linux; 29 maintainers = with maintainers; [ kaction ]; 30 }; 31}