diff --git a/pkgs/applications/audio/sony-headphones-client/default.nix b/pkgs/applications/audio/sony-headphones-client/default.nix index 03fc6299d5c0..86746cbc5375 100644 --- a/pkgs/applications/audio/sony-headphones-client/default.nix +++ b/pkgs/applications/audio/sony-headphones-client/default.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkg-config copyDesktopItems ]; buildInputs = [ bluez dbus glew glfw imgui ]; - sourceRoot = "./${src.name}/Client"; + sourceRoot = "${src.name}/Client"; cmakeFlags = [ "-Wno-dev" ]; diff --git a/pkgs/applications/editors/howl/default.nix b/pkgs/applications/editors/howl/default.nix index ff9a30074120..030c6666e11d 100644 --- a/pkgs/applications/editors/howl/default.nix +++ b/pkgs/applications/editors/howl/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { sha256 = "1qc58l3rkr37cj6vhf8c7bnwbz93nscyraz7jxqwjq6k4gj0cjw3"; }; - sourceRoot = "./howl-${version}/src"; + sourceRoot = "howl-${version}/src"; # The Makefile uses "/usr/local" if not explicitly overridden installFlags = [ "PREFIX=$(out)" ]; diff --git a/pkgs/applications/misc/mediainfo-gui/default.nix b/pkgs/applications/misc/mediainfo-gui/default.nix index 4aebb67ac981..ace96a931de0 100644 --- a/pkgs/applications/misc/mediainfo-gui/default.nix +++ b/pkgs/applications/misc/mediainfo-gui/default.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { buildInputs = [ libmediainfo wxGTK32 desktop-file-utils libSM imagemagick ] ++ lib.optionals stdenv.isDarwin [ Cocoa ]; - sourceRoot = "./MediaInfo/Project/GNU/GUI/"; + sourceRoot = "MediaInfo/Project/GNU/GUI"; enableParallelBuilding = true; diff --git a/pkgs/applications/misc/mediainfo/default.nix b/pkgs/applications/misc/mediainfo/default.nix index ffa7f68378db..06669089a18d 100644 --- a/pkgs/applications/misc/mediainfo/default.nix +++ b/pkgs/applications/misc/mediainfo/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoreconfHook pkg-config ]; buildInputs = [ libzen libmediainfo zlib ]; - sourceRoot = "./MediaInfo/Project/GNU/CLI/"; + sourceRoot = "MediaInfo/Project/GNU/CLI"; configureFlags = [ "--with-libmediainfo=${libmediainfo}" ]; diff --git a/pkgs/applications/science/biology/sratoolkit/default.nix b/pkgs/applications/science/biology/sratoolkit/default.nix index 8a1bb5376eaf..a36157ed5d16 100644 --- a/pkgs/applications/science/biology/sratoolkit/default.nix +++ b/pkgs/applications/science/biology/sratoolkit/default.nix @@ -40,7 +40,7 @@ stdenv.mkDerivation rec { stdenv.cc.cc.lib ]; - sourceRoot = "./sratoolkit.${version}-ubuntu64/bin"; + sourceRoot = "sratoolkit.${version}-ubuntu64/bin"; installPhase = '' find -L . -executable -type f -! -name "*remote-fuser*" -exec install -m755 -D {} $out/bin/{} \; diff --git a/pkgs/applications/science/electronics/xyce/default.nix b/pkgs/applications/science/electronics/xyce/default.nix index 4709065e45bd..aee1d25a04cc 100644 --- a/pkgs/applications/science/electronics/xyce/default.nix +++ b/pkgs/applications/science/electronics/xyce/default.nix @@ -56,7 +56,7 @@ stdenv.mkDerivation rec { srcs = [ xyce_src regression_src ]; - sourceRoot = "./${xyce_src.name}"; + sourceRoot = xyce_src.name; preConfigure = "./bootstrap"; diff --git a/pkgs/applications/science/logic/ekrhyper/default.nix b/pkgs/applications/science/logic/ekrhyper/default.nix index 187cbc9a92ae..4a5124b23582 100644 --- a/pkgs/applications/science/logic/ekrhyper/default.nix +++ b/pkgs/applications/science/logic/ekrhyper/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { strictDeps = true; nativeBuildInputs = [ ocaml perl ]; - setSourceRoot = "export sourceRoot=$(echo */ekrh/src/)"; + setSourceRoot = "export sourceRoot=$(echo */ekrh/src)"; preInstall = "export INSTALLDIR=$out"; postInstall = ''for i in "$out/casc"/*; do ln -s "$i" "$out/bin/ekrh-casc-$(basename $i)"; done ''; diff --git a/pkgs/applications/science/misc/golly/default.nix b/pkgs/applications/science/misc/golly/default.nix index 7d91c76579f9..8814b33c4b14 100644 --- a/pkgs/applications/science/misc/golly/default.nix +++ b/pkgs/applications/science/misc/golly/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { ]; setSourceRoot = '' - sourceRoot=$(echo */gui-wx/) + sourceRoot=$(echo */gui-wx) ''; postPatch = '' diff --git a/pkgs/data/fonts/roboto-mono/default.nix b/pkgs/data/fonts/roboto-mono/default.nix index fd3372123c60..5d7cc57a4b43 100644 --- a/pkgs/data/fonts/roboto-mono/default.nix +++ b/pkgs/data/fonts/roboto-mono/default.nix @@ -51,7 +51,7 @@ stdenv.mkDerivation { }) ]; - sourceRoot = "./"; + sourceRoot = "."; unpackCmd = '' ttfName=$(basename $(stripHash $curSrc)) diff --git a/pkgs/data/fonts/rubik/default.nix b/pkgs/data/fonts/rubik/default.nix index dec500c119f1..c9e20fa6351a 100644 --- a/pkgs/data/fonts/rubik/default.nix +++ b/pkgs/data/fonts/rubik/default.nix @@ -66,7 +66,7 @@ stdenv.mkDerivation { }) ]; - sourceRoot = "./"; + sourceRoot = "."; unpackCmd = '' ttfName=$(basename $(stripHash $curSrc)) diff --git a/pkgs/development/libraries/dab_lib/default.nix b/pkgs/development/libraries/dab_lib/default.nix index 0d236c36aa3c..82d591abc139 100644 --- a/pkgs/development/libraries/dab_lib/default.nix +++ b/pkgs/development/libraries/dab_lib/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-KSkOg0a5iq+13kClQqj+TaEP/PsLUrm8bMmiJEAZ+C4="; }; - sourceRoot = "${finalAttrs.src.name}/library/"; + sourceRoot = "${finalAttrs.src.name}/library"; nativeBuildInputs = [ cmake pkg-config ]; buildInputs = [ faad2 fftwFloat zlib ]; diff --git a/pkgs/development/libraries/libzen/default.nix b/pkgs/development/libraries/libzen/default.nix index 12ac860320c7..ecc3736d1fbb 100644 --- a/pkgs/development/libraries/libzen/default.nix +++ b/pkgs/development/libraries/libzen/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoreconfHook ]; configureFlags = [ "--enable-shared" ]; - sourceRoot = "./ZenLib/Project/GNU/Library/"; + sourceRoot = "ZenLib/Project/GNU/Library"; preConfigure = "sh autogen.sh"; diff --git a/pkgs/development/libraries/liquidfun/default.nix b/pkgs/development/libraries/liquidfun/default.nix index d3e3187bf757..6ab138016d19 100644 --- a/pkgs/development/libraries/liquidfun/default.nix +++ b/pkgs/development/libraries/liquidfun/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; buildInputs = [ libGLU libGL libX11 libXi ]; - sourceRoot = "liquidfun/Box2D/"; + sourceRoot = "liquidfun/Box2D"; preConfigurePhases = "preConfigure"; diff --git a/pkgs/os-specific/linux/firmware/xow_dongle-firmware/default.nix b/pkgs/os-specific/linux/firmware/xow_dongle-firmware/default.nix index 824615a4baf2..444585189434 100644 --- a/pkgs/os-specific/linux/firmware/xow_dongle-firmware/default.nix +++ b/pkgs/os-specific/linux/firmware/xow_dongle-firmware/default.nix @@ -14,7 +14,7 @@ stdenvNoCC.mkDerivation rec { nativeBuildInputs = [ cabextract ]; - sourceRoot = "./."; + sourceRoot = "."; unpackCmd = '' cabextract -F FW_ACC_00U.bin ${src} diff --git a/pkgs/servers/matrix-synapse/plugins/mjolnir-antispam.nix b/pkgs/servers/matrix-synapse/plugins/mjolnir-antispam.nix index 2d0fa4115cc5..2fa5656310af 100644 --- a/pkgs/servers/matrix-synapse/plugins/mjolnir-antispam.nix +++ b/pkgs/servers/matrix-synapse/plugins/mjolnir-antispam.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { sha256 = "sha256-/vnojWLpu/fktqPUhAdL1QTESxDwFrBVYAkyF79Fj9w="; }; - sourceRoot = "./${src.name}/synapse_antispam"; + sourceRoot = "${src.name}/synapse_antispam"; buildInputs = [ matrix-synapse ]; diff --git a/pkgs/tools/archivers/unar/default.nix b/pkgs/tools/archivers/unar/default.nix index 2fdaf2def590..ee1693ee18e2 100644 --- a/pkgs/tools/archivers/unar/default.nix +++ b/pkgs/tools/archivers/unar/default.nix @@ -67,7 +67,7 @@ stdenv.mkDerivation rec { dontConfigure = true; - sourceRoot = "./${src.name}/XADMaster"; + sourceRoot = "${src.name}/XADMaster"; installPhase = '' runHook preInstall diff --git a/pkgs/tools/misc/usbimager/default.nix b/pkgs/tools/misc/usbimager/default.nix index 533f61a9c7d1..a3660d71da4c 100644 --- a/pkgs/tools/misc/usbimager/default.nix +++ b/pkgs/tools/misc/usbimager/default.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { sha256 = "sha256-CEGUXJXqXmD8uT93T9dg49Lf5vTpAzQjdnhYmbR5zTI="; }; - sourceRoot = "${src.name}/src/"; + sourceRoot = "${src.name}/src"; nativeBuildInputs = [ pkg-config wrapGAppsHook ]; buildInputs = lib.optionals withUdisks [ udisks glib ] diff --git a/pkgs/tools/networking/bully/default.nix b/pkgs/tools/networking/bully/default.nix index c82971d8217a..55ff196154e3 100644 --- a/pkgs/tools/networking/bully/default.nix +++ b/pkgs/tools/networking/bully/default.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - sourceRoot = "./${src.name}/src"; + sourceRoot = "${src.name}/src"; installPhase = '' install -Dm555 -t $out/bin bully diff --git a/pkgs/tools/security/mpw/default.nix b/pkgs/tools/security/mpw/default.nix index 0fe45039b9be..8d6f7f4f3b1d 100644 --- a/pkgs/tools/security/mpw/default.nix +++ b/pkgs/tools/security/mpw/default.nix @@ -15,7 +15,7 @@ in stdenv.mkDerivation rec { inherit rev; }; - sourceRoot = "./${src.name}/platform-independent/c/cli"; + sourceRoot = "${src.name}/platform-independent/c/cli"; postPatch = '' rm build diff --git a/pkgs/tools/typesetting/xmlroff/default.nix b/pkgs/tools/typesetting/xmlroff/default.nix index 69c48120b061..dd8adab9ee8a 100644 --- a/pkgs/tools/typesetting/xmlroff/default.nix +++ b/pkgs/tools/typesetting/xmlroff/default.nix @@ -29,7 +29,7 @@ stdenv.mkDerivation rec { popt ]; - sourceRoot = "${src.name}/xmlroff/"; + sourceRoot = "${src.name}/xmlroff"; enableParallelBuilding = true;