diff --git a/flake.lock b/flake.lock index d41a6472..2df95f3b 100644 --- a/flake.lock +++ b/flake.lock @@ -1,32 +1,12 @@ { "nodes": { - "branch-nix": { - "inputs": { - "nixpkgs": "nixpkgs", - "nixpkgs-unstable": "nixpkgs-unstable", - "utils": "utils" - }, - "locked": { - "lastModified": 1730304375, - "narHash": "sha256-e3lFvGSVY+L4UE/kmcIA9peAuPpx6Ibxx33wpNdHlt0=", - "ref": "refs/heads/master", - "rev": "5b627a4d06c0f457afcdcdad80eb086835b677e4", - "revCount": 84, - "type": "git", - "url": "ssh://git@github.com/BranchMetrics/nix" - }, - "original": { - "type": "git", - "url": "ssh://git@github.com/BranchMetrics/nix" - } - }, "nixpkgs": { "locked": { - "lastModified": 1730137625, - "narHash": "sha256-9z8oOgFZiaguj+bbi3k4QhAD6JabWrnv7fscC/mt0KE=", + "lastModified": 1730602179, + "narHash": "sha256-efgLzQAWSzJuCLiCaQUCDu4NudNlHdg2NzGLX5GYaEY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "64b80bfb316b57cdb8919a9110ef63393d74382a", + "rev": "3c2f1c4ca372622cb2f9de8016c9a0b1cbd0f37c", "type": "github" }, "original": { @@ -36,25 +16,10 @@ "type": "github" } }, - "nixpkgs-unstable": { - "locked": { - "lastModified": 1729880355, - "narHash": "sha256-RP+OQ6koQQLX5nw0NmcDrzvGL8HDLnyXt/jHhL1jwjM=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "18536bf04cd71abd345f9579158841376fdd0c5a", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "root": { "inputs": { - "branch-nix": "branch-nix" + "nixpkgs": "nixpkgs", + "utils": "utils" } }, "systems": { diff --git a/flake.nix b/flake.nix index 6f530771..4daf9cf5 100644 --- a/flake.nix +++ b/flake.nix @@ -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://git@github.com/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 @@ -36,7 +27,6 @@ fi ''; }; - formatter = pkgs.nixpkgs-fmt; } ); }