2024-04-05 23:04:59 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildNpmPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "phanpy";
|
2024-04-22 00:23:03 +02:00
|
|
|
version = "2024.04.19.5145730";
|
2024-04-05 23:04:59 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cheeaun";
|
|
|
|
repo = pname;
|
2024-04-05 23:27:10 +02:00
|
|
|
rev = "${version}";
|
2024-04-05 23:28:24 +02:00
|
|
|
hash = "sha256-sp7ihOgPYpP78M+IQ/QNjne0nw+PdcYJdEJ1m/ozZkE=";
|
2024-04-05 23:04:59 +02:00
|
|
|
};
|
|
|
|
|
2024-04-05 23:29:27 +02:00
|
|
|
npmDepsHash = "sha256-I4rZuk0Hn5R6rMu/QZvSuaGrCtG8Z61R7gjbhLnje2E=";
|
2024-04-05 23:04:59 +02:00
|
|
|
|
|
|
|
# The prepack script runs the build script, which we'd rather do in the build phase.
|
|
|
|
npmPackFlags = ["--ignore-scripts"];
|
|
|
|
|
2024-04-06 16:03:44 +02:00
|
|
|
installPhase = ''
|
2024-04-08 16:51:07 +02:00
|
|
|
export PHANPY_CLIENT_NAME="Phanpy on gladtherescake.eu"
|
|
|
|
export PHANPY_WEBSITE="phanpy.gladtherescake.eu"
|
2024-04-06 16:03:44 +02:00
|
|
|
mkdir $out
|
|
|
|
npm run build
|
2024-04-06 16:10:08 +02:00
|
|
|
cp -r dist/* $out
|
2024-04-06 16:03:44 +02:00
|
|
|
'';
|
|
|
|
|
2024-04-05 23:04:59 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Minimalistic opinionated Mastodon web client.";
|
|
|
|
homepage = "https://phanpy.social/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [Lillian-Violet];
|
|
|
|
};
|
|
|
|
}
|