summaryrefslogtreecommitdiff
path: root/home/codeium.nix
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-10-06 23:10:55 +0200
committerMike Vink <mike1994vink@gmail.com>2023-10-06 23:10:55 +0200
commitcfaef26e8718916adcc68fbfb63b15f2389b2cd2 (patch)
tree3989af4514d31d0a5cb89e8b96d51210ad7bf152 /home/codeium.nix
parent654ec06ab6a885ea851c4cbf68d06a00b41b0e14 (diff)
move all the files
Diffstat (limited to 'home/codeium.nix')
-rw-r--r--home/codeium.nix58
1 files changed, 0 insertions, 58 deletions
diff --git a/home/codeium.nix b/home/codeium.nix
deleted file mode 100644
index f3841b3..0000000
--- a/home/codeium.nix
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- ...
-}: let
- codeium = with pkgs; stdenv.mkDerivation rec {
- pname = "codeium";
- version = "1.1.39";
-
- ls-sha = "c8fda9657259bb7f3d432c1b558db921db4257aa";
-
- src = fetchurl {
- url = "https://github.com/Exafunction/codeium/releases/download/language-server-v${version}/language_server_linux_x64.gz";
- sha256 = "sha256-LA1VVW4X30a8UD9aDUCTmBKVXM7G0WE7dSsZ73TaaVo=";
- };
-
- nativeBuildInputs = [
- autoPatchelfHook
- ];
-
- sourceRoot = ".";
-
- unpackPhase = ''
- cp $src language_server_linux_x64.gz
- gzip -d language_server_linux_x64.gz
- '';
-
- installPhase = ''
- install -m755 -D language_server_linux_x64 $out
- '';
-
- preFixup = ''
- patchelf \
- --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
- $out
- '';
-
- meta = with lib; {
- homepage = "https://www.codeium.com/";
- description = "Codeium language server";
- platforms = platforms.linux;
- };
- };
-in {
- home.activation = {
- # links codeium into place
- codium-symlink = inputs.home-manager.lib.hm.dag.entryAfter ["writeBoundary"] ''
- CODEIUM_TARGET="${config.home.homeDirectory}/.codeium/bin/c8fda9657259bb7f3d432c1b558db921db4257aa"
- if [ -L $CODEIUM_TARGET ] && [ -e $CODEIUM_TARGET ]; then
- $DRY_RUN_CMD echo "codeium linked"
- else
- mkdir -p $CODEIUM_TARGET
- $DRY_RUN_CMD ln -sf ${codeium} "$CODEIUM_TARGET/language_server_linux_x64"
- fi
- '';
- };
-}