base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / lilo / package.nix
blob0eb8d563373aec216dd96a1c72e06e377f92c2c3
1 { stdenv, lib, fetchurl, dev86, sharutils }:
3 stdenv.mkDerivation rec {
4   pname = "lilo";
5   version = "24.2";
6   src = fetchurl {
7     url = "https://www.joonet.de/lilo/ftp/sources/lilo-${version}.tar.gz";
8     hash = "sha256-4VjxneRWDJNevgUHwht5v/F2GLkjDYB2/oxf/5/b1bE=";
9   };
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";
17   makeFlags = [
18     "DESTDIR=${placeholder "out"}"
19     "SBIN_DIR=/bin"
20     "USRSBIN_DIR=/bin"
21     "MAN_DIR=/share/man"
22   ];
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   };