!ZUiNnfpRqQMDrPLChM:nixos.org

Nix ♥ la francophonie

215 Members
Salon francographe de NixOS70 Servers

Load older messages


SenderMessageTime
19 Jan 2026
@thoth101010:matrix.orgthoth

Il y a un phénomène étrange que je ne comprends pas:

J’ai un overlay avec un patch

{ ... }:
{
  nixpkgs.overlays = [
    (final: prev: {
      gruvbox-gtk-theme = prev.gruvbox-gtk-theme.overrideAttrs (oldAttrs: {
        patches = (oldAttrs.patches or [ ]) ++ [
          (final.fetchpatch2 {
            url = "https://github.com/Fausto-Korpsvart/Gruvbox-GTK-Theme/pull/102/commits/e9c8d01082226fd4f470cb88e84e4fb1b6192169.patch";
            hash = "sha256-/0JAd/ycNMOq1z495NoXDb/kND+j8a3sU+fIDyB99r4=";
          })
        ];
      });
    })
  ];
}

Parfois, ça me met un hash mismatch. Quand je fais un nix store prefetch-file https://github.com/Fausto-Korpsvart/Gruvbox-GTK-Theme/pull/102/commits/e9c8d01082226fd4f470cb88e84e4fb1b6192169.patch pour vérifier le hash ça résoud le problème.

C’est possible que github renvoie une page qui ne correspond pas au patch avant le prefetch ? Un captcha ou quelque chose comme ça ?

14:51:20
@thoth101010:matrix.orgthoth *

Hello. Il y a un phénomène étrange que je ne comprends pas:

J’ai un overlay avec un patch

{ ... }:
{
  nixpkgs.overlays = [
    (final: prev: {
      gruvbox-gtk-theme = prev.gruvbox-gtk-theme.overrideAttrs (oldAttrs: {
        patches = (oldAttrs.patches or [ ]) ++ [
          (final.fetchpatch2 {
            url = "https://github.com/Fausto-Korpsvart/Gruvbox-GTK-Theme/pull/102/commits/e9c8d01082226fd4f470cb88e84e4fb1b6192169.patch";
            hash = "sha256-/0JAd/ycNMOq1z495NoXDb/kND+j8a3sU+fIDyB99r4=";
          })
        ];
      });
    })
  ];
}

Parfois, ça me met un hash mismatch. Quand je fais un nix store prefetch-file https://github.com/Fausto-Korpsvart/Gruvbox-GTK-Theme/pull/102/commits/e9c8d01082226fd4f470cb88e84e4fb1b6192169.patch pour vérifier le hash ça résoud le problème.

C’est possible que github renvoie une page qui ne correspond pas au patch avant le prefetch ? Un captcha ou quelque chose comme ça ?

14:51:33
@gsaurel:laas.frnim65sles pages .patch générées par github sont pas stables14:59:26
@gsaurel:laas.frnim65s essaye avec ...192169.patch?full_index=1 déjà 15:00:02
@gsaurel:laas.frnim65ssinon github va aléatoirement mettre des hash de commit tronqués aux 7 ou 8 premiers caractères15:00:54
@thoth101010:matrix.orgthoth

Ah ok, merci ! Dommage qu’elles ne soient pas stables. Par hasard il y a des forges ou c’est plus stable ?

Je vais déjà rajouter full_index on verra si c’est assez stable, sinon je changerai carrément la révision du paquet.

15:09:13
@thoth101010:matrix.orgthothHmmmm, ça fait la même chose, avant que je ne fasse le prefetch-file il y a un hash différent. (et il y avait déjà le hash entier avec prefetch ou curl) ça veut dire que selon que ce soit nixos-rebuild ou nix store prefetch qui fasse la requête, le fichier n’est pas le même ?15:14:47
@thoth101010:matrix.orgthoth* Hmmmm, ça fait la même chose, avant que je ne fasse le prefetch-file il y a un hash différent. (et il y avait déjà le commit-hash entier avec prefetch ou curl) ça veut dire que selon que ce soit nixos-rebuild ou nix store prefetch qui fasse la requête, le fichier n’est pas le même ?15:15:09
@thoth101010:matrix.orgthoth* Hmmmm, ça fait la même chose, avant que je ne fasse le prefetch-file il y a un hash différent. (et il y avait déjà le hash de commit entier avec prefetch ou curl) ça veut dire que selon que ce soit nixos-rebuild ou nix store prefetch qui fasse la requête, le fichier n’est pas le même ?15:15:26
26 May 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".19:34:08
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".19:34:08
@grahamc:nixos.org@grahamc:nixos.org invited @immae:matrix.orgimmae.19:34:18
@grahamc:nixos.org@grahamc:nixos.org invited @samueldr:matrix.orgsamueldr.19:34:19
@samueldr:matrix.orgsamueldr joined the room.19:40:10
@immae:matrix.orgimmae joined the room.19:40:42
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.20:09:05
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.20:09:10
@samueldr:matrix.orgsamueldr set the room name to "Nix ♥ la francophonie".20:09:55
@samueldr:matrix.orgsamueldr set the room topic to "Salon francographe de NixOS".20:09:56
@afontain:gnugen.chafontain joined the room.20:30:26
@samueldr:matrix.orgsamueldr changed their display name from samueldr‎ to samueldr.21:05:31
Room Avatar Renderer.21:46:37
27 May 2021
@ncfavier:matrix.orgnf joined the room.01:29:16
@symphorien:xlumurb.eusymphorien joined the room.05:56:15
@eonpatapon:matrix.orgeonpatapon joined the room.06:43:17
@timstott:matrix.orgtimstott joined the room.07:21:27
@ldesgoui:matrix.orgldesgoui joined the room.23:21:11
28 May 2021
@pinage404:matrix.orgpinage404 joined the room.11:08:09
@robert:funklause.dedotlambda joined the room.12:42:42
29 May 2021
@srid:matrix.orgsrid joined the room.14:45:14

Show newer messages


Back to Room ListRoom Version: 6