Skip to content

Instantly share code, notes, and snippets.

@Madouura
Madouura / nlohmann-json.log
Created July 14, 2022 06:21
nlohmann-json log
[nixos@nixos:~]$ sudo nixos-rebuild switch --upgrade
unpacking channels...
these 18 derivations will be built:
/nix/store/02q55grkbpwk40y7pmphv96pq4l3ihqi-nlohmann_json-3.10.5.drv
/nix/store/x3l5ib7qkxj1pbky0357qy3clbl2173z-s2n-tls-1.3.12.drv
/nix/store/swn0909k7jnvx9hdg30xac9cnmcvc02x-aws-c-io-0.11.0.drv
/nix/store/2jalf70i7vbcr51n7lb7q8jhzmw1xg5l-aws-c-event-stream-0.2.7.drv
/nix/store/r6pfk2v9k2d0ivrj7ix4ynph0q799kjb-aws-c-http-0.6.15.drv
/nix/store/jh35bbv13syphyhv0ixp7zvss8dj046n-aws-c-auth-0.6.13.drv
/nix/store/kr7n8za17rj2xv1435rk8slhl8dyyhvm-aws-c-s3-0.1.39.drv
@Madouura
Madouura / bcachefsEncrypted.nix
Created May 31, 2022 07:26
nixpkgs installer.nix bcachefsEncrypted test
bcachefsEncrypted = makeInstallerTest "bcachefs-encrypted" {
extraInstallerConfig = {
boot.supportedFilesystems = [ "bcachefs" ];
environment.systemPackages = with pkgs; [ keyutils ];
};
# We don't want to use the normal way of unlocking bcachefs defined in tasks/filesystems/bcachefs.nix.
# So, override initrd.postDeviceCommands completely and simply unlock with the predefined password.
extraConfig = ''
boot.initrd.postDeviceCommands = lib.mkForce "echo password | bcachefs unlock /dev/vda3";
@Madouura
Madouura / linux-testing-bcachefs.nix
Created May 31, 2022 07:24
nixos bcachefs nix package
{ lib
, fetchpatch
, kernel
, date ? "2022-05-30"
, commit ? "fad6d13aa55f96e01cc6ff516cdfea53b2fc9eb1"
, diffHash ? "sha256-rDx5QeYnMmcf+CXXUsy7HHEOIwwd+FVjYVfQTwyV4sU="
, kernelPatches # must always be defined in bcachefs' all-packages.nix entry because it's also a top-level attribute supplied by callPackage
, argsOverride ? {}
, ...
} @ args:
@Madouura
Madouura / bcachefs.log
Created May 31, 2022 07:19
bcachefs nixos encryption bug
machine: must succeed: bcachefs fs usage /mnt >&2
machine # Filesystem: b5bea85c-2ef8-4062-b8d8-cc4d99002c62
machine # Size: 6960238080
machine # Used: 63963136
machine # Online reserved: 0
machine #
machine # Data type Required/total Devices
machine # btree: 1/1 [vda3] 1572864
machine #
machine # (no label) (device 0): vda3 rw
@Madouura
Madouura / zstd.log
Created May 20, 2022 08:36
zstd: riscv64 error log
[nixos@nixos:~]$ nix-shell -p zstd
this derivation will be built:
/nix/store/wpz79b0gp0gfv0nhzgmy0pcba9m5b87z-zstd-1.5.2.drv
building '/nix/store/wpz79b0gp0gfv0nhzgmy0pcba9m5b87z-zstd-1.5.2.drv'...
unpacking sources
unpacking source archive /nix/store/2ac7jy5m3cvwkc7k8x04r3l55mh9qffx-source
source root is source
patching sources
applying patch /nix/store/n91acyjrlchm0snw0w16i4683pf788ax-playtests-darwin.patch
patching file tests/playTests.sh
@Madouura
Madouura / zstd.log
Created May 19, 2022 09:40
zstd: building contrib on riscv64 hardware fails
[nixos@nixos:~]$ nix-shell -p zstd
this derivation will be built:
/nix/store/5m9yspp7l33k7wasqjq93jbxwx950kh1-zstd-1.5.2.drv
building '/nix/store/5m9yspp7l33k7wasqjq93jbxwx950kh1-zstd-1.5.2.drv'...
unpacking sources
unpacking source archive /nix/store/2ac7jy5m3cvwkc7k8x04r3l55mh9qffx-source
source root is source
patching sources
applying patch /nix/store/n91acyjrlchm0snw0w16i4683pf788ax-playtests-darwin.patch
patching file tests/playTests.sh
@Madouura
Madouura / libffi.log
Created May 19, 2022 09:19
libffi: riscv64 test error
[nixos@nixos:~]$ nix-shell -p libffi
this derivation will be built:
/nix/store/88jszw38qcxhbp037d7gs30nfq0m2dzh-libffi-3.4.2.drv
building '/nix/store/88jszw38qcxhbp037d7gs30nfq0m2dzh-libffi-3.4.2.drv'...
unpacking sources
unpacking source archive /nix/store/m5yq1p3wcz5b77dc72ylmpfbs2yfmq8j-libffi-3.4.2.tar.gz
source root is libffi-3.4.2
setting SOURCE_DATE_EPOCH to timestamp 1624929059 of file libffi-3.4.2/doc/libffi.pdf
patching sources
updateAutotoolsGnuConfigScriptsPhase