Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 5 additions & 40 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 10 additions & 20 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,31 +1,22 @@
{
description = "NodeJS 16_x project";
description = "web-branch-deep-linking-attribution flake";

inputs = {
# Specify the source of Home Manager and Nixpkgs.
branch-nix.url = "git+ssh://[email protected]/BranchMetrics/nix";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
utils.url = "github:numtide/flake-utils";
};

outputs = { self, branch-nix }:
let
nixpkgs = branch-nix.nixpkgs;
nixpkgs-unstable = branch-nix.nixpkgs-unstable;
extra-pkgs = branch-nix.packages;
utils = branch-nix.utils;
system-utils = branch-nix.system-utils;
in
# each key in the inputs becomes the named argument of the the function below
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let
stable-pkgs = nixpkgs.legacyPackages.${system};
unstable-pkgs = nixpkgs.legacyPackages.${system};
pkgs = stable-pkgs // {
extra-pkgs = extra-pkgs.${system};
unstable = unstable-pkgs;
};
bazel-os = system-utils.getBazelOs system;
nodejs = pkgs.extra-pkgs.nodejs-16_x;
pkgs = nixpkgs.legacyPackages.${system};
# the oldest nodejs sdk version we can use with public nixpkgs is 18.x
# This should be find for our web-sdk
nodejs = pkgs.nodejs_18;
in
{
formatter = pkgs.nixpkgs-fmt;
devShell = pkgs.mkShell {
nativeBuildInputs = [
nodejs
Expand All @@ -36,7 +27,6 @@
fi
'';
};
formatter = pkgs.nixpkgs-fmt;
}
);
}
Loading