Skip to content

Commit

Permalink
cleanup: nixdoc patch landed in nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Janik-Haag committed Apr 17, 2024
1 parent 92f40bb commit 6bb53b3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions docs/utils.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,14 @@ let
"extend"
]
);
patchedNixdoc = nixdoc.overrideAttrs (o: {
patches = (o.patches or [ ]) ++ [
(fetchpatch {
url = "https://github.com/nix-community/nixdoc/commit/b4480a2143464d8238402514dd35c78b6f9b9928.patch";
hash = "sha256-WZ/tA2q+u4h7G1gUn2nkAutsjYHNxqXwjqAKpxYTf7k=";
})
];
});
in
runCommand "utils" { } ''
mkdir -p $out
cp ${./utils.md} $out/index.md
${lib.concatLines (
builtins.map (
name:
"${lib.getExe' patchedNixdoc "nixdoc"} --file ${../utils/${name}.nix} --prefix 'utils' --category '${name}' --description '${name}' > $out/${name}.md"
"${lib.getExe' nixdoc "nixdoc"} --file ${../utils/${name}.nix} --prefix 'utils' --category '${name}' --description '${name}' > $out/${name}.md"
) utilNames
)}
''

0 comments on commit 6bb53b3

Please sign in to comment.