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,
|
||||
nodejs_24,
|
||||
fetchFromGitHub,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
buildNpmPackage (finalAttrs:
|
||||
let
|
||||
@@ -16,9 +17,6 @@ in {
|
||||
pname = "sable-unwrapped";
|
||||
version = "1.14.0";
|
||||
|
||||
HOME = "/build";
|
||||
npmConfigCache = "/build/.npm";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SableClient";
|
||||
repo = "Sable";
|
||||
@@ -28,15 +26,27 @@ in {
|
||||
|
||||
nodejs = nodejs_24;
|
||||
|
||||
nativeBuildInputs = [ pnpm ];
|
||||
nativeBuildInputs = [
|
||||
pnpm
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
npmConfigHook = pnpmConfigHook;
|
||||
|
||||
preConfigure = ''
|
||||
export HOME="$(mktemp -d)"
|
||||
export npm_config_cache="$HOME/.npm"
|
||||
mkdir -p "$npm_config_cache"
|
||||
'';
|
||||
|
||||
npmDeps = finalAttrs.pnpmDeps;
|
||||
pnpmDeps = fetchPnpmDeps {
|
||||
inherit (finalAttrs) pname version src;
|
||||
inherit pnpm;
|
||||
HOME = finalAttrs.HOME;
|
||||
npmConfigCache = finalAttrs.npmConfigCache;
|
||||
prePnpmInstall = ''
|
||||
export HOME="$(mktemp -d)"
|
||||
export npm_config_cache="$HOME/.npm"
|
||||
mkdir -p "$npm_config_cache"
|
||||
'';
|
||||
fetcherVersion = 3;
|
||||
hash = "sha256-2GwUz0jsuVKQZyeidM0F4rDzijm9AFcAxN7x/m/b3Is=";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user