flake: create gloomberb flake pkg
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user