nandi/jolt-nativepublic Fork 0
16408ca
Commits
Clone
git clone https://git.rickub.com/nandi/jolt-native.git
git clone ssh://git@rickub.com/nandi/jolt-native.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Stop handing buildDepsOnly a src it will not read

commonArgs and androidArgs both carry `src`, and both are also handed a
dummySrc — so crane drops the src and warns about it, once per deps
derivation, on every evaluation of this flake and of anything that takes
it as an input. Drop the attribute at the two call sites instead; the
resulting derivations are unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
nandi committed 2026-09-06T13:05:41-07:00 Browse files
16408ca parent: 4956d1e
modified flake.nix +4 -2
@@ -137,7 +137,9 @@
137137
138138 # Every external crate, compiled once and shared by the three objects,
139139 # the clippy run and the test run.
140- cargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
140+ # `src` comes out: with a dummySrc given, crane ignores it and says so
141+ # in an eval warning on every build that touches this flake.
142+ cargoArtifacts = craneLib.buildDepsOnly (removeAttrs commonArgs [ "src" ] // {
141143 inherit dummySrc;
142144 pname = "jolt-native-deps";
143145 version = "0.1.0";
@@ -238,7 +240,7 @@
238240 # Same stubbed-source caveat as the host deps above: the vendored cpal
239241 # has to survive into the dummy tree, or moq-media builds against an
240242 # empty crate here too.
241- androidArtifacts = craneLib.buildDepsOnly (androidArgs // {
243+ androidArtifacts = craneLib.buildDepsOnly (removeAttrs androidArgs [ "src" ] // {
242244 inherit dummySrc;
243245 pname = "jolt-native-android-deps";
244246 version = "0.1.0";
@@ -137,7 +137,9 @@
137 137
138 # Every external crate, compiled once and shared by the three objects,138 # Every external crate, compiled once and shared by the three objects,
139 # the clippy run and the test run.139 # the clippy run and the test run.
140- cargoArtifacts = craneLib.buildDepsOnly (commonArgs // {140+ # `src` comes out: with a dummySrc given, crane ignores it and says so
141+ # in an eval warning on every build that touches this flake.
142+ cargoArtifacts = craneLib.buildDepsOnly (removeAttrs commonArgs [ "src" ] // {
141 inherit dummySrc;143 inherit dummySrc;
142 pname = "jolt-native-deps";144 pname = "jolt-native-deps";
143 version = "0.1.0";145 version = "0.1.0";
@@ -238,7 +240,7 @@
238 # Same stubbed-source caveat as the host deps above: the vendored cpal240 # Same stubbed-source caveat as the host deps above: the vendored cpal
239 # has to survive into the dummy tree, or moq-media builds against an241 # has to survive into the dummy tree, or moq-media builds against an
240 # empty crate here too.242 # empty crate here too.
241- androidArtifacts = craneLib.buildDepsOnly (androidArgs // {243+ androidArtifacts = craneLib.buildDepsOnly (removeAttrs androidArgs [ "src" ] // {
242 inherit dummySrc;244 inherit dummySrc;
243 pname = "jolt-native-android-deps";245 pname = "jolt-native-android-deps";
244 version = "0.1.0";246 version = "0.1.0";