nixfiles/overlay/misskey/default.nix

32 lines
712 B
Nix
Raw Normal View History

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;
# 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 ];
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;
};
}