!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

610 Members
121 Servers

Load older messages


SenderMessageTime
29 Apr 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:29:58
@dramforever:matrix.orgdramforevercan you just ship the same thing with all the systems15:39:42
@mewp:nurupo.pl@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@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@mewp:nurupo.pl so I don't think you can ship the same derivation on all systems 16:07:28
@tomberek:matrix.orgtomberekYou 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@mewp:nurupo.plas 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@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:matrix.orgtomberekCorrect, for building. So for these kinds of things I tend to just make one for each system.16:13:45
@tomberek:matrix.orgtomberekBut 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
@fudgemaster:matrix.orgFrank Geusch joined the room.17:16:18
@fudgemaster:matrix.orgFrank Geusch changed their display name from Frank Geusch to Master Fudge.17:28:05
@nikdo:matrix.org@nikdo:matrix.org left the room.19:03:47
30 Apr 2024
@noughtypixel:matrix.orgNoughty Pixel joined the room.01:20:41
@noughtypixel:matrix.orgNoughty Pixel set a profile picture.01:25:21
@nasrally:matrix.orgnasrally joined the room.03:35:20
@glaringweakness:nope.chat@glaringweakness:nope.chat joined the room.08:55:15
@glaringweakness:nope.chat@glaringweakness:nope.chat changed their display name from glaringweakness to GlaringWeakness.09:56:28
@noughtypixel:matrix.orgNoughty Pixel changed their profile picture.14:23:09
@xondtx:matrix.orgondt joined the room.22:19:15
1 May 2024
@pmbauer:matrix.orgpmbauer joined the room.03:24:33
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:06:25
@daschw:matrix.org@daschw:matrix.org joined the room.18:52:56
2 May 2024
@rick:matrix.ciphernetics.nlMindaviDoes a FOD also need a system parameter?05:30:03
@aloisw:kde.org@aloisw:kde.orgYes (even for builtin builders).05:36:47
@azazel75:matrix.orgazazel75 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@mewp:nurupo.pldoes the package src include the flake?15:07:56
@azazel75:matrix.orgazazel75

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:matrix.orgazazel75but I'm not 100% certain that works as I expected...15:11:34
@mewp:nurupo.pl@mewp:nurupo.plthat I don't know. but you can build the package with a builder that will emit the list of source files and check15:13:59

Show newer messages


Back to Room ListRoom Version: 6