!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

892 Members
179 Servers

Load older messages


SenderMessageTime
27 Nov 2021
@cw:kernelpanic.cafeChuck Winter joined the room.02:51:37
28 Nov 2021
@brendanzab:matrix.orgbrendanzab joined the room.04:54:23
29 Nov 2021
@artemist:artem.istartemist 🏳️‍⚧️Is there a way to determine if you're in a nix shell with the new flakes `nix shell` command?05:12:51
@artemist:artem.istartemist 🏳️‍⚧️The old one had $IN_NIX_SHELL05:13:14
@tomberek:matrix.orgtomberek artemist 🏳️‍⚧️: some discussion: https://github.com/NixOS/nix/issues/3862 05:23:10
@cdepillabout:matrix.orgcdepillabout
In reply to @artemist:artem.ist
Is there a way to determine if you're in a nix shell with the new flakes `nix shell` command?
I've been using this workaround, and it seems to work well: https://github.com/NixOS/nix/issues/3862#issuecomment-707320241. I haven't seen any weird false-positives or anything.
05:36:38
@artemist:artem.istartemist 🏳️‍⚧️I'll try that. I used to get some weird things in the PATH because of alacritty but that seems fixed now05:37:35
30 Nov 2021
@figsoda:matrix.orgfigsodaimage.png
Download image.png
01:14:15
@figsoda:matrix.orgfigsodaI have a fish function to do stuff like this01:14:22
@figsoda:matrix.orgfigsoda
      function w
        if set -q with_pkgs
          set with_pkgs ", $with_pkgs"
        end
        set -lx with_pkgs "$argv$with_pkgs"
        IN_NIX_SHELL=impure name="with: $with_pkgs" \
          ${config.nix.package}/bin/nix shell nixpkgs#$argv
      end
01:15:43
@figsoda:matrix.orgfigsoda *
function w
  if set -q with_pkgs
    set with_pkgs ", $with_pkgs"
  end
  set -lx with_pkgs "$argv$with_pkgs"
  IN_NIX_SHELL=impure name="with: $with_pkgs" \
    ${config.nix.package}/bin/nix shell nixpkgs#$argv
end
01:16:07
3 Dec 2021
@pgronkievitz:matrix.orgPatryk Gronkiewicz joined the room.12:59:12
@cafkafk:matrix.orgcafkafk changed their display name from cafkafk to Cina.14:41:28
@cafkafk:matrix.orgcafkafk changed their display name from Cina to cafkafk.14:41:40
@teevorian:matrix.orgSven Heyll joined the room.18:19:36
@teevorian:matrix.orgSven Heyll Hi there :) I just have a quick question, is there a way to "keep" a broken nix build ? 18:20:34
@teevorian:matrix.orgSven Heyll * Hi there :) I just have a quick question, is there a way to "keep" a broken nix build ? As was possible before using the -K flag IIRC? 18:20:59
@moritz.hedtke:matrix.orgmoritz.hedtke
In reply to @teevorian:matrix.org
Hi there :) I just have a quick question, is there a way to "keep" a broken nix build ? As was possible before using the -K flag IIRC?
--keep-failed afaik
22:21:42
4 Dec 2021
@jtojnar:matrix.orgJan Tojnar joined the room.05:36:49
5 Dec 2021
@andi:kack.itandi-So, how do I write a flake that doesn't rebuild all the packages that have their source in the same repo (root) whenever I change a whitespace in my flake.nix? Is filterSource compatible/supported with flakes?02:28:40
@andi:kack.itandi- Why is nix eval --raw .#checks.x86_64-linux.my-build not giving me a drv path but a build result instead? Not passing --raw yields in fetchurl complaining about a meta parameter... 02:45:59
@tomberek:matrix.orgtomberek I’ve been trying to improve the filterSource,path,etc stuff. I’ve lost track of exactly where we are. Can you try on latest? Another approach is to use an “external flake” where the flake is acting on a remote input source code. This is another way to cut the impact of white space. 03:14:35
@balsoft:balsoft.rubalsoft
In reply to @andi:kack.it
Why is nix eval --raw .#checks.x86_64-linux.my-build not giving me a drv path but a build result instead? Not passing --raw yields in fetchurl complaining about a meta parameter...
You want to do nix eval --raw .#checks.x86_64-linux.my-build.drvPath (or maybe even nix show-derivation .#checks.x86_64-linux.my-build ?)
09:03:57
@andi:kack.itandi-But how is that different from `nox build` then?10:19:55
@balsoft:balsoft.rubalsoft
In reply to @andi:kack.it
But how is that different from `nox build` then?
nix eval doesnt' build the path
10:41:21
@balsoft:balsoft.rubalsoftAnd, well, it can evaluate arbitrary stuff and not just derivations10:41:35
@balsoft:balsoft.rubalsoftRedacted or Malformed Event11:56:32
@andi:kack.itandi- Whats the equivalent of nix-instantiate for flakes? I want to debug a build and looking at the derivation is a common first step for me. I can't find a way to get the drvPath without accessing e.g. the attribute. 14:31:26
@andi:kack.itandi-
In reply to @tomberek:matrix.org
I’ve been trying to improve the filterSource,path,etc stuff. I’ve lost track of exactly where we are. Can you try on latest? Another approach is to use an “external flake” where the flake is acting on a remote input source code. This is another way to cut the impact of white space.
I did a massively recursive flake experiment like that a year ago. A single repo with a few hundred nested folders. For each of those folders they had a flake.nix importing stuff from their child folders. In the end I had a copy of the entire repo for every flake in the repo in the store. Not exactly great.
14:45:50
6 Dec 2021
@balsoft:balsoft.rubalsoft
In reply to @andi:kack.it
Whats the equivalent of nix-instantiate for flakes? I want to debug a build and looking at the derivation is a common first step for me. I can't find a way to get the drvPath without accessing e.g. the attribute.
nix eval
08:22:59

Show newer messages


Back to Room ListRoom Version: 6