tranquil-pds-frontend: init at 0.6.3

This commit is contained in:
nelind
2026-05-30 15:01:52 +02:00
parent 2dcfdcea30
commit 6e51e9a041
@@ -0,0 +1,61 @@
{
lib,
stdenvNoCC,
fetchgit,
nodejs,
pnpm,
pnpmConfigHook,
fetchPnpmDeps,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "tranquil-frontend";
version = "0.6.3";
src = fetchgit {
url = "https://tangled.org/tranquil.farm/tranquil-pds";
tag = "v${finalAttrs.version}";
hash = "sha256-TORNOFPlbCt4QWNd+bmxkShTUvT/5ynOj+UBYITAhg8=";
};
sourceRoot = "${finalAttrs.src.name}/frontend";
pnpmDeps = fetchPnpmDeps {
inherit (finalAttrs)
pname
version
src
sourceRoot
;
inherit pnpm;
fetcherVersion = 4;
hash = "sha256-qbmIAvE/3u/NB5x9bERCGQqwiDLkzjff3QchgR+ZDFs=";
};
strictDeps = true;
__structuredAttrs = true;
nativeBuildInputs = [
pnpm
nodejs
pnpmConfigHook
];
buildPhase = ''
runHook preBuild
pnpm build
runHook postBuild
'';
installPhase = ''
runHook preInstall
cp -r ./dist $out
runHook postInstall
'';
meta = {
description = "First party frontend for the Tranquil PDS implementation";
homepage = "https://tangled.org/tranquil.farm/tranquil-pds";
license = lib.licenses.agpl3Plus;
maintainers = with lib.maintainers; [ nelind ];
};
})