Skip to content

Instantly share code, notes, and snippets.

@haruki7049
Created November 14, 2025 02:26
Show Gist options
  • Select an option

  • Save haruki7049/1dc51ea834763198d634c9f07d268ce6 to your computer and use it in GitHub Desktop.

Select an option

Save haruki7049/1dc51ea834763198d634c9f07d268ce6 to your computer and use it in GitHub Desktop.
[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
Running phase: unpackPhase
unpacking source archive /nix/store/ncrs5akw2g92w6gmlzpm1s4wirg94vbm-source
source root is source
Running phase: patchPhase
Executing configureCargoCommonVars
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
will append /build/source/.cargo-home/config.toml with contents of /nix/store/3mwj8mbkmqlzx0n2r612gvmk1fnh9mjc-vendor-cargo-deps/config.toml
default configurePhase, nothing to do
Running phase: buildPhase
+++ command cargo --version
cargo 1.91.0 (ea2d97820 2025-10-10)
+++ command cargo check --release --locked --all-targets
Compiling proc-macro2 v1.0.95
Compiling unicode-ident v1.0.12
Compiling quote v1.0.41
Compiling libc v0.2.172
Compiling serde_core v1.0.228
Compiling serde v1.0.228
Compiling autocfg v1.5.0
Compiling typenum v1.19.0
Compiling version_check v0.9.5
Compiling icu_properties_data v2.1.1
Compiling icu_normalizer_data v2.1.1
Compiling stable_deref_trait v1.2.1
Compiling crossbeam-utils v0.8.21
Compiling parking_lot_core v0.9.12
Checking memchr v2.7.4
Checking cfg-if v1.0.0
Checking smallvec v1.15.1
Compiling litemap v0.8.1
Compiling thiserror v2.0.17
Compiling writeable v0.6.2
Compiling pin-project-lite v0.2.16
Compiling futures-core v0.3.31
Compiling serde_json v1.0.145
Compiling find-msvc-tools v0.1.4
Compiling shlex v1.3.0
Compiling vcpkg v0.2.15
Compiling pkg-config v0.3.32
Compiling scopeguard v1.2.0
Compiling futures-sink v0.3.31
Checking equivalent v1.0.2
Compiling lock_api v0.4.14
Compiling percent-encoding v2.3.2
Checking once_cell v1.21.3
Compiling cc v1.2.45
Compiling heck v0.5.0
Compiling foldhash v0.1.5
Compiling bytes v1.10.1
Compiling slab v0.4.11
Checking hashbrown v0.16.0
Compiling futures-io v0.3.31
Compiling pin-utils v0.1.0
Compiling allocator-api2 v0.2.21
Compiling form_urlencoded v1.2.2
Compiling ryu v1.0.20
Compiling futures-task v0.3.31
Compiling itoa v1.0.15
Compiling utf8_iter v1.0.4
Compiling generic-array v0.14.9
Checking tracing-core v0.1.34
Compiling cpufeatures v0.2.17
Compiling iana-time-zone v0.1.64
Checking log v0.4.28
Compiling crc-catalog v2.4.0
Compiling parking v2.2.1
Compiling spin v0.9.8
Compiling crc v3.3.0
Checking regex-syntax v0.8.8
Compiling num-traits v0.2.19
Compiling base64 v0.22.1
Checking aho-corasick v1.1.4
Compiling hashbrown v0.15.5
Compiling flume v0.11.1
Compiling futures-channel v0.3.31
Compiling futures-util v0.3.31
Compiling hex v0.4.3
Checking concurrent-queue v2.5.0
Compiling crossbeam-queue v0.3.12
Checking indexmap v2.12.0
Compiling dotenvy v0.15.7
Checking anstyle v1.0.7
Compiling rust_decimal v1.39.0
Checking event-listener v5.4.1
Checking option-ext v0.2.0
Compiling kakei_money v0.1.0 (/build/source/crates/processor/crates/money)
Checking utf8parse v0.2.2
Checking arrayvec v0.7.6
Checking anstyle-query v1.1.0
Checking anstyle-parse v0.2.4
Checking unicode-width v0.2.2
Compiling syn v2.0.101
Checking is_terminal_polyfill v1.70.0
Checking toml_write v0.1.2
Compiling kakei_database v0.1.0 (/build/source/crates/processor/crates/database)
Checking colorchoice v1.0.1
Compiling proc-macro-error-attr2 v2.0.0
Checking winnow v0.7.13
Compiling thiserror v1.0.69
Compiling kakei_processor v0.1.0 (/build/source/crates/processor)
Checking strsim v0.11.1
Checking mio v1.1.0
Checking signal-hook-registry v1.4.6
Checking socket2 v0.6.1
Checking anstream v0.6.14
Compiling hashlink v0.10.0
Checking dirs-sys v0.4.1
Checking clap_lex v0.7.1
Checking bytecount v0.6.9
Checking fnv v1.0.7
Checking lazy_static v1.5.0
Checking testing_table v0.3.0
Checking parking_lot v0.12.5
Checking dirs-sys v0.5.0
Checking papergrid v0.17.0
Checking sharded-slab v0.1.7
Checking directories v5.0.1
Checking tracing-log v0.2.0
Checking thread_local v1.1.9
Checking clap_builder v4.5.8
Compiling kakei v0.1.0 (/build/source)
Checking nu-ansi-term v0.50.3
Checking predicates-core v1.0.9
Checking atoi v2.0.0
Compiling getrandom v0.3.4
Compiling rustix v1.1.2
Checking futures-intrusive v0.5.0
Compiling chrono v0.4.42
Checking float-cmp v0.10.0
Checking directories v6.0.0
Checking normalize-line-endings v0.3.0
Compiling assert_cmd v2.1.1
Compiling tokio v1.48.0
Checking termtree v0.5.1
Checking bitflags v2.9.0
Checking linux-raw-sys v0.11.0
Checking difflib v0.4.0
Checking wait-timeout v0.2.1
Checking predicates-tree v1.0.12
Checking fastrand v2.3.0
Compiling libsqlite3-sys v0.30.1
Checking block-buffer v0.10.4
Checking crypto-common v0.1.6
Compiling digest v0.10.7
Compiling sha2 v0.10.9
Checking regex-automata v0.4.13
Checking futures-executor v0.3.31
Checking tempfile v3.23.0
Compiling synstructure v0.13.2
Compiling proc-macro-error2 v2.0.1
Compiling zerofrom-derive v0.1.6
Compiling yoke-derive v0.8.1
Compiling zerovec-derive v0.11.2
Compiling displaydoc v0.2.5
Compiling serde_derive v1.0.228
Compiling tracing-attributes v0.1.30
Compiling thiserror-impl v2.0.17
Compiling tokio-macros v2.6.0
Compiling rust_decimal_macros v1.39.0
Compiling thiserror-impl v1.0.69
Compiling clap_derive v4.5.8
Compiling tabled_derive v0.11.0
Checking matchers v0.2.0
Checking regex v1.12.2
Checking bstr v1.12.1
Compiling tokio-stream v0.1.17
Checking predicates v3.1.3
Checking tabled v0.20.0
Compiling zerofrom v0.1.6
Compiling yoke v0.8.1
Compiling tracing v0.1.41
Compiling zerovec v0.11.5
Compiling zerotrie v0.2.3
Checking tracing-subscriber v0.3.20
Checking clap v4.5.8
Checking tinystr v0.8.2
Checking potential_utf v0.1.4
Compiling icu_collections v2.1.1
Compiling icu_locale_core v2.1.1
Compiling icu_provider v2.1.1
Checking icu_properties v2.1.1
Checking icu_normalizer v2.1.1
Checking either v1.15.0
Checking serde_urlencoded v0.7.1
Checking serde_spanned v0.6.9
Checking toml_datetime v0.6.11
Checking toml_edit v0.22.27
Checking idna_adapter v1.2.1
Checking idna v1.1.0
Compiling url v2.5.7
Compiling sqlx-core v0.8.6
Checking toml v0.8.23
Checking confy v0.6.1
Compiling sqlx-sqlite v0.8.6
Compiling sqlx-macros-core v0.8.6
Compiling sqlx-macros v0.8.6
Checking sqlx v0.8.6
Finished `release` profile [optimized] target(s) in 38.59s
+++ command cargo build --release --locked
Compiling stable_deref_trait v1.2.1
Compiling smallvec v1.15.1
Compiling cfg-if v1.0.0
Compiling litemap v0.8.1
Compiling pin-project-lite v0.2.16
Compiling writeable v0.6.2
Compiling scopeguard v1.2.0
Compiling equivalent v1.0.2
Compiling futures-core v0.3.31
Compiling libc v0.2.172
Compiling serde_core v1.0.228
Compiling typenum v1.19.0
Compiling icu_normalizer_data v2.1.1
Compiling icu_properties_data v2.1.1
Compiling num-traits v0.2.19
Compiling hashbrown v0.16.0
Compiling futures-sink v0.3.31
Compiling once_cell v1.21.3
Compiling crossbeam-utils v0.8.21
Compiling zerofrom v0.1.6
Compiling memchr v2.7.4
Compiling percent-encoding v2.3.2
Compiling log v0.4.28
Compiling lock_api v0.4.14
Compiling bytes v1.10.1
Compiling itoa v1.0.15
Compiling ryu v1.0.20
Compiling pin-utils v0.1.0
Compiling foldhash v0.1.5
Compiling slab v0.4.11
Compiling futures-io v0.3.31
Compiling allocator-api2 v0.2.21
Compiling utf8_iter v1.0.4
Compiling futures-task v0.3.31
Compiling thiserror v2.0.17
Compiling iana-time-zone v0.1.64
Compiling cpufeatures v0.2.17
Compiling parking v2.2.1
Compiling crc-catalog v2.4.0
Compiling option-ext v0.2.0
Compiling yoke v0.8.1
Compiling base64 v0.22.1
Compiling libsqlite3-sys v0.30.1
Compiling crc v3.3.0
Compiling futures-channel v0.3.31
Compiling form_urlencoded v1.2.2
Compiling utf8parse v0.2.2
Compiling arrayvec v0.7.6
Compiling is_terminal_polyfill v1.70.0
Compiling winnow v0.7.13
Compiling tracing-core v0.1.34
Compiling colorchoice v1.0.1
Compiling anstyle-parse v0.2.4
Compiling regex-syntax v0.8.8
Compiling anstyle-query v1.1.0
Compiling unicode-width v0.2.2
Compiling toml_write v0.1.2
Compiling anstyle v1.0.7
Compiling bytecount v0.6.9
Compiling lazy_static v1.5.0
Compiling clap_lex v0.7.1
Compiling fnv v1.0.7
Compiling spin v0.9.8
Compiling zerovec v0.11.5
Compiling zerotrie v0.2.3
Compiling strsim v0.11.1
Compiling sharded-slab v0.1.7
Compiling thiserror v1.0.69
Compiling thread_local v1.1.9
Compiling nu-ansi-term v0.50.3
Compiling anstream v0.6.14
Compiling testing_table v0.3.0
Compiling papergrid v0.17.0
Compiling flume v0.11.1
Compiling hashbrown v0.15.5
Compiling concurrent-queue v2.5.0
Compiling crossbeam-queue v0.3.12
Compiling clap_builder v4.5.8
Compiling futures-util v0.3.31
Compiling tracing v0.1.41
Compiling tracing-log v0.2.0
Compiling event-listener v5.4.1
Compiling indexmap v2.12.0
Compiling generic-array v0.14.9
Compiling parking_lot_core v0.9.12
Compiling signal-hook-registry v1.4.6
Compiling socket2 v0.6.1
Compiling mio v1.1.0
Compiling dirs-sys v0.4.1
Compiling dirs-sys v0.5.0
Compiling tinystr v0.8.2
Compiling potential_utf v0.1.4
Compiling directories v5.0.1
Compiling directories v6.0.0
Compiling atoi v2.0.0
Compiling parking_lot v0.12.5
Compiling icu_collections v2.1.1
Compiling icu_locale_core v2.1.1
Compiling hashlink v0.10.0
Compiling futures-intrusive v0.5.0
Compiling tokio v1.48.0
Compiling crypto-common v0.1.6
Compiling block-buffer v0.10.4
Compiling digest v0.10.7
Compiling sha2 v0.10.9
Compiling regex-automata v0.4.13
Compiling icu_provider v2.1.1
Compiling tabled v0.20.0
Compiling icu_properties v2.1.1
Compiling icu_normalizer v2.1.1
Compiling serde v1.0.228
Compiling serde_json v1.0.145
Compiling chrono v0.4.42
Compiling either v1.15.0
Compiling serde_urlencoded v0.7.1
Compiling rust_decimal v1.39.0
Compiling serde_spanned v0.6.9
Compiling toml_datetime v0.6.11
Compiling idna_adapter v1.2.1
Compiling idna v1.1.0
Compiling clap v4.5.8
Compiling toml_edit v0.22.27
Compiling futures-executor v0.3.31
Compiling url v2.5.7
Compiling kakei_money v0.1.0 (/build/source/crates/processor/crates/money)
Compiling matchers v0.2.0
Compiling tracing-subscriber v0.3.20
Compiling toml v0.8.23
Compiling confy v0.6.1
Compiling tokio-stream v0.1.17
Compiling sqlx-core v0.8.6
Compiling sqlx-sqlite v0.8.6
Compiling sqlx v0.8.6
Compiling kakei_database v0.1.0 (/build/source/crates/processor/crates/database)
Compiling kakei_processor v0.1.0 (/build/source/crates/processor)
Compiling kakei v0.1.0 (/build/source)
Finished `release` profile [optimized] target(s) in 8.07s
buildPhase completed in 47 seconds
Running phase: checkPhase
+++ command cargo test --release --locked --no-run
Compiling aho-corasick v1.1.4
Compiling regex-syntax v0.8.8
Compiling predicates-core v1.0.9
Compiling float-cmp v0.10.0
Compiling bitflags v2.9.0
Compiling termtree v0.5.1
Compiling linux-raw-sys v0.11.0
Compiling normalize-line-endings v0.3.0
Compiling difflib v0.4.0
Compiling getrandom v0.3.4
Compiling wait-timeout v0.2.1
Compiling fastrand v2.3.0
Compiling predicates-tree v1.0.12
Compiling rustix v1.1.2
Compiling regex-automata v0.4.13
Compiling tempfile v3.23.0
Compiling regex v1.12.2
Compiling matchers v0.2.0
Compiling bstr v1.12.1
Compiling tracing-subscriber v0.3.20
Compiling predicates v3.1.3
Compiling assert_cmd v2.1.1
Compiling kakei v0.1.0 (/build/source)
Finished `release` profile [optimized] target(s) in 4.11s
Executable unittests src/lib.rs (target/release/deps/kakei-cb450de1e1bb64b7)
Executable unittests src/main.rs (target/release/deps/kakei-7c5baf2719446c9b)
Running phase: installPhase
no previous artifacts found, compressing and installing full archive of target to /nix/store/4k6p9vmycrjs80bxlplq831kcpbn1fq1-kakei-deps-0.1.0/target.tar.zst
/*stdin*\ : 26.52% ( 604 MiB => 160 MiB, /nix/store/4k6p9vmycrjs80bxlplq831kcpbn1fq1-kakei-deps-0.1.0/target.tar.zst)
Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/4k6p9vmycrjs80bxlplq831kcpbn1fq1-kakei-deps-0.1.0
checking for references to /build/ in /nix/store/4k6p9vmycrjs80bxlplq831kcpbn1fq1-kakei-deps-0.1.0...
patching script interpreter paths in /nix/store/4k6p9vmycrjs80bxlplq831kcpbn1fq1-kakei-deps-0.1.0
building '/nix/store/w1jwsv6pc9m5p5gcklh8sklz3706yk52-kakei-0.1.0.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/pn418pwb8wrp417jj5hi0wpsssjd6yrz-source
source root is source
Running phase: patchPhase
Executing configureCargoCommonVars
decompressing cargo artifacts from /nix/store/4k6p9vmycrjs80bxlplq831kcpbn1fq1-kakei-deps-0.1.0/target.tar.zst to target
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
will append /build/source/.cargo-home/config.toml with contents of /nix/store/3mwj8mbkmqlzx0n2r612gvmk1fnh9mjc-vendor-cargo-deps/config.toml
default configurePhase, nothing to do
Running phase: buildPhase
+++ command cargo --version
cargo 1.91.0 (ea2d97820 2025-10-10)
+++ command cargo build --release --message-format json-render-diagnostics --locked
Compiling kakei_money v0.1.0 (/build/source/crates/processor/crates/money)
Compiling kakei_database v0.1.0 (/build/source/crates/processor/crates/database)
Compiling kakei_processor v0.1.0 (/build/source/crates/processor)
Compiling kakei v0.1.0 (/build/source)
Finished `release` profile [optimized] target(s) in 3.07s
searching for bins/libs to install from cargo build log at cargoBuildLogI656.json
installing /build/source/target/release/kakei in postBuildInstallFromCargoBuildLogOutTempBHL/bin
searching for bins/libs complete
Running phase: checkPhase
+++ command cargo test --release --locked
Compiling kakei v0.1.0 (/build/source)
Finished `release` profile [optimized] target(s) in 2.59s
Running unittests src/lib.rs (target/release/deps/kakei-538475231ec6dc18)
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/release/deps/kakei-40771aa3b97c5cdc)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/example_config_test.rs (target/release/deps/example_config_test-d39c6102b04d0337)
running 6 tests
test test_example_config_is_valid ... FAILED
test test_example_config_creates_correct_categories ... ok
test test_example_config_with_transaction ... ok
test test_example_config_all_accounts ... ok
test test_example_config_all_income_categories ... ok
test test_example_config_all_expense_categories ... ok
failures:
---- test_example_config_is_valid stdout ----
thread 'test_example_config_is_valid' (383) panicked at /nix/store/h5fcn8nj0j6gn0gl5iy382ysyfclymz7-rust-default-1.91.0/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5:
Unexpected failure.
code=1
stderr=```"Error: Os { code: 13, kind: PermissionDenied, message: \"Permission denied\" }\n"```
command=`"/build/source/target/release/kakei" "--config-file" "/build/.tmpslRDkN/config.toml" "init"`
code=1
stdout=""
stderr="Error: Os { code: 13, kind: PermissionDenied, message: \"Permission denied\" }\n"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
test_example_config_is_valid
test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.83s
error: test failed, to rerun pass `--test example_config_test`
error: Cannot build '/nix/store/w1jwsv6pc9m5p5gcklh8sklz3706yk52-kakei-0.1.0.drv'.
Reason: builder failed with exit code 101.
Output paths:
/nix/store/k7x6brigg87rihcdqrr0n8hhm7gdfqx8-kakei-0.1.0
Last 25 log lines:
> test test_example_config_all_income_categories ... ok
> test test_example_config_all_expense_categories ... ok
>
> failures:
>
> ---- test_example_config_is_valid stdout ----
>
> thread 'test_example_config_is_valid' (383) panicked at /nix/store/h5fcn8nj0j6gn0gl5iy382ysyfclymz7-rust-default-1.91.0/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5:
> Unexpected failure.
> code=1
> stderr=```"Error: Os { code: 13, kind: PermissionDenied, message: \"Permission denied\" }\n"```
> command=`"/build/source/target/release/kakei" "--config-file" "/build/.tmpslRDkN/config.toml" "init"`
> code=1
> stdout=""
> stderr="Error: Os { code: 13, kind: PermissionDenied, message: \"Permission denied\" }\n"
>
> note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
>
>
> failures:
> test_example_config_is_valid
>
> test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.83s
>
> error: test failed, to rerun pass `--test example_config_test`
For full logs, run:
nix log /nix/store/w1jwsv6pc9m5p5gcklh8sklz3706yk52-kakei-0.1.0.drv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment