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" ]; NIX_CFLAGS_COMPILE = [ "-Wno-error=deprecated-declarations" ];
makeFlags = [ "DESTDIR=\${out}" "PREFIX=''" ]; makeFlags = [ "DESTDIR=\${out}" "PREFIX=''" ];
sourceRoot = "source/src"; sourceRoot = "${src.name}/src";
nativeBuildInputs = [ pkg-config wrapGAppsHook4 ]; nativeBuildInputs = [ pkg-config wrapGAppsHook4 ];
buildInputs = [ gtk4 alsa-lib ]; buildInputs = [ gtk4 alsa-lib ];
postInstall = '' postInstall = ''

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -30,7 +30,7 @@ buildPythonPackage rec {
pname = "paperwork-backend"; pname = "paperwork-backend";
inherit (import ./src.nix { inherit fetchFromGitLab; }) version src; inherit (import ./src.nix { inherit fetchFromGitLab; }) version src;
sourceRoot = "source/paperwork-backend"; sourceRoot = "${src.name}/paperwork-backend";
patches = [ patches = [
# disables a flaky test https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/issues/1035#note_1493700 # 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; 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: # Patch out a few paths that assume that we're using the FHS:
postPatch = '' postPatch = ''

View File

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

View File

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

View File

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

View File

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-58Y4lzqXwBhRlXcionUg2IhAg5znNUuyr/FsuNZd+5Q="; sha256 = "sha256-58Y4lzqXwBhRlXcionUg2IhAg5znNUuyr/FsuNZd+5Q=";
}; };
sourceRoot = "source/source"; sourceRoot = "${src.name}/source";
postPatch = '' postPatch = ''
substituteInPlace Makefile --replace "/bin/rm" "rm" 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 ]; nativeBuildInputs = [ cmake ];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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