nixos-option: Include manual page in the package

This commit is contained in:
Doron Behar 2023-08-12 12:56:33 +03:00
parent 68e6cc5831
commit 9d0bb6e67a
2 changed files with 23 additions and 4 deletions

View file

@ -1,14 +1,33 @@
{ lib, stdenv, boost, cmake, pkg-config, 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 ];
buildInputs = [ boost nix ];
cmakeFlags = [ "-DNIX_DEV_INCLUDEPATH=${nix.dev}/include/nix" ];
nativeBuildInputs = [
cmake
pkg-config
installShellFiles
];
buildInputs = [
boost
nix
];
cmakeFlags = [
"-DNIX_DEV_INCLUDEPATH=${nix.dev}/include/nix"
];
meta = with lib; {
license = licenses.lgpl2Plus;