Nix packages for third-party projects that don't ship their own flakes
1{
2 lib,
3 buildNpmPackage,
4 fetchFromGitHub,
5}:
6
7buildNpmPackage (finalAttrs: {
8 pname = "vit";
9 version = "0.6.1";
10
11 src = fetchFromGitHub {
12 owner = "solpbc";
13 repo = "vit";
14 rev = "v${finalAttrs.version}";
15 hash = "sha256-iICVLod9SnBxm/4nQuD/cecOobP7QHRgG4LZmZEUYRg=";
16 };
17
18 # Prefetched offline npm dependency cache (from package-lock.json).
19 # To update after a version bump: set to lib.fakeHash, build once, paste the hash nix prints.
20 npmDepsHash = "sha256-nH6gXa7r8n3yxF96B8Ep6kATFrPbANg43V3EatqiITQ=";
21
22 # Pure JS CLI — package.json has no "build" script.
23 dontNpmBuild = true;
24
25 # Upstream postinstall copies agent skills into $HOME; skip in the build sandbox.
26 npmFlags = [ "--ignore-scripts" ];
27
28 meta = {
29 description = "Social toolkit for personalized software (AT Protocol capability CLI)";
30 homepage = "https://v-it.org";
31 changelog = "https://github.com/solpbc/vit/releases/tag/v${finalAttrs.version}";
32 license = lib.licenses.mit;
33 mainProgram = "vit";
34 platforms = lib.platforms.all;
35 };
36})