-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc
More file actions
2159 lines (2060 loc) · 77.2 KB
/
flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc
File metadata and controls
2159 lines (2060 loc) · 77.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
unset shellHook
PATH=${PATH:-}
nix_saved_PATH="$PATH"
XDG_DATA_DIRS=${XDG_DATA_DIRS:-}
nix_saved_XDG_DATA_DIRS="$XDG_DATA_DIRS"
AR='ar'
export AR
AR_FOR_BUILD='ar'
export AR_FOR_BUILD
AS='as'
export AS
AS_FOR_BUILD='as'
export AS_FOR_BUILD
BASH='/nix/store/8ivrpmp3arvxbr6imdwm2d28q9cjsqvi-bash-5.2p37/bin/bash'
CC='clang'
export CC
CC_FOR_BUILD='clang'
export CC_FOR_BUILD
CONFIG_SHELL='/nix/store/8ivrpmp3arvxbr6imdwm2d28q9cjsqvi-bash-5.2p37/bin/bash'
export CONFIG_SHELL
CXX='clang++'
export CXX
CXX_FOR_BUILD='clang++'
export CXX_FOR_BUILD
DEVELOPER_DIR='/nix/store/w41ks2baj649algkjnbh9746cprrnr1k-apple-sdk-11.3'
export DEVELOPER_DIR
HOSTTYPE='aarch64'
HOST_PATH='/nix/store/fhza62gkyw0mp1h2zls6pl1832zjjf26-libiconv-109/bin:/nix/store/bx0b6gvphv01s2px3j1h1ajy036h8bgb-openssl-3.4.1-bin/bin:/nix/store/d72z8b7fvvcin2p84x7h5s0abkggplzc-coreutils-9.7/bin:/nix/store/9gfvy5dd2kp4xf7m3k5gm79dx1mja2lj-findutils-4.10.0/bin:/nix/store/wkgmvs8kl4a0xkr1a1cs9m3hkn07zh5f-diffutils-3.12/bin:/nix/store/3p81h24g11jfcdd7ifql71lr5mjag102-gnused-4.9/bin:/nix/store/6rdq4hg48bmqy7d8da38niai5ngg1x1s-gnugrep-3.11/bin:/nix/store/ip1m0zq8r95z6wbhk6l0k32anw8h4kc7-gawk-5.3.2/bin:/nix/store/0pfs35y6gzcd3bxiybl7vih5yfyv8bcl-gnutar-1.35/bin:/nix/store/29p1y63i1dxqspyrfima6s5ay6525zlf-gzip-1.14/bin:/nix/store/7dvq6aba13kqkvj7ay850s4q806p33vw-bzip2-1.0.8-bin/bin:/nix/store/wkq7f52a2xq4n24f545wy2fidm4z14f2-gnumake-4.4.1/bin:/nix/store/8ivrpmp3arvxbr6imdwm2d28q9cjsqvi-bash-5.2p37/bin:/nix/store/n1i5qvy1jcblq3s1ilnmc83yqcl0l8vk-patch-2.7.6/bin:/nix/store/rmn4csq2fk0scys2d0v6hgkd3yv5fkxj-xz-5.8.1-bin/bin:/nix/store/bpibjj5f5z5p73afivj0ljzbpdgnjbi0-file-5.46/bin'
export HOST_PATH
IFS='
'
IN_NIX_SHELL='impure'
export IN_NIX_SHELL
LD='ld'
export LD
LD_DYLD_PATH='/usr/lib/dyld'
export LD_DYLD_PATH
LD_FOR_BUILD='ld'
export LD_FOR_BUILD
LINENO='76'
MACHTYPE='aarch64-apple-darwin24.4.0'
MACOSX_DEPLOYMENT_TARGET='11.3'
export MACOSX_DEPLOYMENT_TARGET
NIX_APPLE_SDK_VERSION='110300'
export NIX_APPLE_SDK_VERSION
NIX_BINTOOLS='/nix/store/k8q0n8py04l07glgsfmvqqyqazxf04mb-cctools-binutils-darwin-wrapper-1010.6'
export NIX_BINTOOLS
NIX_BINTOOLS_FOR_BUILD='/nix/store/k8q0n8py04l07glgsfmvqqyqazxf04mb-cctools-binutils-darwin-wrapper-1010.6'
export NIX_BINTOOLS_FOR_BUILD
NIX_BINTOOLS_WRAPPER_TARGET_BUILD_arm64_apple_darwin='1'
export NIX_BINTOOLS_WRAPPER_TARGET_BUILD_arm64_apple_darwin
NIX_BINTOOLS_WRAPPER_TARGET_HOST_arm64_apple_darwin='1'
export NIX_BINTOOLS_WRAPPER_TARGET_HOST_arm64_apple_darwin
NIX_BUILD_CORES='16'
export NIX_BUILD_CORES
NIX_CC='/nix/store/cvhbqa01i5yy7xmmpqp1hbnvq7kpvgsx-clang-wrapper-19.1.7'
export NIX_CC
NIX_CC_FOR_BUILD='/nix/store/cvhbqa01i5yy7xmmpqp1hbnvq7kpvgsx-clang-wrapper-19.1.7'
export NIX_CC_FOR_BUILD
NIX_CC_WRAPPER_TARGET_BUILD_arm64_apple_darwin='1'
export NIX_CC_WRAPPER_TARGET_BUILD_arm64_apple_darwin
NIX_CC_WRAPPER_TARGET_HOST_arm64_apple_darwin='1'
export NIX_CC_WRAPPER_TARGET_HOST_arm64_apple_darwin
NIX_CFLAGS_COMPILE=' -frandom-seed=lq1b993jyz -isystem /nix/store/rfng4494hxqxjgsamkcd01mzfdp2fwlh-libcxx-19.1.7-dev/include -isystem /nix/store/sqmzi81xlsf4gk287rnjk7rj4624zy84-compiler-rt-libc-19.1.7-dev/include -isystem /nix/store/m3l5s4b1v7l2hs9dm73i76cx6acry77k-libiconv-109-dev/include -isystem /nix/store/kbs1gz7p2j7qd1lixqzkladkjdxs8nj7-openssl-3.4.1-dev/include -isystem /nix/store/l676klylkdmxgx3dff5qx6r6j596lpvx-libresolv-83-dev/include -isystem /nix/store/zn828prnxazgd5xaqhzn9f8dxfvadkgg-libsbuf-14.1.0-dev/include -isystem /nix/store/zgrs0am3a5avl3jmjsjlph8d4r17wq6j-cups-headers-2.4.11/include -isystem /nix/store/rfng4494hxqxjgsamkcd01mzfdp2fwlh-libcxx-19.1.7-dev/include -isystem /nix/store/sqmzi81xlsf4gk287rnjk7rj4624zy84-compiler-rt-libc-19.1.7-dev/include -isystem /nix/store/m3l5s4b1v7l2hs9dm73i76cx6acry77k-libiconv-109-dev/include -isystem /nix/store/kbs1gz7p2j7qd1lixqzkladkjdxs8nj7-openssl-3.4.1-dev/include -isystem /nix/store/l676klylkdmxgx3dff5qx6r6j596lpvx-libresolv-83-dev/include -isystem /nix/store/zn828prnxazgd5xaqhzn9f8dxfvadkgg-libsbuf-14.1.0-dev/include -isystem /nix/store/zgrs0am3a5avl3jmjsjlph8d4r17wq6j-cups-headers-2.4.11/include'
export NIX_CFLAGS_COMPILE
NIX_CFLAGS_COMPILE_FOR_BUILD=' -isystem /nix/store/rfng4494hxqxjgsamkcd01mzfdp2fwlh-libcxx-19.1.7-dev/include -isystem /nix/store/sqmzi81xlsf4gk287rnjk7rj4624zy84-compiler-rt-libc-19.1.7-dev/include -isystem /nix/store/m3l5s4b1v7l2hs9dm73i76cx6acry77k-libiconv-109-dev/include -isystem /nix/store/kbs1gz7p2j7qd1lixqzkladkjdxs8nj7-openssl-3.4.1-dev/include -isystem /nix/store/l676klylkdmxgx3dff5qx6r6j596lpvx-libresolv-83-dev/include -isystem /nix/store/zn828prnxazgd5xaqhzn9f8dxfvadkgg-libsbuf-14.1.0-dev/include -isystem /nix/store/zgrs0am3a5avl3jmjsjlph8d4r17wq6j-cups-headers-2.4.11/include -isystem /nix/store/rfng4494hxqxjgsamkcd01mzfdp2fwlh-libcxx-19.1.7-dev/include -isystem /nix/store/sqmzi81xlsf4gk287rnjk7rj4624zy84-compiler-rt-libc-19.1.7-dev/include -isystem /nix/store/m3l5s4b1v7l2hs9dm73i76cx6acry77k-libiconv-109-dev/include -isystem /nix/store/kbs1gz7p2j7qd1lixqzkladkjdxs8nj7-openssl-3.4.1-dev/include -isystem /nix/store/l676klylkdmxgx3dff5qx6r6j596lpvx-libresolv-83-dev/include -isystem /nix/store/zn828prnxazgd5xaqhzn9f8dxfvadkgg-libsbuf-14.1.0-dev/include -isystem /nix/store/zgrs0am3a5avl3jmjsjlph8d4r17wq6j-cups-headers-2.4.11/include -isystem /nix/store/rfng4494hxqxjgsamkcd01mzfdp2fwlh-libcxx-19.1.7-dev/include -isystem /nix/store/sqmzi81xlsf4gk287rnjk7rj4624zy84-compiler-rt-libc-19.1.7-dev/include -isystem /nix/store/m3l5s4b1v7l2hs9dm73i76cx6acry77k-libiconv-109-dev/include -isystem /nix/store/kbs1gz7p2j7qd1lixqzkladkjdxs8nj7-openssl-3.4.1-dev/include -isystem /nix/store/l676klylkdmxgx3dff5qx6r6j596lpvx-libresolv-83-dev/include -isystem /nix/store/zn828prnxazgd5xaqhzn9f8dxfvadkgg-libsbuf-14.1.0-dev/include -isystem /nix/store/zgrs0am3a5avl3jmjsjlph8d4r17wq6j-cups-headers-2.4.11/include'
export NIX_CFLAGS_COMPILE_FOR_BUILD
NIX_DONT_SET_RPATH='1'
export NIX_DONT_SET_RPATH
NIX_DONT_SET_RPATH_FOR_BUILD='1'
export NIX_DONT_SET_RPATH_FOR_BUILD
NIX_ENFORCE_NO_NATIVE='1'
export NIX_ENFORCE_NO_NATIVE
NIX_HARDENING_ENABLE='bindnow format fortify fortify3 pic relro stackclashprotection stackprotector strictoverflow zerocallusedregs'
export NIX_HARDENING_ENABLE
NIX_IGNORE_LD_THROUGH_GCC='1'
export NIX_IGNORE_LD_THROUGH_GCC
NIX_LDFLAGS=' -L/nix/store/xppzbf3fssn7g35ixgzifkwj54x419n5-libcxx-19.1.7/lib -L/nix/store/zqc178w2vh4lkxmy3znl5s2xl7d401nr-compiler-rt-libc-19.1.7/lib -L/nix/store/i68dh3gsjirnxpwm0kmi34j44lqz7278-rust-default-1.87.0/lib -L/nix/store/fhza62gkyw0mp1h2zls6pl1832zjjf26-libiconv-109/lib -L/nix/store/z2js30ib9b11hhcy1zy6x4nzdg75bpxf-openssl-3.4.1/lib -L/nix/store/xdp9yf1r58jzfw1rh68qdhp0d923l07w-libresolv-83/lib -L/nix/store/w2gmrz3ki4lqwb0gw95bjsrwlhknq8ks-libsbuf-14.1.0/lib -L/nix/store/jmq7mr51dql3w8y26kzf4j1s62k6mfww-libutil-72/lib -L/nix/store/xppzbf3fssn7g35ixgzifkwj54x419n5-libcxx-19.1.7/lib -L/nix/store/zqc178w2vh4lkxmy3znl5s2xl7d401nr-compiler-rt-libc-19.1.7/lib -L/nix/store/i68dh3gsjirnxpwm0kmi34j44lqz7278-rust-default-1.87.0/lib -L/nix/store/fhza62gkyw0mp1h2zls6pl1832zjjf26-libiconv-109/lib -L/nix/store/z2js30ib9b11hhcy1zy6x4nzdg75bpxf-openssl-3.4.1/lib -L/nix/store/xdp9yf1r58jzfw1rh68qdhp0d923l07w-libresolv-83/lib -L/nix/store/w2gmrz3ki4lqwb0gw95bjsrwlhknq8ks-libsbuf-14.1.0/lib -L/nix/store/jmq7mr51dql3w8y26kzf4j1s62k6mfww-libutil-72/lib'
export NIX_LDFLAGS
NIX_LDFLAGS_FOR_BUILD=' -L/nix/store/xppzbf3fssn7g35ixgzifkwj54x419n5-libcxx-19.1.7/lib -L/nix/store/zqc178w2vh4lkxmy3znl5s2xl7d401nr-compiler-rt-libc-19.1.7/lib -L/nix/store/i68dh3gsjirnxpwm0kmi34j44lqz7278-rust-default-1.87.0/lib -L/nix/store/fhza62gkyw0mp1h2zls6pl1832zjjf26-libiconv-109/lib -L/nix/store/z2js30ib9b11hhcy1zy6x4nzdg75bpxf-openssl-3.4.1/lib -L/nix/store/xdp9yf1r58jzfw1rh68qdhp0d923l07w-libresolv-83/lib -L/nix/store/w2gmrz3ki4lqwb0gw95bjsrwlhknq8ks-libsbuf-14.1.0/lib -L/nix/store/jmq7mr51dql3w8y26kzf4j1s62k6mfww-libutil-72/lib -L/nix/store/xppzbf3fssn7g35ixgzifkwj54x419n5-libcxx-19.1.7/lib -L/nix/store/zqc178w2vh4lkxmy3znl5s2xl7d401nr-compiler-rt-libc-19.1.7/lib -L/nix/store/i68dh3gsjirnxpwm0kmi34j44lqz7278-rust-default-1.87.0/lib -L/nix/store/fhza62gkyw0mp1h2zls6pl1832zjjf26-libiconv-109/lib -L/nix/store/z2js30ib9b11hhcy1zy6x4nzdg75bpxf-openssl-3.4.1/lib -L/nix/store/xdp9yf1r58jzfw1rh68qdhp0d923l07w-libresolv-83/lib -L/nix/store/w2gmrz3ki4lqwb0gw95bjsrwlhknq8ks-libsbuf-14.1.0/lib -L/nix/store/jmq7mr51dql3w8y26kzf4j1s62k6mfww-libutil-72/lib -L/nix/store/xppzbf3fssn7g35ixgzifkwj54x419n5-libcxx-19.1.7/lib -L/nix/store/zqc178w2vh4lkxmy3znl5s2xl7d401nr-compiler-rt-libc-19.1.7/lib -L/nix/store/i68dh3gsjirnxpwm0kmi34j44lqz7278-rust-default-1.87.0/lib -L/nix/store/fhza62gkyw0mp1h2zls6pl1832zjjf26-libiconv-109/lib -L/nix/store/z2js30ib9b11hhcy1zy6x4nzdg75bpxf-openssl-3.4.1/lib -L/nix/store/xdp9yf1r58jzfw1rh68qdhp0d923l07w-libresolv-83/lib -L/nix/store/w2gmrz3ki4lqwb0gw95bjsrwlhknq8ks-libsbuf-14.1.0/lib -L/nix/store/jmq7mr51dql3w8y26kzf4j1s62k6mfww-libutil-72/lib'
export NIX_LDFLAGS_FOR_BUILD
NIX_NO_SELF_RPATH='1'
export NIX_NO_SELF_RPATH
NIX_PKG_CONFIG_WRAPPER_TARGET_HOST_arm64_apple_darwin='1'
export NIX_PKG_CONFIG_WRAPPER_TARGET_HOST_arm64_apple_darwin
NIX_STORE='/nix/store'
export NIX_STORE
NM='nm'
export NM
NM_FOR_BUILD='nm'
export NM_FOR_BUILD
OBJCOPY='objcopy'
export OBJCOPY
OBJCOPY_FOR_BUILD='objcopy'
export OBJCOPY_FOR_BUILD
OBJDUMP='objdump'
export OBJDUMP
OBJDUMP_FOR_BUILD='objdump'
export OBJDUMP_FOR_BUILD
OLDPWD=''
export OLDPWD
OPTERR='1'
OSTYPE='darwin24.4.0'
PATH='/nix/store/cvhbqa01i5yy7xmmpqp1hbnvq7kpvgsx-clang-wrapper-19.1.7/bin:/nix/store/5hgabdyqh22l57cb3qgx10lcc40d5n9p-clang-19.1.7/bin:/nix/store/d72z8b7fvvcin2p84x7h5s0abkggplzc-coreutils-9.7/bin:/nix/store/k8q0n8py04l07glgsfmvqqyqazxf04mb-cctools-binutils-darwin-wrapper-1010.6/bin:/nix/store/idmz24ps83r9mz2hkxdqwv6y4v2v7x28-cctools-binutils-darwin-1010.6/bin:/nix/store/i68dh3gsjirnxpwm0kmi34j44lqz7278-rust-default-1.87.0/bin:/nix/store/svafyjg9cly5zrq6hvbd34d14szvx2l7-pkg-config-wrapper-0.29.2/bin:/nix/store/33kilxl6fnq2m5aqn61h4nrjr4v344xp-rust-analyzer-2025-05-12/bin:/nix/store/7nwvqhaqj54r3bh9ighq2rxg47jpaqj2-cargo-watch-8.5.3/bin:/nix/store/s1byb2lr904y2m19hxq9avcv90cpnayk-cargo-edit-0.13.4/bin:/nix/store/9y6b0s0z24zvc9mh4khzvk2f83n1ywjw-xcbuild-0.1.1-unstable-2019-11-20-xcrun/bin:/nix/store/fhza62gkyw0mp1h2zls6pl1832zjjf26-libiconv-109/bin:/nix/store/bx0b6gvphv01s2px3j1h1ajy036h8bgb-openssl-3.4.1-bin/bin:/nix/store/d72z8b7fvvcin2p84x7h5s0abkggplzc-coreutils-9.7/bin:/nix/store/9gfvy5dd2kp4xf7m3k5gm79dx1mja2lj-findutils-4.10.0/bin:/nix/store/wkgmvs8kl4a0xkr1a1cs9m3hkn07zh5f-diffutils-3.12/bin:/nix/store/3p81h24g11jfcdd7ifql71lr5mjag102-gnused-4.9/bin:/nix/store/6rdq4hg48bmqy7d8da38niai5ngg1x1s-gnugrep-3.11/bin:/nix/store/ip1m0zq8r95z6wbhk6l0k32anw8h4kc7-gawk-5.3.2/bin:/nix/store/0pfs35y6gzcd3bxiybl7vih5yfyv8bcl-gnutar-1.35/bin:/nix/store/29p1y63i1dxqspyrfima6s5ay6525zlf-gzip-1.14/bin:/nix/store/7dvq6aba13kqkvj7ay850s4q806p33vw-bzip2-1.0.8-bin/bin:/nix/store/wkq7f52a2xq4n24f545wy2fidm4z14f2-gnumake-4.4.1/bin:/nix/store/8ivrpmp3arvxbr6imdwm2d28q9cjsqvi-bash-5.2p37/bin:/nix/store/n1i5qvy1jcblq3s1ilnmc83yqcl0l8vk-patch-2.7.6/bin:/nix/store/rmn4csq2fk0scys2d0v6hgkd3yv5fkxj-xz-5.8.1-bin/bin:/nix/store/bpibjj5f5z5p73afivj0ljzbpdgnjbi0-file-5.46/bin'
export PATH
PATH_LOCALE='/nix/store/0ibdk8b6y5khjmjqd08fv1m1nvj86w59-locale-118/share/locale'
export PATH_LOCALE
PKG_CONFIG='pkg-config'
export PKG_CONFIG
PKG_CONFIG_PATH='/nix/store/kbs1gz7p2j7qd1lixqzkladkjdxs8nj7-openssl-3.4.1-dev/lib/pkgconfig'
export PKG_CONFIG_PATH
PS4='+ '
RANLIB='ranlib'
export RANLIB
RANLIB_FOR_BUILD='ranlib'
export RANLIB_FOR_BUILD
SDKROOT='/nix/store/w41ks2baj649algkjnbh9746cprrnr1k-apple-sdk-11.3/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'
export SDKROOT
SHELL='/nix/store/8ivrpmp3arvxbr6imdwm2d28q9cjsqvi-bash-5.2p37/bin/bash'
export SHELL
SIZE='size'
export SIZE
SIZE_FOR_BUILD='size'
export SIZE_FOR_BUILD
SOURCE_DATE_EPOCH='315532800'
export SOURCE_DATE_EPOCH
STRINGS='strings'
export STRINGS
STRINGS_FOR_BUILD='strings'
export STRINGS_FOR_BUILD
STRIP='strip'
export STRIP
STRIP_FOR_BUILD='strip'
export STRIP_FOR_BUILD
XDG_DATA_DIRS='/nix/store/xppzbf3fssn7g35ixgzifkwj54x419n5-libcxx-19.1.7/share:/nix/store/zqc178w2vh4lkxmy3znl5s2xl7d401nr-compiler-rt-libc-19.1.7/share:/nix/store/i68dh3gsjirnxpwm0kmi34j44lqz7278-rust-default-1.87.0/share:/nix/store/svafyjg9cly5zrq6hvbd34d14szvx2l7-pkg-config-wrapper-0.29.2/share'
export XDG_DATA_DIRS
ZERO_AR_DATE='1'
export ZERO_AR_DATE
__darwinAllowLocalNetworking=''
export __darwinAllowLocalNetworking
__impureHostDeps='/bin/sh /usr/lib/libSystem.B.dylib /usr/lib/system/libunc.dylib /dev/zero /dev/random /dev/urandom /bin/sh'
export __impureHostDeps
__propagatedImpureHostDeps=''
export __propagatedImpureHostDeps
__propagatedSandboxProfile=''
export __propagatedSandboxProfile
__sandboxProfile=''
export __sandboxProfile
__structuredAttrs=''
export __structuredAttrs
_substituteStream_has_warned_replace_deprecation='false'
buildInputs='/nix/store/kbs1gz7p2j7qd1lixqzkladkjdxs8nj7-openssl-3.4.1-dev /nix/store/xb8irdyfddx27j0acysdkzbpk9v6rfm0-Security-11.0 /nix/store/wx0wyqgw0fypiy0idcbh7npdsj4hrrh8-SystemConfiguration-11.0'
export buildInputs
buildPhase='{ echo "------------------------------------------------------------";
echo " WARNING: the existence of this path is not guaranteed.";
echo " It is an internal implementation detail for pkgs.mkShell.";
echo "------------------------------------------------------------";
echo;
# Record all build inputs as runtime dependencies
export;
} >> "$out"
'
export buildPhase
builder='/nix/store/8ivrpmp3arvxbr6imdwm2d28q9cjsqvi-bash-5.2p37/bin/bash'
export builder
cmakeFlags=''
export cmakeFlags
configureFlags=''
export configureFlags
defaultBuildInputs='/nix/store/w41ks2baj649algkjnbh9746cprrnr1k-apple-sdk-11.3'
defaultNativeBuildInputs='/nix/store/53ixhpv90d047y0cyf416sgsqgyqxm1w-update-autotools-gnu-config-scripts-hook /nix/store/jjhw2phnaip4kg0qjas3x3fsaifi8y0w-no-broken-symlinks.sh /nix/store/h9lc1dpi14z7is86ffhl3ld569138595-audit-tmpdir.sh /nix/store/m54bmrhj6fqz8nds5zcj97w9s9bckc9v-compress-man-pages.sh /nix/store/wgrbkkaldkrlrni33ccvm3b6vbxzb656-make-symlinks-relative.sh /nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh /nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh /nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh /nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh /nix/store/cmzya9irvxzlkh7lfy6i82gbp0saxqj3-multiple-outputs.sh /nix/store/hxv896faph0rqxjq2ycxpcrbnngc95sz-patch-shebangs.sh /nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh /nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh /nix/store/z7k98578dfzi6l3hsvbivzm7hfqlk0zc-set-source-date-epoch-to-latest.sh /nix/store/pilsssjjdxvdphlg2h19p0bfx5q0jzkn-strip.sh /nix/store/cvhbqa01i5yy7xmmpqp1hbnvq7kpvgsx-clang-wrapper-19.1.7'
depsBuildBuild=''
export depsBuildBuild
depsBuildBuildPropagated=''
export depsBuildBuildPropagated
depsBuildTarget=''
export depsBuildTarget
depsBuildTargetPropagated=''
export depsBuildTargetPropagated
depsHostHost=''
export depsHostHost
depsHostHostPropagated=''
export depsHostHostPropagated
depsTargetTarget=''
export depsTargetTarget
depsTargetTargetPropagated=''
export depsTargetTargetPropagated
doCheck=''
export doCheck
doInstallCheck=''
export doInstallCheck
dontAddDisableDepTrack='1'
export dontAddDisableDepTrack
declare -a envBuildBuildHooks=('ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' )
declare -a envBuildHostHooks=('ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' )
declare -a envBuildTargetHooks=('ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' )
declare -a envHostHostHooks=('ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' 'pkgConfigWrapper_addPkgConfigPath' )
declare -a envHostTargetHooks=('ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' 'pkgConfigWrapper_addPkgConfigPath' )
declare -a envTargetTargetHooks=()
declare -a fixupOutputHooks=('if [[ -z "${noAuditTmpdir-}" && -e "$prefix" ]]; then auditTmpdir "$prefix"; fi' 'if [ -z "${dontGzipMan-}" ]; then compressManPages "$prefix"; fi' '_moveLib64' '_moveSbin' '_moveSystemdUserUnits' 'patchShebangsAuto' '_pruneLibtoolFiles' '_doStrip' )
initialPath='/nix/store/d72z8b7fvvcin2p84x7h5s0abkggplzc-coreutils-9.7 /nix/store/9gfvy5dd2kp4xf7m3k5gm79dx1mja2lj-findutils-4.10.0 /nix/store/wkgmvs8kl4a0xkr1a1cs9m3hkn07zh5f-diffutils-3.12 /nix/store/3p81h24g11jfcdd7ifql71lr5mjag102-gnused-4.9 /nix/store/6rdq4hg48bmqy7d8da38niai5ngg1x1s-gnugrep-3.11 /nix/store/ip1m0zq8r95z6wbhk6l0k32anw8h4kc7-gawk-5.3.2 /nix/store/0pfs35y6gzcd3bxiybl7vih5yfyv8bcl-gnutar-1.35 /nix/store/29p1y63i1dxqspyrfima6s5ay6525zlf-gzip-1.14 /nix/store/7dvq6aba13kqkvj7ay850s4q806p33vw-bzip2-1.0.8-bin /nix/store/wkq7f52a2xq4n24f545wy2fidm4z14f2-gnumake-4.4.1 /nix/store/8ivrpmp3arvxbr6imdwm2d28q9cjsqvi-bash-5.2p37 /nix/store/n1i5qvy1jcblq3s1ilnmc83yqcl0l8vk-patch-2.7.6 /nix/store/rmn4csq2fk0scys2d0v6hgkd3yv5fkxj-xz-5.8.1-bin /nix/store/bpibjj5f5z5p73afivj0ljzbpdgnjbi0-file-5.46'
mesonFlags=''
export mesonFlags
name='nix-shell-env'
export name
nativeBuildInputs='/nix/store/i68dh3gsjirnxpwm0kmi34j44lqz7278-rust-default-1.87.0 /nix/store/svafyjg9cly5zrq6hvbd34d14szvx2l7-pkg-config-wrapper-0.29.2 /nix/store/i68dh3gsjirnxpwm0kmi34j44lqz7278-rust-default-1.87.0 /nix/store/33kilxl6fnq2m5aqn61h4nrjr4v344xp-rust-analyzer-2025-05-12 /nix/store/7nwvqhaqj54r3bh9ighq2rxg47jpaqj2-cargo-watch-8.5.3 /nix/store/s1byb2lr904y2m19hxq9avcv90cpnayk-cargo-edit-0.13.4'
export nativeBuildInputs
out='/Users/kennysheridan/Library/CloudStorage/OneDrive-Personal/Documents/san_francisco_compute_company/hardware_report/outputs/out'
export out
outputBin='out'
outputDev='out'
outputDevdoc='REMOVE'
outputDevman='out'
outputDoc='out'
outputInclude='out'
outputInfo='out'
outputLib='out'
outputMan='out'
outputs='out'
export outputs
patches=''
export patches
phases='buildPhase'
export phases
pkg='/nix/store/w41ks2baj649algkjnbh9746cprrnr1k-apple-sdk-11.3'
declare -a pkgsBuildBuild=('/nix/store/cvhbqa01i5yy7xmmpqp1hbnvq7kpvgsx-clang-wrapper-19.1.7' '/nix/store/k8q0n8py04l07glgsfmvqqyqazxf04mb-cctools-binutils-darwin-wrapper-1010.6' '/nix/store/rfng4494hxqxjgsamkcd01mzfdp2fwlh-libcxx-19.1.7-dev' '/nix/store/xppzbf3fssn7g35ixgzifkwj54x419n5-libcxx-19.1.7' '/nix/store/sqmzi81xlsf4gk287rnjk7rj4624zy84-compiler-rt-libc-19.1.7-dev' '/nix/store/zqc178w2vh4lkxmy3znl5s2xl7d401nr-compiler-rt-libc-19.1.7' )
declare -a pkgsBuildHost=('/nix/store/i68dh3gsjirnxpwm0kmi34j44lqz7278-rust-default-1.87.0' '/nix/store/cvhbqa01i5yy7xmmpqp1hbnvq7kpvgsx-clang-wrapper-19.1.7' '/nix/store/k8q0n8py04l07glgsfmvqqyqazxf04mb-cctools-binutils-darwin-wrapper-1010.6' '/nix/store/svafyjg9cly5zrq6hvbd34d14szvx2l7-pkg-config-wrapper-0.29.2' '/nix/store/33kilxl6fnq2m5aqn61h4nrjr4v344xp-rust-analyzer-2025-05-12' '/nix/store/7nwvqhaqj54r3bh9ighq2rxg47jpaqj2-cargo-watch-8.5.3' '/nix/store/s1byb2lr904y2m19hxq9avcv90cpnayk-cargo-edit-0.13.4' '/nix/store/53ixhpv90d047y0cyf416sgsqgyqxm1w-update-autotools-gnu-config-scripts-hook' '/nix/store/jjhw2phnaip4kg0qjas3x3fsaifi8y0w-no-broken-symlinks.sh' '/nix/store/h9lc1dpi14z7is86ffhl3ld569138595-audit-tmpdir.sh' '/nix/store/m54bmrhj6fqz8nds5zcj97w9s9bckc9v-compress-man-pages.sh' '/nix/store/wgrbkkaldkrlrni33ccvm3b6vbxzb656-make-symlinks-relative.sh' '/nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh' '/nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh' '/nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh' '/nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh' '/nix/store/cmzya9irvxzlkh7lfy6i82gbp0saxqj3-multiple-outputs.sh' '/nix/store/hxv896faph0rqxjq2ycxpcrbnngc95sz-patch-shebangs.sh' '/nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh' '/nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh' '/nix/store/z7k98578dfzi6l3hsvbivzm7hfqlk0zc-set-source-date-epoch-to-latest.sh' '/nix/store/pilsssjjdxvdphlg2h19p0bfx5q0jzkn-strip.sh' '/nix/store/9y6b0s0z24zvc9mh4khzvk2f83n1ywjw-xcbuild-0.1.1-unstable-2019-11-20-xcrun' )
declare -a pkgsBuildTarget=()
declare -a pkgsHostHost=('/nix/store/rfng4494hxqxjgsamkcd01mzfdp2fwlh-libcxx-19.1.7-dev' '/nix/store/xppzbf3fssn7g35ixgzifkwj54x419n5-libcxx-19.1.7' '/nix/store/sqmzi81xlsf4gk287rnjk7rj4624zy84-compiler-rt-libc-19.1.7-dev' '/nix/store/zqc178w2vh4lkxmy3znl5s2xl7d401nr-compiler-rt-libc-19.1.7' '/nix/store/m3l5s4b1v7l2hs9dm73i76cx6acry77k-libiconv-109-dev' '/nix/store/fhza62gkyw0mp1h2zls6pl1832zjjf26-libiconv-109' )
declare -a pkgsHostTarget=('/nix/store/kbs1gz7p2j7qd1lixqzkladkjdxs8nj7-openssl-3.4.1-dev' '/nix/store/bx0b6gvphv01s2px3j1h1ajy036h8bgb-openssl-3.4.1-bin' '/nix/store/z2js30ib9b11hhcy1zy6x4nzdg75bpxf-openssl-3.4.1' '/nix/store/xb8irdyfddx27j0acysdkzbpk9v6rfm0-Security-11.0' '/nix/store/wx0wyqgw0fypiy0idcbh7npdsj4hrrh8-SystemConfiguration-11.0' '/nix/store/w41ks2baj649algkjnbh9746cprrnr1k-apple-sdk-11.3' '/nix/store/m3l5s4b1v7l2hs9dm73i76cx6acry77k-libiconv-109-dev' '/nix/store/fhza62gkyw0mp1h2zls6pl1832zjjf26-libiconv-109' '/nix/store/l676klylkdmxgx3dff5qx6r6j596lpvx-libresolv-83-dev' '/nix/store/xdp9yf1r58jzfw1rh68qdhp0d923l07w-libresolv-83' '/nix/store/zn828prnxazgd5xaqhzn9f8dxfvadkgg-libsbuf-14.1.0-dev' '/nix/store/w2gmrz3ki4lqwb0gw95bjsrwlhknq8ks-libsbuf-14.1.0' '/nix/store/jmq7mr51dql3w8y26kzf4j1s62k6mfww-libutil-72' '/nix/store/zgrs0am3a5avl3jmjsjlph8d4r17wq6j-cups-headers-2.4.11' )
declare -a pkgsTargetTarget=()
declare -a postFixupHooks=('noBrokenSymlinksInAllOutputs' '_makeSymlinksRelativeInAllOutputs' '_multioutPropagateDev' )
declare -a postUnpackHooks=('_updateSourceDateEpochFromSourceRoot' )
declare -a preConfigureHooks=('_multioutConfig' )
preConfigurePhases=' updateAutotoolsGnuConfigScriptsPhase'
declare -a preFixupHooks=('_moveToShare' '_multioutDocs' '_multioutDevs' )
preferLocalBuild='1'
export preferLocalBuild
prefix='/Users/kennysheridan/Library/CloudStorage/OneDrive-Personal/Documents/san_francisco_compute_company/hardware_report/outputs/out'
declare -a propagatedBuildDepFiles=('propagated-build-build-deps' 'propagated-native-build-inputs' 'propagated-build-target-deps' )
propagatedBuildInputs=''
export propagatedBuildInputs
declare -a propagatedHostDepFiles=('propagated-host-host-deps' 'propagated-build-inputs' )
propagatedNativeBuildInputs=''
export propagatedNativeBuildInputs
declare -a propagatedTargetDepFiles=('propagated-target-target-deps' )
shell='/nix/store/8ivrpmp3arvxbr6imdwm2d28q9cjsqvi-bash-5.2p37/bin/bash'
export shell
shellHook='echo "Hardware Report development environment"
echo "Run '\''cargo build'\'' to build the project"
echo "Run '\''cargo run'\'' to run the project"
echo ""
echo "Platform: macOS"
echo "Runtime dependencies available:"
echo "- Built-in macOS tools: system_profiler, sysctl, ioreg"
echo "- Note: Some Linux-specific features may not be available"
'
export shellHook
stdenv='/nix/store/d8302dk9mnwh4z2f10ybs6i24smf15jp-stdenv-darwin'
export stdenv
strictDeps=''
export strictDeps
stripDebugFlags='-S'
system='aarch64-darwin'
export system
declare -a unpackCmdHooks=('_defaultUnpack' )
_activatePkgs ()
{
local hostOffset targetOffset;
local pkg;
for hostOffset in "${allPlatOffsets[@]}";
do
local pkgsVar="${pkgAccumVarVars[hostOffset + 1]}";
for targetOffset in "${allPlatOffsets[@]}";
do
(( hostOffset <= targetOffset )) || continue;
local pkgsRef="${pkgsVar}[$targetOffset - $hostOffset]";
local pkgsSlice="${!pkgsRef}[@]";
for pkg in ${!pkgsSlice+"${!pkgsSlice}"};
do
activatePackage "$pkg" "$hostOffset" "$targetOffset";
done;
done;
done
}
_addRpathPrefix ()
{
if [ "${NIX_NO_SELF_RPATH:-0}" != 1 ]; then
export NIX_LDFLAGS="-rpath $1/lib ${NIX_LDFLAGS-}";
fi
}
_addToEnv ()
{
local depHostOffset depTargetOffset;
local pkg;
for depHostOffset in "${allPlatOffsets[@]}";
do
local hookVar="${pkgHookVarVars[depHostOffset + 1]}";
local pkgsVar="${pkgAccumVarVars[depHostOffset + 1]}";
for depTargetOffset in "${allPlatOffsets[@]}";
do
(( depHostOffset <= depTargetOffset )) || continue;
local hookRef="${hookVar}[$depTargetOffset - $depHostOffset]";
if [[ -z "${strictDeps-}" ]]; then
local visitedPkgs="";
for pkg in "${pkgsBuildBuild[@]}" "${pkgsBuildHost[@]}" "${pkgsBuildTarget[@]}" "${pkgsHostHost[@]}" "${pkgsHostTarget[@]}" "${pkgsTargetTarget[@]}";
do
if [[ "$visitedPkgs" = *"$pkg"* ]]; then
continue;
fi;
runHook "${!hookRef}" "$pkg";
visitedPkgs+=" $pkg";
done;
else
local pkgsRef="${pkgsVar}[$depTargetOffset - $depHostOffset]";
local pkgsSlice="${!pkgsRef}[@]";
for pkg in ${!pkgsSlice+"${!pkgsSlice}"};
do
runHook "${!hookRef}" "$pkg";
done;
fi;
done;
done
}
_allFlags ()
{
export system pname name version;
while IFS='' read -r varName; do
nixTalkativeLog "@${varName}@ -> ${!varName}";
args+=("--subst-var" "$varName");
done < <(awk 'BEGIN { for (v in ENVIRON) if (v ~ /^[a-z][a-zA-Z0-9_]*$/) print v }')
}
_assignFirst ()
{
local varName="$1";
local _var;
local REMOVE=REMOVE;
shift;
for _var in "$@";
do
if [ -n "${!_var-}" ]; then
eval "${varName}"="${_var}";
return;
fi;
done;
echo;
echo "error: _assignFirst: could not find a non-empty variable whose name to assign to ${varName}.";
echo " The following variables were all unset or empty:";
echo " $*";
if [ -z "${out:-}" ]; then
echo ' If you do not want an "out" output in your derivation, make sure to define';
echo ' the other specific required outputs. This can be achieved by picking one';
echo " of the above as an output.";
echo ' You do not have to remove "out" if you want to have a different default';
echo ' output, because the first output is taken as a default.';
echo;
fi;
return 1
}
_callImplicitHook ()
{
local def="$1";
local hookName="$2";
if declare -F "$hookName" > /dev/null; then
nixTalkativeLog "calling implicit '$hookName' function hook";
"$hookName";
else
if type -p "$hookName" > /dev/null; then
nixTalkativeLog "sourcing implicit '$hookName' script hook";
source "$hookName";
else
if [ -n "${!hookName:-}" ]; then
nixTalkativeLog "evaling implicit '$hookName' string hook";
eval "${!hookName}";
else
return "$def";
fi;
fi;
fi
}
_defaultUnpack ()
{
local fn="$1";
local destination;
if [ -d "$fn" ]; then
destination="$(stripHash "$fn")";
if [ -e "$destination" ]; then
echo "Cannot copy $fn to $destination: destination already exists!";
echo "Did you specify two \"srcs\" with the same \"name\"?";
return 1;
fi;
cp -r --preserve=mode,timestamps --reflink=auto -- "$fn" "$destination";
else
case "$fn" in
*.tar.xz | *.tar.lzma | *.txz)
( XZ_OPT="--threads=$NIX_BUILD_CORES" xz -d < "$fn";
true ) | tar xf - --mode=+w --warning=no-timestamp
;;
*.tar | *.tar.* | *.tgz | *.tbz2 | *.tbz)
tar xf "$fn" --mode=+w --warning=no-timestamp
;;
*)
return 1
;;
esac;
fi
}
_doStrip ()
{
local -ra flags=(dontStripHost dontStripTarget);
local -ra debugDirs=(stripDebugList stripDebugListTarget);
local -ra allDirs=(stripAllList stripAllListTarget);
local -ra stripCmds=(STRIP STRIP_FOR_TARGET);
local -ra ranlibCmds=(RANLIB RANLIB_FOR_TARGET);
stripDebugList=${stripDebugList[*]:-lib lib32 lib64 libexec bin sbin Applications Library/Frameworks};
stripDebugListTarget=${stripDebugListTarget[*]:-};
stripAllList=${stripAllList[*]:-};
stripAllListTarget=${stripAllListTarget[*]:-};
local i;
for i in ${!stripCmds[@]};
do
local -n flag="${flags[$i]}";
local -n debugDirList="${debugDirs[$i]}";
local -n allDirList="${allDirs[$i]}";
local -n stripCmd="${stripCmds[$i]}";
local -n ranlibCmd="${ranlibCmds[$i]}";
if [[ -n "${dontStrip-}" || -n "${flag-}" ]] || ! type -f "${stripCmd-}" 2> /dev/null 1>&2; then
continue;
fi;
stripDirs "$stripCmd" "$ranlibCmd" "$debugDirList" "${stripDebugFlags[*]:--S -p}";
stripDirs "$stripCmd" "$ranlibCmd" "$allDirList" "${stripAllFlags[*]:--s -p}";
done
}
_eval ()
{
if declare -F "$1" > /dev/null 2>&1; then
"$@";
else
eval "$1";
fi
}
_logHook ()
{
if [[ -z ${NIX_LOG_FD-} ]]; then
return;
fi;
local hookKind="$1";
local hookExpr="$2";
shift 2;
if declare -F "$hookExpr" > /dev/null 2>&1; then
nixTalkativeLog "calling '$hookKind' function hook '$hookExpr'" "$@";
else
if type -p "$hookExpr" > /dev/null; then
nixTalkativeLog "sourcing '$hookKind' script hook '$hookExpr'";
else
if [[ "$hookExpr" != "_callImplicitHook"* ]]; then
local exprToOutput;
if [[ ${NIX_DEBUG:-0} -ge 5 ]]; then
exprToOutput="$hookExpr";
else
local hookExprLine;
while IFS= read -r hookExprLine; do
hookExprLine="${hookExprLine#"${hookExprLine%%[![:space:]]*}"}";
if [[ -n "$hookExprLine" ]]; then
exprToOutput+="$hookExprLine\\n ";
fi;
done <<< "$hookExpr";
exprToOutput="${exprToOutput%%\\n }";
fi;
nixTalkativeLog "evaling '$hookKind' string hook '$exprToOutput'";
fi;
fi;
fi
}
_makeSymlinksRelative ()
{
local symlinkTarget;
if [ "${dontRewriteSymlinks-}" ] || [ ! -e "$prefix" ]; then
return;
fi;
while IFS= read -r -d '' f; do
symlinkTarget=$(readlink "$f");
if [[ "$symlinkTarget"/ != "$prefix"/* ]]; then
continue;
fi;
if [ ! -e "$symlinkTarget" ]; then
echo "the symlink $f is broken, it points to $symlinkTarget (which is missing)";
fi;
echo "rewriting symlink $f to be relative to $prefix";
ln -snrf "$symlinkTarget" "$f";
done < <(find $prefix -type l -print0)
}
_makeSymlinksRelativeInAllOutputs ()
{
local output;
for output in $(getAllOutputNames);
do
prefix="${!output}" _makeSymlinksRelative;
done
}
_moveLib64 ()
{
if [ "${dontMoveLib64-}" = 1 ]; then
return;
fi;
if [ ! -e "$prefix/lib64" -o -L "$prefix/lib64" ]; then
return;
fi;
echo "moving $prefix/lib64/* to $prefix/lib";
mkdir -p $prefix/lib;
shopt -s dotglob;
for i in $prefix/lib64/*;
do
mv --no-clobber "$i" $prefix/lib;
done;
shopt -u dotglob;
rmdir $prefix/lib64;
ln -s lib $prefix/lib64
}
_moveSbin ()
{
if [ "${dontMoveSbin-}" = 1 ]; then
return;
fi;
if [ ! -e "$prefix/sbin" -o -L "$prefix/sbin" ]; then
return;
fi;
echo "moving $prefix/sbin/* to $prefix/bin";
mkdir -p $prefix/bin;
shopt -s dotglob;
for i in $prefix/sbin/*;
do
mv "$i" $prefix/bin;
done;
shopt -u dotglob;
rmdir $prefix/sbin;
ln -s bin $prefix/sbin
}
_moveSystemdUserUnits ()
{
if [ "${dontMoveSystemdUserUnits:-0}" = 1 ]; then
return;
fi;
if [ ! -e "${prefix:?}/lib/systemd/user" ]; then
return;
fi;
local source="$prefix/lib/systemd/user";
local target="$prefix/share/systemd/user";
echo "moving $source/* to $target";
mkdir -p "$target";
( shopt -s dotglob;
for i in "$source"/*;
do
mv "$i" "$target";
done );
rmdir "$source";
ln -s "$target" "$source"
}
_moveToShare ()
{
if [ -n "$__structuredAttrs" ]; then
if [ -z "${forceShare-}" ]; then
forceShare=(man doc info);
fi;
else
forceShare=(${forceShare:-man doc info});
fi;
if [[ -z "$out" ]]; then
return;
fi;
for d in "${forceShare[@]}";
do
if [ -d "$out/$d" ]; then
if [ -d "$out/share/$d" ]; then
echo "both $d/ and share/$d/ exist!";
else
echo "moving $out/$d to $out/share/$d";
mkdir -p $out/share;
mv $out/$d $out/share/;
fi;
fi;
done
}
_multioutConfig ()
{
if [ "$(getAllOutputNames)" = "out" ] || [ -z "${setOutputFlags-1}" ]; then
return;
fi;
if [ -z "${shareDocName:-}" ]; then
local confScript="${configureScript:-}";
if [ -z "$confScript" ] && [ -x ./configure ]; then
confScript=./configure;
fi;
if [ -f "$confScript" ]; then
local shareDocName="$(sed -n "s/^PACKAGE_TARNAME='\(.*\)'$/\1/p" < "$confScript")";
fi;
if [ -z "$shareDocName" ] || echo "$shareDocName" | grep -q '[^a-zA-Z0-9_-]'; then
shareDocName="$(echo "$name" | sed 's/-[^a-zA-Z].*//')";
fi;
fi;
prependToVar configureFlags --bindir="${!outputBin}"/bin --sbindir="${!outputBin}"/sbin --includedir="${!outputInclude}"/include --mandir="${!outputMan}"/share/man --infodir="${!outputInfo}"/share/info --docdir="${!outputDoc}"/share/doc/"${shareDocName}" --libdir="${!outputLib}"/lib --libexecdir="${!outputLib}"/libexec --localedir="${!outputLib}"/share/locale;
prependToVar installFlags pkgconfigdir="${!outputDev}"/lib/pkgconfig m4datadir="${!outputDev}"/share/aclocal aclocaldir="${!outputDev}"/share/aclocal
}
_multioutDevs ()
{
if [ "$(getAllOutputNames)" = "out" ] || [ -z "${moveToDev-1}" ]; then
return;
fi;
moveToOutput include "${!outputInclude}";
moveToOutput lib/pkgconfig "${!outputDev}";
moveToOutput share/pkgconfig "${!outputDev}";
moveToOutput lib/cmake "${!outputDev}";
moveToOutput share/aclocal "${!outputDev}";
for f in "${!outputDev}"/{lib,share}/pkgconfig/*.pc;
do
echo "Patching '$f' includedir to output ${!outputInclude}";
sed -i "/^includedir=/s,=\${prefix},=${!outputInclude}," "$f";
done
}
_multioutDocs ()
{
local REMOVE=REMOVE;
moveToOutput share/info "${!outputInfo}";
moveToOutput share/doc "${!outputDoc}";
moveToOutput share/gtk-doc "${!outputDevdoc}";
moveToOutput share/devhelp/books "${!outputDevdoc}";
moveToOutput share/man "${!outputMan}";
moveToOutput share/man/man3 "${!outputDevman}"
}
_multioutPropagateDev ()
{
if [ "$(getAllOutputNames)" = "out" ]; then
return;
fi;
local outputFirst;
for outputFirst in $(getAllOutputNames);
do
break;
done;
local propagaterOutput="$outputDev";
if [ -z "$propagaterOutput" ]; then
propagaterOutput="$outputFirst";
fi;
if [ -z "${propagatedBuildOutputs+1}" ]; then
local po_dirty="$outputBin $outputInclude $outputLib";
set +o pipefail;
propagatedBuildOutputs=`echo "$po_dirty" | tr -s ' ' '\n' | grep -v -F "$propagaterOutput" | sort -u | tr '\n' ' ' `;
set -o pipefail;
fi;
if [ -z "$propagatedBuildOutputs" ]; then
return;
fi;
mkdir -p "${!propagaterOutput}"/nix-support;
for output in $propagatedBuildOutputs;
do
echo -n " ${!output}" >> "${!propagaterOutput}"/nix-support/propagated-build-inputs;
done
}
_nixLogWithLevel ()
{
[[ -z ${NIX_LOG_FD-} || ${NIX_DEBUG:-0} -lt ${1:?} ]] && return 0;
local logLevel;
case "${1:?}" in
0)
logLevel=ERROR
;;
1)
logLevel=WARN
;;
2)
logLevel=NOTICE
;;
3)
logLevel=INFO
;;
4)
logLevel=TALKATIVE
;;
5)
logLevel=CHATTY
;;
6)
logLevel=DEBUG
;;
7)
logLevel=VOMIT
;;
*)
echo "_nixLogWithLevel: called with invalid log level: ${1:?}" >&"$NIX_LOG_FD";
return 1
;;
esac;
local callerName="${FUNCNAME[2]}";
if [[ $callerName == "_callImplicitHook" ]]; then
callerName="${hookName:?}";
fi;
printf "%s: %s: %s\n" "$logLevel" "$callerName" "${2:?}" >&"$NIX_LOG_FD"
}
_overrideFirst ()
{
if [ -z "${!1-}" ]; then
_assignFirst "$@";
fi
}
_pruneLibtoolFiles ()
{
if [ "${dontPruneLibtoolFiles-}" ] || [ ! -e "$prefix" ]; then
return;
fi;
find "$prefix" -type f -name '*.la' -exec grep -q '^# Generated by .*libtool' {} \; -exec grep -q "^old_library=''" {} \; -exec sed -i {} -e "/^dependency_libs='[^']/ c dependency_libs='' #pruned" \;
}
_updateSourceDateEpochFromSourceRoot ()
{
if [ -n "$sourceRoot" ]; then
updateSourceDateEpoch "$sourceRoot";
fi
}
activatePackage ()
{
local pkg="$1";
local -r hostOffset="$2";
local -r targetOffset="$3";
(( hostOffset <= targetOffset )) || exit 1;
if [ -f "$pkg" ]; then
nixTalkativeLog "sourcing setup hook '$pkg'";
source "$pkg";
fi;
if [[ -z "${strictDeps-}" || "$hostOffset" -le -1 ]]; then
addToSearchPath _PATH "$pkg/bin";
fi;
if (( hostOffset <= -1 )); then
addToSearchPath _XDG_DATA_DIRS "$pkg/share";
fi;
if [[ "$hostOffset" -eq 0 && -d "$pkg/bin" ]]; then
addToSearchPath _HOST_PATH "$pkg/bin";
fi;
if [[ -f "$pkg/nix-support/setup-hook" ]]; then
nixTalkativeLog "sourcing setup hook '$pkg/nix-support/setup-hook'";
source "$pkg/nix-support/setup-hook";
fi
}
addEnvHooks ()
{
local depHostOffset="$1";
shift;
local pkgHookVarsSlice="${pkgHookVarVars[$depHostOffset + 1]}[@]";
local pkgHookVar;
for pkgHookVar in "${!pkgHookVarsSlice}";
do
eval "${pkgHookVar}s"'+=("$@")';
done
}
addToSearchPath ()
{
addToSearchPathWithCustomDelimiter ":" "$@"
}
addToSearchPathWithCustomDelimiter ()
{
local delimiter="$1";
local varName="$2";
local dir="$3";
if [[ -d "$dir" && "${!varName:+${delimiter}${!varName}${delimiter}}" != *"${delimiter}${dir}${delimiter}"* ]]; then
export "${varName}=${!varName:+${!varName}${delimiter}}${dir}";
fi
}
appendToVar ()
{
local -n nameref="$1";
local useArray type;
if [ -n "$__structuredAttrs" ]; then
useArray=true;
else
useArray=false;
fi;
if type=$(declare -p "$1" 2> /dev/null); then
case "${type#* }" in
-A*)
echo "appendToVar(): ERROR: trying to use appendToVar on an associative array, use variable+=([\"X\"]=\"Y\") instead." 1>&2;
return 1
;;
-a*)
useArray=true
;;
*)
useArray=false
;;
esac;
fi;
shift;
if $useArray; then
nameref=(${nameref+"${nameref[@]}"} "$@");
else
nameref="${nameref-} $*";
fi
}
auditTmpdir ()
{
local dir="$1";
[ -e "$dir" ] || return 0;
echo "checking for references to $TMPDIR/ in $dir...";
local i;
find "$dir" -type f -print0 | while IFS= read -r -d '' i; do
if [[ "$i" =~ .build-id ]]; then
continue;
fi;
if isELF "$i"; then
if {
printf :;
patchelf --print-rpath "$i"
} | grep -q -F ":$TMPDIR/"; then
echo "RPATH of binary $i contains a forbidden reference to $TMPDIR/";
exit 1;
fi;
fi;
if isScript "$i"; then
if [ -e "$(dirname "$i")/.$(basename "$i")-wrapped" ]; then
if grep -q -F "$TMPDIR/" "$i"; then
echo "wrapper script $i contains a forbidden reference to $TMPDIR/";
exit 1;
fi;
fi;
fi;
done
}
bintoolsWrapper_addLDVars ()
{
local role_post;
getHostRoleEnvHook;
if [[ -d "$1/lib64" && ! -L "$1/lib64" ]]; then
export NIX_LDFLAGS${role_post}+=" -L$1/lib64";
fi;
if [[ -d "$1/lib" ]]; then
local -a glob=($1/lib/lib*);
if [ "${#glob[*]}" -gt 0 ]; then
export NIX_LDFLAGS${role_post}+=" -L$1/lib";
fi;
fi
}
buildPhase ()
{
runHook preBuild;
if [[ -z "${makeFlags-}" && -z "${makefile:-}" && ! ( -e Makefile || -e makefile || -e GNUmakefile ) ]]; then
echo "no Makefile or custom buildPhase, doing nothing";
else
foundMakefile=1;
local flagsArray=(${enableParallelBuilding:+-j${NIX_BUILD_CORES}} SHELL="$SHELL");
concatTo flagsArray makeFlags makeFlagsArray buildFlags buildFlagsArray;
echoCmd 'build flags' "${flagsArray[@]}";
make ${makefile:+-f $makefile} "${flagsArray[@]}";
unset flagsArray;
fi;
runHook postBuild
}
ccWrapper_addCVars ()
{
local role_post;
getHostRoleEnvHook;
if [ -d "$1/include" ]; then
export NIX_CFLAGS_COMPILE${role_post}+=" -isystem $1/include";
fi;
if [ -d "$1/Library/Frameworks" ]; then
export NIX_CFLAGS_COMPILE${role_post}+=" -iframework $1/Library/Frameworks";
fi
}
checkPhase ()
{
runHook preCheck;
if [[ -z "${foundMakefile:-}" ]]; then
echo "no Makefile or custom checkPhase, doing nothing";
runHook postCheck;
return;
fi;
if [[ -z "${checkTarget:-}" ]]; then
if make -n ${makefile:+-f $makefile} check > /dev/null 2>&1; then
checkTarget="check";
else
if make -n ${makefile:+-f $makefile} test > /dev/null 2>&1; then
checkTarget="test";
fi;
fi;
fi;
if [[ -z "${checkTarget:-}" ]]; then
echo "no check/test target in ${makefile:-Makefile}, doing nothing";
else
local flagsArray=(${enableParallelChecking:+-j${NIX_BUILD_CORES}} SHELL="$SHELL");
concatTo flagsArray makeFlags makeFlagsArray checkFlags=VERBOSE=y checkFlagsArray checkTarget;
echoCmd 'check flags' "${flagsArray[@]}";
make ${makefile:+-f $makefile} "${flagsArray[@]}";
unset flagsArray;
fi;
runHook postCheck
}
compressManPages ()
{
local dir="$1";
if [ -L "$dir"/share ] || [ -L "$dir"/share/man ] || [ ! -d "$dir/share/man" ]; then
return;
fi;
echo "gzipping man pages under $dir/share/man/";
find "$dir"/share/man/ -type f -a '!' -regex '.*\.\(bz2\|gz\|xz\)$' -print0 | while IFS= read -r -d '' f; do
if gzip -c -n "$f" > "$f".gz; then
rm "$f";
else
rm "$f".gz;
fi;
done;
find "$dir"/share/man/ -type l -a '!' -regex '.*\.\(bz2\|gz\|xz\)$' -print0 | sort -z | while IFS= read -r -d '' f; do
local target;
target="$(readlink -f "$f")";
if [ -f "$target".gz ]; then
ln -sf "$target".gz "$f".gz && rm "$f";
fi;
done
}
concatStringsSep ()
{
local sep="$1";
local name="$2";
local type oldifs;
if type=$(declare -p "$name" 2> /dev/null); then
local -n nameref="$name";
case "${type#* }" in
-A*)
echo "concatStringsSep(): ERROR: trying to use concatStringsSep on an associative array." 1>&2;
return 1
;;
-a*)
local IFS="$(printf '\036')"
;;
*)
local IFS=" "
;;
esac;
local ifs_separated="${nameref[*]}";
echo -n "${ifs_separated//"$IFS"/"$sep"}";
fi
}
concatTo ()
{
local -;
set -o noglob;
local -n targetref="$1";
shift;
local arg default name type;
for arg in "$@";
do
IFS="=" read -r name default <<< "$arg";
local -n nameref="$name";
if [[ -z "${nameref[*]}" && -n "$default" ]]; then
targetref+=("$default");
else
if type=$(declare -p "$name" 2> /dev/null); then
case "${type#* }" in
-A*)
echo "concatTo(): ERROR: trying to use concatTo on an associative array." 1>&2;
return 1
;;
-a*)
targetref+=("${nameref[@]}")
;;
*)
if [[ "$name" = *"Array" ]]; then