Skip to content

Commit

Permalink
Merge pull request #99 from replit/cad/use-internal-bun-drv
Browse files Browse the repository at this point in the history
use internal bun drv and bun 1.0.1
  • Loading branch information
cdmistman authored Sep 13, 2023
2 parents 413a8c3 + 9aaa2a2 commit 143e1ed
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@
"commit": "f253fb1a97d9a1c950d90081ee1ccb290776cf8b",
"path": "/nix/store/qf9aiylryg8lq5q4z7fcj11824k9rf17-replit-module-bun-1.0"
},
"bun-1.0:v2-20230913-4d3c541": {
"commit": "4d3c5419c8a38d3ecca8ce5d9cfc1a73fe935df8",
"path": "/nix/store/mlc4lwhrvjnk7lpf876q5w64wxb53j2z-replit-module-bun-1.0"
},
"rust-1.72:v1-20230911-f253fb1": {
"commit": "f253fb1a97d9a1c950d90081ee1ccb290776cf8b",
"path": "/nix/store/3siflmi2j4ikwnd35rlnc6g44nbsdpgs-replit-module-rust-1.72"
Expand Down
11 changes: 11 additions & 0 deletions pkgs/modules/bun/bun.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ bun
, fetchurl
}:

bun.overrideAttrs rec {
version = "1.0.1";
src = fetchurl {
url = "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-linux-x64.zip";
hash = "sha256-RmgnWTG6kTebYwIa/VAwvvJmbL+ARNC+HkbF4mJPF7o=";
};
}
2 changes: 1 addition & 1 deletion pkgs/modules/bun/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ pkgs, pkgs-unstable, lib, ... }:

let
inherit (pkgs-unstable) bun;
bun = pkgs-unstable.callPackage ./bun.nix { };

extensions = [ ".json" ".js" ".jsx" ".ts" ".tsx" ];

Expand Down
1 change: 1 addition & 0 deletions pkgs/upgrade-maps/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let
"bun-0.6:v3-20230623-0b7a606" = { to = "bun-0.6:v4-20230721-719ce58"; auto = true; };
"bun-0.6:v4-20230721-719ce58" = { to = "bun-0.7:v1-20230724-4274858"; auto = true; };
"bun-0.7:v1-20230724-4274858" = { to = "bun-1.0:v1-20230911-f253fb1"; auto = true; };
"bun-1.0:v1-20230911-f253fb1" = { to = "bun-1.0:v2-20230913-4d3c541"; auto = true; };

"go" = { to = "go-1.19:v1-20230525-c48c43c"; auto = true; };
"go-1.19:v1-20230525-c48c43c" = { to = "go-1.20:v1-20230623-0b7a606"; auto = true; };
Expand Down

0 comments on commit 143e1ed

Please sign in to comment.