▾ modified flake.nix +4 -2 Viewed
@@ -137,7 +137,9 @@ 137 137 138 138 # Every external crate, compiled once and shared by the three objects, 139 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 [ " s r c " ] // { 141 143 inherit dummySrc ; 142 144 pname = " j o l t - n a t i v e - d e p s " ; 143 145 version = " 0 . 1 . 0 " ; @@ -238,7 +240,7 @@ 238 240 # Same stubbed-source caveat as the host deps above: the vendored cpal 239 241 # has to survive into the dummy tree, or moq-media builds against an 240 242 # empty crate here too. 241 - androidArtifacts = craneLib . buildDepsOnly ( androidArgs // { 243 + androidArtifacts = craneLib . buildDepsOnly ( removeAttrs androidArgs [ " s r c " ] // { 242 244 inherit dummySrc ; 243 245 pname = " j o l t - n a t i v e - a n d r o i d - d e p s " ; 244 246 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 [ " s r c " ] // { 141 inherit dummySrc ; 143 inherit dummySrc ; 142 pname = " j o l t - n a t i v e - d e p s " ; 144 pname = " j o l t - n a t i v e - d e p s " ; 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 cpal 240 # 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 an 241 # 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 [ " s r c " ] // { 242 inherit dummySrc ; 244 inherit dummySrc ; 243 pname = " j o l t - n a t i v e - a n d r o i d - d e p s " ; 245 pname = " j o l t - n a t i v e - a n d r o i d - d e p s " ; 244 version = " 0 . 1 . 0 " ; 246 version = " 0 . 1 . 0 " ;