2023-07-15 17:15:38 +00:00
|
|
|
{ lib, stdenv, boost, cmake, pkg-config, 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-07-15 17:15:38 +00:00
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
strictDeps = true;
|
2021-07-14 22:03:04 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ boost nix ];
|
2023-07-15 17:15:38 +00:00
|
|
|
cmakeFlags = [ "-DNIX_DEV_INCLUDEPATH=${nix.dev}/include/nix" ];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|