Skip to content

Commit 7033f64

Browse files
authored
imp: sanitize devshell (derivation) name (#169)
- allow a little more creativity in devshell naming: - `numtide/devshell` -- `/` would have been illegal - `Bitte Cells` -- ` ` would have been illegal
1 parent 3552704 commit 7033f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/devshell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ in
297297

298298
# Use a naked derivation to limit the amount of noise passed to nix-shell.
299299
shell = mkNakedShell {
300-
name = cfg.name;
300+
name = strings.sanitizeDerivationName cfg.name;
301301
profile = cfg.package;
302302
passthru = {
303303
inherit config;

0 commit comments

Comments
 (0)