add nixpkgs ndg, remove substituter

This commit is contained in:
atagen 2026-05-24 14:20:35 +10:00
parent 8a6aa53603
commit 4f5ab30ee5

View file

@ -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"
'';
}; };
}; };
} }