Skip to content

Commit 6940327

Browse files
feat: add flake for native build python dependency
1 parent 1bf5fb2 commit 6940327

File tree

2 files changed

+99
-0
lines changed

2 files changed

+99
-0
lines changed

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
description = "CodSpeed Node development environment";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs =
10+
{
11+
self,
12+
nixpkgs,
13+
flake-utils,
14+
}:
15+
flake-utils.lib.eachDefaultSystem (
16+
system:
17+
let
18+
pkgs = nixpkgs.legacyPackages.${system};
19+
in
20+
{
21+
devShells.default = pkgs.mkShell {
22+
buildInputs = with pkgs; [
23+
# Needed for node-gyp
24+
(python314.withPackages (
25+
ps: with ps; [
26+
setuptools
27+
]
28+
))
29+
];
30+
31+
shellHook = ''
32+
echo "CodSpeed Node development environment"
33+
echo "Python version: $(python --version)"
34+
'';
35+
};
36+
}
37+
);
38+
}

0 commit comments

Comments
 (0)