29 Apr 2024 |
| @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 |
@mewp:nurupo.pl | such as find . > $out | 15:14:12 |
@mewp:nurupo.pl | (there are probably better methods, just none of them come to mind right now) | 15:14:59 |
azazel75 | thanks, I'll try to do that | 15:15:35 |
azazel75 | gitIgnoreFilterWith is https://github.com/hercules-ci/gitignore.nix/blob/master/find-files.nix#L24 | 15:16:34 |
| CabalCrow joined the room. | 15:41:17 |
| CabalCrow left the room. | 15:45:53 |
| CabalCrow joined the room. | 15:46:29 |
CabalCrow | is there a way to force nixos-rebuild to copy .git folders into the store directory? | 15:48:25 |
@mewp:nurupo.pl | you could likely create a package with the current configuration repo if that's what you want. no built-in module for that afaik | 15:50:07 |
azazel75 | so, i did what you suggested mewp , whit a new package like:
pkgsSrcContents = pkgs.stdenvNoCC.mkDerivation {
name = "src-contents";
src = pkgsSrc;
builder = pkgs.writeText "builder.sh" ''
${pkgs.findutils}/bin/find $src >> $out
'';
};
| 15:55:20 |
CabalCrow | well that is a shame | 15:55:26 |
azazel75 | it turns out that even if flake.nix isn't in the resulting $src, if I change it between two runs the hash of that $src store path will change | 15:57:12 |