2023-08-22 20:05:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, boost
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, installShellFiles
|
|
|
|
, nix
|
|
|
|
}:
|
2021-07-14 22:03:04 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-07-14 22:03:04 +00:00
|
|
|
name = "nixos-option";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
src = ./.;
|
2023-08-22 20:05:09 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage ${./nixos-option.8}
|
|
|
|
'';
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
strictDeps = true;
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
installShellFiles
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
nix
|
|
|
|
];
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DNIX_DEV_INCLUDEPATH=${nix.dev}/include/nix"
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
meta = with lib; {
|
|
|
|
license = licenses.lgpl2Plus;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
inherit (nix.meta) platforms;
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
}
|