Init bun and flake file

This commit is contained in:
Martin Berg Alstad 2025-01-31 22:38:48 +01:00
parent 41cb92cce5
commit f5a9e2fc51
Signed by: martials
GPG Key ID: A3824877B269F2E2
4 changed files with 55 additions and 2 deletions

BIN
bun.lockb Executable file

Binary file not shown.

27
flake.lock generated Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1738680400,
"narHash": "sha256-ooLh+XW8jfa+91F1nhf9OF7qhuA/y1ChLx6lXDNeY5U=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "799ba5bffed04ced7067a91798353d360788b30d",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

25
flake.nix Normal file
View File

@ -0,0 +1,25 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = inputs@{ nixpkgs, ... }:
let
system = "x86_64-linux";
in
{
devShells.${system}.default =
let
pkgs = import nixpkgs {
inherit system;
};
in
pkgs.mkShell {
packages = with pkgs; [
bun
];
shellHook = "fish";
};
};
}

View File

@ -35,7 +35,8 @@
"pino-pretty": "^13.0.0",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.7.3"
"typescript": "^5.7.3",
"@types/bun": "latest"
},
"prettier": {
"semi": false,
@ -43,4 +44,4 @@
"tabWidth": 2,
"trailingComma": "all"
}
}
}