mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 12:06:01 +01:00
... and remove a few unused arguments. This adds pkg-config to a two or three packages that don't use it, but we shouldn't let that bother us. It's like our personal stdenv.
55 lines
1,013 B
Nix
55 lines
1,013 B
Nix
{ lib
|
|
, mkMesonDerivation
|
|
|
|
, doxygen
|
|
|
|
# Configuration Options
|
|
|
|
, version
|
|
}:
|
|
|
|
let
|
|
inherit (lib) fileset;
|
|
in
|
|
|
|
mkMesonDerivation (finalAttrs: {
|
|
pname = "nix-external-api-docs";
|
|
inherit version;
|
|
|
|
workDir = ./.;
|
|
fileset =
|
|
let
|
|
cpp = fileset.fileFilter (file: file.hasExt "cc" || file.hasExt "h");
|
|
in
|
|
fileset.unions [
|
|
./.version
|
|
../../.version
|
|
./meson.build
|
|
./doxygen.cfg.in
|
|
./README.md
|
|
# Source is not compiled, but still must be available for Doxygen
|
|
# to gather comments.
|
|
(cpp ../libexpr-c)
|
|
(cpp ../libstore-c)
|
|
(cpp ../libutil-c)
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
doxygen
|
|
];
|
|
|
|
preConfigure =
|
|
''
|
|
chmod u+w ./.version
|
|
echo ${finalAttrs.version} > ./.version
|
|
'';
|
|
|
|
postInstall = ''
|
|
mkdir -p ''${!outputDoc}/nix-support
|
|
echo "doc external-api-docs $out/share/doc/nix/external-api/html" >> ''${!outputDoc}/nix-support/hydra-build-products
|
|
'';
|
|
|
|
meta = {
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|