-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathflake.nix
More file actions
58 lines (48 loc) · 1.51 KB
/
Copy pathflake.nix
File metadata and controls
58 lines (48 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
description = "Cross-harness package manager for AI coding tools";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
};
outputs =
inputs@{ self, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
perSystem =
{ pkgs, ... }:
let
version = (builtins.fromTOML (builtins.readFile ./cli/Cargo.toml)).package.version;
in
{
packages.default = pkgs.rustPlatform.buildRustPackage {
pname = "vstack";
inherit version;
src = self;
sourceRoot = "source/cli";
cargoLock.lockFile = ./cli/Cargo.lock;
nativeBuildInputs = with pkgs; [
git
];
meta = {
description = "Cross-harness package manager for AI coding tools";
homepage = "https://github.com/vanillagreencom/vstack";
license = pkgs.lib.licenses.mit;
mainProgram = "vstack";
maintainers = [ ];
platforms = pkgs.lib.platforms.linux ++ pkgs.lib.platforms.darwin;
};
};
devShells.default = pkgs.mkShell {
inputsFrom = [ self.packages.${pkgs.stdenv.hostPlatform.system}.default ];
};
};
};
}