35 lines
746 B
Nix
35 lines
746 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
|
|
# copy-link-non-monospace doesn't do much on https, no idea why
|
|
patches = [./copy-link-non-monospace.patch ./reorder-note-menu.patch];
|
|
|
|
installPhase = ''
|
|
cp -r $src $out
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Interplanetary microblogging platform. 🚀";
|
|
homepage = "https://misskey-hub.net/";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|