···45 };
46in
4748-rustPlatform.buildRustPackage {
49 inherit pname version;
5051 # Use `fetchFromGitHub` instead of `fetchCrate` because the latter does not
···5960 # Upstream doesn't include the lockfile so we need to add it back
61 postUnpack = ''
62- cp ${cargoLock} source/Cargo.lock
63 '';
6465 useFetchCargoVendor = true;
···103 # The profiler runtime is (currently) disabled on non-Linux platforms
104 broken = !(stdenv.hostPlatform.isLinux && !stdenv.targetPlatform.isRedox);
105 };
106-}
···45 };
46in
4748+rustPlatform.buildRustPackage (finalAttrs: {
49 inherit pname version;
5051 # Use `fetchFromGitHub` instead of `fetchCrate` because the latter does not
···5960 # Upstream doesn't include the lockfile so we need to add it back
61 postUnpack = ''
62+ cp ${cargoLock} ${finalAttrs.src.name}/Cargo.lock
63 '';
6465 useFetchCargoVendor = true;
···103 # The profiler runtime is (currently) disabled on non-Linux platforms
104 broken = !(stdenv.hostPlatform.isLinux && !stdenv.targetPlatform.isRedox);
105 };
106+})
···5657 # We do not use or modify files outside of the xar subdirectory.
58 patchFlags = [ "-p2" ];
59- sourceRoot = "source/xar";
6061 outputs = [
62 "out"
···5657 # We do not use or modify files outside of the xar subdirectory.
58 patchFlags = [ "-p2" ];
59+ sourceRoot = "${finalAttrs.src.name}/xar";
6061 outputs = [
62 "out"
+1-1
pkgs/development/coq-modules/Vpl/default.nix
···1415 release."0.5".sha256 = "sha256-mSD/xSweeK9WMxWDdX/vzN96iXo74RkufjuNvtzsP9o=";
1617- sourceRoot = "source/coq";
1819 meta = {
20 description = "Coq interface to VPL abstract domain of convex polyhedra";
···1415 release."0.5".sha256 = "sha256-mSD/xSweeK9WMxWDdX/vzN96iXo74RkufjuNvtzsP9o=";
1617+ setSourceRoot = "sourceRoot=$(echo */coq)";
1819 meta = {
20 description = "Coq interface to VPL abstract domain of convex polyhedra";
···21 baseAttrs = finalAttrs: {
22 releaseName = "ICU";
2324- sourceRoot = "source/icu/icu4c/source";
2526 patches = [
27 # Skip MessageFormatTest test, which is known to crash sometimes and should be suppressed if it does.
···21 baseAttrs = finalAttrs: {
22 releaseName = "ICU";
2324+ sourceRoot = "${finalAttrs.src.name}/icu/icu4c/source";
2526 patches = [
27 # Skip MessageFormatTest test, which is known to crash sometimes and should be suppressed if it does.