evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / u- / u-root-cmds / package.nix
blobbb6ff312d83203adf7487c41e6fd339234040fee
2   lib,
3   u-root,
4   which,
5 }:
7 u-root.overrideAttrs (prevAttrs: {
8   subPackages = [
9     "cmds/boot/boot"
10     "cmds/boot/fitboot"
11     "cmds/boot/pxeboot"
12     "cmds/cluster/nodestats"
13     "cmds/contrib/fbptcat"
14     "cmds/core/backoff"
15     "cmds/core/base64"
16     "cmds/core/basename"
17     "cmds/core/blkid"
18     "cmds/core/brctl"
19     "cmds/core/cat"
20     "cmds/core/chmod"
21     "cmds/core/chroot"
22     "cmds/core/cmp"
23     "cmds/core/comm"
24     "cmds/core/cp"
25     "cmds/core/cpio"
26     "cmds/core/date"
27     "cmds/core/dd"
28     "cmds/core/df"
29     "cmds/core/dhclient"
30     "cmds/core/dirname"
31     "cmds/core/dmesg"
32     "cmds/core/du"
33     "cmds/core/echo"
34     "cmds/core/false"
35     "cmds/core/find"
36     "cmds/core/free"
37     "cmds/core/fusermount"
38     "cmds/core/gosh"
39     "cmds/core/gpgv"
40     "cmds/core/gpt"
41     "cmds/core/grep"
42     "cmds/core/gzip"
43     "cmds/core/head"
44     "cmds/core/hexdump"
45     "cmds/core/hostname"
46     "cmds/core/hwclock"
47     "cmds/core/id"
48     "cmds/core/init"
49     "cmds/core/insmod"
50     "cmds/core/io"
51     "cmds/core/ip"
52     "cmds/core/kexec"
53     "cmds/core/kill"
54     "cmds/core/lddfiles"
55     "cmds/core/ln"
56     "cmds/core/lockmsrs"
57     "cmds/core/losetup"
58     "cmds/core/ls"
59     "cmds/core/lsdrivers"
60     "cmds/core/lsmod"
61     "cmds/core/man"
62     "cmds/core/md5sum"
63     "cmds/core/mkdir"
64     "cmds/core/mkfifo"
65     "cmds/core/mknod"
66     "cmds/core/mktemp"
67     "cmds/core/more"
68     "cmds/core/mount"
69     "cmds/core/msr"
70     "cmds/core/mv"
71     "cmds/core/netcat"
72     "cmds/core/netstat"
73     "cmds/core/nohup"
74     "cmds/core/ntpdate"
75     "cmds/core/pci"
76     "cmds/core/ping"
77     "cmds/core/poweroff"
78     "cmds/core/printenv"
79     "cmds/core/ps"
80     "cmds/core/pwd"
81     "cmds/core/readlink"
82     "cmds/core/realpath"
83     "cmds/core/rm"
84     "cmds/core/rmmod"
85     "cmds/core/rsdp"
86     "cmds/core/scp"
87     "cmds/core/seq"
88     "cmds/core/shasum"
89     "cmds/core/shutdown"
90     "cmds/core/sleep"
91     "cmds/core/sluinit"
92     "cmds/core/sort"
93     "cmds/core/sshd"
94     "cmds/core/strace"
95     "cmds/core/strings"
96     "cmds/core/stty"
97     "cmds/core/switch_root"
98     "cmds/core/sync"
99     "cmds/core/tail"
100     "cmds/core/tar"
101     "cmds/core/tee"
102     "cmds/core/time"
103     "cmds/core/timeout"
104     "cmds/core/touch"
105     "cmds/core/tr"
106     "cmds/core/true"
107     "cmds/core/truncate"
108     "cmds/core/ts"
109     "cmds/core/tty"
110     "cmds/core/umount"
111     "cmds/core/uname"
112     "cmds/core/uniq"
113     "cmds/core/unmount"
114     "cmds/core/unshare"
115     "cmds/core/uptime"
116     "cmds/core/watchdog"
117     "cmds/core/watchdogd"
118     "cmds/core/wc"
119     "cmds/core/wget"
120     "cmds/core/which"
121     "cmds/core/xargs"
122     "cmds/core/yes"
123     "cmds/exp/acpicat"
124     "cmds/exp/acpigrep"
125     "cmds/exp/ansi"
126     "cmds/exp/bootvars"
127     "cmds/exp/bzimage"
128     "cmds/exp/cbmem"
129     "cmds/exp/console"
130     "cmds/exp/crc"
131     "cmds/exp/disk_unlock"
132     "cmds/exp/dmidecode"
133     "cmds/exp/dumpebda"
134     "cmds/exp/dumpmemmap"
135     "cmds/exp/ectool"
136     "cmds/exp/ed"
137     "cmds/exp/efivarfs"
138     "cmds/exp/esxiboot"
139     "cmds/exp/fbnetboot"
140     "cmds/exp/fbsplash"
141     "cmds/exp/fdtdump"
142     "cmds/exp/field"
143     "cmds/exp/fixrsdp"
144     "cmds/exp/forth"
145     "cmds/exp/freq"
146     "cmds/exp/getty"
147     "cmds/exp/hdparm"
148     "cmds/exp/ipmidump"
149     "cmds/exp/kconf"
150     "cmds/exp/localboot"
151     "cmds/exp/lsfabric"
152     "cmds/exp/madeye"
153     "cmds/exp/modprobe"
154     "cmds/exp/netbootxyz"
155     "cmds/exp/newsshd"
156     "cmds/exp/nvme_unlock"
157     "cmds/exp/page"
158     "cmds/exp/partprobe"
159     "cmds/exp/pflask"
160     "cmds/exp/pox"
161     "cmds/exp/pxeserver"
162     "cmds/exp/readelf"
163     "cmds/exp/readpe"
164     "cmds/exp/run"
165     "cmds/exp/rush"
166     "cmds/exp/smbios_transfer"
167     "cmds/exp/smn"
168     "cmds/exp/srvfiles"
169     "cmds/exp/ssh"
170     "cmds/exp/syscallfilter"
171     "cmds/exp/systemboot"
172     "cmds/exp/tac"
173     "cmds/exp/tc"
174     "cmds/exp/tcpdump"
175     "cmds/exp/tcz"
176     "cmds/exp/tftp"
177     "cmds/exp/traceroute"
178     "cmds/exp/uefiboot"
179     "cmds/exp/vboot"
180     "cmds/exp/vmboot"
181     "cmds/exp/watch"
182     "cmds/exp/zbi"
183     "cmds/exp/zimage"
184     "cmds/extra/tsort"
185     "cmds/fwtools/flash"
186     "cmds/fwtools/spidev"
187   ];
189   allowGoReference = false;
191   nativeCheckInputs = [ which ];
193   preCheck = ''
194     rm cmds/core/brctl/*_test.go # Error: open /sys/class/net: no such file or directory
195     rm cmds/core/du/*_test.go # Error: expected 0 got 8
196     rm cmds/core/mkdir/*_test.go # Error: Mode = 'drwxr-xr-x', want: 'dgrwxrwxrwx'
197     rm cmds/core/netcat/*_test.go # Error: parseRemoteAddr(tcp, ::1) = [::1 localhost], want a subset of [::1 ip6-localhost]
198     rm cmds/exp/bzimage/*_test.go # Error: compressed KernelCode too big: was 611116, now 611124
199   '';
201   meta = (lib.removeAttrs prevAttrs.meta [ "mainProgram" ]) // {
202     longDescription = "All u-root commands compiles as standalone binaries";
203   };