devenv bun overlays

Signed-off-by: Dmytro Stanchiev <git@dmytros.dev>
This commit is contained in:
2025-10-28 15:12:01 -04:00
parent 3fccbb7a46
commit e95ea2f66a
2 changed files with 33 additions and 9 deletions

View File

@@ -3,10 +3,10 @@
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1753831157,
"lastModified": 1761676484,
"owner": "cachix",
"repo": "devenv",
"rev": "ed23cb144a056b4c34bbe633e275e54785f0b98d",
"rev": "f68e6572cbd35092f5cfc6b906da27592f63c3d5",
"type": "github"
},
"original": {
@@ -19,10 +19,10 @@
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1747046372,
"lastModified": 1761588595,
"owner": "edolstra",
"repo": "flake-compat",
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
"rev": "f387cd2afec9419c8ee37694406ca490c3f34ee5",
"type": "github"
},
"original": {
@@ -40,10 +40,10 @@
]
},
"locked": {
"lastModified": 1750779888,
"lastModified": 1760663237,
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "16ec914f6fb6f599ce988427d9d94efddf25fe6d",
"rev": "ca5b894d3e3e151ffc1db040b6ce4dcc75d31c37",
"type": "github"
},
"original": {
@@ -74,10 +74,10 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1750441195,
"lastModified": 1761313199,
"owner": "cachix",
"repo": "devenv-nixpkgs",
"rev": "0ceffe312871b443929ff3006960d29b120dc627",
"rev": "d1c30452ebecfc55185ae6d1c983c09da0c274ff",
"type": "github"
},
"original": {

View File

@@ -4,11 +4,35 @@
config,
inputs,
...
}: {
}:
{
languages.javascript = {
enable = true;
bun.enable = true;
};
overlays =
let
mkBunOverlay =
pkgName: variant: hash:
(final: prev: {
"${pkgName}" = prev.bun.overrideAttrs rec {
passthru.sources."x86_64-linux" = prev.fetchurl {
inherit hash;
url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.1/bun-linux-x64${variant}.zip";
};
src = passthru.sources."x86_64-linux";
};
});
in
[
(mkBunOverlay "bunBaseline" "-baseline" "sha256-oPlaeSdMBsJSzaq/HQ6HjhXQ0wZ5v2dS4DJuwUEwIyM=")
(mkBunOverlay "bun" "" "sha256-QAgkyCv8wIVDZbytoRz1PXOE7LHiw9oOLAosalJ9Vik=")
];
profiles = {
hostname."frostburn".module = {
languages.javascript.bun.package = pkgs.bunBaseline;
};
};
enterShell = ''
echo ""
echo "$(git --version)"