| 11 Aug 2024 |
qu4pk4 | Nix doesn't seem to be used much for supporting any version of lib, but the strictness and constraints feel like a good match for that use case. | 20:04:32 |
qu4pk4 | Especially, for research reproduceability. | 20:04:52 |
qu4pk4 | Another thing: installCheck phase is ran when doInstallCheck is set to true according to https://nixos.org/manual/nixpkgs/stable/#var-stdenv-doInstallCheck, but not when cross-compiling. I can't get my installCheck phase to run in a flake that uses flake-utils. Is the cross-compiling kicking in? | 20:13:20 |
qu4pk4 | I am building with nix build '#pkg.ver' therefore I am not really thinking I am cross-compiling. | 20:13:48 |
emily | In reply to @qu4pk4:matrix.org Is there a good reason, why it doesn't/cannot work? the schema forbids it. legacyPackages lets you put arbitrary data in, which is why Nixpkgs uses it | 20:15:37 |
tomberek | qu4pk4: Eelco is working on a flake-schemas effort to make supporting various schemas in the the top-level outputs. Regardless, you can place a "lib" wherever you wish. Nixpkgs itself places "lib" output into the top-level of the flake. | 22:29:56 |
| 12 Aug 2024 |
qu4pk4 | Thanks | 07:44:21 |
qu4pk4 | How to use passthru.tests for testing Flake package builds? My idea is to build static libraries and tests that the lib<name>.a indeed exists by compiling a simple source. | 07:45:44 |
qu4pk4 | But pkgs.runCommand used in https://nixos.org/manual/nixpkgs/stable/#var-meta-tests-nixos does not result in a derivation and therefore both nix run and nix build complain. | 07:46:46 |
qu4pk4 | Or are passthru.tests somehow ran automatically on nix bulid '.#<pkg>'? | 07:48:45 |
| @amiablechief:matrix.org left the room. | 11:34:31 |
| @kyub:matrix.org left the room. | 16:59:15 |
| 13 Aug 2024 |
| nat changed their profile picture. | 15:06:42 |
| nat changed their display name from nat ⋆ ˚。⋆୨୧˚ to nat. | 15:06:45 |
| jul1u5 changed their display name from Julius Marozas to jul1u5. | 21:58:50 |
| 14 Aug 2024 |
| @peddie:matrix.org changed their profile picture. | 00:34:49 |
| Frank Geusch changed their display name from Master Fudge to Frank Geusch. | 13:25:41 |
| 15 Aug 2024 |
Šimon Brandner | Hi, I am developing a pam module. How would I test the Nix module (and therefore the Pam module) without having to rebuild my system everytime I make a change and want to test it? Is there something clever I can do? | 14:04:48 |
Benedikt | You could use the nixos VM test (see the manual and the wiki about that) | 14:17:34 |
Benedikt | It could be hard to set the test up though (depending on what part of pam you want to test) | 14:18:25 |
Šimon Brandner | It does sound rather complex but I'll at least have a look | 14:28:58 |
Šimon Brandner | Ok, a simpler question: how would I add a new PAM rule in my NixOS config? | 14:40:36 |
Benedikt | I'm not so familiar with pam, but its probably listed in the option search? | 19:01:47 |
| 16 Aug 2024 |
| @glaringweakness:nope.chat left the room. | 02:05:58 |
| 17 Aug 2024 |
| wdiaz joined the room. | 04:15:46 |
| isabel left the room. | 12:36:27 |
qu4pk4 | I am having troubles building Java application with gradle2nix that needs sources from one of the submodules. The nix version is 2.42.2, which is after the .?submodules=1 being needed. I have read this https://github.com/NixOS/nix/pull/7862#issuecomment-1908577578 and what I think is going on is that the submodules aren't being needed and therefore aren't fetched (because they are fetched lazily). What is the canonical way to force them to evaluate? | 15:08:22 |
qu4pk4 | * I am having troubles building Java application with gradle2nix that needs sources from one of the submodules. The nix version is 2.42.2, which is after the .?submodules=1 being needed. I have read this https://github.com/NixOS/nix/pull/7862#issuecomment-1908577578 and what I think is going on is that the submodules aren't being needed by the flake directly and therefore aren't fetched (because they are fetched lazily). What is the canonical way to force them to evaluate? | 15:10:19 |
qu4pk4 | In reply to @qu4pk4:matrix.org I am having troubles building Java application with gradle2nix that needs sources from one of the submodules. The nix version is 2.42.2, which is after the .?submodules=1 being needed. I have read this https://github.com/NixOS/nix/pull/7862#issuecomment-1908577578 and what I think is going on is that the submodules aren't being needed by the flake directly and therefore aren't fetched (because they are fetched lazily). What is the canonical way to force them to evaluate? Ah, it's the # missing... is this expected behaviour:
nix build '.?submodules=1' <- doesn't work
nix build '.?submodules=1#' <- works and invokes the default
| 15:50:30 |
| 18 Aug 2024 |
| r3vx joined the room. | 14:17:29 |