!ZUiNnfpRqQMDrPLChM:nixos.org

Nix ♥ la francophonie

225 Members
Salon francographe de NixOS75 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
22 Apr 2024
@symphorien:xlumurb.eusymphorienet à la fin --update19:41:21
@ManUtopiK:matrix.orgManUtopiK Il y a pas --delete, j'ai fait nix-channel --remove nixpkgs.
nix-channel --list ne retourne plus rien. Mais nix-info retourne exactement la même chose.
C'est mieux comme ça ?
19:50:10
@symphorien:xlumurb.eusymphoriensans --update ça n'a pas d'effet20:02:11
@ManUtopiK:matrix.orgManUtopiK Oui, j'ai fait nix-channel --update aussi. En fait, je ne vois pas bien le problème. Avec nix-info, tu veux que channels(manu): "nixpkgs" soit différent car nixpkgs est aussi dans channels(root) ? 20:08:10
@ManUtopiK:matrix.orgManUtopiK Tu sais comment obtenir le hash d'un packet rust ? Dans default.nix, il y a "simple-mermaid-0.1.0" = "sha256-IekTldxYq+uoXwGvbpkVTXv2xrcZ0TQfyyE2i2zH+6w=" qui faut que je passe en version 0.1.1. J'ai télécharger l'archive tar.gz et je fait nix-hash --type sha256 --base32 simple-mermaid-0.1.1.tar.gz, mais il me sort pas un hash qui ressemble à ce qu'il faut... 20:11:13
@ManUtopiK:matrix.orgManUtopiK Avec nix-prefetch-url ou nix-prefetch-url --unpack c'est pas mieux 20:14:08
@Minijackson:matrix.orgMinijackson en général, ce qu'on fait, c'est qu'on met une string vide "", et Nix nous dit à quel hash il s'attendait 20:18:23
@ManUtopiK:matrix.orgManUtopiK

Ah oui, ça serait plus simple ! Mais ça plante. Avec une string vide il retourne cette erreur :

❯ nix-build default.nix
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'gcli-0.2.9'
         whose name attribute is located at /nix/store/3r643hm4q1l4dj1yw0hlaya8gkbbn235-nixos-unstable/nixos-unstable/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'cargoDeps' of derivation 'gcli-0.2.9'

         at /nix/store/3r643hm4q1l4dj1yw0hlaya8gkbbn235-nixos-unstable/nixos-unstable/pkgs/build-support/rust/build-rust-package/default.nix:101:10:

          100| } // {
          101|   inherit buildAndTestSubdir cargoDeps;
             |          ^
          102|

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: A hash was specified for simple-mermaid-0.1.1, but there is no corresponding git dependency.
20:23:58
@ManUtopiK:matrix.orgManUtopiKAh c'est bon. J'ai réussi !20:26:02
@ManUtopiK:matrix.orgManUtopiKMerci !20:26:18
@ManUtopiK:matrix.orgManUtopiKAh non en fait 🤪 Ça marche pour "simple-mermaid-0.1.0" = ""; mais pas pour "simple-mermaid-0.1.1" = "";20:27:51
@Minijackson:matrix.orgMinijackson

there is no corresponding git dependency

20:32:11

Show newer messages


Back to Room ListRoom Version: 6