core/pkgs/build-support/kernel/initrd-compressor-meta.nix

60 lines
1.2 KiB
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
rec {
cat = {
executable = pkgs: "cat";
ubootName = "none";
extension = ".cpio";
};
gzip = {
executable = pkgs: "${pkgs.gzip}/bin/gzip";
2024-06-30 08:16:52 +00:00
defaultArgs = [ "-9n" ];
2024-05-02 00:46:19 +00:00
ubootName = "gzip";
extension = ".gz";
};
bzip2 = {
executable = pkgs: "${pkgs.bzip2}/bin/bzip2";
ubootName = "bzip2";
extension = ".bz2";
};
xz = {
executable = pkgs: "${pkgs.xz}/bin/xz";
2024-06-30 08:16:52 +00:00
defaultArgs = [
"--check=crc32"
"--lzma2=dict=512KiB"
];
2024-05-02 00:46:19 +00:00
extension = ".xz";
};
lzma = {
executable = pkgs: "${pkgs.xz}/bin/lzma";
2024-06-30 08:16:52 +00:00
defaultArgs = [
"--check=crc32"
"--lzma1=dict=512KiB"
];
2024-05-02 00:46:19 +00:00
ubootName = "lzma";
extension = ".lzma";
};
lz4 = {
executable = pkgs: "${pkgs.lz4}/bin/lz4";
2024-06-30 08:16:52 +00:00
defaultArgs = [ "-l" ];
2024-05-02 00:46:19 +00:00
ubootName = "lz4";
extension = ".lz4";
};
lzop = {
executable = pkgs: "${pkgs.lzop}/bin/lzop";
ubootName = "lzo";
extension = ".lzo";
};
zstd = {
executable = pkgs: "${pkgs.zstd}/bin/zstd";
2024-06-30 08:16:52 +00:00
defaultArgs = [ "-10" ];
2024-05-02 00:46:19 +00:00
ubootName = "zstd";
extension = ".zst";
};
pigz = gzip // {
executable = pkgs: "${pkgs.pigz}/bin/pigz";
};
pixz = xz // {
executable = pkgs: "${pkgs.pixz}/bin/pixz";
2024-06-30 08:16:52 +00:00
defaultArgs = [ ];
2024-05-02 00:46:19 +00:00
};
}