!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

902 Members
For people hacking on the Nix package manager itself189 Servers

Load older messages


SenderMessageTime
4 Jul 2021
@krey:matrix.orgKrey(part of file imported in configuration.nix)10:46:48
@balsoft:balsoft.rubalsoftI don't think this is the right chat16:02:43
5 Jul 2021
@manveru:matrix.orgmanveru TIL that nix print-dev-env breaks if you have an env variable with an @ inside of it in your devShell 08:13:57
@manveru:matrix.orgmanveru { outputs = { nixpkgs, ... }: { devShell.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.mkShell { FOO = "@"; }; }; } 08:21:25
@manveru:matrix.orgmanveru this seems like a regression, having @ as an env var value in nix-shell is fine 08:40:55
@manveru:matrix.orgmanveruwell, i verified that it's a bug in nix itself08:52:16
@manveru:matrix.orgmanveru
{
  outputs = { nixpkgs, ... }: {
    devShell.x86_64-linux = derivation {
      name = "test";
      builder = "${nixpkgs.legacyPackages.x86_64-linux.bash}/bin/bash";
      args = [
        (builtins.toFile "builder" ''
          set -exuo pipefail
          echo hier
          echo hi > $out
        '')
      ];
      outputs = [ "out" ];
      system = "x86_64-linux";
      FOO = "@";
    };
  };
}

08:52:21
@manveru:matrix.orgmanveruthis fails as well, so it doesn't rely on stdenv or mkShell08:52:32
@balsoft:balsoft.rubalsoft I remember there being a similar issue with " 08:52:40
@balsoft:balsoft.rubalsoft It broke nix develop for some packages 08:52:47
@manveru:matrix.orgmanveruhttps://github.com/NixOS/nix/blob/master/src/nix/develop.cc#L24108:58:55
@manveru:matrix.orgmanverui think that's the issue...08:59:00
@manveru:matrix.orgmanverusomehow that env var should have a quoted attribute that is set wrong09:00:20
@manveru:matrix.orgmanveru \ is also broken, it gets escaped as '\' 09:11:44
@manveru:matrix.orgmanveru % doesn't get escaped either... 09:12:50
@manveru:matrix.orgmanverufun stuff :)09:12:56
@manveru:matrix.orgmanveruhmm09:19:16
@manveru:matrix.orgmanverui think https://github.com/NixOS/nix/blob/master/src/nix/develop.cc#L60 might be wrong09:19:33
@manveru:matrix.orgmanveruthe double quote should be inside the second match, not the first...09:20:09
@manveru:matrix.orgmanverulet's give that a try09:20:15
@manveru:matrix.orgmanveruwell, that was a wrong assumption, but i have a fix anyway :)09:59:08
@manveru:matrix.orgmanveruhttps://github.com/NixOS/nix/pull/498310:10:02
@theophane:hufschmitt.netRegnat niksnut John Ericson I’ll have to skip today’s meeting, have a conflicting appointment 12:59:54
@niksnut:matrix.orgniksnut
In reply to @theophane:hufschmitt.net
niksnut John Ericson I’ll have to skip today’s meeting, have a conflicting appointment
Let's skip this week then
13:59:38
@Ericson2314:matrix.orgJohn EricsonOh good I lucked out, because we had a Monday holiday I forgot it mention15:41:54
@spacesbot:nixos.devspacesbot - keeps a log of public NixOS channels joined the room.18:43:11
@spacesbot:nixos.devspacesbot - keeps a log of public NixOS channels 19:00:02
6 Jul 2021
@manveru:matrix.orgmanveruhas anyone managed to do nix flake build offline within a nixos test?10:06:47
@nurelin:matrix.orgnurelin joined the room.11:42:15
@spacesbot:nixos.devspacesbot - keeps a log of public NixOS channels changed their display name from spacesbot to spacesbot - keeps a log of public NixOS channels.22:11:38

Show newer messages


Back to Room ListRoom Version: 6