-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
41 lines (39 loc) · 1.12 KB
/
flake.nix
File metadata and controls
41 lines (39 loc) · 1.12 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
{
description = "development environment for Evolu monorepo";
inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
overlays = [
(final: prev: {
# NOTE: see package.json engines.node
nodejs = prev.nodejs_22;
pnpm = prev.nodePackages.pnpm.override rec {
# NOTE: see package.json packageManager
version = "10.12.1";
src = prev.fetchurl {
url = "https://registry.npmjs.org/pnpm/-/pnpm-${version}.tgz";
# generate sha256 hash using `nix-hash --type sha256 --flat pnpm-*.tgz`
sha256 = "889bac470ec93ccc3764488a19d6ba8f9c648ad5e50a9a6e4be3768a5de387a3";
};
};
})
];
pkgs = import nixpkgs {inherit overlays system;};
in {
devShells = {
default = pkgs.mkShell {
packages = with pkgs; [
nodejs
pnpm
];
};
};
});
}