treewide: makeSetupHook deps -> propagatedBuildInputs
This commit is contained in:
parent
8be7ab60b1
commit
4e3dcf364e
@ -363,7 +363,7 @@ rec {
|
|||||||
vimGenDocHook = callPackage ({ vim }:
|
vimGenDocHook = callPackage ({ vim }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "vim-gen-doc-hook";
|
name = "vim-gen-doc-hook";
|
||||||
deps = [ vim ];
|
propagatedBuildInputs = [ vim ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
vimBinary = "${vim}/bin/vim";
|
vimBinary = "${vim}/bin/vim";
|
||||||
inherit rtpPath;
|
inherit rtpPath;
|
||||||
@ -373,7 +373,7 @@ rec {
|
|||||||
vimCommandCheckHook = callPackage ({ neovim-unwrapped }:
|
vimCommandCheckHook = callPackage ({ neovim-unwrapped }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "vim-command-check-hook";
|
name = "vim-command-check-hook";
|
||||||
deps = [ neovim-unwrapped ];
|
propagatedBuildInputs = [ neovim-unwrapped ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
vimBinary = "${neovim-unwrapped}/bin/nvim";
|
vimBinary = "${neovim-unwrapped}/bin/nvim";
|
||||||
inherit rtpPath;
|
inherit rtpPath;
|
||||||
@ -383,7 +383,7 @@ rec {
|
|||||||
neovimRequireCheckHook = callPackage ({ neovim-unwrapped }:
|
neovimRequireCheckHook = callPackage ({ neovim-unwrapped }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "neovim-require-check-hook";
|
name = "neovim-require-check-hook";
|
||||||
deps = [ neovim-unwrapped ];
|
propagatedBuildInputs = [ neovim-unwrapped ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
nvimBinary = "${neovim-unwrapped}/bin/nvim";
|
nvimBinary = "${neovim-unwrapped}/bin/nvim";
|
||||||
inherit rtpPath;
|
inherit rtpPath;
|
||||||
|
@ -20,7 +20,7 @@ in
|
|||||||
dotnetConfigureHook = callPackage ({ }:
|
dotnetConfigureHook = callPackage ({ }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "dotnet-configure-hook";
|
name = "dotnet-configure-hook";
|
||||||
deps = [ dotnet-sdk nuget-source ];
|
propagatedBuildInputs = [ dotnet-sdk nuget-source ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
nugetSource = nuget-source;
|
nugetSource = nuget-source;
|
||||||
inherit runtimeId;
|
inherit runtimeId;
|
||||||
@ -30,7 +30,7 @@ in
|
|||||||
dotnetBuildHook = callPackage ({ }:
|
dotnetBuildHook = callPackage ({ }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "dotnet-build-hook";
|
name = "dotnet-build-hook";
|
||||||
deps = [ dotnet-sdk ];
|
propagatedBuildInputs = [ dotnet-sdk ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit buildType runtimeId;
|
inherit buildType runtimeId;
|
||||||
};
|
};
|
||||||
@ -39,7 +39,7 @@ in
|
|||||||
dotnetCheckHook = callPackage ({ }:
|
dotnetCheckHook = callPackage ({ }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "dotnet-check-hook";
|
name = "dotnet-check-hook";
|
||||||
deps = [ dotnet-test-sdk ];
|
propagatedBuildInputs = [ dotnet-test-sdk ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit buildType libraryPath;
|
inherit buildType libraryPath;
|
||||||
disabledTests = lib.optionalString (disabledTests != [])
|
disabledTests = lib.optionalString (disabledTests != [])
|
||||||
@ -54,7 +54,7 @@ in
|
|||||||
dotnetInstallHook = callPackage ({ }:
|
dotnetInstallHook = callPackage ({ }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "dotnet-install-hook";
|
name = "dotnet-install-hook";
|
||||||
deps = [ dotnet-sdk ];
|
propagatedBuildInputs = [ dotnet-sdk ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit buildType runtimeId;
|
inherit buildType runtimeId;
|
||||||
};
|
};
|
||||||
@ -63,7 +63,7 @@ in
|
|||||||
dotnetFixupHook = callPackage ({ }:
|
dotnetFixupHook = callPackage ({ }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "dotnet-fixup-hook";
|
name = "dotnet-fixup-hook";
|
||||||
deps = [ dotnet-runtime ];
|
propagatedBuildInputs = [ dotnet-runtime ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
dotnetRuntime = dotnet-runtime;
|
dotnetRuntime = dotnet-runtime;
|
||||||
runtimeDeps = libraryPath;
|
runtimeDeps = libraryPath;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
npmInstallHook = makeSetupHook
|
npmInstallHook = makeSetupHook
|
||||||
{
|
{
|
||||||
name = "npm-install-hook";
|
name = "npm-install-hook";
|
||||||
deps = [ buildPackages.makeWrapper ];
|
propagatedBuildInputs = [ buildPackages.makeWrapper ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
hostNode = "${nodejs}/bin/node";
|
hostNode = "${nodejs}/bin/node";
|
||||||
jq = "${buildPackages.jq}/bin/jq";
|
jq = "${buildPackages.jq}/bin/jq";
|
||||||
|
@ -31,7 +31,7 @@ in {
|
|||||||
cargoBuildHook = callPackage ({ }:
|
cargoBuildHook = callPackage ({ }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "cargo-build-hook.sh";
|
name = "cargo-build-hook.sh";
|
||||||
deps = [ cargo ];
|
propagatedBuildInputs = [ cargo ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit ccForBuild ccForHost cxxForBuild cxxForHost
|
inherit ccForBuild ccForHost cxxForBuild cxxForHost
|
||||||
rustBuildPlatform rustTargetPlatform rustTargetPlatformSpec;
|
rustBuildPlatform rustTargetPlatform rustTargetPlatformSpec;
|
||||||
@ -41,7 +41,7 @@ in {
|
|||||||
cargoCheckHook = callPackage ({ }:
|
cargoCheckHook = callPackage ({ }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "cargo-check-hook.sh";
|
name = "cargo-check-hook.sh";
|
||||||
deps = [ cargo ];
|
propagatedBuildInputs = [ cargo ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit rustTargetPlatformSpec;
|
inherit rustTargetPlatformSpec;
|
||||||
};
|
};
|
||||||
@ -50,7 +50,7 @@ in {
|
|||||||
cargoInstallHook = callPackage ({ }:
|
cargoInstallHook = callPackage ({ }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "cargo-install-hook.sh";
|
name = "cargo-install-hook.sh";
|
||||||
deps = [ ];
|
propagatedBuildInputs = [ ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit shortTarget;
|
inherit shortTarget;
|
||||||
};
|
};
|
||||||
@ -59,7 +59,7 @@ in {
|
|||||||
cargoNextestHook = callPackage ({ }:
|
cargoNextestHook = callPackage ({ }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "cargo-nextest-hook.sh";
|
name = "cargo-nextest-hook.sh";
|
||||||
deps = [ cargo cargo-nextest ];
|
propagatedBuildInputs = [ cargo cargo-nextest ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit rustTargetPlatformSpec;
|
inherit rustTargetPlatformSpec;
|
||||||
};
|
};
|
||||||
@ -68,7 +68,7 @@ in {
|
|||||||
cargoSetupHook = callPackage ({ }:
|
cargoSetupHook = callPackage ({ }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "cargo-setup-hook.sh";
|
name = "cargo-setup-hook.sh";
|
||||||
deps = [ ];
|
propagatedBuildInputs = [ ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
defaultConfig = ../fetchcargo-default-config.toml;
|
defaultConfig = ../fetchcargo-default-config.toml;
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ in {
|
|||||||
maturinBuildHook = callPackage ({ }:
|
maturinBuildHook = callPackage ({ }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "maturin-build-hook.sh";
|
name = "maturin-build-hook.sh";
|
||||||
deps = [ cargo maturin rustc ];
|
propagatedBuildInputs = [ cargo maturin rustc ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit ccForBuild ccForHost cxxForBuild cxxForHost
|
inherit ccForBuild ccForHost cxxForBuild cxxForHost
|
||||||
rustBuildPlatform rustTargetPlatform rustTargetPlatformSpec;
|
rustBuildPlatform rustTargetPlatform rustTargetPlatformSpec;
|
||||||
|
@ -11,8 +11,7 @@
|
|||||||
|
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "make-binary-wrapper-hook";
|
name = "make-binary-wrapper-hook";
|
||||||
|
propagatedBuildInputs = [ dieHook ]
|
||||||
deps = [ dieHook ]
|
|
||||||
# https://github.com/NixOS/nixpkgs/issues/148189
|
# https://github.com/NixOS/nixpkgs/issues/148189
|
||||||
++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) cc;
|
++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) cc;
|
||||||
|
|
||||||
|
@ -594,32 +594,32 @@ rec {
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Make a package that just contains a setup hook with the given contents.
|
* Make a package that just contains a setup hook with the given contents.
|
||||||
This setup hook will be invoked by any package that includes this package
|
* This setup hook will be invoked by any package that includes this package
|
||||||
as a buildInput. Optionally takes a list of substitutions that should be
|
* as a buildInput. Optionally takes a list of substitutions that should be
|
||||||
applied to the resulting script.
|
* applied to the resulting script.
|
||||||
|
*
|
||||||
Examples:
|
* Examples:
|
||||||
# setup hook that depends on the hello package and runs ./myscript.sh
|
* # setup hook that depends on the hello package and runs ./myscript.sh
|
||||||
myhellohook = makeSetupHook { deps = [ hello ]; } ./myscript.sh;
|
* myhellohook = makeSetupHook { propagatedBuildInputs = [ hello ]; } ./myscript.sh;
|
||||||
|
*
|
||||||
# writes a Linux-exclusive setup hook where @bash@ myscript.sh is substituted for the
|
* # writes a Linux-exclusive setup hook where @bash@ myscript.sh is substituted for the
|
||||||
# bash interpreter.
|
* # bash interpreter.
|
||||||
myhellohookSub = makeSetupHook {
|
* myhellohookSub = makeSetupHook {
|
||||||
name = "myscript-hook";
|
* name = "myscript-hook";
|
||||||
deps = [ hello ];
|
* propagatedBuildInputs = [ hello ];
|
||||||
substitutions = { bash = "${pkgs.bash}/bin/bash"; };
|
* substitutions = { bash = "${pkgs.bash}/bin/bash"; };
|
||||||
meta.platforms = lib.platforms.linux;
|
* meta.platforms = lib.platforms.linux;
|
||||||
} ./myscript.sh;
|
* } ./myscript.sh;
|
||||||
|
*
|
||||||
# setup hook with a package test
|
* # setup hook with a package test
|
||||||
myhellohookTested = makeSetupHook {
|
* myhellohookTested = makeSetupHook {
|
||||||
name = "myscript-hook";
|
* name = "myscript-hook";
|
||||||
deps = [ hello ];
|
* propagatedBuildInputs = [ hello ];
|
||||||
substitutions = { bash = "${pkgs.bash}/bin/bash"; };
|
* substitutions = { bash = "${pkgs.bash}/bin/bash"; };
|
||||||
meta.platforms = lib.platforms.linux;
|
* meta.platforms = lib.platforms.linux;
|
||||||
passthru.tests.greeting = callPackage ./test { };
|
* passthru.tests.greeting = callPackage ./test { };
|
||||||
} ./myscript.sh;
|
* } ./myscript.sh;
|
||||||
*/
|
*/
|
||||||
makeSetupHook =
|
makeSetupHook =
|
||||||
{ name ? lib.warn "calling makeSetupHook without passing a name is deprecated." "hook"
|
{ name ? lib.warn "calling makeSetupHook without passing a name is deprecated." "hook"
|
||||||
|
@ -27,7 +27,7 @@ in {
|
|||||||
luarocksCheckHook = callPackage ({ luarocks }:
|
luarocksCheckHook = callPackage ({ luarocks }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "luarocks-check-hook";
|
name = "luarocks-check-hook";
|
||||||
deps = [ luarocks ];
|
propagatedBuildInputs = [ luarocks ];
|
||||||
} ./luarocks-check-hook.sh) {};
|
} ./luarocks-check-hook.sh) {};
|
||||||
|
|
||||||
# luarocks installs data in a non-overridable location. Until a proper luarocks patch,
|
# luarocks installs data in a non-overridable location. Until a proper luarocks patch,
|
||||||
@ -35,6 +35,6 @@ in {
|
|||||||
luarocksMoveDataFolder = callPackage ({ }:
|
luarocksMoveDataFolder = callPackage ({ }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "luarocks-move-rock";
|
name = "luarocks-move-rock";
|
||||||
deps = [ ];
|
propagatedBuildInputs = [ ];
|
||||||
} ./luarocks-move-data.sh) {};
|
} ./luarocks-move-data.sh) {};
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# imported as wrapLua in lua-packages.nix and passed to build-lua-derivation to be used as buildInput
|
# imported as wrapLua in lua-packages.nix and passed to build-lua-derivation to be used as buildInput
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "wrap-lua-hook";
|
name = "wrap-lua-hook";
|
||||||
deps = [ makeWrapper ];
|
propagatedBuildInputs = [ makeWrapper ];
|
||||||
substitutions.executable = lua.interpreter;
|
substitutions.executable = lua.interpreter;
|
||||||
substitutions.lua = lua;
|
substitutions.lua = lua;
|
||||||
substitutions.LuaPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
|
substitutions.LuaPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
# Each of the substitutions is available in the wrap.sh script as @thingSubstituted@
|
# Each of the substitutions is available in the wrap.sh script as @thingSubstituted@
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "${octave.name}-pkgs-setup-hook";
|
name = "${octave.name}-pkgs-setup-hook";
|
||||||
deps = [ makeWrapper ];
|
propagatedBuildInputs = [ makeWrapper ];
|
||||||
substitutions.executable = octave.interpreter;
|
substitutions.executable = octave.interpreter;
|
||||||
substitutions.octave = octave;
|
substitutions.octave = octave;
|
||||||
} ./wrap.sh
|
} ./wrap.sh
|
||||||
|
@ -11,7 +11,7 @@ in {
|
|||||||
condaInstallHook = callPackage ({ makePythonHook, gnutar, lbzip2 }:
|
condaInstallHook = callPackage ({ makePythonHook, gnutar, lbzip2 }:
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "conda-install-hook";
|
name = "conda-install-hook";
|
||||||
deps = [ gnutar lbzip2 ];
|
propagatedBuildInputs = [ gnutar lbzip2 ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit pythonSitePackages;
|
inherit pythonSitePackages;
|
||||||
};
|
};
|
||||||
@ -20,19 +20,19 @@ in {
|
|||||||
condaUnpackHook = callPackage ({ makePythonHook }:
|
condaUnpackHook = callPackage ({ makePythonHook }:
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "conda-unpack-hook";
|
name = "conda-unpack-hook";
|
||||||
deps = [];
|
propagatedBuildInputs = [];
|
||||||
} ./conda-unpack-hook.sh) {};
|
} ./conda-unpack-hook.sh) {};
|
||||||
|
|
||||||
eggBuildHook = callPackage ({ makePythonHook }:
|
eggBuildHook = callPackage ({ makePythonHook }:
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "egg-build-hook.sh";
|
name = "egg-build-hook.sh";
|
||||||
deps = [ ];
|
propagatedBuildInputs = [ ];
|
||||||
} ./egg-build-hook.sh) {};
|
} ./egg-build-hook.sh) {};
|
||||||
|
|
||||||
eggInstallHook = callPackage ({ makePythonHook, setuptools }:
|
eggInstallHook = callPackage ({ makePythonHook, setuptools }:
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "egg-install-hook.sh";
|
name = "egg-install-hook.sh";
|
||||||
deps = [ setuptools ];
|
propagatedBuildInputs = [ setuptools ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit pythonInterpreter pythonSitePackages;
|
inherit pythonInterpreter pythonSitePackages;
|
||||||
};
|
};
|
||||||
@ -41,13 +41,13 @@ in {
|
|||||||
eggUnpackHook = callPackage ({ makePythonHook, }:
|
eggUnpackHook = callPackage ({ makePythonHook, }:
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "egg-unpack-hook.sh";
|
name = "egg-unpack-hook.sh";
|
||||||
deps = [ ];
|
propagatedBuildInputs = [ ];
|
||||||
} ./egg-unpack-hook.sh) {};
|
} ./egg-unpack-hook.sh) {};
|
||||||
|
|
||||||
flitBuildHook = callPackage ({ makePythonHook, flit }:
|
flitBuildHook = callPackage ({ makePythonHook, flit }:
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "flit-build-hook";
|
name = "flit-build-hook";
|
||||||
deps = [ flit ];
|
propagatedBuildInputs = [ flit ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit pythonInterpreter;
|
inherit pythonInterpreter;
|
||||||
};
|
};
|
||||||
@ -56,7 +56,7 @@ in {
|
|||||||
pipBuildHook = callPackage ({ makePythonHook, pip, wheel }:
|
pipBuildHook = callPackage ({ makePythonHook, pip, wheel }:
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "pip-build-hook.sh";
|
name = "pip-build-hook.sh";
|
||||||
deps = [ pip wheel ];
|
propagatedBuildInputs = [ pip wheel ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit pythonInterpreter pythonSitePackages;
|
inherit pythonInterpreter pythonSitePackages;
|
||||||
};
|
};
|
||||||
@ -65,7 +65,7 @@ in {
|
|||||||
pipInstallHook = callPackage ({ makePythonHook, pip }:
|
pipInstallHook = callPackage ({ makePythonHook, pip }:
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "pip-install-hook";
|
name = "pip-install-hook";
|
||||||
deps = [ pip ];
|
propagatedBuildInputs = [ pip ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit pythonInterpreter pythonSitePackages;
|
inherit pythonInterpreter pythonSitePackages;
|
||||||
};
|
};
|
||||||
@ -74,7 +74,7 @@ in {
|
|||||||
pytestCheckHook = callPackage ({ makePythonHook, pytest }:
|
pytestCheckHook = callPackage ({ makePythonHook, pytest }:
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "pytest-check-hook";
|
name = "pytest-check-hook";
|
||||||
deps = [ pytest ];
|
propagatedBuildInputs = [ pytest ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit pythonCheckInterpreter;
|
inherit pythonCheckInterpreter;
|
||||||
};
|
};
|
||||||
@ -123,7 +123,7 @@ in {
|
|||||||
pythonRelaxDepsHook = callPackage ({ makePythonHook, wheel }:
|
pythonRelaxDepsHook = callPackage ({ makePythonHook, wheel }:
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "python-relax-deps-hook";
|
name = "python-relax-deps-hook";
|
||||||
deps = [ wheel ];
|
propagatedBuildInputs = [ wheel ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit pythonInterpreter;
|
inherit pythonInterpreter;
|
||||||
};
|
};
|
||||||
@ -145,7 +145,7 @@ in {
|
|||||||
setuptoolsBuildHook = callPackage ({ makePythonHook, setuptools, wheel }:
|
setuptoolsBuildHook = callPackage ({ makePythonHook, setuptools, wheel }:
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "setuptools-setup-hook";
|
name = "setuptools-setup-hook";
|
||||||
deps = [ setuptools wheel ];
|
propagatedBuildInputs = [ setuptools wheel ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit pythonInterpreter pythonSitePackages setuppy;
|
inherit pythonInterpreter pythonSitePackages setuppy;
|
||||||
};
|
};
|
||||||
@ -154,7 +154,7 @@ in {
|
|||||||
setuptoolsCheckHook = callPackage ({ makePythonHook, setuptools }:
|
setuptoolsCheckHook = callPackage ({ makePythonHook, setuptools }:
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "setuptools-check-hook";
|
name = "setuptools-check-hook";
|
||||||
deps = [ setuptools ];
|
propagatedBuildInputs = [ setuptools ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit pythonCheckInterpreter setuppy;
|
inherit pythonCheckInterpreter setuppy;
|
||||||
};
|
};
|
||||||
@ -171,7 +171,7 @@ in {
|
|||||||
venvShellHook = disabledIf (!isPy3k) (callPackage ({ makePythonHook, ensureNewerSourcesForZipFilesHook }:
|
venvShellHook = disabledIf (!isPy3k) (callPackage ({ makePythonHook, ensureNewerSourcesForZipFilesHook }:
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "venv-shell-hook";
|
name = "venv-shell-hook";
|
||||||
deps = [ ensureNewerSourcesForZipFilesHook ];
|
propagatedBuildInputs = [ ensureNewerSourcesForZipFilesHook ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit pythonInterpreter;
|
inherit pythonInterpreter;
|
||||||
};
|
};
|
||||||
@ -180,7 +180,7 @@ in {
|
|||||||
wheelUnpackHook = callPackage ({ makePythonHook, wheel }:
|
wheelUnpackHook = callPackage ({ makePythonHook, wheel }:
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "wheel-unpack-hook.sh";
|
name = "wheel-unpack-hook.sh";
|
||||||
deps = [ wheel ];
|
propagatedBuildInputs = [ wheel ];
|
||||||
} ./wheel-unpack-hook.sh) {};
|
} ./wheel-unpack-hook.sh) {};
|
||||||
|
|
||||||
wrapPython = callPackage ../wrap-python.nix {
|
wrapPython = callPackage ../wrap-python.nix {
|
||||||
@ -190,6 +190,6 @@ in {
|
|||||||
sphinxHook = callPackage ({ makePythonHook, sphinx, installShellFiles }:
|
sphinxHook = callPackage ({ makePythonHook, sphinx, installShellFiles }:
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "python${python.pythonVersion}-sphinx-hook";
|
name = "python${python.pythonVersion}-sphinx-hook";
|
||||||
deps = [ sphinx installShellFiles ];
|
propagatedBuildInputs = [ sphinx installShellFiles ];
|
||||||
} ./sphinx-hook.sh) {};
|
} ./sphinx-hook.sh) {};
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
makePythonHook {
|
makePythonHook {
|
||||||
name = "wrap-python-hook";
|
name = "wrap-python-hook";
|
||||||
deps = [ makeWrapper ];
|
propagatedBuildInputs = [ makeWrapper ];
|
||||||
substitutions.sitePackages = python.sitePackages;
|
substitutions.sitePackages = python.sitePackages;
|
||||||
substitutions.executable = python.interpreter;
|
substitutions.executable = python.interpreter;
|
||||||
substitutions.python = python.pythonForBuild;
|
substitutions.python = python.pythonForBuild;
|
||||||
|
@ -53,7 +53,7 @@ let
|
|||||||
libdir = "lib/${libPrefix}";
|
libdir = "lib/${libPrefix}";
|
||||||
tclPackageHook = callPackage ({ buildPackages }: makeSetupHook {
|
tclPackageHook = callPackage ({ buildPackages }: makeSetupHook {
|
||||||
name = "tcl-package-hook";
|
name = "tcl-package-hook";
|
||||||
deps = [ buildPackages.makeWrapper ];
|
propagatedBuildInputs = [ buildPackages.makeWrapper ];
|
||||||
} ./tcl-package-hook.sh) {};
|
} ./tcl-package-hook.sh) {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -211,7 +211,7 @@ let
|
|||||||
|
|
||||||
qmake = makeSetupHook {
|
qmake = makeSetupHook {
|
||||||
name = "qmake-hook";
|
name = "qmake-hook";
|
||||||
deps = [ self.qtbase.dev ];
|
propagatedBuildInputs = [ self.qtbase.dev ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit debug;
|
inherit debug;
|
||||||
fix_qmake_libtool = ../hooks/fix-qmake-libtool.sh;
|
fix_qmake_libtool = ../hooks/fix-qmake-libtool.sh;
|
||||||
@ -220,7 +220,7 @@ let
|
|||||||
|
|
||||||
wrapQtAppsHook = makeSetupHook {
|
wrapQtAppsHook = makeSetupHook {
|
||||||
name = "wrap-qt5-apps-hook";
|
name = "wrap-qt5-apps-hook";
|
||||||
deps = [ self.qtbase.dev buildPackages.makeWrapper ]
|
propagatedBuildInputs = [ self.qtbase.dev buildPackages.makeWrapper ]
|
||||||
++ lib.optional stdenv.isLinux self.qtwayland.dev;
|
++ lib.optional stdenv.isLinux self.qtwayland.dev;
|
||||||
} ../hooks/wrap-qt-apps-hook.sh;
|
} ../hooks/wrap-qt-apps-hook.sh;
|
||||||
};
|
};
|
||||||
|
@ -141,12 +141,12 @@ let
|
|||||||
|
|
||||||
wrapQtAppsHook = makeSetupHook {
|
wrapQtAppsHook = makeSetupHook {
|
||||||
name = "wrap-qt6-apps-hook";
|
name = "wrap-qt6-apps-hook";
|
||||||
deps = [ buildPackages.makeWrapper ];
|
propagatedBuildInputs = [ buildPackages.makeWrapper ];
|
||||||
} ./hooks/wrap-qt-apps-hook.sh;
|
} ./hooks/wrap-qt-apps-hook.sh;
|
||||||
|
|
||||||
qmake = makeSetupHook {
|
qmake = makeSetupHook {
|
||||||
name = "qmake6-hook";
|
name = "qmake6-hook";
|
||||||
deps = [ self.qtbase.dev ];
|
propagatedBuildInputs = [ self.qtbase.dev ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit debug;
|
inherit debug;
|
||||||
fix_qmake_libtool = ./hooks/fix-qmake-libtool.sh;
|
fix_qmake_libtool = ./hooks/fix-qmake-libtool.sh;
|
||||||
|
@ -18,7 +18,7 @@ let
|
|||||||
makeSetupHook
|
makeSetupHook
|
||||||
{
|
{
|
||||||
name = "remove-path-dependencies.sh";
|
name = "remove-path-dependencies.sh";
|
||||||
deps = [ ];
|
propagatedBuildInputs = [ ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
# NOTE: We have to use a non-overlayed Python here because otherwise we run into an infinite recursion
|
# NOTE: We have to use a non-overlayed Python here because otherwise we run into an infinite recursion
|
||||||
# because building of tomlkit and its dependencies also use these hooks.
|
# because building of tomlkit and its dependencies also use these hooks.
|
||||||
@ -50,7 +50,7 @@ in
|
|||||||
makeSetupHook
|
makeSetupHook
|
||||||
{
|
{
|
||||||
name = "pip-build-hook.sh";
|
name = "pip-build-hook.sh";
|
||||||
deps = [ pip wheel ];
|
propagatedBuildInputs = [ pip wheel ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit pythonInterpreter pythonSitePackages;
|
inherit pythonInterpreter pythonSitePackages;
|
||||||
};
|
};
|
||||||
@ -64,7 +64,7 @@ in
|
|||||||
makeSetupHook
|
makeSetupHook
|
||||||
{
|
{
|
||||||
name = "fixup-hook.sh";
|
name = "fixup-hook.sh";
|
||||||
deps = [ ];
|
propagatedBuildInputs = [ ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit pythonSitePackages;
|
inherit pythonSitePackages;
|
||||||
filenames = builtins.concatStringsSep " " [
|
filenames = builtins.concatStringsSep " " [
|
||||||
@ -84,7 +84,7 @@ in
|
|||||||
makeSetupHook
|
makeSetupHook
|
||||||
{
|
{
|
||||||
name = "wheel-unpack-hook.sh";
|
name = "wheel-unpack-hook.sh";
|
||||||
deps = [ ];
|
propagatedBuildInputs = [ ];
|
||||||
} ./wheel-unpack-hook.sh
|
} ./wheel-unpack-hook.sh
|
||||||
)
|
)
|
||||||
{ };
|
{ };
|
||||||
|
@ -26,7 +26,7 @@ self: super:
|
|||||||
{
|
{
|
||||||
wrapWithXFileSearchPathHook = callPackage ({ makeBinaryWrapper, makeSetupHook, writeScript }: makeSetupHook {
|
wrapWithXFileSearchPathHook = callPackage ({ makeBinaryWrapper, makeSetupHook, writeScript }: makeSetupHook {
|
||||||
name = "wrapWithXFileSearchPathHook";
|
name = "wrapWithXFileSearchPathHook";
|
||||||
deps = [ makeBinaryWrapper ];
|
propagatedBuildInputs = [ makeBinaryWrapper ];
|
||||||
} (writeScript "wrapWithXFileSearchPathHook.sh" ''
|
} (writeScript "wrapWithXFileSearchPathHook.sh" ''
|
||||||
wrapWithXFileSearchPath() {
|
wrapWithXFileSearchPath() {
|
||||||
paths=(
|
paths=(
|
||||||
|
@ -160,14 +160,14 @@ with pkgs;
|
|||||||
### BUILD SUPPORT
|
### BUILD SUPPORT
|
||||||
|
|
||||||
auditBlasHook = makeSetupHook
|
auditBlasHook = makeSetupHook
|
||||||
{ name = "auto-blas-hook"; deps = [ blas lapack ]; }
|
{ name = "auto-blas-hook"; propagatedBuildInputs = [ blas lapack ]; }
|
||||||
../build-support/setup-hooks/audit-blas.sh;
|
../build-support/setup-hooks/audit-blas.sh;
|
||||||
|
|
||||||
autoreconfHook = callPackage (
|
autoreconfHook = callPackage (
|
||||||
{ makeSetupHook, autoconf, automake, gettext, libtool }:
|
{ makeSetupHook, autoconf, automake, gettext, libtool }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "autoreconf-hook";
|
name = "autoreconf-hook";
|
||||||
deps = [ autoconf automake gettext libtool ];
|
propagatedBuildInputs = [ autoconf automake gettext libtool ];
|
||||||
} ../build-support/setup-hooks/autoreconf.sh
|
} ../build-support/setup-hooks/autoreconf.sh
|
||||||
) { };
|
) { };
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ with pkgs;
|
|||||||
|
|
||||||
autoPatchelfHook = makeSetupHook {
|
autoPatchelfHook = makeSetupHook {
|
||||||
name = "auto-patchelf-hook";
|
name = "auto-patchelf-hook";
|
||||||
deps = [ bintools ];
|
propagatedBuildInputs = [ bintools ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
pythonInterpreter = "${python3.withPackages (ps: [ ps.pyelftools ])}/bin/python";
|
pythonInterpreter = "${python3.withPackages (ps: [ ps.pyelftools ])}/bin/python";
|
||||||
autoPatchelfScript = ../build-support/setup-hooks/auto-patchelf.py;
|
autoPatchelfScript = ../build-support/setup-hooks/auto-patchelf.py;
|
||||||
@ -356,7 +356,7 @@ with pkgs;
|
|||||||
|
|
||||||
gogUnpackHook = makeSetupHook {
|
gogUnpackHook = makeSetupHook {
|
||||||
name = "gog-unpack-hook";
|
name = "gog-unpack-hook";
|
||||||
deps = [ innoextract file-rename ]; }
|
propagatedBuildInputs = [ innoextract file-rename ]; }
|
||||||
../build-support/setup-hooks/gog-unpack.sh;
|
../build-support/setup-hooks/gog-unpack.sh;
|
||||||
|
|
||||||
buildEnv = callPackage ../build-support/buildenv { }; # not actually a package
|
buildEnv = callPackage ../build-support/buildenv { }; # not actually a package
|
||||||
@ -1012,7 +1012,7 @@ with pkgs;
|
|||||||
|
|
||||||
makeShellWrapper = makeSetupHook {
|
makeShellWrapper = makeSetupHook {
|
||||||
name = "make-shell-wrapper-hook";
|
name = "make-shell-wrapper-hook";
|
||||||
deps = [ dieHook ];
|
propagatedBuildInputs = [ dieHook ];
|
||||||
substitutions = {
|
substitutions = {
|
||||||
# targetPackages.runtimeShell only exists when pkgs == targetPackages (when targetPackages is not __raw)
|
# targetPackages.runtimeShell only exists when pkgs == targetPackages (when targetPackages is not __raw)
|
||||||
shell = if targetPackages ? runtimeShell then targetPackages.runtimeShell else throw "makeWrapper/makeShellWrapper must be in nativeBuildInputs";
|
shell = if targetPackages ? runtimeShell then targetPackages.runtimeShell else throw "makeWrapper/makeShellWrapper must be in nativeBuildInputs";
|
||||||
@ -1063,7 +1063,7 @@ with pkgs;
|
|||||||
|
|
||||||
shortenPerlShebang = makeSetupHook {
|
shortenPerlShebang = makeSetupHook {
|
||||||
name = "shorten-perl-shebang-hook";
|
name = "shorten-perl-shebang-hook";
|
||||||
deps = [ dieHook ];
|
propagatedBuildInputs = [ dieHook ];
|
||||||
} ../build-support/setup-hooks/shorten-perl-shebang.sh;
|
} ../build-support/setup-hooks/shorten-perl-shebang.sh;
|
||||||
|
|
||||||
singularity-tools = callPackage ../build-support/singularity-tools { };
|
singularity-tools = callPackage ../build-support/singularity-tools { };
|
||||||
@ -1115,7 +1115,7 @@ with pkgs;
|
|||||||
|
|
||||||
desktopToDarwinBundle = makeSetupHook {
|
desktopToDarwinBundle = makeSetupHook {
|
||||||
name = "desktop-to-darwin-bundle-hook";
|
name = "desktop-to-darwin-bundle-hook";
|
||||||
deps = [ writeDarwinBundle librsvg imagemagick python3Packages.icnsutil ];
|
propagatedBuildInputs = [ writeDarwinBundle librsvg imagemagick python3Packages.icnsutil ];
|
||||||
} ../build-support/setup-hooks/desktop-to-darwin-bundle.sh;
|
} ../build-support/setup-hooks/desktop-to-darwin-bundle.sh;
|
||||||
|
|
||||||
keepBuildTree = makeSetupHook {
|
keepBuildTree = makeSetupHook {
|
||||||
@ -1128,7 +1128,7 @@ with pkgs;
|
|||||||
|
|
||||||
makeGCOVReport = makeSetupHook {
|
makeGCOVReport = makeSetupHook {
|
||||||
name = "make-gcov-report-hook";
|
name = "make-gcov-report-hook";
|
||||||
deps = [ lcov enableGCOVInstrumentation ];
|
propagatedBuildInputs = [ lcov enableGCOVInstrumentation ];
|
||||||
} ../build-support/setup-hooks/make-coverage-analysis-report.sh;
|
} ../build-support/setup-hooks/make-coverage-analysis-report.sh;
|
||||||
|
|
||||||
makeHardcodeGsettingsPatch = callPackage ../build-support/make-hardcode-gsettings-patch { };
|
makeHardcodeGsettingsPatch = callPackage ../build-support/make-hardcode-gsettings-patch { };
|
||||||
@ -1163,7 +1163,7 @@ with pkgs;
|
|||||||
iconConvTools = callPackage ../build-support/icon-conv-tools {};
|
iconConvTools = callPackage ../build-support/icon-conv-tools {};
|
||||||
|
|
||||||
validatePkgConfig = makeSetupHook
|
validatePkgConfig = makeSetupHook
|
||||||
{ name = "validate-pkg-config"; deps = [ findutils pkg-config ]; }
|
{ name = "validate-pkg-config"; propagatedBuildInputs = [ findutils pkg-config ]; }
|
||||||
../build-support/setup-hooks/validate-pkg-config.sh;
|
../build-support/setup-hooks/validate-pkg-config.sh;
|
||||||
|
|
||||||
patchPpdFilesHook = callPackage ../build-support/setup-hooks/patch-ppd-files {};
|
patchPpdFilesHook = callPackage ../build-support/setup-hooks/patch-ppd-files {};
|
||||||
@ -18778,13 +18778,13 @@ with pkgs;
|
|||||||
xcbuild = xcodebuild;
|
xcbuild = xcodebuild;
|
||||||
xcbuildHook = makeSetupHook {
|
xcbuildHook = makeSetupHook {
|
||||||
name = "xcbuild-hook";
|
name = "xcbuild-hook";
|
||||||
deps = [ xcbuild ];
|
propagatedBuildInputs = [ xcbuild ];
|
||||||
} ../development/tools/xcbuild/setup-hook.sh ;
|
} ../development/tools/xcbuild/setup-hook.sh ;
|
||||||
|
|
||||||
# xcbuild with llvm 6
|
# xcbuild with llvm 6
|
||||||
xcbuild6Hook = makeSetupHook {
|
xcbuild6Hook = makeSetupHook {
|
||||||
name = "xcbuild6-hook";
|
name = "xcbuild6-hook";
|
||||||
deps = [ xcodebuild6 ];
|
propagatedBuildInputs = [ xcodebuild6 ];
|
||||||
} ../development/tools/xcbuild/setup-hook.sh ;
|
} ../development/tools/xcbuild/setup-hook.sh ;
|
||||||
|
|
||||||
xcpretty = callPackage ../development/tools/xcpretty { };
|
xcpretty = callPackage ../development/tools/xcpretty { };
|
||||||
@ -22049,7 +22049,7 @@ with pkgs;
|
|||||||
memorymapping = callPackage ../development/libraries/memorymapping { };
|
memorymapping = callPackage ../development/libraries/memorymapping { };
|
||||||
memorymappingHook = makeSetupHook {
|
memorymappingHook = makeSetupHook {
|
||||||
name = "memorymapping-hook";
|
name = "memorymapping-hook";
|
||||||
deps = [ memorymapping ];
|
propagatedBuildInputs = [ memorymapping ];
|
||||||
} ../development/libraries/memorymapping/setup-hook.sh;
|
} ../development/libraries/memorymapping/setup-hook.sh;
|
||||||
|
|
||||||
memray = callPackage ../development/tools/memray { };
|
memray = callPackage ../development/tools/memray { };
|
||||||
@ -22057,7 +22057,7 @@ with pkgs;
|
|||||||
memstream = callPackage ../development/libraries/memstream { };
|
memstream = callPackage ../development/libraries/memstream { };
|
||||||
memstreamHook = makeSetupHook {
|
memstreamHook = makeSetupHook {
|
||||||
name = "memstream-hook";
|
name = "memstream-hook";
|
||||||
deps = [ memstream ];
|
propagatedBuildInputs = [ memstream ];
|
||||||
} ../development/libraries/memstream/setup-hook.sh;
|
} ../development/libraries/memstream/setup-hook.sh;
|
||||||
|
|
||||||
menu-cache = callPackage ../development/libraries/menu-cache { };
|
menu-cache = callPackage ../development/libraries/menu-cache { };
|
||||||
|
@ -50,7 +50,7 @@ let
|
|||||||
autoAddOpenGLRunpathHook = final.callPackage ( { makeSetupHook, addOpenGLRunpath }:
|
autoAddOpenGLRunpathHook = final.callPackage ( { makeSetupHook, addOpenGLRunpath }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "auto-add-opengl-runpath-hook";
|
name = "auto-add-opengl-runpath-hook";
|
||||||
deps = [
|
propagatedBuildInputs = [
|
||||||
addOpenGLRunpath
|
addOpenGLRunpath
|
||||||
];
|
];
|
||||||
} ../development/compilers/cudatoolkit/auto-add-opengl-runpath-hook.sh
|
} ../development/compilers/cudatoolkit/auto-add-opengl-runpath-hook.sh
|
||||||
|
@ -121,7 +121,7 @@ impure-cmds // appleSourcePackages // chooseLibs // {
|
|||||||
|
|
||||||
checkReexportsHook = pkgs.makeSetupHook {
|
checkReexportsHook = pkgs.makeSetupHook {
|
||||||
name = "darwin-check-reexports-hook";
|
name = "darwin-check-reexports-hook";
|
||||||
deps = [ pkgs.darwin.print-reexports ];
|
propagatedBuildInputs = [ pkgs.darwin.print-reexports ];
|
||||||
} ../os-specific/darwin/print-reexports/setup-hook.sh;
|
} ../os-specific/darwin/print-reexports/setup-hook.sh;
|
||||||
|
|
||||||
sigtool = callPackage ../os-specific/darwin/sigtool { };
|
sigtool = callPackage ../os-specific/darwin/sigtool { };
|
||||||
@ -142,7 +142,7 @@ impure-cmds // appleSourcePackages // chooseLibs // {
|
|||||||
|
|
||||||
autoSignDarwinBinariesHook = pkgs.makeSetupHook {
|
autoSignDarwinBinariesHook = pkgs.makeSetupHook {
|
||||||
name = "auto-sign-darwin-binaries-hook";
|
name = "auto-sign-darwin-binaries-hook";
|
||||||
deps = [ self.signingUtils ];
|
propagatedBuildInputs = [ self.signingUtils ];
|
||||||
} ../os-specific/darwin/signing-utils/auto-sign-hook.sh;
|
} ../os-specific/darwin/signing-utils/auto-sign-hook.sh;
|
||||||
|
|
||||||
maloader = callPackage ../os-specific/darwin/maloader {
|
maloader = callPackage ../os-specific/darwin/maloader {
|
||||||
|
Loading…
Reference in New Issue
Block a user