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 ]; nativeBuildInputs = [ autoPatchelfHook ];
setSourceRoot = "sourceRoot=$PWD"; sourceRoot = ".";
dontBuild = true; dontBuild = true;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -187,7 +187,7 @@ let
hash = (if artifactDirectory == null then hashes else hashes.${artifactDirectory}).${archive}; 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; unpackCmd = if overrideUnpackCmd then "unzip -o $src -d $out" else null;
installPhase = installPhase =

View File

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

View File

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

View File

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

View File

@ -21,7 +21,7 @@ let
dontUnpack = true; dontUnpack = true;
# Work around the "unpacker appears to have produced no directories" # Work around the "unpacker appears to have produced no directories"
# case that happens when the archive doesn't have a subdirectory. # case that happens when the archive doesn't have a subdirectory.
setSourceRoot = "sourceRoot=$(pwd)"; sourceRoot = ".";
nativeBuildInputs = [ unzip ]; nativeBuildInputs = [ unzip ];
meta = a.meta // { meta = a.meta // {
platforms = elasticsearch.meta.platforms; 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"; url = "https://github.com/coqui-ai/STT/releases/download/v${version}/native_client.tflite.Linux.tar.xz";
hash = "sha256-RVYc64pLYumQoVUEFZdxfUUaBMozaqgD0h/yiMaWN90="; hash = "sha256-RVYc64pLYumQoVUEFZdxfUUaBMozaqgD0h/yiMaWN90=";
}; };
setSourceRoot = "sourceRoot=`pwd`";
sourceRoot = ".";
nativeBuildInputs = [ nativeBuildInputs = [
autoPatchelfHook autoPatchelfHook

View File

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

View File

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