mirror of
https://git.atagen.co/atagen/unf.git
synced 2026-07-17 06:25:11 +08:00
add nixpkgs ndg, remove substituter
This commit is contained in:
parent
8a6aa53603
commit
4f5ab30ee5
1 changed files with 6 additions and 14 deletions
20
flake.nix
20
flake.nix
|
|
@ -1,12 +1,6 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
ndg.url = "github:feel-co/ndg";
|
|
||||||
};
|
|
||||||
|
|
||||||
nixConfig = {
|
|
||||||
substituters = [ "https://feel-co.cachix.org" ];
|
|
||||||
trusted-public-keys = [ "feel-co.cachix.org-1:nwEFNnwZvtl4KKSH5LDg+/+K7bV0vcs6faMHAJ6xx0w=" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# cheerfully lifted from nixos + hjem-rum doc gen
|
# cheerfully lifted from nixos + hjem-rum doc gen
|
||||||
|
|
@ -122,14 +116,12 @@
|
||||||
let
|
let
|
||||||
json = self.lib.json args;
|
json = self.lib.json args;
|
||||||
in
|
in
|
||||||
pkgs.runCommandLocal "${projectName}-docs"
|
pkgs.runCommandLocal "${projectName}-docs" { nativeBuildInputs = [ pkgs.ndg ]; } ''
|
||||||
{ nativeBuildInputs = [ ndg.packages.${pkgs.system}.ndg ]; }
|
ndg --verbose html --jobs $NIX_BUILD_CORES --title "${projectName}" \
|
||||||
''
|
--module-options "${json}" \
|
||||||
ndg --verbose html --jobs $NIX_BUILD_CORES --title "${projectName}" \
|
--generate-search \
|
||||||
--module-options "${json}" \
|
--output-dir "$out"
|
||||||
--generate-search \
|
'';
|
||||||
--output-dir "$out"
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue