mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 16:45:51 +03:00
treewide: replace setSourceRoot = "sourceRoot=$PWD"
and similar with sourceRoot = "."
This commit is contained in:
parent
7ad1b2d4e1
commit
b358ebd870
@ -11,7 +11,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
nativeBuildInputs = [ autoPatchelfHook ];
|
nativeBuildInputs = [ autoPatchelfHook ];
|
||||||
|
|
||||||
setSourceRoot = "sourceRoot=$PWD";
|
sourceRoot = ".";
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
|
@ -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 ];
|
||||||
|
@ -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
|
||||||
|
@ -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 {} \;
|
||||||
|
@ -16,9 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
unzip
|
unzip
|
||||||
];
|
];
|
||||||
|
|
||||||
setSourceRoot = ''
|
sourceRoot = ".";
|
||||||
sourceRoot=$PWD
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
@ -16,9 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
unzip
|
unzip
|
||||||
];
|
];
|
||||||
|
|
||||||
setSourceRoot = ''
|
sourceRoot = ".";
|
||||||
sourceRoot=$PWD
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
@ -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 =
|
||||||
|
@ -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
|
||||||
|
@ -76,7 +76,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
autoPatchelfHook
|
autoPatchelfHook
|
||||||
];
|
];
|
||||||
|
|
||||||
setSourceRoot = "sourceRoot=`pwd`";
|
sourceRoot = ".";
|
||||||
|
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
|
|
||||||
|
@ -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 ];
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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 ];
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user