mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-13 09:17:20 +00:00
20 lines
371 B
Nix
20 lines
371 B
Nix
{
|
|
coreutils,
|
|
rsync,
|
|
writeShellScriptBin,
|
|
lib,
|
|
}:
|
|
flake:
|
|
let
|
|
installScript = writeShellScriptBin "install.sh" ''
|
|
${coreutils}/bin/mkdir -p wasm_build
|
|
${rsync}/bin/rsync --chmod=u+w -r ${flake.packages.default}/* wasm_build/
|
|
'';
|
|
in
|
|
lib.recursiveUpdate flake {
|
|
apps.install = {
|
|
type = "app";
|
|
program = "${installScript}/bin/install.sh";
|
|
};
|
|
}
|