Commit 992f5923 authored by Jan Malakhovski's avatar Jan Malakhovski
Browse files

treewide: fix some more `sourceRoot`s

This change is almost a noop.
parent cc0e8af2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ let
  };
in

rustPlatform.buildRustPackage {
rustPlatform.buildRustPackage (finalAttrs: {
  inherit pname version;

  # Use `fetchFromGitHub` instead of `fetchCrate` because the latter does not
@@ -59,7 +59,7 @@ rustPlatform.buildRustPackage {

  # Upstream doesn't include the lockfile so we need to add it back
  postUnpack = ''
    cp ${cargoLock} source/Cargo.lock
    cp ${cargoLock} ${finalAttrs.src.name}/Cargo.lock
  '';

  useFetchCargoVendor = true;
@@ -103,4 +103,4 @@ rustPlatform.buildRustPackage {
    # The profiler runtime is (currently) disabled on non-Linux platforms
    broken = !(stdenv.hostPlatform.isLinux && !stdenv.targetPlatform.isRedox);
  };
}
})
+2 −2
Original line number Diff line number Diff line
@@ -5,13 +5,13 @@
  fetchFromGitHub,
}:

flutter.buildFlutterApplication {
flutter.buildFlutterApplication rec {
  pname = "firmware-updater";
  version = "0-unstable-2024-20-11";

  pubspecLock = lib.importJSON ./pubspec.lock.json;

  sourceRoot = "./source/apps/firmware_updater";
  sourceRoot = "${src.name}/apps/firmware_updater";

  gitHashes = {
    fwupd = "sha256-l/+HrrJk1mE2Mrau+NmoQ7bu9qhHU6wX68+m++9Hjd4=";
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ buildGoModule rec {
    hash = "sha256-Ir+/ZZJHm6E+044wczU3UvL+Py9Wprgw2QKJaYyDrKU=";
  };

  sourceRoot = "source/src/runtime";
  sourceRoot = "${src.name}/src/runtime";

  vendorHash = null;

+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ stdenv.mkDerivation (finalAttrs: {
    fetchSubmodules = true;
  };

  sourceRoot = "source/src";
  sourceRoot = "${finalAttrs.src.name}/src";

  postPatch = ''
    patchShebangs configure
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ in
stdenv.mkDerivation {
  inherit pname version src;

  sourceRoot = "source/src";
  sourceRoot = "${src.name}/src";

  postPatch = ''
    substituteInPlace Makefile \
Loading