alpha
Login
or
Join now
nandi.uk
/
agentic
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Nix packages for third-party projects that don't ship their own flakes
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
init: flake packaging vit
author
dev
date
1 week ago
(Jul 18, 2026, 5:56 PM -0700)
commit
909a24b0
909a24b0ac56d8b82a43f861d277f02c280027fb
+103
3 changed files
Expand all
Collapse all
Unified
Split
flake.lock
flake.nix
packages
vit
default.nix
+27
flake.lock
View file
Reviewed
···
1
1
+
{
2
2
+
"nodes": {
3
3
+
"nixpkgs": {
4
4
+
"locked": {
5
5
+
"lastModified": 1784356753,
6
6
+
"narHash": "sha256-12KrbMiWLcf8m7pCvAtZh1ZrgF85ZXDXvfR/fWTKy84=",
7
7
+
"owner": "NixOS",
8
8
+
"repo": "nixpkgs",
9
9
+
"rev": "61b7c44c4073f0b827768aff0049561b5110ea5a",
10
10
+
"type": "github"
11
11
+
},
12
12
+
"original": {
13
13
+
"owner": "NixOS",
14
14
+
"ref": "nixos-unstable",
15
15
+
"repo": "nixpkgs",
16
16
+
"type": "github"
17
17
+
}
18
18
+
},
19
19
+
"root": {
20
20
+
"inputs": {
21
21
+
"nixpkgs": "nixpkgs"
22
22
+
}
23
23
+
}
24
24
+
},
25
25
+
"root": "root",
26
26
+
"version": 7
27
27
+
}
+40
flake.nix
View file
Reviewed
···
1
1
+
{
2
2
+
description = "Nix packages for third-party projects that don't ship their own flakes";
3
3
+
4
4
+
inputs = {
5
5
+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6
6
+
};
7
7
+
8
8
+
outputs =
9
9
+
{ self, nixpkgs }:
10
10
+
let
11
11
+
systems = [
12
12
+
"x86_64-linux"
13
13
+
"aarch64-linux"
14
14
+
"x86_64-darwin"
15
15
+
"aarch64-darwin"
16
16
+
];
17
17
+
forAllSystems = nixpkgs.lib.genAttrs systems;
18
18
+
in
19
19
+
{
20
20
+
packages = forAllSystems (
21
21
+
system:
22
22
+
let
23
23
+
pkgs = nixpkgs.legacyPackages.${system};
24
24
+
in
25
25
+
{
26
26
+
vit = pkgs.callPackage ./packages/vit { };
27
27
+
default = self.packages.${system}.vit;
28
28
+
}
29
29
+
);
30
30
+
31
31
+
# Convenience: `nix run .#vit -- --help`
32
32
+
apps = forAllSystems (system: {
33
33
+
vit = {
34
34
+
type = "app";
35
35
+
program = "${self.packages.${system}.vit}/bin/vit";
36
36
+
};
37
37
+
default = self.apps.${system}.vit;
38
38
+
});
39
39
+
};
40
40
+
}
+36
packages/vit/default.nix
View file
Reviewed
···
1
1
+
{
2
2
+
lib,
3
3
+
buildNpmPackage,
4
4
+
fetchFromGitHub,
5
5
+
}:
6
6
+
7
7
+
buildNpmPackage (finalAttrs: {
8
8
+
pname = "vit";
9
9
+
version = "0.6.1";
10
10
+
11
11
+
src = fetchFromGitHub {
12
12
+
owner = "solpbc";
13
13
+
repo = "vit";
14
14
+
rev = "v${finalAttrs.version}";
15
15
+
hash = "sha256-iICVLod9SnBxm/4nQuD/cecOobP7QHRgG4LZmZEUYRg=";
16
16
+
};
17
17
+
18
18
+
# Prefetched offline npm dependency cache (from package-lock.json).
19
19
+
# To update after a version bump: set to lib.fakeHash, build once, paste the hash nix prints.
20
20
+
npmDepsHash = "sha256-nH6gXa7r8n3yxF96B8Ep6kATFrPbANg43V3EatqiITQ=";
21
21
+
22
22
+
# Pure JS CLI — package.json has no "build" script.
23
23
+
dontNpmBuild = true;
24
24
+
25
25
+
# Upstream postinstall copies agent skills into $HOME; skip in the build sandbox.
26
26
+
npmFlags = [ "--ignore-scripts" ];
27
27
+
28
28
+
meta = {
29
29
+
description = "Social toolkit for personalized software (AT Protocol capability CLI)";
30
30
+
homepage = "https://v-it.org";
31
31
+
changelog = "https://github.com/solpbc/vit/releases/tag/v${finalAttrs.version}";
32
32
+
license = lib.licenses.mit;
33
33
+
mainProgram = "vit";
34
34
+
platforms = lib.platforms.all;
35
35
+
};
36
36
+
})