c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
37 lines
549 B
Nix
37 lines
549 B
Nix
{ lib
|
|
, stdenv
|
|
, boost
|
|
, cmake
|
|
, pkg-config
|
|
, installShellFiles
|
|
, nix
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nixos-option";
|
|
|
|
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;
|
|
maintainers = with maintainers; [ ];
|
|
inherit (nix.meta) platforms;
|
|
};
|
|
}
|