Giter Site home page Giter Site logo

nix-eshell does not work about nix-mode HOT 2 OPEN

happyboy2k avatar happyboy2k commented on July 17, 2024
nix-eshell does not work

from nix-mode.

Comments (2)

RomeoV avatar RomeoV commented on July 17, 2024

I have a related problem.

My shell.nix file looks like this:

{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
  buildInputs = [
    pkgs.python311  # You can change this to the desired Python version
    pkgs.poetry
  ];
}

However, running nix-shell or nix-eshell pointed at this file, and just pressing Ret when asked for an attribute, yields

nix-instantiate: Error: nix-instantiate shell.nix failed to produce any output

and the paths are not loaded.

Assigning the shell to an attribute and loading that also doesn't work.

I am on emacs 29.1 and on the latest commit of nix-mode.

EDIT: Okay I found out it is because I am accessing the file through TRAMP and essentially execute the local call-process nix-instantiate) so it doesn't find the file. I'll see if I can fix that.

from nix-mode.

RomeoV avatar RomeoV commented on July 17, 2024

I made some progress by replacing several calls to call-process by process-file, which is essentially a drop-in replacement that also respects remote processes, and further running (add-to-list 'tramp-remote-path 'tramp-own-remote-path). However, it's still not fully working...

from nix-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.