about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/kc/kconfig-frontends/package.nix
blob: 954ca475a75d3d16973ae02e8c91f6de96e317a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{ lib
, stdenv
, fetchurl
, bash
, bison
, flex
, gperf
, ncurses
, pkg-config
, python3
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "kconfig-frontends";
  version = "4.11.0.1";

  src = fetchurl {
    url = "https://bitbucket.org/nuttx/tools/downloads/kconfig-frontends-${finalAttrs.version}.tar.bz2";
    hash = "sha256-yxg4z+Lwl7oJyt4n1HUncg1bKeK3FcCpbDPQtqELqxM=";
  };

  patches = [
    # This patch is a fixed file, there is no need to normalize it
    (fetchurl {
      url = "https://bitbucket.org/nuttx/tools/downloads/gperf3.1_kconfig_id_lookup.patch";
      hash = "sha256-cqAWjRnMA/fJ8wnEfUxoPEW0hIJY/mprE6/TQMY6NPI=";
    })
  ];

  outputs = [ "out" "lib" "dev" "doc" ];

  nativeBuildInputs = [
    bison
    flex
    gperf
    pkg-config
  ];

  buildInputs = [
    bash
    ncurses
    python3
  ];

  strictDeps = true;

  configureFlags = [
    "--enable-frontends=conf,mconf,nconf"
  ];

  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=format-security";

  meta = {
    description = "Out of Linux tree packaging of the kconfig infrastructure";
    longDescription = ''
      Configuration language and system for the Linux kernel and other
      projects. Features simple syntax and grammar, limited yet adequate option
      types, simple organization of options, and direct and reverse
      dependencies.
    '';
    homepage = "https://bitbucket.org/nuttx/tools/";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ AndersonTorres ];
    platforms = lib.platforms.unix;
  };
})