about summary refs log tree commit diff
path: root/pkgs/tools/nix/nixos-option/default.nix
blob: 8c8b26e9ad475064c16e75268749511152b24c7a (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
{ lib
, stdenv
, boost
, cmake
, pkg-config
, installShellFiles
, nix
}:

stdenv.mkDerivation {
  name = "nixos-option";

  src = ./src;

  postInstall = ''
    installManPage ${./nixos-option.8}
  '';

  strictDeps = true;
  nativeBuildInputs = [
    cmake
    pkg-config
    installShellFiles
  ];
  buildInputs = [
    boost
    nix
  ];
  cmakeFlags = [
    "-DNIX_DEV_INCLUDEPATH=${nix.dev}/include/nix"
  ];

  meta = with lib; {
    license = licenses.lgpl2Plus;
    mainProgram = "nixos-option";
    maintainers = with maintainers; [ ];
    inherit (nix.meta) platforms;
  };
}