2022-12-04 13:45:43 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}: let
|
2022-11-20 13:34:36 +00:00
|
|
|
meta = builtins.fromJSON (builtins.readFile ./meta.json);
|
2022-11-02 08:40:25 +00:00
|
|
|
|
2022-11-20 13:44:43 +00:00
|
|
|
version = meta.rev;
|
|
|
|
|
2022-11-02 08:40:25 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "misskey-dev";
|
|
|
|
repo = "misskey";
|
2022-11-20 13:34:36 +00:00
|
|
|
rev = meta.rev;
|
|
|
|
sha256 = meta.sha256;
|
2022-11-02 08:40:25 +00:00
|
|
|
};
|
2022-12-04 13:45:43 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "misskey";
|
|
|
|
inherit version src;
|
2022-11-02 08:40:25 +00:00
|
|
|
|
2022-12-04 13:45:43 +00:00
|
|
|
# some of my own personal patches
|
2022-12-28 19:16:16 +00:00
|
|
|
patches = [
|
|
|
|
# Nya!
|
2023-01-06 11:26:25 +00:00
|
|
|
# ./browser-search-support.patch | Already Merged
|
|
|
|
# ./remote-search-support.patch
|
|
|
|
# ./copy-link-non-monospace.patch
|
|
|
|
# ./reorder-note-menu.patch | Broken
|
2022-12-28 19:16:16 +00:00
|
|
|
];
|
2022-11-23 15:58:12 +00:00
|
|
|
|
2022-12-04 13:45:43 +00:00
|
|
|
installPhase = ''
|
2022-12-28 19:16:16 +00:00
|
|
|
cp -r . $out
|
2022-12-04 13:45:43 +00:00
|
|
|
'';
|
2022-11-02 08:40:25 +00:00
|
|
|
|
2022-12-04 13:45:43 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Interplanetary microblogging platform. 🚀";
|
|
|
|
homepage = "https://misskey-hub.net/";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|