treewide: fix some more `sourceRoot`s

This change is almost a noop.

Changed files
+27 -27
pkgs
by-name
ca
cargo-llvm-cov
fi
firmware-updater
ka
kata-runtime
ni
nitrokey-start-firmware
nitrokey-storage-firmware
nitrokey-trng-rs232-firmware
ps
ps3netsrv
vp
xa
development
coq-modules
libraries
pipewire
science
astronomy
python-modules
biliass
polars
tools
analysis
kde
third-party
os-specific
darwin
apple-source-releases
tools
networking
curl-impersonate
chrome
firefox
+3 -3
pkgs/by-name/ca/cargo-llvm-cov/package.nix
···
};
in
-
rustPlatform.buildRustPackage {
+
rustPlatform.buildRustPackage (finalAttrs: {
inherit pname version;
# Use `fetchFromGitHub` instead of `fetchCrate` because the latter does not
···
# 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;
···
# The profiler runtime is (currently) disabled on non-Linux platforms
broken = !(stdenv.hostPlatform.isLinux && !stdenv.targetPlatform.isRedox);
};
-
}
+
})
+2 -2
pkgs/by-name/fi/firmware-updater/package.nix
···
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
pkgs/by-name/ka/kata-runtime/package.nix
···
hash = "sha256-Ir+/ZZJHm6E+044wczU3UvL+Py9Wprgw2QKJaYyDrKU=";
};
-
sourceRoot = "source/src/runtime";
+
sourceRoot = "${src.name}/src/runtime";
vendorHash = null;
+1 -1
pkgs/by-name/ni/nitrokey-start-firmware/package.nix
···
fetchSubmodules = true;
};
-
sourceRoot = "source/src";
+
sourceRoot = "${finalAttrs.src.name}/src";
postPatch = ''
patchShebangs configure
+1 -1
pkgs/by-name/ni/nitrokey-storage-firmware/package.nix
···
stdenv.mkDerivation {
inherit pname version src;
-
sourceRoot = "source/src";
+
sourceRoot = "${src.name}/src";
postPatch = ''
substituteInPlace Makefile \
+1 -1
pkgs/by-name/ni/nitrokey-trng-rs232-firmware/package.nix
···
nativeBuildInputs = [ pkgsCross.avr.stdenv.cc ];
-
sourceRoot = "source/src";
+
sourceRoot = "${finalAttrs.src.name}/src";
makeFlags = [ "all" ];
+1 -1
pkgs/by-name/ps/ps3netsrv/package.nix
···
hash = "sha256-ynFuCD+tp8E/DDdB/HU9BCmwKcmQy6NBx26MKnP4W0o=";
};
-
sourceRoot = "./source/${pname}";
+
sourceRoot = "${src.name}/${pname}";
buildInputs = [
meson
+1 -1
pkgs/by-name/vp/vpp/package.nix
···
patchShebangs ../vpp-api/
'';
-
sourceRoot = "source/src";
+
sourceRoot = "${src.name}/src";
enableParallelBuilding = true;
env.NIX_CFLAGS_COMPILE = "-Wno-error -Wno-array-bounds -Wno-maybe-uninitialized";
+1 -1
pkgs/by-name/xa/xar/package.nix
···
# We do not use or modify files outside of the xar subdirectory.
patchFlags = [ "-p2" ];
-
sourceRoot = "source/xar";
+
sourceRoot = "${finalAttrs.src.name}/xar";
outputs = [
"out"
+1 -1
pkgs/development/coq-modules/Vpl/default.nix
···
release."0.5".sha256 = "sha256-mSD/xSweeK9WMxWDdX/vzN96iXo74RkufjuNvtzsP9o=";
-
sourceRoot = "source/coq";
+
setSourceRoot = "sourceRoot=$(echo */coq)";
meta = {
description = "Coq interface to VPL abstract domain of convex polyhedra";
+2 -2
pkgs/development/libraries/pipewire/default.nix
···
doCheck = true;
postUnpack = ''
-
patchShebangs source/doc/*.py
-
patchShebangs source/doc/input-filter-h.sh
+
patchShebangs ${finalAttrs.src.name}/doc/*.py
+
patchShebangs ${finalAttrs.src.name}/doc/input-filter-h.sh
'';
postInstall = ''
+1 -1
pkgs/development/libraries/science/astronomy/indilib/indi-3rdparty.nix
···
pname = "indi-3rdparty-${pname}";
inherit src version;
-
sourceRoot = "source/${pname}";
+
sourceRoot = "${src.name}/${pname}";
cmakeFlags =
[
+1 -1
pkgs/development/python-modules/biliass/default.nix
···
hash = "sha256-IrzFjjMNuD5UgdccHxIxZoeZpM1PGtVQRTWHOocnmAU=";
};
-
sourceRoot = "source/packages/biliass";
+
sourceRoot = "${src.name}/packages/biliass";
cargoRoot = "rust";
cargoDeps = rustPlatform.fetchCargoVendor {
+1 -1
pkgs/development/python-modules/polars/default.nix
···
requiredSystemFeatures = [ "big-parallel" ];
-
sourceRoot = "source/py-polars";
+
sourceRoot = "${src.name}/py-polars";
postPatch = ''
for f in * ; do
[[ "$f" == "tests" ]] || \
+1 -1
pkgs/development/tools/analysis/rr/zen_workaround.nix
···
pname = "rr-zen_workaround";
inherit (rr) src version;
-
sourceRoot = "source/third-party/zen-pmu-workaround";
+
sourceRoot = "${rr.src.name}/third-party/zen-pmu-workaround";
hardeningDisable = [ "pic" ];
nativeBuildInputs = kernel.moduleBuildDependencies;
+1 -1
pkgs/kde/third-party/koi/default.nix
···
};
# See https://github.com/baduhai/Koi/blob/master/development/Nix%20OS/dev.nix
-
sourceRoot = "source/src";
+
sourceRoot = "${src.name}/src";
nativeBuildInputs = [
cmake
wrapQtAppsHook
+1 -1
pkgs/os-specific/darwin/apple-source-releases/ICU/package.nix
···
baseAttrs = finalAttrs: {
releaseName = "ICU";
-
sourceRoot = "source/icu/icu4c/source";
+
sourceRoot = "${finalAttrs.src.name}/icu/icu4c/source";
patches = [
# Skip MessageFormatTest test, which is known to crash sometimes and should be suppressed if it does.
+3 -3
pkgs/os-specific/darwin/apple-source-releases/locale/package.nix
···
stdenvNoCC,
}:
-
stdenvNoCC.mkDerivation {
+
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "locale";
version = "118";
···
hash = "sha256-KzaAlqXqfJW2s31qmA0D7qteaZY57Va2o86aZrwyR74=";
};
-
sourceRoot = "source/usr-share-locale.tproj";
+
sourceRoot = "${finalAttrs.src.name}/usr-share-locale.tproj";
postPatch = ''
# bmake expects `Makefile` not `BSDmakefile`.
···
];
maintainers = lib.teams.darwin.members;
};
-
}
+
})
+2 -2
pkgs/tools/networking/curl-impersonate/chrome/default.nix
···
postUnpack =
lib.concatStringsSep "\n" (
-
lib.mapAttrsToList (name: dep: "ln -sT ${dep.outPath} source/${name}") (
+
lib.mapAttrsToList (name: dep: "ln -sT ${dep.outPath} ${src.name}/${name}") (
lib.filterAttrs (n: v: v ? outPath) passthru.deps
)
)
+ ''
-
curltar=$(realpath -s source/curl-*.tar.gz)
+
curltar=$(realpath -s ${src.name}/curl-*.tar.gz)
pushd "$(mktemp -d)"
+1 -1
pkgs/tools/networking/curl-impersonate/firefox/default.nix
···
dontUseNinjaCheck = true;
postUnpack = lib.concatStringsSep "\n" (
-
lib.mapAttrsToList (name: dep: "ln -sT ${dep.outPath} source/${name}") (
+
lib.mapAttrsToList (name: dep: "ln -sT ${dep.outPath} ${src.name}/${name}") (
lib.filterAttrs (n: v: v ? outPath) passthru.deps
)
);