This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
AsaJS/packages/bun.nix
2026-04-09 10:36:32 +07:00

27 lines
647 B
Nix
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ pkgs, ... }:
pkgs.stdenv.mkDerivation rec {
pname = "bun";
version = "1.3.10";
src = pkgs.fetchzip {
url = "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-linux-x64-baseline.zip";
hash = "sha256-ZWTs4ApH0BsATxrE1DSuqCETIrNZZxdG8xtN0NinNBw=";
};
dontBuild = true;
installPhase = ''
mkdir -p $out/bin
cp bun $out/bin/
chmod +x $out/bin/bun
'';
meta = with pkgs.lib; {
description = "Incredibly fast JavaScript runtime, bundler, transpiler and package manager all in one";
homepage = "https://bun.sh";
license = with licenses; [
mit
lgpl21Only
];
};
}