40 lines
813 B
Nix
40 lines
813 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}: let
|
|
meta = builtins.fromJSON (builtins.readFile ./meta.json);
|
|
|
|
version = meta.rev;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "misskey-dev";
|
|
repo = "misskey";
|
|
rev = meta.rev;
|
|
sha256 = meta.sha256;
|
|
};
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "misskey";
|
|
inherit version src;
|
|
|
|
# some of my own personal patches
|
|
patches = [
|
|
# Nya!
|
|
# ./browser-search-support.patch | Already Merged
|
|
# ./remote-search-support.patch
|
|
# ./copy-link-non-monospace.patch
|
|
# ./reorder-note-menu.patch | Broken
|
|
];
|
|
|
|
installPhase = ''
|
|
cp -r . $out
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Interplanetary microblogging platform. 🚀";
|
|
homepage = "https://misskey-hub.net/";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|