From 2b51693bf94a7c3f3d4d7f9868b12d5e0566b2b1 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Thu, 20 Jun 2024 14:42:57 +0200 Subject: [PATCH] lexical: remove from overlay --- .forgejo/workflows/build.yml | 8 ------ flake.nix | 1 - packages/lexical.nix | 49 ------------------------------------ 3 files changed, 58 deletions(-) delete mode 100644 packages/lexical.nix diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index d59e77b..093fc99 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -38,10 +38,6 @@ jobs: run: | nix build '.#headscale-ui' attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$') - - name: Build lexical - run: | - nix build '.#lexical' - attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$') - name: Build q run: | nix build '.#q' @@ -78,10 +74,6 @@ jobs: run: | nix build '.#fennel-ls' attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$') - - name: Build lexical - run: | - nix build '.#lexical' - attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$') - name: Build q run: | nix build '.#q' diff --git a/flake.nix b/flake.nix index 417da33..a3f6752 100644 --- a/flake.nix +++ b/flake.nix @@ -38,7 +38,6 @@ discord-downloader-go = callPackage ./packages/discord-downloader-go.nix { }; fennel-ls = callPackage ./packages/fennel-ls.nix { }; headscale-ui = callPackage ./packages/headscale-ui.nix { }; - lexical = callPackage ./packages/lexical.nix { }; q = callPackage ./packages/q.nix { }; redlib = callPackage ./packages/redlib.nix { }; rexit = callPackage ./packages/rexit.nix { }; diff --git a/packages/lexical.nix b/packages/lexical.nix deleted file mode 100644 index 4d51334..0000000 --- a/packages/lexical.nix +++ /dev/null @@ -1,49 +0,0 @@ -{ pkgs, lib }: - -let - erlang = pkgs.beam_nox.interpreters.erlang_26; - beamPackages = pkgs.beam_nox.packagesWith erlang; -in -beamPackages.mixRelease rec { - pname = "lexical"; - version = "0.6.0"; - - src = pkgs.fetchFromGitHub { - owner = "lexical-lsp"; - repo = "lexical"; - rev = "v${version}"; - hash = "sha256-20qfzYioR1PhA0ZBcft0nhcwxB95pw5L9zoPLWd7ZIE="; - }; - - mixFodDeps = beamPackages.fetchMixDeps { - pname = "mix-deps-${pname}"; - inherit src version; - sha256 = "sha256-lcLANYM18NXvDL/T7eMm+0XDhXI7qo+GOJfxROUoTlo="; - }; - - NAMESPACE = "1"; - - installPhase = '' - runHook preInstall - - mix do compile --no-deps-check, package --path "$out" - - runHook postInstall - ''; - - preFixup = - let - activate_version_manager = pkgs.writeScript "activate_version_manager.sh" '' - true - ''; - in - '' - substituteInPlace "$out/bin/start_lexical.sh" --replace 'elixir_command=' 'elixir_command="${beamPackages.elixir}/bin/"' - rm "$out/bin/activate_version_manager.sh" - ln -s ${activate_version_manager} "$out/bin/activate_version_manager.sh" - - mv "$out/bin" "$out/binsh" - - makeWrapper "$out/binsh/start_lexical.sh" "$out/bin/lexical" --set RELEASE_COOKIE lexical - ''; -}