flake: create gloomberb flake pkg

This commit is contained in:
2026-09-10 16:23:14 -04:00
parent c1edb1028a
commit 27e8373e15
6 changed files with 2054 additions and 55 deletions
+51
View File
@@ -0,0 +1,51 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
bun2nix.url = "github:nix-community/bun2nix";
bun2nix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{
self,
nixpkgs,
bun2nix,
}:
let
systems = [
"x86_64-linux"
"aarch64-linux"
];
forAll = nixpkgs.lib.genAttrs systems;
in
{
packages = forAll (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
bun2nix' = bun2nix.packages.${system}.default;
in
{
default = bun2nix'.mkDerivation {
pname = "gloomberb";
version = "0.13.3";
src = pkgs.fetchFromGitHub {
owner = "gloom-sh";
repo = "gloomberb";
rev = "v0.13.3";
hash = "sha256-b5Ugf0+2eWC9GcX/zxFUSZXsVVdZhSA8jv37h4XBMNc=";
};
bunDeps = bun2nix'.fetchBunDeps {
bunNix = ./bun.nix;
};
module = "src/index.tsx";
bunCompileToBytecode = false;
};
}
);
};
}