-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix.bkup
46 lines (43 loc) · 1.49 KB
/
shell.nix.bkup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{pkgs ? import <nixpkgs> {} }:
let
bun_1_0_24 = pkgs.bun.overrideAttrs (oldAttrs: with pkgs; rec {
version = "1.0.24";
src = passthru.sources.${stdenvNoCC.hostPlatform.system} or (throw "Unsupported system: ${stdenvNoCC.hostPlatform.system}");
passthru = oldAttrs.passthru // {
sources = oldAttrs.passthru.sources // {
"aarch64-darwin" = fetchurl {
url = "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-darwin-aarch64.zip";
hash = "";
};
"aarch64-linux" = fetchurl {
url = "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-linux-aarch64.zip";
hash = "";
};
"x86_64-darwin" = fetchurl {
url = "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-darwin-x64.zip";
hash = "";
};
"x86_64-linux" = fetchurl {
url = "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-linux-x64.zip";
hash = "sha256-IPQ4W8B4prlLljf7OviGpYtqNxSxMB1kHCMOrnbxldw=";
};
};
};
});
prisma-engines_581 = pkgs.prisma-engines.overrideAttrs (oldAttrs: with pkgs; rec {
version = "5.8.1";
src = fetchFromGitHub {
owner = "prisma";
repo = "prisma-engines";
rev = version;
sha256 = "sha256-0XyKYhKUobESGRieD/gWva2gzYISfttzEBXXviSeY9w=";
};
});
in
pkgs.mkShell rec {
name = "bun_devenv";
buildInputs = with pkgs; [
bun_1_0_24
prisma-engines_581
];
}