mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-19 12:08:57 +00:00
Move src to var
This commit is contained in:
@@ -21,16 +21,18 @@
|
||||
fenix = fenix.packages.${system};
|
||||
};
|
||||
squooshHelpers = callPackage (import ../../nix/squoosh-helpers) { };
|
||||
inherit (squooshHelpers) mkRepoBinaryUpdater;
|
||||
inherit (squooshHelpers) mkRepoBinaryUpdater forAllVariants;
|
||||
|
||||
variants = {
|
||||
base = { };
|
||||
};
|
||||
|
||||
src = lib.sources.sourceByRegex ./. [
|
||||
"Cargo\.*"
|
||||
".*\.rs"
|
||||
];
|
||||
in
|
||||
mkRepoBinaryUpdater {
|
||||
packages = rec {
|
||||
default = rotate-squoosh;
|
||||
|
||||
builder = variantName: opts: {
|
||||
rotate-squoosh = buildSquooshRustCodec {
|
||||
name = "rotate-squoosh";
|
||||
inherit src;
|
||||
@@ -40,6 +42,13 @@
|
||||
wasmBindgen = null;
|
||||
};
|
||||
};
|
||||
|
||||
packageVariants = forAllVariants { inherit builder variants; };
|
||||
in
|
||||
mkRepoBinaryUpdater {
|
||||
packages = packageVariants // {
|
||||
default = packageVariants."rotate-squoosh-base";
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user