2022.06.18
https://www.youtube.com/watch?v=vFjBaQyKW_Y
やった
これ普通にミスで購入してもキャンセルだったらしい ワロタ
知った
cpとかmkdirみたいなものがdeno側で用意さっれている 互換性のために
$ nix-build -E 'import <nix/fetchurl.nix> { url = "http://example.com"; sha256 = "sha256-6o+sfGX7WJsNU1YPUlH3T56bJDR43Laz6nm142RJyNk="; }' おもしろ
ソースファイルをselfで読み込む時,node_modulesとかを除去する
Nixでビルド中に入るsandboxってdeno.landとかregistry.npm.jsみたいに外部アクセス出来ない? When sandbox builds are enabled, Nix will setup an isolated environment for each build process. It is used to remove further hidden dependencies set by the build environment to improve reproducibility. This includes access to the network during the build outside of fetch* functions and files outside the Nix store. Depending on the operating system access to other resources are blocked as well (ex. inter process communication is isolated on Linux); see nix.conf section in the Nix manual for details.
Sandboxes are not enabled by default in Nix as there are cases where it makes building packages harder (for example npm install will not work due missing network access). In pull requests for Nixpkgs people are asked to test builds with sandboxing enabled (see Tested using sandboxing in the pull request template) because in official Hydra builds sandboxing is also used.
To configure Nix for sandboxing, set sandbox = true in /etc/nix/nix.conf; to configure NixOS for sandboxing set nix.useSandbox = true; in configuration.nix. The nix.useSandbox option is true by default since NixOS 17.09.
いいね
観た