Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
39 lines
568 B
Nix
39 lines
568 B
Nix
{ 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 = [ ];
|
|
inherit (nix.meta) platforms;
|
|
};
|
|
}
|