From 135d67c2eccac4bb446f5363e2d1fbba03254f51 Mon Sep 17 00:00:00 2001 From: Zhong Jianxin Date: Tue, 23 Apr 2024 19:06:41 +0800 Subject: [PATCH] jovian-documentation: Use pagefind from nixpkgs --- overlay.nix | 1 - pkgs/pagefind/default.nix | 32 -------------------------------- 2 files changed, 33 deletions(-) delete mode 100644 pkgs/pagefind/default.nix diff --git a/overlay.nix b/overlay.nix index 2b164953..77e672a0 100644 --- a/overlay.nix +++ b/overlay.nix @@ -60,7 +60,6 @@ rec { jovian-steam-protocol-handler = final.callPackage ./pkgs/jovian-steam-protocol-handler { }; jovian-documentation = final.callPackage ./support/docs { - pagefind = final.callPackage ./pkgs/pagefind { }; documentationPath = final.callPackage ( { runCommand }: diff --git a/pkgs/pagefind/default.nix b/pkgs/pagefind/default.nix deleted file mode 100644 index be3163e1..00000000 --- a/pkgs/pagefind/default.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ lib -, stdenv -, fetchurl -}: - -stdenv.mkDerivation { - pname = "pagefind"; - version = "0.12.0"; - - # Packaging is non-trivial due to missing Cargo.lock - # So, for now, use the statically built release. - src = fetchurl { - url = "https://github.com/CloudCannon/pagefind/releases/download/v0.12.0/pagefind_extended-v0.12.0-x86_64-unknown-linux-musl.tar.gz"; - hash = "sha256-IuQjjzwrP5Kz5jrWfT//0GR/qfJCwYYISCFoUfcWbpA="; - }; - - sourceRoot = "."; - - installPhase = '' - mkdir -vp $out/bin - ls -l - mv -v pagefind_extended $out/bin/pagefind - ''; - - meta = { - description = "Static low-bandwidth search at scale"; - homepage = "https://github.com/CloudCannon/pagefind"; - license = lib.licenses.mit; - platforms = [ "x86_64-linux" ]; - maintainers = []; - }; -}