Add Tangerine-UI to mastodon
This commit is contained in:
parent
526286510a
commit
5e2d516a4c
|
@ -1,5 +1,10 @@
|
||||||
{ pkgs, nixpkgs-unstable, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
|
tangerineUI = pkgs.fetchgit {
|
||||||
|
url = "https://github.com/nileane/TangerineUI-for-Mastodon.git";
|
||||||
|
rev = "v2.2";
|
||||||
|
hash = "sha256-KyXDnpZh1DrY59jvdU42UicgBVvEGtvAGeU1mNxJauQ=";
|
||||||
|
};
|
||||||
mastodonNekoversePatches = pkgs.fetchgit {
|
mastodonNekoversePatches = pkgs.fetchgit {
|
||||||
url = "https://github.com/yuri-qq/nekoverse-mastodon-patches.git";
|
url = "https://github.com/yuri-qq/nekoverse-mastodon-patches.git";
|
||||||
hash = "sha256-3jWbKll5RGB1vfEmONVivzGYcoONEkBEHh/rOt9LXlU=";
|
hash = "sha256-3jWbKll5RGB1vfEmONVivzGYcoONEkBEHh/rOt9LXlU=";
|
||||||
|
@ -8,10 +13,21 @@ let
|
||||||
mastodon = (prev.mastodon.override rec {
|
mastodon = (prev.mastodon.override rec {
|
||||||
version = "4.3.1";
|
version = "4.3.1";
|
||||||
srcOverride = final.applyPatches {
|
srcOverride = final.applyPatches {
|
||||||
src = final.fetchgit {
|
src = pkgs.stdenv.mkDerivation {
|
||||||
url = "https://github.com/mastodon/mastodon.git";
|
name = "mastodonWithThemes";
|
||||||
rev = "v${version}";
|
src = pkgs.fetchgit {
|
||||||
sha256 = "sha256-JlpQGyVPTLcB3RcWMBrmYc1AAUT1JLfS4IDas9ZoWh4=";
|
url = "https://github.com/mastodon/mastodon.git";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-JlpQGyVPTLcB3RcWMBrmYc1AAUT1JLfS4IDas9ZoWh4=";
|
||||||
|
};
|
||||||
|
installPhase = ''
|
||||||
|
cp -r ./ $out/
|
||||||
|
cp -r ${tangerineUI}/mastodon/app/javascript/styles/* $out/app/javascript/styles/
|
||||||
|
echo "tangerineui: styles/tangerineui.scss
|
||||||
|
tangerineui-purple: styles/tangerineui-purple.scss
|
||||||
|
tangerineui-cherry: styles/tangerineui-cherry.scss
|
||||||
|
tangerineui-lagoon: styles/tangerineui-lagoon.scss" >> $out/config/themes.yml
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
patches = [
|
patches = [
|
||||||
"${mastodonNekoversePatches}/patches/001_increase_image_dimensions_limit.patch"
|
"${mastodonNekoversePatches}/patches/001_increase_image_dimensions_limit.patch"
|
||||||
|
@ -25,7 +41,7 @@ let
|
||||||
yarnHash = "sha256-e5c04M6XplAgaVyldU5HmYMYtY3MAWs+a8Z/BGSyGBg=";
|
yarnHash = "sha256-e5c04M6XplAgaVyldU5HmYMYtY3MAWs+a8Z/BGSyGBg=";
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
pkgs-overlay = nixpkgs-unstable.legacyPackages."x86_64-linux".extend mastodonNekoverseOverlay;
|
pkgs-overlay = pkgs.extend mastodonNekoverseOverlay;
|
||||||
vapidPublicKey = pkgs.writeText "vapid-public-key" "BDCbFEDCZ8eFuWr3uEq4Qc30UFZUQeNpF8OCw6OjPwAtaKS1yTM3Ue749Xjqy5WhBDjakzlixh4Gk7gluUhIdsU=";
|
vapidPublicKey = pkgs.writeText "vapid-public-key" "BDCbFEDCZ8eFuWr3uEq4Qc30UFZUQeNpF8OCw6OjPwAtaKS1yTM3Ue749Xjqy5WhBDjakzlixh4Gk7gluUhIdsU=";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue