Filter sources

This commit is contained in:
Surma
2024-09-08 10:46:45 +01:00
parent 24e63eafc6
commit aa7b284e65
6 changed files with 14 additions and 18 deletions

View File

@@ -18,7 +18,7 @@
system:
let
pkgs = nixpkgs.legacyPackages.${system};
inherit (pkgs) callPackage stdenv;
inherit (pkgs) callPackage stdenv lib;
buildSquooshCppCodec = callPackage (import ../../nix/squoosh-cxx-builder) {};
mkInstallable = callPackage (import ../../nix/mk-installable) {};
@@ -30,8 +30,9 @@
default = mozjpeg-squoosh;
mozjpeg-squoosh = buildSquooshCppCodec {
name = "mozjpeg-squoosh";
src = ./.;
src = lib.sources.sourceByRegex ./. ["Makefile" "enc(/.+)?"];
MOZJPEG = mozjpeg;
dontConfigure = true;
decoder = null;
};