File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 37
37
# Generate a derivation for just the dependencies of the project so that they
38
38
# can be cached across all of the various checks and builders.
39
39
cargoArtifacts = craneLib . buildDepsOnly craneCommonArgs ;
40
+
41
+ # Meta information about the packages
42
+ packageInfo = with lib ; {
43
+ meta = {
44
+ description = "Apollo MCP Server" ;
45
+ homepage = "https://www.apollographql.com/docs/apollo-mcp-server" ;
46
+ license = licenses . elastic20 ;
47
+
48
+ # The main binary that should be run when using `nix run`
49
+ mainProgram = "apollo-mcp-server" ;
50
+ } ;
51
+ } ;
40
52
in {
41
53
# Expose the list of build dependencies for inheriting in dev shells
42
54
nativeDependencies = craneCommonArgs . nativeBuildInputs ;
69
81
70
82
# List of packages exposed by this project
71
83
packages = {
72
- apollo-mcp = craneLib . buildPackage craneCommonArgs ;
84
+ apollo-mcp = ( craneLib . buildPackage craneCommonArgs ) // packageInfo ;
73
85
74
86
# Builder for apollo-mcp-server. Takes the rust target triple for specifying
75
87
# the cross-compile target. Set the target to the same as the host for native builds.
97
109
"${ cargo-zigbuild-patched } /bin/cargo-zigbuild ${ cmd } "
98
110
] ) ;
99
111
in
100
- craneLib . buildPackage ( craneCommonArgs
112
+ ( craneLib . buildPackage ( craneCommonArgs
101
113
// {
102
114
pname = craneCommonArgs . pname + "-${ target } " ;
103
115
nativeBuildInputs = [
126
138
127
139
# Make sure to compile it for the specified target
128
140
CARGO_BUILD_TARGET = target ;
129
- } ) ;
141
+ } ) )
142
+ // packageInfo ;
130
143
} ;
131
144
}
You can’t perform that action at this time.
0 commit comments