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 = {
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
@ -122,14 +116,12 @@
let
json = self.lib.json args;
in
pkgs.runCommandLocal "${projectName}-docs"
{ nativeBuildInputs = [ ndg.packages.${pkgs.system}.ndg ]; }
''
ndg --verbose html --jobs $NIX_BUILD_CORES --title "${projectName}" \
--module-options "${json}" \
--generate-search \
--output-dir "$out"
'';
pkgs.runCommandLocal "${projectName}-docs" { nativeBuildInputs = [ pkgs.ndg ]; } ''
ndg --verbose html --jobs $NIX_BUILD_CORES --title "${projectName}" \
--module-options "${json}" \
--generate-search \
--output-dir "$out"
'';
};
};
}