···4545 };
4646in
47474848-rustPlatform.buildRustPackage {
4848+rustPlatform.buildRustPackage (finalAttrs: {
4949 inherit pname version;
50505151 # Use `fetchFromGitHub` instead of `fetchCrate` because the latter does not
···59596060 # Upstream doesn't include the lockfile so we need to add it back
6161 postUnpack = ''
6262- cp ${cargoLock} source/Cargo.lock
6262+ cp ${cargoLock} ${finalAttrs.src.name}/Cargo.lock
6363 '';
64646565 useFetchCargoVendor = true;
···103103 # The profiler runtime is (currently) disabled on non-Linux platforms
104104 broken = !(stdenv.hostPlatform.isLinux && !stdenv.targetPlatform.isRedox);
105105 };
106106-}
106106+})
···56565757 # We do not use or modify files outside of the xar subdirectory.
5858 patchFlags = [ "-p2" ];
5959- sourceRoot = "source/xar";
5959+ sourceRoot = "${finalAttrs.src.name}/xar";
60606161 outputs = [
6262 "out"
+1-1
pkgs/development/coq-modules/Vpl/default.nix
···14141515 release."0.5".sha256 = "sha256-mSD/xSweeK9WMxWDdX/vzN96iXo74RkufjuNvtzsP9o=";
16161717- sourceRoot = "source/coq";
1717+ setSourceRoot = "sourceRoot=$(echo */coq)";
18181919 meta = {
2020 description = "Coq interface to VPL abstract domain of convex polyhedra";
···2121 baseAttrs = finalAttrs: {
2222 releaseName = "ICU";
23232424- sourceRoot = "source/icu/icu4c/source";
2424+ sourceRoot = "${finalAttrs.src.name}/icu/icu4c/source";
25252626 patches = [
2727 # Skip MessageFormatTest test, which is known to crash sometimes and should be suppressed if it does.