!ZUiNnfpRqQMDrPLChM:nixos.org

Nix ♥ la francophonie

218 Members
Salon francographe de NixOS71 Servers

Load older messages


SenderMessageTime
19 May 2023
@badele:matrix.orgBruno Adele2023-05-19_19-27.png
Download 2023-05-19_19-27.png
17:28:13
@badele:matrix.orgBruno AdeleLes embrouilles commencent :)17:28:20
@badele:matrix.orgBruno Adele
{ lib, buildNpmPackage, fetchFromGitHub, nix-update-script }:

buildNpmPackage rec {
  pname = "tetra-kit-player";
  version = "2023-05-19";

  src = fetchFromGitHub {
    owner = "sonictruth";
    repo = pname;
    rev = "ea258fcfeb0ff43bf1d8911d3a7c7c6326e11750";
    sha256 = "sha256-3TjbVv3MEpKUITPxB1xvTTGLAq7hbOSJzu486AVkzAM=";
  };

  # prefetch-npm-deps package-lock.json
  npmDepsHash = "sha256-DWjzQF55dDUOFqPxJIwuWIgS2mQqWhQ6CuAUVYFqTUo=";
  dontNpmBuild = true;

  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    description = "TKP is web application that streams events and files produced by tetra kit.";
    homepage = "https://github.com/sonictruth/tetra-kit-player";
    license = licenses.isc;
  };
}

Mon package

17:29:02
@badele:matrix.orgBruno Adele *
{ lib, buildNpmPackage, fetchFromGitHub, nix-update-script }:

buildNpmPackage rec {
  pname = "tetra-kit-player";
  version = "2023-05-19";

  src = fetchFromGitHub {
    owner = "sonictruth";
    repo = pname;
    rev = "ea258fcfeb0ff43bf1d8911d3a7c7c6326e11750";
    sha256 = "sha256-3TjbVv3MEpKUITPxB1xvTTGLAq7hbOSJzu486AVkzAM=";
  };

  # prefetch-npm-deps package-lock.json
  npmDepsHash = "sha256-DWjzQF55dDUOFqPxJIwuWIgS2mQqWhQ6CuAUVYFqTUo=";
  dontNpmBuild = true;

  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    description = "TKP is web application that streams events and files produced by tetra kit.";
    homepage = "https://github.com/sonictruth/tetra-kit-player";
    license = licenses.isc;
  };
}

Mon package, y'a 2 ou 3 options, que je vérifierais après (je pense que certaines ne sont pas nécéssaires

17:29:43
@raitobezarius:matrix.orgraitobezariusc'est un vieux package-lock17:35:36
@raitobezarius:matrix.orgraitobezariusje sais plus si on peut filer nous même le supplemental data maintenant17:35:54
@raitobezarius:matrix.orgraitobezariussinon tu peux filer ton propre package-lock.json en le regen17:36:01
@badele:matrix.orgBruno Adeler)Tu as la commande pour le regen ? (si tu connais, sinon je vais cherche17:36:27
@badele:matrix.orgBruno Adele * Tu as la commande pour le regen ? (si tu connais, sinon je vais chercher)17:36:38
@raitobezarius:matrix.orgraitobezariusrm package-lock.json; npm install avec un npm récent?17:36:45
@badele:matrix.orgBruno Adele2023-05-19_19-40.png
Download 2023-05-19_19-40.png
17:40:59
@badele:matrix.orgBruno Adele Hum, ca fait beaucoup de deprecated 17:41:00
@raitobezarius:matrix.orgraitobezarius:)17:43:33
@badele:matrix.orgBruno Adele

raitobezarius: Visiblement il faut utiliser ceci

    postPatch = ''
      cp ${./package-lock.json} ./package-lock.json
    '';

Je vais tester

17:52:18
@badele:matrix.orgBruno Adele2023-05-19_19-58.png
Download 2023-05-19_19-58.png
18:01:09
@badele:matrix.orgBruno Adele raitobezarius: Ambroisie Merci pour votre aide, on dirait que c'est passé 🎉 18:01:19
@tgerbet:matrix.orgtgerbet
In reply to @badele:matrix.org
Hum, ca fait beaucoup de deprecated
17 dont 2 de @types/ franchement on a vu pire 😅
18:26:03
@badele:matrix.orgBruno Adele
In reply to @tgerbet:matrix.org
17 dont 2 de @types/ franchement on a vu pire 😅
Je ne suis pas habitué :)
18:26:31
@drupol:matrix.orgPol raitobezarius: Je suis occupe a checker la mise a jour de openvscode-server avec nodejs_18, idem pour code-server... je te tiens au courant. 19:28:34
@raitobezarius:matrix.orgraitobezarius:)19:45:50
@raitobezarius:matrix.orgraitobezariusau pire ça tourne sous Node.js EOL hein :D19:45:57
@raitobezarius:matrix.orgraitobezariuset tu as juste un GROS warning quand tu l'utilises19:46:06
@badele:matrix.orgBruno Adele

Cette dérivation s'utilise comment ? (https://github.com/nix-community/nur-combined/blob/master/repos/badele/pkgs/sdr/tetra-kit-player/default.nix#L27 Comme avec python style

environment.systemPackages = with pkgs; [
   (python38.withPackages(ps: with ps; [ pandas requests]))
  ];
}

Je n'ai à priori pas trouvé d'exemple

19:59:02
@badele:matrix.orgBruno Adele *

Cette dérivation s'utilise comment ? (https://github.com/nix-community/nur-combined/blob/master/repos/badele/pkgs/sdr/tetra-kit-player/default.nix#L27 Comme avec python style

environment.systemPackages = with pkgs; [
   (python38.withPackages(ps: with ps; [ pandas requests]))
  ];
}

Je n'ai à priori pas trouvé d'exemple

19:59:22
@drupol:matrix.orgPolArgh.... code-server> error code-server@0.0.0: The engine "node" is incompatible with this module. Expected version "16". Got "18.16.0" 20:00:47
@drupol:matrix.orgPol
In reply to @raitobezarius:matrix.org
au pire ça tourne sous Node.js EOL hein :D
CAD ?
20:00:57
@drupol:matrix.orgPolPour openvscode-server, ca fonctionne: https://github.com/NixOS/nixpkgs/pull/23288720:01:56
@drupol:matrix.orgPolPar contre, code-server, niet.20:02:06
@badele:matrix.orgBruno Adele *

Cette dérivation s'utilise comment ? (https://github.com/nix-community/nur-combined/blob/master/repos/badele/pkgs/sdr/tetra-kit-player/default.nix#L27 Comme avec python style

environment.systemPackages = with pkgs; [
   (python38.withPackages(ps: with ps; [ pandas requests]))
  ];
}

Je n'ai à priori pas trouvé d'exemple pour du nodejs

20:06:33
@raitobezarius:matrix.orgraitobezarius
In reply to @drupol:matrix.org
CAD ?
bah nodejs 16 est pas retiré de nixpkgs
20:12:26

Show newer messages


Back to Room ListRoom Version: 6