initial commit
This commit is contained in:
60
pkgs/common/sable.nix
Normal file
60
pkgs/common/sable.nix
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
lib,
|
||||
buildNpmPackage,
|
||||
pnpm_10,
|
||||
fetchPnpmDeps,
|
||||
pnpmConfigHook,
|
||||
nodejs_24,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
buildNpmPackage (finalAttrs:
|
||||
let
|
||||
pnpm = pnpm_10.override {
|
||||
nodejs = nodejs_24;
|
||||
};
|
||||
in {
|
||||
pname = "sable-unwrapped";
|
||||
version = "1.14.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SableClient";
|
||||
repo = "Sable";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-zoGKs0pm9m42JrTNAdU33LP139JlVz3RZnkTyY0aiqY=";
|
||||
};
|
||||
|
||||
nodejs = nodejs_24;
|
||||
|
||||
nativeBuildInputs = [ pnpm ];
|
||||
npmConfigHook = pnpmConfigHook;
|
||||
|
||||
npmDeps = finalAttrs.pnpmDeps;
|
||||
pnpmDeps = fetchPnpmDeps {
|
||||
inherit (finalAttrs) pname version src;
|
||||
inherit pnpm;
|
||||
fetcherVersion = 3;
|
||||
hash = "sha256-2GwUz0jsuVKQZyeidM0F4rDzijm9AFcAxN7x/m/b3Is=";
|
||||
};
|
||||
|
||||
npmInstallFlags = [
|
||||
"--ignore-scripts"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
cp -r dist $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "An almost stable Matrix client";
|
||||
homepage = "https://app.sable.moe/";
|
||||
maintainers = with lib.maintainers; [
|
||||
wymillerlinux
|
||||
];
|
||||
license = lib.licenses.agpl3Only;
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user