treewide: replace setSourceRoot = "sourceRoot=$PWD" and similar with sourceRoot = "."

This commit is contained in:
Jan Malakhovski 2023-08-10 12:11:22 +00:00
parent 7ad1b2d4e1
commit b358ebd870
14 changed files with 18 additions and 26 deletions

View File

@ -11,7 +11,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ autoPatchelfHook ];
setSourceRoot = "sourceRoot=$PWD";
sourceRoot = ".";
dontBuild = true;

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
sha256 = "1hxwxmqc5jinr14ya1idigqigc8qhy1vimzcwy2vmwdjay2sqik2";
};
setSourceRoot = "sourceRoot=`pwd`";
sourceRoot = ".";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk2 fftw ];

View File

@ -109,9 +109,7 @@ let
'';
# The unpack phase won't generate a directory
setSourceRoot = ''
sourceRoot=$PWD
'';
sourceRoot = ".";
installPhase = ''
runHook preInstall

View File

@ -5,10 +5,9 @@
}:
let
maple-font = { pname, sha256, desc }: stdenv.mkDerivation
rec{
inherit pname desc;
maple-font = { pname, sha256, desc }:
stdenv.mkDerivation rec{
inherit pname;
version = "6.4";
src = fetchurl {
url = "https://github.com/subframe7536/Maple-font/releases/download/v${version}/${pname}.zip";
@ -17,7 +16,7 @@ let
# Work around the "unpacker appears to have produced no directories"
# case that happens when the archive doesn't have a subdirectory.
setSourceRoot = "sourceRoot=`pwd`";
sourceRoot = ".";
nativeBuildInputs = [ unzip ];
installPhase = ''
find . -name '*.ttf' -exec install -Dt $out/share/fonts/truetype {} \;

View File

@ -16,9 +16,7 @@ stdenv.mkDerivation rec {
unzip
];
setSourceRoot = ''
sourceRoot=$PWD
'';
sourceRoot = ".";
installPhase = ''
runHook preInstall

View File

@ -16,9 +16,7 @@ stdenv.mkDerivation rec {
unzip
];
setSourceRoot = ''
sourceRoot=$PWD
'';
sourceRoot = ".";
installPhase = ''
runHook preInstall

View File

@ -187,7 +187,7 @@ let
hash = (if artifactDirectory == null then hashes else hashes.${artifactDirectory}).${archive};
});
setSourceRoot = if overrideUnpackCmd then "sourceRoot=`pwd`" else null;
sourceRoot = if overrideUnpackCmd then "." else null;
unpackCmd = if overrideUnpackCmd then "unzip -o $src -d $out" else null;
installPhase =

View File

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
};
# Work around the "unpacker appears to have produced no directories"
setSourceRoot = "sourceRoot=`pwd`";
sourceRoot = ".";
installPhase = ''
runHook preInstall

View File

@ -76,7 +76,7 @@ stdenv.mkDerivation (finalAttrs: {
autoPatchelfHook
];
setSourceRoot = "sourceRoot=`pwd`";
sourceRoot = ".";
dontUnpack = true;

View File

@ -20,7 +20,7 @@ stdenv.mkDerivation {
# Work around the "unpacker appears to have produced no directories"
# case that happens when the archive doesn't have a subdirectory.
setSourceRoot = "sourceRoot=`pwd`";
sourceRoot = ".";
nativeBuildInputs = [ unzip ];

View File

@ -21,7 +21,7 @@ let
dontUnpack = true;
# Work around the "unpacker appears to have produced no directories"
# case that happens when the archive doesn't have a subdirectory.
setSourceRoot = "sourceRoot=$(pwd)";
sourceRoot = ".";
nativeBuildInputs = [ unzip ];
meta = a.meta // {
platforms = elasticsearch.meta.platforms;

View File

@ -8,7 +8,8 @@ stdenv.mkDerivation rec {
url = "https://github.com/coqui-ai/STT/releases/download/v${version}/native_client.tflite.Linux.tar.xz";
hash = "sha256-RVYc64pLYumQoVUEFZdxfUUaBMozaqgD0h/yiMaWN90=";
};
setSourceRoot = "sourceRoot=`pwd`";
sourceRoot = ".";
nativeBuildInputs = [
autoPatchelfHook

View File

@ -11,7 +11,7 @@ stdenv.mkDerivation {
# Work around the "unpacker appears to have produced no directories"
# case that happens when the archive doesn't have a subdirectory.
setSourceRoot = "sourceRoot=`pwd`";
sourceRoot = ".";
nativeBuildInputs = [ unzip ];

View File

@ -34,9 +34,7 @@ stdenv.mkDerivation rec {
src = srcs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
setSourceRoot = ''
sourceRoot=$PWD
'';
sourceRoot = ".";
dontBuild = true;
dontConfigure = true;