no more direnv-vscode for now

This commit is contained in:
notgne2 2022-04-15 17:18:48 -07:00
parent 0ef90a9fd5
commit 7e45b9b5e1
Signed by: notgne2
GPG Key ID: 5CE0A245A2DAC84A
2 changed files with 0 additions and 34 deletions

View File

@ -54,10 +54,6 @@
url = "github:migueravila/SimpleFox";
flake = false;
};
direnv-vscode = {
inputs.nixpkgs.follows = "nixpkgs";
url = github:direnv/direnv-vscode/nix/npm;
};
npmlock2nix = {
url = github:nix-community/npmlock2nix;
flake = false;

View File

@ -73,36 +73,6 @@ in
justusadam.language-haskell
dhall.dhall-lang
dhall.vscode-dhall-lsp-server
(
let
attrs = lib.importJSON "${inputs.direnv-vscode}/package.json";
inherit (attrs) name version;
vsix = "${name}-${version}.vsix";
npm = pkgs.callPackage "${inputs.npmlock2nix}/internal.nix" { nodejs = pkgs.nodejs-14_x; };
node_modules_attrs = {
buildInputs =
if pkgs.stdenv.isDarwin
then [ pkgs.python3 ]
else [ pkgs.python3 pkgs.pkg-config pkgs.libsecret ];
};
wtf =
npm.build {
src = "${inputs.direnv-vscode}";
inherit node_modules_attrs;
buildCommands = [ "echo y | npm run package" ];
installPhase = ''
mv ${vsix} $out
'';
};
in
pkgs.runCommand "wtf-fix-direnv-vscode" { } ''
mkdir -p $out/share/vscode/extensions
mkdir $out/ext
cd $out/ext
${pkgs.unzip}/bin/unzip ${wtf}
mv extension $out/share/vscode/extensions/vscode
''
)
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
name = "rust";