From 5a6ff19e7a7db39b033833eb7f11b219151f34f8 Mon Sep 17 00:00:00 2001 From: Pyrox Date: Sun, 30 Jun 2024 17:36:12 -0400 Subject: [PATCH] move some packages --- .../doc-locations-json/default.nix | 8 ++------ .../lib-function-docs.nix => packages/lib-doc/default.nix | 5 ++--- {assets => packages/manual-assets/assets}/aux-logo.svg | 0 .../manual-assets/default.nix | 2 +- 4 files changed, 5 insertions(+), 10 deletions(-) rename nixpkgs-doc/doc-support/lib-function-locations.nix => packages/doc-locations-json/default.nix (94%) rename nixpkgs-doc/doc-support/lib-function-docs.nix => packages/lib-doc/default.nix (77%) rename {assets => packages/manual-assets/assets}/aux-logo.svg (100%) rename nixpkgs-doc/manual-assets.nix => packages/manual-assets/default.nix (90%) diff --git a/nixpkgs-doc/doc-support/lib-function-locations.nix b/packages/doc-locations-json/default.nix similarity index 94% rename from nixpkgs-doc/doc-support/lib-function-locations.nix rename to packages/doc-locations-json/default.nix index 4fff40f..4565376 100644 --- a/nixpkgs-doc/doc-support/lib-function-locations.nix +++ b/packages/doc-locations-json/default.nix @@ -1,10 +1,6 @@ -{ - pkgs, - nixpkgs ? { }, - libsets, -}: +{ pkgs, libsets }: let - revision = pkgs.lib.trivial.revisionWithDefault (nixpkgs.rev or "master"); + revision = pkgs.lib.trivial.revisionWithDefault (pkgs.rev or "master"); libDefPos = prefix: set: diff --git a/nixpkgs-doc/doc-support/lib-function-docs.nix b/packages/lib-doc/default.nix similarity index 77% rename from nixpkgs-doc/doc-support/lib-function-docs.nix rename to packages/lib-doc/default.nix index 90e4b97..e79d71a 100644 --- a/nixpkgs-doc/doc-support/lib-function-docs.nix +++ b/packages/lib-doc/default.nix @@ -1,7 +1,6 @@ # Generates the documentation for library functions via nixdoc. { pkgs, - spkgs, libsets, inputs, }: @@ -22,9 +21,9 @@ stdenv.mkDerivation { description=$3 # TODO: wrap lib.$name in , make nixdoc not escape it if [[ -e "../lib/$baseName.nix" ]]; then - nixdoc -c "$name" -d "lib.$name: $description" -l ${spkgs.doc-locations-json} -f "$baseName.nix" > "$out/$name.md" + nixdoc -c "$name" -d "lib.$name: $description" -l ${pkgs.doc-locations-json} -f "$baseName.nix" > "$out/$name.md" else - nixdoc -c "$name" -d "lib.$name: $description" -l ${spkgs.doc-locations-json} -f "$baseName/default.nix" > "$out/$name.md" + nixdoc -c "$name" -d "lib.$name: $description" -l ${pkgs.doc-locations-json} -f "$baseName/default.nix" > "$out/$name.md" fi echo "$out/$name.md" >> "$out/index.md" } diff --git a/assets/aux-logo.svg b/packages/manual-assets/assets/aux-logo.svg similarity index 100% rename from assets/aux-logo.svg rename to packages/manual-assets/assets/aux-logo.svg diff --git a/nixpkgs-doc/manual-assets.nix b/packages/manual-assets/default.nix similarity index 90% rename from nixpkgs-doc/manual-assets.nix rename to packages/manual-assets/default.nix index 063380f..c551e9c 100644 --- a/nixpkgs-doc/manual-assets.nix +++ b/packages/manual-assets/default.nix @@ -3,7 +3,7 @@ stdenvNoCC.mkDerivation { pname = "aux-manual-assets"; version = "0.0.0"; - src = ../assets; + src = ./assets; phases = "installPhase";