Commit 5852f26b authored by Jan Malakhovski's avatar Jan Malakhovski
Browse files

treewide: noop: refer to `src.name` or similar in `sourceRoot` where...

treewide: noop: refer to `src.name` or similar in `sourceRoot` where appropriate, part 1: trivial cases
parent 9aabdcf4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 = ''
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
    sha256 = "1rasp2v1ds2aw296lbf27rzw0l9fjl0cvbvw85d5ycvh6wkm301p";
  };

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

  patches = [ ./fix-parallel-building.patch ];

+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
    libjack2
  ];

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

  makeFlags = [ "-f Makefile.PatternPlayer_debian_RtAudio_sdl20" ];

+1 −1
Original line number Diff line number Diff line
@@ -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 }
Loading