arrterian / nix-env-selector

Allows switch environment for Visual Studio Code using Nix Package Manager.
MIT License
220 stars 29 forks source link

Can't make my fhs env work #62

Open baronleonardo opened 2 years ago

baronleonardo commented 2 years ago

I have a nix shell like this

{pkgs ? import <nixpkgs> {} }:
(pkgs.buildFHSUserEnv
{
    name = "clang-env";
    targetPkgs = pkgs: (with pkgs; [
        vim
        python3
        python3Packages.six
        clang
        lldb
        zlib openssl.dev binutils which
        git
        source-code-pro
#        cantarell-fonts
#        dejavu_fonts
    ]);
    runScript = "bash";
}).env

but I had no success to make it run in vscode my settings.json

...
"nixEnvSelector.nixFile": "${workspaceRoot}/fhs.nix"
...
austinbutler commented 2 years ago

Possibly related: https://github.com/arrterian/nix-env-selector/issues/17