fediwall{,-unwrapped}: init at 1.4.0

This commit is contained in:
transcaffeine
2025-06-17 20:45:24 +02:00
parent 7971ba1d37
commit af56f66ea8
2 changed files with 63 additions and 0 deletions
@@ -0,0 +1,38 @@
{
lib,
fetchFromGitHub,
buildNpmPackage,
}:
let
version = "1.4.0";
in
buildNpmPackage {
pname = "fediwall";
inherit version;
src = fetchFromGitHub {
owner = "defnull";
repo = "fediwall";
tag = "v${version}";
hash = "sha256-aEY6mO7Es+H6CNE4shj/jz47nUeEIxGijKbUscIp0pM=";
};
npmDepsHash = "sha256-0VQ/CBqpQNqjg3lug+AQfFVbh0KhEaGwd+cEakBr/Dc=";
installPhase = ''
runHook preInstall
cp -r dist $out
runHook postInstall
'';
meta = {
description = "Social media wall for the Fediverse";
homepage = "https://fediwall.social";
license = lib.licenses.agpl3Plus;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ transcaffeine ];
};
}
+25
View File
@@ -0,0 +1,25 @@
{
lib,
stdenv,
fediwall-unwrapped,
conf ? { },
}:
if (conf == { }) then
fediwall-unwrapped
else
stdenv.mkDerivation {
pname = "fediwall";
inherit (fediwall-unwrapped) version meta;
dontUnpack = true;
installPhase = ''
runHook preInstall
mkdir -p $out
ln -s ${fediwall-unwrapped}/* $out
echo ${lib.escapeShellArg (builtins.toJSON conf)} \
> "$out/wall-config.json"
runHook postInstall
'';
}