| 20 Aug 2021 |
Gytis Ivaskevicius | Also i feel like trivial-builders.nix is somewhat similar. I feel like thats something that Nix itself should be able to do 🤔 | 13:24:09 |
Las | In reply to @gytis-ivaskevicius:matrix.org Anyways, what i do care about is why Nix is not able to do such things on its own, why cant Nix take care of git fetching or more importantly tarball fetch for our packages? 🤔 ? | 17:39:07 |
Las | It already does this? | 17:39:09 |
Gytis Ivaskevicius | Do you think it is a good practice to use builtins.fetchTarball for our derivation sources? | 17:40:42 |
Gytis Ivaskevicius | (just making sure, gathering oppinions) | 17:40:55 |
pamplemousse | Redacted or Malformed Event | 18:07:03 |
pamplemousse | Redacted or Malformed Event | 18:08:28 |
sterni | In reply to @gytis-ivaskevicius:matrix.org Do you think it is a good practice to use builtins.fetchTarball for our derivation sources? using fetchTarball for our derivation sources would mean that (worst case) a hydra eval takes as long as fetching changed source tarball. using fixed output derivations pushes the fetching to the build time and is thus preferrable | 21:51:51 |
Gytis Ivaskevicius | Yep, exactly | 21:53:13 |
sterni | In reply to @gytis-ivaskevicius:matrix.org I feel like one of us misunderstands something. You said "that is the wrong thinking" but then basically agreed with me 🤔 You were saying that it should be avoided for normal usecase - I disagree: fetching a repo used at eval time (something like naersk) is a normal use case | 21:53:49 |
Gytis Ivaskevicius | Now back to the question - What is the reason of not having the one that could be used for derivations (aka the one that returns a derivation) | 21:54:17 |
sterni | In reply to @gytis-ivaskevicius:matrix.org Also i feel like trivial-builders.nix is somewhat similar. I feel like thats something that Nix itself should be able to do 🤔 in the end these are just wrappers around derivation and add nothing new and they mostly exist to make very simple derivation integrate well with our mkDerivation infrastructure | 21:54:51 |
Gytis Ivaskevicius | In reply to @sternenseemann:systemli.org You were saying that it should be avoided for normal usecase - I disagree: fetching a repo used at eval time (something like naersk) is a normal use case yeah, i kinda forgot about cases like that, have been on flakes for quite sometime | 21:54:56 |
sterni | In reply to @gytis-ivaskevicius:matrix.org Now back to the question - What is the reason of not having the one that could be used for derivations (aka the one that returns a derivation) I'd say simplicity and flexibility, but it has been proposed before to change this: https://github.com/NixOS/nix/issues/2270 | 21:55:32 |
Gytis Ivaskevicius | In reply to @sternenseemann:systemli.org in the end these are just wrappers around derivation and add nothing new and they mostly exist to make very simple derivation integrate well with our mkDerivation infrastructure I would expect bit of a speed up due to amount of it is being used | 21:56:01 |
Gytis Ivaskevicius | (to be fair one could just create a custom binary for this) | 21:56:23 |
Gytis Ivaskevicius | Also I am not sure about simplicity, its like "bit of code in nix" vs "loats of code in nixpkgs" | 21:57:18 |
sterni | simplicity is not about code size and less code in nix is always good | 21:58:22 |
sterni | it'd mostly be having another special thing in nix | 21:58:32 |
sterni | whereas derivations and fixed-output derivations are quite simple concepts that can be used for all sorts of things | 21:58:56 |
Gytis Ivaskevicius | Yeah, its simple and flexible | 22:06:36 |
Gytis Ivaskevicius | I was thinking more along the lines of in addition to what we currently have add few more derivation builders | 22:07:09 |
tomberek | random comment; in the course of doing Summer of Nix, it has been extremely helpful to be able to help people with issues due to the effectiveness of "show me the flake.nix repo and we can reproduce the problem". Thanks niksnut ! | 22:46:36 |
| 21 Aug 2021 |
| sterni changed their display name from sterni (he/him) to sterni[m]. | 22:21:27 |
| sterni changed their display name from sterni[m] to sterni. | 22:21:41 |
| 22 Aug 2021 |
tomberek | In a flake, nixConfig.bash-prompt works when entering a nix develop, but not for nix shell. Is this on purpose? I've noticed some issues where people end up in nested nix develop or nix shell which ends up causing confusion. Is this a bug? thoughts? | 05:57:38 |
tomberek | I'm trying to figure out why/how bash-prompt affects nix develop, but not nix shell. I'm not finding the right way to access the right settings objects in run.cc
I thought that I can add a bit around here: https://github.com/NixOS/nix/blob/master/src/nix/run.cc#L122
that would modify PS1 in the same way as: https://github.com/NixOS/nix/blob/master/src/nix/develop.cc#L467-L471 | 08:30:54 |
| siraben changed their display name from siraben (he/him) to siraben. | 16:16:29 |
tomberek | for ^^^^: https://github.com/NixOS/nix/pull/5162 | 20:16:13 |
| 23 Aug 2021 |
abathur | Redacted or Malformed Event | 19:56:49 |