| 19 May 2023 |
raitobezarius | une simple function est un paquet dans cet ecosystème bordel | 17:18:24 |
raitobezarius | sans parler que NPM casse tout à chaque release | 17:18:37 |
Ambroisie | Ça encore, bien que ça soit un enfer, ça peut être manageable | 17:18:56 |
Ambroisie | Ce qui rend fou c'est que y'a pas un seul package manager qui fasse tout comme il faut | 17:19:12 |
Ambroisie | Et ils semblent en inventer un nouveau tout les 6 mois (y'a que Python qui atteint un même niveau) 🙃 | 17:19:48 |
Bruno Adele |  Download 2023-05-19_19-27.png | 17:28:13 |
Bruno Adele | Les embrouilles commencent :) | 17:28:20 |
Bruno 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 |
Bruno 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 | c'est un vieux package-lock | 17:35:36 |
raitobezarius | je sais plus si on peut filer nous même le supplemental data maintenant | 17:35:54 |
raitobezarius | sinon tu peux filer ton propre package-lock.json en le regen | 17:36:01 |
Bruno Adele | r)Tu as la commande pour le regen ? (si tu connais, sinon je vais cherche | 17:36:27 |
Bruno Adele | * Tu as la commande pour le regen ? (si tu connais, sinon je vais chercher) | 17:36:38 |
raitobezarius | rm package-lock.json; npm install avec un npm récent? | 17:36:45 |
Bruno Adele |  Download 2023-05-19_19-40.png | 17:40:59 |
Bruno Adele | Hum, ca fait beaucoup de deprecated | 17:41:00 |
raitobezarius | :) | 17:43:33 |
Bruno Adele | raitobezarius: Visiblement il faut utiliser ceci
postPatch = ''
cp ${./package-lock.json} ./package-lock.json
'';
Je vais tester
| 17:52:18 |
Bruno Adele |  Download 2023-05-19_19-58.png | 18:01:09 |
Bruno Adele | raitobezarius: Ambroisie Merci pour votre aide, on dirait que c'est passé 🎉 | 18:01:19 |
tgerbet | 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 |
Bruno 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 |
Pol | 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 | :) | 19:45:50 |
raitobezarius | au pire ça tourne sous Node.js EOL hein :D | 19:45:57 |
raitobezarius | et tu as juste un GROS warning quand tu l'utilises | 19:46:06 |
Bruno 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 |
Bruno 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 |
Pol | Argh.... 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 |