3
0
Fork 0
forked from mirrors/nixpkgs

treewide: noop: refer to src.name or similar in sourceRoot where appropriate, part 1: trivial cases

This commit is contained in:
Jan Malakhovski 2023-07-25 13:27:31 +00:00
parent 9aabdcf43f
commit 5852f26bdc
223 changed files with 253 additions and 258 deletions

View file

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = [ "-Wno-error=deprecated-declarations" ];
makeFlags = [ "DESTDIR=\${out}" "PREFIX=''" ];
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
nativeBuildInputs = [ pkg-config wrapGAppsHook4 ];
buildInputs = [ gtk4 alsa-lib ];
postInstall = ''

View file

@ -25,7 +25,7 @@ stdenv.mkDerivation (finalAttrs: {
fetchSubmodules = true;
};
sourceRoot = "source/src";
sourceRoot = "${finalAttrs.src.name}/src";
postPatch = ''
echo '#define GIT_REVISION "${finalAttrs.version}-NixOS"' > git-rev.h

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
sha256 = "1rasp2v1ds2aw296lbf27rzw0l9fjl0cvbvw85d5ycvh6wkm301p";
};
sourceRoot = "source/muse3";
sourceRoot = "${src.name}/muse3";
patches = [ ./fix-parallel-building.patch ];

View file

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
libjack2
];
sourceRoot = "source/picoloop";
sourceRoot = "${src.name}/picoloop";
makeFlags = [ "-f Makefile.PatternPlayer_debian_RtAudio_sdl20" ];

View file

@ -68,7 +68,7 @@ mkDerivation rec {
buildInputs = [ taglib ] ++ runtimeDeps;
# encoder plugins go to ${out}/lib so they're found by kbuildsycoca5
cmakeFlags = [ "-DCMAKE_INSTALL_PREFIX=$out" ];
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
# add runt-time deps to PATH
postInstall = ''
wrapProgram $out/bin/soundkonverter --prefix PATH : ${lib.makeBinPath runtimeDeps }

View file

@ -12,7 +12,7 @@ let
pname = "rnnoise-nu";
version = "unstable-07-10-2019";
src = speech-denoiser-src;
sourceRoot = "source/rnnoise";
sourceRoot = "${speech-denoiser-src.name}/rnnoise";
nativeBuildInputs = [ autoreconfHook ];
configureFlags = [ "--disable-examples" "--disable-doc" "--disable-shared" "--enable-static" ];
installTargets = [ "install-rnnoise-nu" ];

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-oY1aGl5CKVtpOfh8Wskio/huWYMiPuxWPqxlooTutcw=";
};
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
nativeBuildInputs = [
cmake

View file

@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
hash = "sha256-zFwfKy8CVecGhgr48T+eDNHfMdctfrNGenc/XJctyw8=";
};
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
postPatch = ''
substituteInPlace Misc/Config.cpp --replace /usr $out

View file

@ -28,7 +28,7 @@ let
pname = "tsc";
commit = version;
sourceRoot = "source/core";
sourceRoot = "${src.name}/core";
recipe = writeText "recipe" ''
(tsc
@ -44,7 +44,7 @@ let
pname = "tsc-dyn";
nativeBuildInputs = [ rustPlatform.bindgenHook ];
sourceRoot = "source/core";
sourceRoot = "${src.name}/core";
postInstall = ''
LIB=($out/lib/libtsc_dyn.*)

View file

@ -96,12 +96,12 @@ if __name__ == "__main__":
drv_path = eval_drv(
nixpkgs,
"""
rustPlatform.buildRustPackage {
rustPlatform.buildRustPackage rec {
pname = "tsc-dyn";
version = "%s";
nativeBuildInputs = [ clang ];
src = fetchFromGitHub (lib.importJSON %s);
sourceRoot = "source/core";
sourceRoot = "${src.name}/core";
cargoHash = lib.fakeHash;
}
"""

View file

@ -1,5 +1,5 @@
{ stdenv, lib, fetchFromGitHub, autoconf, automake, pkg-config, SDL2, gtk2, mpfr }:
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "basiliskii";
version = "unstable-2022-09-30";
@ -9,7 +9,7 @@ stdenv.mkDerivation {
rev = "2fa17a0783cf36ae60b77b5ed930cda4dc1824af";
sha256 = "+jkns6H2YjlewbUzgoteGSQYWJL+OWVu178aM+BtABM=";
};
sourceRoot = "source/BasiliskII/src/Unix";
sourceRoot = "${src.name}/BasiliskII/src/Unix";
patches = [ ./remove-redhat-6-workaround-for-scsi-sg.h.patch ];
nativeBuildInputs = [ autoconf automake pkg-config ];
buildInputs = [ SDL2 gtk2 mpfr ];

View file

@ -51,7 +51,7 @@ in
rustPlatform.buildRustPackage {
inherit version src pname;
sourceRoot = "source/src-tauri";
sourceRoot = "${src.name}/src-tauri";
cargoLock = {
lockFile = ./Cargo.lock;

View file

@ -56,7 +56,7 @@ let
src = djvSrc;
sourceRoot = "source/etc/SuperBuild";
sourceRoot = "${src.name}/etc/SuperBuild";
nativeBuildInputs = [ cmake ];
buildInputs = [

View file

@ -87,7 +87,7 @@ stdenv.mkDerivation rec {
ln -s $out/share/Grabber/Grabber-cli $out/bin/Grabber-cli
'';
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
meta = with lib; {
description = "Very customizable imageboard/booru downloader with powerful filenaming features";

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, libevent, glew, glfw }:
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "pixelnuke";
version = "unstable-2019-05-19";
@ -11,7 +11,7 @@ stdenv.mkDerivation {
sha256 = "03dp0p00chy00njl4w02ahxqiwqpjsrvwg8j4yi4dgckkc3gbh40";
};
sourceRoot = "source/pixelnuke";
sourceRoot = "${src.name}/pixelnuke";
buildInputs = [ libevent glew glfw ];

View file

@ -39,7 +39,7 @@ let
pname = "ETL";
inherit version src;
sourceRoot = "source/ETL";
sourceRoot = "${src.name}/ETL";
nativeBuildInputs = [
pkg-config
@ -54,7 +54,7 @@ let
pname = "synfig";
inherit version src;
sourceRoot = "source/synfig-core";
sourceRoot = "${src.name}/synfig-core";
configureFlags = [
"--with-boost=${boost.dev}"
@ -89,7 +89,7 @@ stdenv.mkDerivation {
pname = "synfigstudio";
inherit version src;
sourceRoot = "source/synfig-studio";
sourceRoot = "${src.name}/synfig-studio";
postPatch = ''
patchShebangs images/splash_screen_development.sh

View file

@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
cargoRoot = "src/fuzzy-finder";
cargoDeps = rustPlatform.fetchCargoTarball {
src = finalAttrs.src;
sourceRoot = "source/src/fuzzy-finder";
sourceRoot = "${finalAttrs.src.name}/src/fuzzy-finder";
hash = "sha256-CDKlmwA2Wj78xPaSiYPmIJ7xmiE5Co+oGGejZU3v1zI=";
};

View file

@ -13,7 +13,7 @@ mkDerivation rec {
nativeBuildInputs = [ qmake ];
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
installPhase = ''
runHook preInstall

View file

@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
postPatch = ''
cp ${./Cargo.lock} Cargo.lock
'';
sourceRoot = "source/${cargoRoot}";
sourceRoot = "${src.name}/${cargoRoot}";
sha256 = "sha256-01MWuUUirsgpoprMArRp3qxKNayPHTkYWk31nXcIC34=";
};

View file

@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
hash = "sha256-v5yx8pE8+m+5CDy7X3CwitYhFQMX8Ynt8Y2k1lEZKpg=";
};
sourceRoot = "source/src-tauri";
sourceRoot = "${src.name}/src-tauri";
postPatch = ''
substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \

View file

@ -17,7 +17,7 @@ mkDerivation rec {
sha256 = "06kg057vwkvafnk69m9rar4wih3vq4h36wbzwbfc2kndsnn47lfl";
};
sourceRoot = "source/src-qt5";
sourceRoot = "${src.name}/src-qt5";
nativeBuildInputs = [
qmake

View file

@ -2,11 +2,9 @@
stdenv.mkDerivation {
pname = "spacenav-cube-example";
version = libspnav.version;
inherit (libspnav) version src;
src = libspnav.src;
sourceRoot = "source/examples/cube";
sourceRoot = "${libspnav.src.name}/examples/cube";
buildInputs = [ libX11 mesa_glu libspnav ];

View file

@ -44,7 +44,7 @@ let
src = subsurfaceSrc;
sourceRoot = "source/libdivecomputer";
sourceRoot = "${subsurfaceSrc.name}/libdivecomputer";
nativeBuildInputs = [ autoreconfHook pkg-config ];

View file

@ -16,7 +16,7 @@ buildPythonApplication {
pname = "yubioath-flutter-helper";
inherit src version meta;
sourceRoot = "source/helper";
sourceRoot = "${src.name}/helper";
format = "pyproject";
postPatch = ''

View file

@ -18,7 +18,7 @@ buildGoModule rec {
pname = "browsh";
sourceRoot = "source/interfacer";
sourceRoot = "${src.name}/interfacer";
src = fetchFromGitHub {
owner = "browsh-org";

View file

@ -10,7 +10,7 @@
, nixosTests
}:
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "ladybird";
version = "unstable-2023-01-17";
@ -21,7 +21,7 @@ stdenv.mkDerivation {
hash = "sha256-n2mLg9wNfdMGsJuGj+ukjto9qYjGOIz4cZjgvMGQUrY=";
};
sourceRoot = "source/Ladybird";
sourceRoot = "${src.name}/Ladybird";
postPatch = ''
substituteInPlace CMakeLists.txt \

View file

@ -12,7 +12,7 @@ let
hash = "sha256-xhBIJcEtxDdMXSgQtLAV0UWzPtrvKEil0WV76K5ycBc=";
};
sourceRoot = "source/frontend";
sourceRoot = "${src.name}/frontend";
npmDepsHash = "sha256-acNIMKHc4q7eiFLPBtKZBNweEsrt+//0VR6dqwXHTvA=";

View file

@ -59,7 +59,7 @@ in
pname = "gephgui";
inherit version src;
sourceRoot = "source/gephgui-wry/gephgui";
sourceRoot = "${src.name}/gephgui-wry/gephgui";
postPatch = "ln -s ${./package-lock.json} ./package-lock.json";
@ -79,7 +79,7 @@ in
pname = "gephgui-wry";
inherit version src;
sourceRoot = "source/gephgui-wry";
sourceRoot = "${src.name}/gephgui-wry";
cargoHash = "sha256-lidlUUfHXKPUlICdaVv/SFlyyWsZ7cYHyTJ3kkMn3L4=";

View file

@ -14,7 +14,7 @@ in rustPlatform.buildRustPackage rec {
hash = pinData.srcHash;
};
sourceRoot = "source/seshat-node/native";
sourceRoot = "${src.name}/seshat-node/native";
nativeBuildInputs = [ nodejs python3 yarn ];
buildInputs = [ sqlcipher ] ++ lib.optional stdenv.isDarwin CoreServices;

View file

@ -113,7 +113,7 @@ stdenv.mkDerivation rec {
daemon = stdenv.mkDerivation {
pname = "jami-daemon";
inherit src version meta;
sourceRoot = "source/daemon";
sourceRoot = "${src.name}/daemon";
nativeBuildInputs = [
autoreconfHook

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-VWsoyFG+Ro+Y6ngSTMQ7yBYf6awCMNOc6U0WqNeg/jU=";
};
sourceRoot = "source/steam-mobile";
sourceRoot = "${src.name}/steam-mobile";
installFlags = [
"PLUGIN_DIR_PURPLE=${placeholder "out"}/lib/purple-2"

View file

@ -13,7 +13,7 @@ let
fs-repo-common = pname: version: buildGoModule {
inherit pname version;
inherit (kubo-migrator-unwrapped) src;
sourceRoot = "source/${pname}";
sourceRoot = "${kubo-migrator-unwrapped.src.name}/${pname}";
vendorSha256 = null;
# Fix build on Go 1.17 and later: panic: qtls.ClientHelloInfo doesn't match
# See https://github.com/ipfs/fs-repo-migrations/pull/163

View file

@ -19,7 +19,7 @@ buildGoModule rec {
hash = "sha256-y0IYSKKZlFbPrTUC6XqYKhS3a79rieNGBL58teWMlC4=";
};
sourceRoot = "source/fs-repo-migrations";
sourceRoot = "${src.name}/fs-repo-migrations";
vendorHash = "sha256-/DqkBBtR/nU8gk3TFqNKY5zQU6BFMc3N8Ti+38mi/jk=";

View file

@ -11,7 +11,7 @@ buildGoModule {
src
;
sourceRoot = "source/wireguard/libwg";
sourceRoot = "${mullvad.src.name}/wireguard/libwg";
vendorSha256 = "QNde5BqkSuqp3VJQOhn7aG6XknRDZQ62PE3WGhEJ5LU=";

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
hash = "sha256-wbdamPi2XSLWeprrYZtBUDH1A2gdp6/5geFZv+ZqSWk=";
};
sourceRoot = "source/client";
sourceRoot = "${src.name}/client";
nativeBuildInputs = [ cmake wrapQtAppsHook ];
buildInputs = [ qtbase ];

View file

@ -11,7 +11,7 @@ buildPythonPackage rec {
pname = "openpaperwork-core";
inherit (import ./src.nix { inherit fetchFromGitLab; }) version src;
sourceRoot = "source/openpaperwork-core";
sourceRoot = "${src.name}/openpaperwork-core";
# Python 2.x is not supported.
disabled = !isPy3k && !isPyPy;

View file

@ -17,7 +17,7 @@ buildPythonPackage rec {
pname = "openpaperwork-gtk";
inherit (import ./src.nix { inherit fetchFromGitLab; }) version src;
sourceRoot = "source/openpaperwork-gtk";
sourceRoot = "${src.name}/openpaperwork-gtk";
# Python 2.x is not supported.
disabled = !isPy3k && !isPyPy;

View file

@ -30,7 +30,7 @@ buildPythonPackage rec {
pname = "paperwork-backend";
inherit (import ./src.nix { inherit fetchFromGitLab; }) version src;
sourceRoot = "source/paperwork-backend";
sourceRoot = "${src.name}/paperwork-backend";
patches = [
# disables a flaky test https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/issues/1035#note_1493700

View file

@ -41,7 +41,7 @@ python3Packages.buildPythonApplication rec {
src = sample_documents;
};
sourceRoot = "source/paperwork-gtk";
sourceRoot = "${src.name}/paperwork-gtk";
# Patch out a few paths that assume that we're using the FHS:
postPatch = ''

View file

@ -20,7 +20,7 @@ buildPythonPackage rec {
pname = "paperwork-shell";
inherit (import ./src.nix { inherit fetchFromGitLab; }) version src;
sourceRoot = "source/paperwork-shell";
sourceRoot = "${src.name}/paperwork-shell";
# Python 2.x is not supported.
disabled = !isPy3k && !isPyPy;

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "11r5ag2l5xn4pr7ycicm30w9c3ldn9yiqj1sqnjc79csxl2vrcfw";
};
sourceRoot = "source/host";
sourceRoot = "${src.name}/host";
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ libbtbb libpcap libusb1 bluez ];

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
hash = "sha256-NpnJziZXga/T5OavUt3nQ5np8kJ9CFcSmwyg4m6IJsk=";
};
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
installPhase = ''
install -m755 -D Linux/muscle $out/bin/muscle

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-58Y4lzqXwBhRlXcionUg2IhAg5znNUuyr/FsuNZd+5Q=";
};
sourceRoot = "source/source";
sourceRoot = "${src.name}/source";
postPatch = ''
substituteInPlace Makefile --replace "/bin/rm" "rm"

View file

@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
})
];
sourceRoot = "source/tandem_aligner";
sourceRoot = "${finalAttrs.src.name}/tandem_aligner";
nativeBuildInputs = [ cmake ];

View file

@ -12,7 +12,7 @@ buildPythonPackage {
format = "pyproject";
sourceRoot = "source/build/python";
sourceRoot = "${autodock-vina.src.name}/build/python";
postPatch = ''
# wildcards are not allowed

View file

@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
src = z3.src;
sourceRoot = "source/examples/tptp";
sourceRoot = "${src.name}/examples/tptp";
nativeBuildInputs = [cmake];
buildInputs = [z3];

View file

@ -14,7 +14,7 @@ buildGoModule rec {
sha256 = data.repo_hash;
};
sourceRoot = "source/workhorse";
sourceRoot = "${src.name}/workhorse";
vendorSha256 = "sha256-lKl/V2fti0eqrEoeJNNwvJbZO7z7v+5HlES+dyxxcP4=";
buildInputs = [ git ];

View file

@ -21,7 +21,7 @@ python3.pkgs.buildPythonApplication rec {
# Upstream splitted the project into gitlint and gitlint-core to
# simplify the dependency handling
sourceRoot = "source/gitlint-core";
sourceRoot = "${src.name}/gitlint-core";
nativeBuildInputs = with python3.pkgs; [
hatch-vcs

View file

@ -96,7 +96,7 @@ python3Packages.buildPythonApplication {
pname = "sapling";
inherit src version;
sourceRoot = "source/eden/scm";
sourceRoot = "${src.name}/eden/scm";
# Upstream does not commit Cargo.lock
cargoDeps = rustPlatform.importCargoLock {

View file

@ -30,7 +30,7 @@ let
buildsrht-worker = buildGoModule {
inherit src version;
sourceRoot = "source/worker";
sourceRoot = "${src.name}/worker";
pname = "buildsrht-worker";
vendorHash = "sha256-y5RFPbtaGmgPpiV2Q3njeWORGZF1TJRjAbY6VgC1hek=";
};

View file

@ -49,7 +49,7 @@ buildNpmPackage rec {
npmDepsHash = "sha256-a/cDPABWI4lPxvSOI4D90O71A9lm8icPMak/g6DPYQY=";
npmRootPath = "";
sourceRoot = "source/client";
sourceRoot = "${src.name}/client";
NODE_OPTIONS = "--openssl-legacy-provider";
};

View file

@ -7,7 +7,7 @@ buildNpmPackage {
pname = "frigate-web";
inherit version src;
sourceRoot = "source/web";
sourceRoot = "${src.name}/web";
postPatch = ''
substituteInPlace package.json \

View file

@ -6,7 +6,7 @@ stdenv.mkDerivation {
pname = "tinywl";
inherit (wlroots) version src;
sourceRoot = "source/tinywl";
sourceRoot = "${wlroots.src.name}/tinywl";
nativeBuildInputs = [ pkg-config wayland-scanner ];
buildInputs = [ libxkbcommon pixman udev wayland wayland-protocols wlroots ];

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, cmake, libX11, xorgproto }:
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "wmderlandc";
version = "unstable-2020-07-17";
@ -11,7 +11,7 @@ stdenv.mkDerivation {
sha256 = "0npmlnybblp82mfpinjbz7dhwqgpdqc1s63wc1zs8mlcs19pdh98";
};
sourceRoot = "source/ipc-client";
sourceRoot = "${src.name}/ipc-client";
nativeBuildInputs = [
cmake

View file

@ -21,7 +21,7 @@ stdenvNoCC.mkDerivation rec {
hash = "sha256-quBSH8hx3gD7y1JNWAKQdTk3CmO4t1kVo4cOGbeWlNE=";
};
sourceRoot = "source/themes/catppuccin-${variant}";
sourceRoot = "${src.name}/themes/catppuccin-${variant}";
installPhase = ''
runHook preInstall

View file

@ -11,7 +11,7 @@ mkDerivation rec {
sha256 = "1238d1m0mjkwkdpgq165a4ql9aql0aji5f41rzdzny6m7ws9nm2y";
};
sourceRoot = "source/src-qt5";
sourceRoot = "${src.name}/src-qt5";
nativeBuildInputs = [ qmake qttools ];

View file

@ -11,7 +11,7 @@ mkDerivation rec {
sha256 = "08caj4nashp79fbvj94rabn0iaa1hymifqmb782x03nb2vkn38r6";
};
sourceRoot = "source/src-qt5";
sourceRoot = "${src.name}/src-qt5";
nativeBuildInputs = [ qmake qttools ];

View file

@ -10,7 +10,7 @@ let
inherit version;
inherit src;
sourceRoot = "source/clang";
sourceRoot = "${src.name}/clang";
nativeBuildInputs = [ cmake python3 ]
++ lib.optional enableManpages python3.pkgs.sphinx

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation {
inherit version;
inherit src;
sourceRoot = "source/compiler-rt";
sourceRoot = "${src.name}/compiler-rt";
nativeBuildInputs = [ cmake python3 libllvm.dev ]
++ lib.optional stdenv.isDarwin xcbuild.xcrun;

View file

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
inherit version;
inherit src;
sourceRoot = "source/libcxx";
sourceRoot = "${src.name}/libcxx";
outputs = [ "out" ] ++ lib.optional (!headersOnly) "dev";

View file

@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
inherit version;
inherit src;
sourceRoot = "source/${pname}";
sourceRoot = "${src.name}/${pname}";
outputs = [ "out" "dev" ];

View file

@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
inherit version;
inherit src;
sourceRoot = "source/${pname}";
sourceRoot = "${src.name}/${pname}";
patches = [
./gnu-install-dirs.patch

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
inherit version;
inherit src;
sourceRoot = "source/${pname}";
sourceRoot = "${src.name}/${pname}";
patches = [
./gnu-install-dirs.patch

View file

@ -61,7 +61,7 @@ in stdenv.mkDerivation (rec {
inherit version;
inherit src;
sourceRoot = "source/${pname}";
sourceRoot = "${src.name}/${pname}";
outputs = [ "out" "lib" "dev" "python" ];

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
inherit version;
inherit src;
sourceRoot = "source/${pname}";
sourceRoot = "${src.name}/${pname}";
nativeBuildInputs = [ cmake perl ];
buildInputs = [

View file

@ -1,6 +1,6 @@
{ lib, mkCoqDerivation, coq, version ? null }:
mkCoqDerivation {
(mkCoqDerivation {
pname = "metalib";
owner = "plclub";
inherit version;
@ -12,10 +12,10 @@ mkCoqDerivation {
release."8.15".sha256 = "0wbp058zwa4bkdjj38aysy2g1avf9nrh8q23a3dil0q00qczi616";
release."8.10".sha256 = "0wbypc05d2lqfm9qaw98ynr5yc1p0ipsvyc3bh1rk9nz7zwirmjs";
sourceRoot = "source/Metalib";
meta = with lib; {
license = licenses.mit;
maintainers = [ maintainers.jwiegley ];
};
}
}).overrideAttrs (oldAttrs: {
sourceRoot = "${oldAttrs.src.name}/Metalib";
})

View file

@ -15,7 +15,7 @@ with python3Packages; buildPythonApplication rec {
sha256 = "0zbrvvb957z2lwbfd39ixqdsnd2w4wfjirwkqdrqm27bjz308731";
};
sourceRoot = "source/programmer";
sourceRoot = "${src.name}/programmer";
propagatedBuildInputs = [
pyserial

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
hash = "sha256-0sU2zOk5I69lQyrn1g0qsae7S/IBT6eA/911qp0GNkk=";
};
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
buildInputs = [ libedit zlib ncurses ]
++ lib.optionals stdenv.isDarwin ([
Accelerate

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [ cmake ];
sourceRoot = "source/product-mini/platforms/linux";
sourceRoot = "${finalAttrs.src.name}/product-mini/platforms/linux";
meta = with lib; {
description = "WebAssembly Micro Runtime";

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
hash = "sha256-yp7u6qhpPYQpBw3d+VLg0GgMyZONVII8BsBCEoRZm4w=";
};
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
postPatch = ''
sed -i '/-m64/d;/-m32/d' CMakeLists.txt

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-u/4GG1A2PAlk8VEWgJX8+EnZ5hpGhu1QbvHwct58sF4=";
};
sourceRoot = "source/CPP";
sourceRoot = "${src.name}/CPP";
nativeBuildInputs = [
cmake

View file

@ -11,7 +11,7 @@ python3Packages.buildPythonApplication rec {
sha256 = "19w92kipfhp5wvs47l0qpibn3x49sbmvkk91yxw6nwk6fafcdl17";
};
sourceRoot = "source/python";
sourceRoot = "${src.name}/python";
nativeCheckInputs = [ python3Packages.ply ];

View file

@ -2,7 +2,7 @@
, faad2, fftwFloat, zlib
}:
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "dab_lib";
version = "unstable-2023-03-02";
@ -13,7 +13,7 @@ stdenv.mkDerivation {
hash = "sha256-KSkOg0a5iq+13kClQqj+TaEP/PsLUrm8bMmiJEAZ+C4=";
};
sourceRoot = "source/library/";
sourceRoot = "${src.name}/library/";
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ faad2 fftwFloat zlib ];

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
rev = "v${version}";
hash = "sha256-i1txeUE/ZSRggwLDtpS8dd4uuZfHX9w3zRH0gBgGXnk=";
};
sourceRoot = "source/fuzzylite";
sourceRoot = "${src.name}/fuzzylite";
outputs = [ "out" "dev" ];

View file

@ -9,7 +9,7 @@ mkDerivation rec {
outputs = [ "out" "dev" ];
sourceRoot = "source/herqq";
sourceRoot = "${src.name}/herqq";
src = fetchFromGitHub {
owner = "ThomArmax";
repo = "HUPnP";

View file

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
rev = "llvmorg-${version}";
hash = "sha256-paWwnoU3XMqreRgh9JbT1tDMTwq/ZL0ss3SJTteEGL0=";
};
sourceRoot = "source/libclc";
sourceRoot = "${src.name}/libclc";
outputs = [ "out" "dev" ];

View file

@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
sourceRoot = "source/libgeotiff";
sourceRoot = "${src.name}/libgeotiff";
configureFlags = [
"--with-jpeg=${libjpeg.dev}"

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-TkMy2tEdG1FPPWfH/wPnVbs5kocqe4Y0jU4yvbiRZ9k=";
};
sourceRoot = "source/libvmaf";
sourceRoot = "${src.name}/libvmaf";
patches = [
# Backport fix for non-Linux, non-Darwin platforms.

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
hash = "sha256-qE5i4dGugm7tR5tgDCpbla/R7hYR/PI8BzrZQ4y6Yz8=";
};
sourceRoot = "source/octomap";
sourceRoot = "${src.name}/octomap";
nativeBuildInputs = [ cmake ];

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
sourceRoot = "source/orocos_kdl";
sourceRoot = "${src.name}/orocos_kdl";
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [ eigen ];

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
# SDK contains libraries and build-system to develop projects for RP2040 chip
# We only need to compile pioasm binary
sourceRoot = "source/tools/pioasm";
sourceRoot = "${src.name}/tools/pioasm";
installPhase = ''
runHook preInstall

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "132wp77fszx33wann0fjkmi1isxvsb0v9iw0gd9sxapa9h6hf3am";
};
sourceRoot = "source/scripts";
sourceRoot = "${src.name}/scripts";
buildPhase = ''
$CC nad2bin.c -o nad2bin

View file

@ -14,9 +14,7 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-aci5SFBRNRrSub4XVJ2luHNZ2pAUegjgQ6pD9kpkaTY=";
};
preBuild = ''
cd c
'';
sourceRoot = "${finalAttrs.src.name}/c";
nativeBuildInputs = lib.optionals stdenv.cc.isClang [
stdenv.cc.cc.libllvm.out

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ qmake4Hook ];
buildInputs = [ qt4 libX11 libXext ];
sourceRoot = "source/Kvantum";
sourceRoot = "${src.name}/Kvantum";
buildPhase = ''
runHook preBuild

View file

@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (lib.versionOlder qtbase.version "6") [ qtx11extras kwindowsystem ]
++ lib.optional (lib.versionAtLeast qtbase.version "6") qtwayland;
sourceRoot = "source/Kvantum";
sourceRoot = "${src.name}/Kvantum";
patches = [
(fetchpatch {

View file

@ -131,7 +131,7 @@ stdenv.mkDerivation (finalAttrs: {
pname = "${finalAttrs.pname}-test";
inherit (finalAttrs) version src;
sourceRoot = "source/clients/tests";
sourceRoot = "${finalAttrs.src.name}/clients/tests";
nativeBuildInputs = [
cmake
@ -164,7 +164,7 @@ stdenv.mkDerivation (finalAttrs: {
pname = "${finalAttrs.pname}-benchmark";
inherit (finalAttrs) version src;
sourceRoot = "source/clients/rider";
sourceRoot = "${finalAttrs.src.name}/clients/rider";
nativeBuildInputs = [
cmake
@ -197,7 +197,7 @@ stdenv.mkDerivation (finalAttrs: {
pname = "${finalAttrs.pname}-samples";
inherit (finalAttrs) version src;
sourceRoot = "source/clients/samples";
sourceRoot = "${finalAttrs.src.name}/clients/samples";
nativeBuildInputs = [
cmake

View file

@ -31,7 +31,7 @@ buildPecl rec {
session
];
sourceRoot = "source/src";
sourceRoot = "${src.name}/src";
configureFlags = [
"--enable-snuffleupagus"

View file

@ -38,7 +38,7 @@ buildPythonPackage rec {
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
sourceRoot = "source/aardwolf/utils/rlers";
sourceRoot = "${src.name}/aardwolf/utils/rlers";
name = "${pname}-${version}";
hash = "sha256-JGXTCCyC20EuUX0pP3xSZG3qFB5jRL7+wW2YRC3EiCc=";
};

View file

@ -27,7 +27,7 @@ buildPythonPackage rec {
doCheck = false;
pythonImportsCheck = [ "acme" ];
sourceRoot = "source/${pname}";
sourceRoot = "${src.name}/${pname}";
meta = certbot.meta // {
description = "ACME protocol implementation in Python";

View file

@ -9,7 +9,7 @@ buildPythonPackage rec {
inherit (antlr4.runtime.cpp) version src;
disabled = python.pythonOlder "3.6";
sourceRoot = "source/runtime/Python3";
sourceRoot = "${src.name}/runtime/Python3";
# in 4.9, test was renamed to tests
checkPhase = ''

View file

@ -87,7 +87,7 @@ buildPythonPackage rec {
"pyarrow"
];
sourceRoot = "source/sdks/python";
sourceRoot = "${src.name}/sdks/python";
nativeBuildInputs = [
cython

View file

@ -17,7 +17,7 @@ buildPythonPackage rec {
pname = "basemap-data";
inherit (basemap) version src;
sourceRoot = "source/packages/basemap_data";
sourceRoot = "${src.name}/packages/basemap_data";
# no tests
doCheck = false;

View file

@ -26,7 +26,7 @@ buildPythonPackage rec {
hash = "sha256-oWKCUARTMCiXDp4SCOOrOUQLUDU4DIzwsmUXCXoDvx0=";
};
sourceRoot = "source/packages/basemap";
sourceRoot = "${src.name}/packages/basemap";
nativeBuildInputs = [
cython

View file

@ -10,7 +10,7 @@ buildPythonPackage rec {
version = lib.getVersion capstone;
src = capstone.src;
sourceRoot = "source/bindings/python";
sourceRoot = "${src.name}/bindings/python";
postPatch = ''
ln -s ${capstone}/lib/libcapstone${stdenv.targetPlatform.extensions.sharedLibrary} prebuilt/

View file

@ -24,7 +24,7 @@ buildPythonPackage rec {
pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" ];
sourceRoot = "source/certbot-dns-cloudflare";
sourceRoot = "${src.name}/certbot-dns-cloudflare";
meta = certbot.meta // {
description = "Cloudflare DNS Authenticator plugin for Certbot";

View file

@ -26,7 +26,7 @@ buildPythonPackage rec {
pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" ];
sourceRoot = "source/certbot-dns-google";
sourceRoot = "${src.name}/certbot-dns-google";
meta = certbot.meta // {
description = "Google Cloud DNS Authenticator plugin for Certbot";

View file

@ -24,7 +24,7 @@ buildPythonPackage rec {
pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" ];
sourceRoot = "source/certbot-dns-rfc2136";
sourceRoot = "${src.name}/certbot-dns-rfc2136";
meta = certbot.meta // {
description = "RFC 2136 DNS Authenticator plugin for Certbot";

View file

@ -24,7 +24,7 @@ buildPythonPackage rec {
pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" ];
sourceRoot = "source/certbot-dns-route53";
sourceRoot = "${src.name}/certbot-dns-route53";
meta = certbot.meta // {
description = "Route53 DNS Authenticator plugin for Certbot";

View file

@ -35,7 +35,7 @@ buildPythonPackage rec {
hash = "sha256-BQsdhlYABZtz5+SORiCVnWMZdMmiWGM9W1YLqObyFo8=";
};
sourceRoot = "source/${pname}";
sourceRoot = "${src.name}/${pname}";
propagatedBuildInputs = [
configargparse

View file

@ -20,7 +20,7 @@ buildPythonPackage rec {
hash = "sha256-H+p2fPBXn+VqrW63KkdmPn2xqxC9uAOzQUV1ruKEUSs=";
};
sourceRoot = "source/packages/python/chart-studio";
sourceRoot = "${src.name}/packages/python/chart-studio";
propagatedBuildInputs = [
plotly

Some files were not shown because too many files have changed in this diff Show more