Compare commits
2 Commits
18417731d6
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
6ec681887d
|
|||
|
1504173111
|
@@ -14,9 +14,10 @@
|
||||
version ? "1.3.13",
|
||||
}: let
|
||||
# When updating `version`, compute the new hash with:
|
||||
# nix store prefetch-file \
|
||||
# "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-linux-x64-baseline.zip"
|
||||
hash = "sha256-nYokKSpwaAkCBdqsCloiP19pc29Sh+N7+I07QDHtx1A=";
|
||||
# nix store prefetch-file "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-linux-x64-baseline.zip"
|
||||
hash = {
|
||||
"1.3.13" = "sha256-nYokKSpwaAkCBdqsCloiP19pc29Sh+N7+I07QDHtx1A=";
|
||||
};
|
||||
in
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "bun-baseline";
|
||||
@@ -24,7 +25,7 @@ in
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-linux-x64-baseline.zip";
|
||||
inherit hash;
|
||||
hash = hash.${version};
|
||||
};
|
||||
|
||||
nativeBuildInputs =
|
||||
|
||||
@@ -13,25 +13,16 @@ with lib; let
|
||||
# Intel Core i5 2640M.
|
||||
needsBaselineBun =
|
||||
pkgs.stdenv.hostPlatform.isx86_64 && !pkgs.stdenv.hostPlatform.avx2Support;
|
||||
bunBaseline = pkgs.callPackage ../../../../packages/bun-baseline.nix {};
|
||||
|
||||
defaultPackageCli =
|
||||
if needsBaselineBun
|
||||
then
|
||||
pkgs.opencode.override {
|
||||
bun = pkgs.callPackage ../../../../packages/bun-baseline.nix {
|
||||
version = pkgs.bun.version;
|
||||
};
|
||||
}
|
||||
then pkgs.opencode.override {bun = bunBaseline;}
|
||||
else pkgs.opencode;
|
||||
|
||||
defaultPackageDesktop =
|
||||
if needsBaselineBun
|
||||
then
|
||||
pkgs.opencode-desktop.override {
|
||||
bun = pkgs.callPackage ../../../../packages/bun-baseline.nix {
|
||||
version = pkgs.bun.version;
|
||||
};
|
||||
}
|
||||
then pkgs.opencode-desktop.override {bun = bunBaseline;}
|
||||
else pkgs.opencode-desktop;
|
||||
|
||||
corsList = domains: lists.remove "" (lists.forEach (strings.splitString "," domains) trim);
|
||||
|
||||
@@ -106,6 +106,7 @@
|
||||
);
|
||||
};
|
||||
};
|
||||
media.mopidy.enable = false;
|
||||
};
|
||||
|
||||
manual = {
|
||||
|
||||
Reference in New Issue
Block a user