Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkgs/by-name/ca/cargo-llvm-cov/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ let
};
in

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

# Use `fetchFromGitHub` instead of `fetchCrate` because the latter does not
Expand All @@ -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;
Expand Down Expand Up @@ -103,4 +103,4 @@ rustPlatform.buildRustPackage {
# The profiler runtime is (currently) disabled on non-Linux platforms
broken = !(stdenv.hostPlatform.isLinux && !stdenv.targetPlatform.isRedox);
};
}
})
4 changes: 2 additions & 2 deletions pkgs/by-name/fi/firmware-updater/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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=";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/ka/kata-runtime/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ buildGoModule rec {
hash = "sha256-Ir+/ZZJHm6E+044wczU3UvL+Py9Wprgw2QKJaYyDrKU=";
};

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

vendorHash = null;

Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/ni/nitrokey-start-firmware/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ stdenv.mkDerivation (finalAttrs: {
fetchSubmodules = true;
};

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

postPatch = ''
patchShebangs configure
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/ni/nitrokey-storage-firmware/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ in
stdenv.mkDerivation {
inherit pname version src;

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

postPatch = ''
substituteInPlace Makefile \
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/ni/nitrokey-trng-rs232-firmware/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: {

nativeBuildInputs = [ pkgsCross.avr.stdenv.cc ];

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

makeFlags = [ "all" ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/ps/ps3netsrv/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
hash = "sha256-ynFuCD+tp8E/DDdB/HU9BCmwKcmQy6NBx26MKnP4W0o=";
};

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

buildInputs = [
meson
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/vp/vpp/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ stdenv.mkDerivation rec {
patchShebangs ../vpp-api/
'';

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

enableParallelBuilding = true;
env.NIX_CFLAGS_COMPILE = "-Wno-error -Wno-array-bounds -Wno-maybe-uninitialized";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/xa/xar/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ stdenv.mkDerivation (finalAttrs: {

# We do not use or modify files outside of the xar subdirectory.
patchFlags = [ "-p2" ];
sourceRoot = "source/xar";
sourceRoot = "${finalAttrs.src.name}/xar";

outputs = [
"out"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/coq-modules/Vpl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mkCoqDerivation {

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";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/pipewire/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ stdenv.mkDerivation (finalAttrs: {
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 = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ let
pname = "indi-3rdparty-${pname}";
inherit src version;

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

cmakeFlags =
[
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/biliass/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ buildPythonPackage rec {
hash = "sha256-IrzFjjMNuD5UgdccHxIxZoeZpM1PGtVQRTWHOocnmAU=";
};

sourceRoot = "source/packages/biliass";
sourceRoot = "${src.name}/packages/biliass";
cargoRoot = "rust";

cargoDeps = rustPlatform.fetchCargoVendor {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/polars/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ buildPythonPackage rec {

requiredSystemFeatures = [ "big-parallel" ];

sourceRoot = "source/py-polars";
sourceRoot = "${src.name}/py-polars";
postPatch = ''
for f in * ; do
[[ "$f" == "tests" ]] || \
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/tools/analysis/rr/zen_workaround.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stdenv.mkDerivation {
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;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/kde/third-party/koi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
};

# See https://github.com/baduhai/Koi/blob/master/development/Nix%20OS/dev.nix
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
nativeBuildInputs = [
cmake
wrapQtAppsHook
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
stdenvNoCC,
}:

stdenvNoCC.mkDerivation {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "locale";
version = "118";

Expand All @@ -20,7 +20,7 @@ stdenvNoCC.mkDerivation {
hash = "sha256-KzaAlqXqfJW2s31qmA0D7qteaZY57Va2o86aZrwyR74=";
};

sourceRoot = "source/usr-share-locale.tproj";
sourceRoot = "${finalAttrs.src.name}/usr-share-locale.tproj";

postPatch = ''
# bmake expects `Makefile` not `BSDmakefile`.
Expand Down Expand Up @@ -60,4 +60,4 @@ stdenvNoCC.mkDerivation {
];
maintainers = lib.teams.darwin.members;
};
}
})
4 changes: 2 additions & 2 deletions pkgs/tools/networking/curl-impersonate/chrome/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ stdenv.mkDerivation rec {

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)"

Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/networking/curl-impersonate/firefox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ stdenv.mkDerivation rec {
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
)
);
Expand Down