-
Notifications
You must be signed in to change notification settings - Fork 352
Expand file tree
/
Copy pathflake.nix
More file actions
64 lines (51 loc) · 1.53 KB
/
Copy pathflake.nix
File metadata and controls
64 lines (51 loc) · 1.53 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
59
60
61
62
63
64
{
description = "GitLab MCP server";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = {nixpkgs, ...}: let
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
packageJson = builtins.fromJSON (builtins.readFile ./package.json);
in {
packages = forAllSystems (pkgs: rec {
default = gitlab-mcp;
gitlab-mcp = pkgs.buildNpmPackage {
pname = "gitlab-mcp";
version = packageJson.version;
src = ./.;
nodejs = pkgs.nodejs_22;
# Bump with `lib.fakeHash` -> build -> copy the reported hash whenever
# package-lock.json changes.
npmDepsHash = "sha256-3BG3sDzNtn7HfL20b8ZrAkQSV9/dQtYXIGySaWZ0ZDE=";
meta = {
description = packageJson.description;
homepage = "https://github.com/zereight/gitlab-mcp";
license = pkgs.lib.licenses.mit;
mainProgram = "zereight-mcp-gitlab";
platforms = systems;
};
};
});
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
name = "gitlab-mcp";
packages = [
pkgs.nodejs_22
# Docs site: `make serve` builds a venv from requirements-docs.txt (CI uses 3.12).
pkgs.python312
pkgs.git
pkgs.jq
pkgs.gh
];
shellHook = ''
export PATH="$PWD/node_modules/.bin:$PATH"
'';
};
});
};
}