Skip to content

Commit 2825e96

Browse files
committed
[other] Provide reference flake scripts
1 parent 32ddbb8 commit 2825e96

File tree

2 files changed

+13
-55
lines changed

2 files changed

+13
-55
lines changed

flake.lock

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

flake.nix

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
11
{
2-
description = "NodeJS 16_x project";
2+
description = "web-branch-deep-linking-attribution flake";
33

44
inputs = {
55
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
66
utils.url = "github:numtide/flake-utils";
77
};
88

9-
outputs = { self }:
10-
let
11-
nixpkgs = nixpkgs;
12-
extra-pkgs = packages;
13-
utils = utils;
14-
system-utils = system-utils;
15-
in
9+
# each key in the inputs becomes the named argument of the the function below
10+
outputs = { self, nixpkgs, utils }:
1611
utils.lib.eachDefaultSystem (system:
1712
let
18-
stable-pkgs = nixpkgs.legacyPackages.${system};
19-
pkgs = stable-pkgs // {
20-
extra-pkgs = extra-pkgs.${system};
21-
};
22-
bazel-os = system-utils.getBazelOs system;
23-
nodejs = pkgs.extra-pkgs.nodejs-16_x;
13+
pkgs = nixpkgs.legacyPackages.${system};
14+
# the oldest nodejs sdk version we can use with public nixpkgs is 18.x
15+
# This should be find for our web-sdk
16+
nodejs = pkgs.nodejs_18;
2417
in
2518
{
19+
formatter = pkgs.nixpkgs-fmt;
2620
devShell = pkgs.mkShell {
2721
nativeBuildInputs = [
2822
nodejs
@@ -33,7 +27,6 @@
3327
fi
3428
'';
3529
};
36-
formatter = pkgs.nixpkgs-fmt;
3730
}
3831
);
3932
}

0 commit comments

Comments
 (0)