--- a/nix/jrsonnet.nix +++ b/nix/jrsonnet.nix @@ -14,12 +14,19 @@ craneLib.buildPackage { src = lib.cleanSourceWith { src = ../.; - filter = path: type: (lib.hasSuffix "\.jsonnet" path) || (craneLib.filterCargoSources path type); + filter = + path: type: + (lib.hasSuffix "\.jsonnet" path) + || (lib.hasSuffix "\.ungram" path) + || (lib.hasSuffix "\.golden" path) + || (lib.hasSuffix "\.snap" path) + || (craneLib.filterCargoSources path type); }; pname = "jrsonnet"; version = "current${optionalString withExperimentalFeatures "-experimental"}"; cargoExtraArgs = "--locked --features=mimalloc${optionalString withExperimentalFeatures ",experimental"}"; + cargoTestExtraArgs = "--workspace"; CPP_JSONNET_FOR_TESTS = cpp-jsonnet-for-tests; GO_JSONNET_FOR_TESTS = go-jsonnet-for-tests;