29 Apr 2024 |
| NixOS Moderation Botchanged room power levels. | 15:29:58 |
dramforever | can you just ship the same thing with all the systems | 15:39:42 |
@mewp:nurupo.pl | https://nixos.org/manual/nix/stable/language/derivations.html says that derivations have a system attribute. changing it will change the hash, and not changing it would prevent one from building locally | 16:06:33 |
@mewp:nurupo.pl | * https://nixos.org/manual/nix/stable/language/derivations.html says that derivations have a system attribute. changing it will change the hash, and not changing it would prevent one from building locally | 16:07:05 |
@mewp:nurupo.pl | so I don't think you can ship the same derivation on all systems | 16:07:28 |
tomberek | You can ship a derivation of any system to other places. You may lose some niceties like tab completion on the CLI, but nothing prevents it from being done. | 16:09:34 |
@mewp:nurupo.pl | as I understand it, if you do, you won't be able to build it on such a system locally. am I wrong? | 16:10:33 |
@mewp:nurupo.pl | (because nix will see that the builder is supposed to execute on a different system than the current one) | 16:11:17 |
tomberek | Correct, for building. So for these kinds of things I tend to just make one for each system. | 16:13:45 |
tomberek | But in that case, if it needs to be built (not just substituted or fetched) then there is a natural system to pick, the one used to build it. | 16:14:35 |
| Frank Geusch joined the room. | 17:16:18 |
| Frank Geusch changed their display name from Frank Geusch to Master Fudge. | 17:28:05 |
| @nikdo:matrix.org left the room. | 19:03:47 |
30 Apr 2024 |
| Noughty Pixel joined the room. | 01:20:41 |
| Noughty Pixel set a profile picture. | 01:25:21 |
| nasrally joined the room. | 03:35:20 |
| @glaringweakness:nope.chat joined the room. | 08:55:15 |
| @glaringweakness:nope.chat changed their display name from glaringweakness to GlaringWeakness. | 09:56:28 |
| Noughty Pixel changed their profile picture. | 14:23:09 |
| ondt joined the room. | 22:19:15 |
1 May 2024 |
| pmbauer joined the room. | 03:24:33 |
| NixOS Moderation Botchanged room power levels. | 15:06:25 |
| @daschw:matrix.org joined the room. | 18:52:56 |
2 May 2024 |
Mindavi | Does a FOD also need a system parameter? | 05:30:03 |
@aloisw:kde.org | Yes (even for builtin builders). | 05:36:47 |
azazel75 | hello guys, I've a flake with both packages and system configurations that use those packages. What happens is that if I change a system configuration, the packages get rebuilt, because the overall source of the flake is changed, but the final contents of the package do not change... is there a way to disconnect this dependency? I've tried with lib.cleanSourceWith , but apparently without success... | 15:06:52 |
@mewp:nurupo.pl | does the package src include the flake? | 15:07:56 |
azazel75 | I've tried to avoid it by reimplementing gitignore.gitignoreSourceWith as
gitignoreSourceWith = path:
pkgs.lib.cleanSourceWith {
name = "tinia-src";
filter = gitignoreFilterWith {
basePath = path.origSrc or path;
extraRules = ''
./nix
flake.*
'';
};
src = path;
};
pkgsSrc = gitignoreSourceWith ./.;
| 15:10:55 |
azazel75 | but I'm not 100% certain that works as I expected... | 15:11:34 |
@mewp:nurupo.pl | that I don't know. but you can build the package with a builder that will emit the list of source files and check | 15:13:59 |