shelter: init at 0-unstable-2026-06-05
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
{
|
||||
stdenvNoCC,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
fetchPnpmDeps,
|
||||
nix-update-script,
|
||||
nodejs,
|
||||
pnpmConfigHook,
|
||||
pnpm_9,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "shelter";
|
||||
version = "0-unstable-2026-06-05";
|
||||
src = fetchFromGitHub {
|
||||
owner = "uwu";
|
||||
repo = "shelter";
|
||||
rev = "4c08e2e8ad5d7e8fe741be3c9e2151ec25d20d8d";
|
||||
hash = "sha256-8poWWDuCOrgJYjwRfOPIXTdyVlau5SxG9FxjcN8o/wo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
nodejs
|
||||
pnpmConfigHook
|
||||
pnpm_9
|
||||
];
|
||||
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
|
||||
pnpmDeps = fetchPnpmDeps {
|
||||
inherit (finalAttrs) pname version src;
|
||||
hash = "sha256-tYeV62IZes8O5rN9uvpx0K72B88gftqpL2VXrOUxI8s=";
|
||||
pnpm = pnpm_9;
|
||||
fetcherVersion = 3;
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
pnpm --filter=@uwu/shelter-ui prepare
|
||||
pnpm --filter=shelter build
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
cp -r packages/shelter/dist $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--version=branch"
|
||||
"--version-regex=(0.*)"
|
||||
];
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "New generation Discord client mod built to be essentially bulletproof";
|
||||
homepage = "https://shelter.uwu.network/";
|
||||
license = lib.licenses.cc0;
|
||||
maintainers = with lib.maintainers; [ bandithedoge ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user