no more direnv-vscode for now
This commit is contained in:
parent
0ef90a9fd5
commit
7e45b9b5e1
@ -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;
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user