This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| haruki@enmac:~/program-dir/github.com/haruki7049/lightmix/ > nix flake check --all-systems --print-build-logs | |
| warning: Git tree '/Users/haruki/program-dir/github.com/haruki7049/lightmix' is dirty | |
| evaluation warning: Nixpkgs 26.05 will be the last release to support x86_64-darwin; see https://nixos.org/manual/nixpkgs/unstable/release-notes#x86_64-darwin-26.05 | |
| lightmix> Running phase: unpackPhase | |
| lightmix> unpacking source archive /nix/store/jrmfbba0sr1pwp3mw03fzx31zbbcs7yv-source | |
| lightmix> source root is source | |
| lightmix> Running phase: patchPhase | |
| lightmix> Running phase: updateAutotoolsGnuConfigScriptsPhase | |
| lightmix> Running phase: configurePhase | |
| lightmix> Running phase: buildPhase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| run-zig-build-test (macOS-latest) Set up job 2026-07-01T03:31:19.8562950Z Current runner version: '2.335.1' | |
| run-zig-build-test (macOS-latest) Set up job 2026-07-01T03:31:19.8578470Z ##[group]Runner Image Provisioner | |
| run-zig-build-test (macOS-latest) Set up job 2026-07-01T03:31:19.8578960Z Hosted Compute Agent | |
| run-zig-build-test (macOS-latest) Set up job 2026-07-01T03:31:19.8579330Z Version: 20260611.554 | |
| run-zig-build-test (macOS-latest) Set up job 2026-07-01T03:31:19.8579750Z Commit: 5e0782fdc9014723d3be820dd114dd31555c2bd1 | |
| run-zig-build-test (macOS-latest) Set up job 2026-07-01T03:31:19.8580220Z Build Date: 2026-06-11T21:40:46Z | |
| run-zig-build-test (macOS-latest) Set up job 2026-07-01T03:31:19.8580650Z Worker ID: {569a45fe-4a49-4770-ae89-f1d401bd3164} | |
| run-zig-build-test (macOS-latest) Set up job 2026-07-01T03:31:19.8581090Z Azure Region: westus | |
| run-zig-build-test (macOS-latest) Set up job 2026-07-01T03:31:19.8581590Z ##[endgroup] | |
| run-zig-build-test (macOS-latest) Set up job 2026-07-01T03:31:19.8582590Z ##[gro |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const std = @import("std"); | |
| const lightmix = @import("lightmix"); | |
| const T = f64; | |
| const SAMPLE_RATE: u32 = 44100; | |
| const CHANNELS: u16 = 1; | |
| const LENGTH: usize = SAMPLE_RATE * 2; | |
| const FREQUENCY: T = 440.0; | |
| const VOLUME: T = 0.5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/.deps.nix b/.deps.nix | |
| new file mode 100644 | |
| index 0000000..942885e | |
| --- /dev/null | |
| +++ b/.deps.nix | |
| @@ -0,0 +1,38 @@ | |
| +# generated by zon2nix (https://github.com/nix-community/zon2nix) | |
| + | |
| +{ | |
| + linkFarm, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [nix-shell:~/program-dir/CPLn]$ INC_LIB=$(pkg-config --cflags --libs python3 sdl2 SDL2_ttf) | |
| [nix-shell:~/program-dir/CPLn]$ echo $INC_LIB | |
| -D_THREAD_SAFE -I/nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/include/python3.13 -I/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include -I/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include/SDL2 -I/nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/include/SDL2 -L/nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/lib -L/nix/store/a5ybsxyliwbay8lxx4994xinr2jw079z-sdl2-compat-2.32.58/lib -L/nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/lib -lSDL2_ttf -lSDL2main -lSDL2 -Wl,-framework,Cocoa | |
| [nix-shell:~/program-dir/CPLn]$ cc -v *.c -o CPLn $INC_LIB -lm | |
| clang version 21.1.2 | |
| Target: arm64-apple-darwin | |
| Thread model: posix | |
| InstalledDir: /nix/store/w5wjc54p5cgl4cr1mfkd3lisnaiszaq7-clang-21.1.2/bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| haruki@enmac:~/program-dir/kakei/ > cargo test --workspace | |
| Compiling kakei v0.1.0 (/Users/haruki/program-dir/kakei) | |
| Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s | |
| Running unittests src/lib.rs (target/debug/deps/kakei-95be839b4ae9ae84) | |
| running 0 tests | |
| test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | |
| Running unittests src/main.rs (target/debug/deps/kakei-2ee18922db26a0c1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [haruki@tuf-chan:~/program-dir/kakei]$ nix-build | |
| these 4 derivations will be built: | |
| /nix/store/f8n4rxpvijl6xlcmkf2rfw4maz4v5347-vendor-registry.drv | |
| /nix/store/p0kpa4g13vx1y2y3bhd6lfjp70n70ryq-vendor-cargo-deps.drv | |
| /nix/store/v9nvmp8fgygrakm5jpcxvhfplfcyl1s7-kakei-deps-0.1.0.drv | |
| /nix/store/w1jwsv6pc9m5p5gcklh8sklz3706yk52-kakei-0.1.0.drv | |
| building '/nix/store/f8n4rxpvijl6xlcmkf2rfw4maz4v5347-vendor-registry.drv'... | |
| building '/nix/store/p0kpa4g13vx1y2y3bhd6lfjp70n70ryq-vendor-cargo-deps.drv'... | |
| building '/nix/store/v9nvmp8fgygrakm5jpcxvhfplfcyl1s7-kakei-deps-0.1.0.drv'... | |
| cargoArtifacts not set, will not reuse any cargo artifacts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [haruki@tuf-chan:~]$ nix repl | |
| Nix 2.31.2 | |
| Type :? for help. | |
| nix-repl> pkgs = import (builtins.fetchTarball "https://github.com/nixos/nixpkgs/archive/c80356bb1b1e65675470364434e58fcea8566dd7.tar.gz") { } | |
| nix-repl> pkgs.linuxPackages_latest | |
| { | |
| __unfix__ = «lambda @ /nix/store/fzp7zdnhp95wkj3khbx2lwjbdryzsl4l-source/lib/fixed-points.nix:447:7»; | |
| acer-wmi-battery = «derivation /nix/store/9006154my7yn373i0m8l2254kpgxdcns-acer-wmi-battery-6.17.7-0.1.0-unstable-2025-04-24.drv»; | |
| acpi_call = «derivation /nix/store/i1nb8gb543psql4izcyxgapd3yvqn1md-acpi-call-1.2.2-6.17.7.drv»; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| stdenv, | |
| fetchFromGitHub, | |
| jdk, | |
| jre, | |
| ant, | |
| makeWrapper, | |
| }: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Original data | |
| data = {2, 3, 55, 22, 1, 4, 5, 33, 44, 11} | |
| -- Debugging function | |
| function dump(o) | |
| if type(o) == 'table' then | |
| local s = '{ ' | |
| for k,v in pairs(o) do | |
| if type(k) ~= 'number' then k = '"'..k..'"' end |
NewerOlder