big refactor
This commit is contained in:
commit
76d68230f6
81 changed files with 3065 additions and 0 deletions
27
packages/bun.nix
Executable file
27
packages/bun.nix
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
{ 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in a new issue