Add overlay for bun JS runtime version 1.0.1, install bun to user profile

This commit is contained in:
2023-09-14 18:25:30 -05:00
parent e9decbda68
commit b9dd334aca
3 changed files with 17 additions and 1 deletions

15
nix/system/overlays.nix Normal file
View File

@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
{
nixpkgs.overlays = [
(final: prev: {
bun = prev.bun.overrideAttrs (old: rec {
name = "bun-${version}";
version = "1.0.1";
src = pkgs.fetchurl {
url = "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-linux-x64.zip";
sha256 = "sha256-RmgnWTG6kTebYwIa/VAwvvJmbL+ARNC+HkbF4mJPF7o=";
};
});
})
];
}