From ad3a0360de9e77482785bff8e3fff7e9d50688f9 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Thu, 1 Dec 2022 10:06:50 +0100 Subject: [PATCH] Include static docs website --- .github/workflows/build.yml | 1 + overlay.nix | 1 + packages.nix | 1 + packages/website-docs-nifoc-pw.nix | 25 +++++++++++++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 packages/website-docs-nifoc-pw.nix diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9d821cf..646b490 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,7 @@ jobs: - run: nix build '.#fennel-ls' - run: nix build '.#luarocks-jsregexp' - run: nix build '.#q' + - run: nix build '.#website-docs-nifoc-pw' build-x86_64-darwin: runs-on: macos-latest diff --git a/overlay.nix b/overlay.nix index 8fa892c..2f9d7ed 100644 --- a/overlay.nix +++ b/overlay.nix @@ -10,4 +10,5 @@ in inherit (custom) luarocks-jsregexp; inherit (custom) phantomjs; inherit (custom) q; + inherit (custom) website-docs-nifoc-pw; } diff --git a/packages.nix b/packages.nix index 3832b4d..5a6d161 100644 --- a/packages.nix +++ b/packages.nix @@ -7,4 +7,5 @@ luarocks-jsregexp = import ./packages/luarocks-jsregexp.nix { inherit system lib pkgs; }; phantomjs = import ./packages/phantomjs.nix { inherit system lib pkgs; }; q = import ./packages/q.nix { inherit system lib pkgs; }; + website-docs-nifoc-pw = import ./packages/website-docs-nifoc-pw.nix { inherit system lib pkgs; }; } diff --git a/packages/website-docs-nifoc-pw.nix b/packages/website-docs-nifoc-pw.nix new file mode 100644 index 0000000..2661e0d --- /dev/null +++ b/packages/website-docs-nifoc-pw.nix @@ -0,0 +1,25 @@ +{ system, lib, pkgs }: + +pkgs.stdenv.mkDerivation rec { + pname = "website-docs-nifoc-pw"; + version = "2021-08-30"; + + src = pkgs.fetchFromGitHub { + owner = "nifoc"; + repo = "nifoc.pw-docs"; + rev = "24034da912e3d7fddc447734ca4c9a5951a0fa32"; + sha256 = "sha256-GwVwbLUbxpFidOU1CTHFbYs/MscHpsqiYmnyvLtnYjM="; + fetchSubmodules = false; + }; + + installPhase = '' + mkdir $out + mv site $out/ + ''; + + meta = { + description = "Static documentation files for some older projects"; + homepage = "https://github.com/nifoc/nifoc.pw-docs"; + platforms = [ "x86_64-darwin" "aarch64-darwin" "aarch64-linux" "x86_64-linux" ]; + }; +}