25 Jul 2024 |
| Emma [it/its] ⚡️ left the room. | 17:32:05 |
| heywoodlh set a profile picture. | 18:47:40 |
| @setunset:matrix.org left the room. | 20:00:29 |
26 Jul 2024 |
| upidapi joined the room. | 00:57:40 |
Gaétan Lepage | I have no idea why I don't know this, but how to achieve
a = [x y] ++ (mkIf condition [z]);
?
This snippet is wrong | 06:07:31 |
Gaétan Lepage | Of course, I could use optional but, this is not evaluated at the same stage as mkIf is | 06:08:02 |
Gaétan Lepage | Or maybe, there is no nicer solution than mkMerge | 06:10:47 |
Tranquil Ity | I feel like, since that is not about the Nix language but rather about nixpkgs libraries, wouldn't that Q be better answerable elsewhere? | 06:19:06 |
Gaétan Lepage | Oh sure ! | 06:28:51 |
| lnlsn joined the room. | 13:48:32 |
infinisil | Tranquil Ity: Gaétan Lepage: There's #modules:nixos.org where it would fit, but I'll just answer here :P | 14:14:14 |
infinisil | Gaétan Lepage: a = mkMerge [ [ x y ] (mkIf condition [ z ]) ] | 14:14:42 |
| Picnoir joined the room. | 15:21:36 |
Gaétan Lepage | Ok thank you infinisil ! | 15:30:51 |
| Dennis joined the room. | 16:50:46 |
mr-qubo | I want to fix issue in nixpkgs. I have a local git repo with changes. How can I build my nixos configuration with this local nixpkgs to test the changes? I'm using channels. | 17:04:38 |
mr-qubo | I've got it NIX_PATH=nixpkgs=/home/nix/nixpkgs:$NIX_PATH nixos-rebuild boot . | 17:42:38 |
mr-qubo | Oh, sorry, wrong room. | 17:43:48 |
mr-qubo | * Oh, sorry, I've just noticed it's wrong room. | 17:43:55 |
27 Jul 2024 |
| valconius joined the room. | 00:46:22 |
| aetaric joined the room. | 06:56:20 |
| aetaric set a profile picture. | 07:04:10 |
| bumperboat left the room. | 11:58:44 |
rendakuenthusiast⚡️ | why doesn't string interpolation work with integers? | 22:40:20 |
rendakuenthusiast⚡️ | having to manually call (toString port-number) is kinda inconveneint | 22:40:38 |
Tranquil Ity | In reply to @test-user:c.imperishable.name why doesn't string interpolation work with integers? What would you want it to do ? JavaScript? | 22:41:14 |
rendakuenthusiast⚡️ | basically have the "string-${variable}syntax automatically call toString` if necessary | 22:41:37 |
rendakuenthusiast⚡️ | which is what many languages with string interpolation syntax do | 22:41:51 |
rendakuenthusiast⚡️ | * basically have the "string-${variable}" syntax automatically calltoString if necessary | 22:42:10 |
Matt Sturgeon | There's some precedent for this already: paths and derivations are stringified when used with string interpolation.
AFAIK most languages that have string formatting and/or string interpolation automatically stringify non-string values?
I get why you may want concatenation to be explicit about the type, but interpolation feels different 🤔 | 22:46:21 |