helix-gpt: remove (#487461)
This commit is contained in:
@@ -1,78 +0,0 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
bun,
|
||||
makeBinaryWrapper,
|
||||
}:
|
||||
let
|
||||
pin = lib.importJSON ./pin.json;
|
||||
src = fetchFromGitHub {
|
||||
owner = "leona";
|
||||
repo = "helix-gpt";
|
||||
rev = pin.version;
|
||||
hash = pin.srcHash;
|
||||
};
|
||||
node_modules = stdenv.mkDerivation {
|
||||
pname = "helix-gpt-node_modules";
|
||||
inherit src;
|
||||
version = pin.version;
|
||||
impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ [
|
||||
"GIT_PROXY_COMMAND"
|
||||
"SOCKS_SERVER"
|
||||
];
|
||||
nativeBuildInputs = [ bun ];
|
||||
dontConfigure = true;
|
||||
buildPhase = ''
|
||||
bun install --no-progress --frozen-lockfile
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out/node_modules
|
||||
|
||||
cp -R ./node_modules $out
|
||||
'';
|
||||
outputHash = pin."${stdenv.system}";
|
||||
outputHashAlgo = "sha256";
|
||||
outputHashMode = "recursive";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "helix-gpt";
|
||||
version = pin.version;
|
||||
inherit src;
|
||||
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
|
||||
ln -s ${node_modules}/node_modules $out
|
||||
cp -R ./* $out
|
||||
|
||||
# bun is referenced naked in the package.json generated script
|
||||
makeBinaryWrapper ${bun}/bin/bun $out/bin/helix-gpt \
|
||||
--prefix PATH : ${lib.makeBinPath [ bun ]} \
|
||||
--add-flags "run --prefer-offline --no-install --cwd $out ./src/app.ts"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/leona/helix-gpt";
|
||||
changelog = "https://github.com/leona/helix-gpt/releases/tag/${src.rev}";
|
||||
description = "Code completion LSP for Helix with support for Copilot + OpenAI";
|
||||
mainProgram = "helix-gpt";
|
||||
maintainers = with lib.maintainers; [ happysalada ];
|
||||
license = with lib.licenses; [ mit ];
|
||||
platforms = [
|
||||
"x86_64-linux"
|
||||
"x86_64-darwin"
|
||||
"aarch64-darwin"
|
||||
"aarch64-linux"
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"version": "0.34",
|
||||
"srcHash": "sha256-F2E+B4kKLpX4g/iCv0i71hSx4xdV6fdkwksslELdZUQ=",
|
||||
"x86_64-linux": "sha256-V/h1tAoKo4fLlR/QmzZb7LpeIab2lmE792rQpWDdMXw=",
|
||||
"x86_64-darwin": "sha256-Pd/nC15uYjwZPvrIfcQRljAuGQiIBDAKSShB1C+eevY=",
|
||||
"aarch64-darwin": "sha256-Pd/nC15uYjwZPvrIfcQRljAuGQiIBDAKSShB1C+eevY=",
|
||||
"aarch64-linux": "sha256-V/h1tAoKo4fLlR/QmzZb7LpeIab2lmE792rQpWDdMXw="
|
||||
}
|
||||
@@ -841,6 +841,7 @@ mapAliases {
|
||||
gxneur = throw "'gxneur' has been removed due to lack of maintenance and reliance on gnome2 and 2to3."; # Added 2025-08-17
|
||||
hacpack = throw "hacpack has been removed from nixpkgs, as it has been taken down upstream"; # Added 2025-09-26
|
||||
harmony-music = throw "harmony-music is unmaintained and has been removed"; # Added 2025-08-26
|
||||
helix-gpt = throw "helix-gpt was deprecated in January 2026 and has been since removed"; # Added 2026-02-05
|
||||
HentaiAtHome = throw "'HentaiAtHome' has been renamed to/replaced by 'hentai-at-home'"; # Converted to throw 2025-10-27
|
||||
hiawatha = throw "hiawatha has been removed, since it is no longer actively supported upstream, nor well maintained in nixpkgs"; # Added 2025-09-10
|
||||
hibernate = throw "hibernate has been removed due to lack of maintenance"; # Added 2025-09-10
|
||||
|
||||
Reference in New Issue
Block a user