Skip to content

Commit bc2d49c

Browse files
committed
Nix: provide stacks-common
1 parent fa0a21c commit bc2d49c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

contrib/nix/flake.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,17 @@
126126
}
127127
);
128128

129+
stacks-common = craneLib.buildPackage (
130+
individualCrateArgs
131+
// rec {
132+
version = (builtins.fromTOML (builtins.readFile ../../stacks-common/Cargo.toml)).package.version;
133+
pname = "stacks-common";
134+
cargoFeatures = "--features slog_json";
135+
cargoExtraArgs = "${cargoFeatures} -p ${pname}";
136+
src = fileSetForCrate ../../stacks-common;
137+
}
138+
);
139+
129140
# Build the actual crate itself, reusing the dependency
130141
# artifacts from above.
131142
stacks-core = craneLib.buildPackage (
@@ -143,7 +154,7 @@
143154
with pkgs;
144155
{
145156
packages = {
146-
inherit stacks-signer;
157+
inherit stacks-signer stacks-common;
147158
default = stacks-core;
148159
};
149160

0 commit comments

Comments
 (0)