Comments (3)
Could be related to #1107
from devenv.
It still works fine with spaces for me.
from devenv.
The error you're seeing is coming from the bash rc script that's created by Nix. If you look through .direnv/flake-profile-<hash>.rc
, you'll notice that the shell variables are wrapped in single quotes. The script will break in places where your project's directory shows up in those variables.
I would suggest opening an issue with either https://github.com/NixOS/nix or https://github.com/NixOS/nixpkgs. I can't quite tell whose responsibility it is to sanitise the paths.
A simple repo flake.nix
that doesn't use direnv
or devenv
:
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }:
let
lib = nixpkgs.lib;
forAllSystems = lib.genAttrs ["x86_64-linux" "x86_64-darwin" "aarch64-darwin" "aarch64-linux"];
in
{
devShells = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
default = pkgs.mkShell {};
}
);
};
}
from devenv.
Related Issues (20)
- dotenv integration doesn't support non-root-level .env files HOT 2
- `processes down` doesn't stop processes HOT 2
- Cannot get version without writable directory
- Is there a way to modify pg_hba.conf from within the declaration? HOT 1
- `languages.python.package = pkgs.python310.withPackages (…)` does not work HOT 4
- Exposing haskell (cabal) executables in flake HOT 2
- Matplotlib Support HOT 1
- Rust components not available when rust targets are specified HOT 1
- error: opening lock file '/nix/var/nix/profiles/per-user/<local-user>/profile.lock': No such file or directory HOT 4
- IHP+Flake+Devenv up error opening sockets. HOT 3
- Best way to add sys dependencies of Python libraries? HOT 5
- direnv: Problems with imported nix file changes HOT 1
- Postgres Root User Issue HOT 3
- How to incorporate poetry self commands in an environment HOT 5
- Pyright, mypy not recognize poetry vens during pre-commit hook
- `devenv up` should attach to an existing process-compose server, if one exists HOT 1
- Cannot create shell with custom certificates HOT 3
- cannot import nix file from parent directory? HOT 2
- Difftastic build failed x86_64-darwin HOT 1
- allowUnfree not being imported via devenv.yaml imports HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devenv.