mod: added writeableTmpDirAsHomeHook at sable top level
Some checks failed
Publish packages to Attic / publish (push) Failing after 8m44s
Some checks failed
Publish packages to Attic / publish (push) Failing after 8m44s
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
pnpmConfigHook,
|
pnpmConfigHook,
|
||||||
nodejs_24,
|
nodejs_24,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
writableTmpDirAsHomeHook,
|
||||||
}:
|
}:
|
||||||
buildNpmPackage (finalAttrs:
|
buildNpmPackage (finalAttrs:
|
||||||
let
|
let
|
||||||
@@ -16,9 +17,6 @@ in {
|
|||||||
pname = "sable-unwrapped";
|
pname = "sable-unwrapped";
|
||||||
version = "1.14.0";
|
version = "1.14.0";
|
||||||
|
|
||||||
HOME = "/build";
|
|
||||||
npmConfigCache = "/build/.npm";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "SableClient";
|
owner = "SableClient";
|
||||||
repo = "Sable";
|
repo = "Sable";
|
||||||
@@ -28,15 +26,27 @@ in {
|
|||||||
|
|
||||||
nodejs = nodejs_24;
|
nodejs = nodejs_24;
|
||||||
|
|
||||||
nativeBuildInputs = [ pnpm ];
|
nativeBuildInputs = [
|
||||||
|
pnpm
|
||||||
|
writableTmpDirAsHomeHook
|
||||||
|
];
|
||||||
npmConfigHook = pnpmConfigHook;
|
npmConfigHook = pnpmConfigHook;
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
export HOME="$(mktemp -d)"
|
||||||
|
export npm_config_cache="$HOME/.npm"
|
||||||
|
mkdir -p "$npm_config_cache"
|
||||||
|
'';
|
||||||
|
|
||||||
npmDeps = finalAttrs.pnpmDeps;
|
npmDeps = finalAttrs.pnpmDeps;
|
||||||
pnpmDeps = fetchPnpmDeps {
|
pnpmDeps = fetchPnpmDeps {
|
||||||
inherit (finalAttrs) pname version src;
|
inherit (finalAttrs) pname version src;
|
||||||
inherit pnpm;
|
inherit pnpm;
|
||||||
HOME = finalAttrs.HOME;
|
prePnpmInstall = ''
|
||||||
npmConfigCache = finalAttrs.npmConfigCache;
|
export HOME="$(mktemp -d)"
|
||||||
|
export npm_config_cache="$HOME/.npm"
|
||||||
|
mkdir -p "$npm_config_cache"
|
||||||
|
'';
|
||||||
fetcherVersion = 3;
|
fetcherVersion = 3;
|
||||||
hash = "sha256-2GwUz0jsuVKQZyeidM0F4rDzijm9AFcAxN7x/m/b3Is=";
|
hash = "sha256-2GwUz0jsuVKQZyeidM0F4rDzijm9AFcAxN7x/m/b3Is=";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user