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
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
src = ./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;
|
2024-01-13 08:15:51 +00:00
|
|
|
mainProgram = "nixos-option";
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2023-07-15 17:15:38 +00:00
|
|
|
inherit (nix.meta) platforms;
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
}
|