2022-11-02 08:40:25 +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
|
|
|
};
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
pname = "misskey";
|
|
|
|
inherit version src;
|
|
|
|
|
2022-11-23 15:58:12 +00:00
|
|
|
# some of my own personal patches
|
2022-11-29 09:07:25 +00:00
|
|
|
# copy-link-non-monospace doesn't do much on https, no idea why
|
|
|
|
patches = [ ./copy-link-non-monospace.patch ./reorder-note-menu.patch ];
|
2022-11-23 15:58:12 +00:00
|
|
|
|
2022-11-02 08:40:25 +00:00
|
|
|
installPhase = ''
|
|
|
|
cp -r $src $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Interplanetary microblogging platform. 🚀";
|
|
|
|
homepage = "https://misskey-hub.net/";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|