re-add catppuccin discord
This commit is contained in:
parent
f271f86d15
commit
d1b4a4c179
6 changed files with 89 additions and 2 deletions
17
flake.lock
generated
17
flake.lock
generated
|
|
@ -87,6 +87,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"catppuccin-discord": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1768037813,
|
||||||
|
"narHash": "sha256-ExRNnxvG2PSGmpuaPxzCKL6GK6ETs7Gq4Roa74HXp+s=",
|
||||||
|
"owner": "catppuccin",
|
||||||
|
"repo": "discord",
|
||||||
|
"rev": "0fcfe2e15ed91f8c5f1f3c6855f3b2024f78d86c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "catppuccin",
|
||||||
|
"repo": "discord",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1761640442,
|
"lastModified": 1761640442,
|
||||||
|
|
@ -468,6 +484,7 @@
|
||||||
"apple-silicon": "apple-silicon",
|
"apple-silicon": "apple-silicon",
|
||||||
"base16": "base16",
|
"base16": "base16",
|
||||||
"base16-discord": "base16-discord",
|
"base16-discord": "base16-discord",
|
||||||
|
"catppuccin-discord": "catppuccin-discord",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"niri": "niri",
|
"niri": "niri",
|
||||||
"niri-blur": "niri-blur",
|
"niri-blur": "niri-blur",
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,11 @@
|
||||||
url = "gitlab:OpenMW/openmw";
|
url = "gitlab:OpenMW/openmw";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
catppuccin-discord = {
|
||||||
|
url = "github:catppuccin/discord";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
|
@ -92,6 +97,7 @@
|
||||||
nixvim,
|
nixvim,
|
||||||
apple-silicon,
|
apple-silicon,
|
||||||
openmw,
|
openmw,
|
||||||
|
catppuccin-discord,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
@ -135,6 +141,7 @@
|
||||||
nur.overlays.default
|
nur.overlays.default
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
openmw-git = openmw;
|
openmw-git = openmw;
|
||||||
|
catppuccin-discord-git = catppuccin-discord;
|
||||||
base16-discord-git = base16-discord;
|
base16-discord-git = base16-discord;
|
||||||
})
|
})
|
||||||
(import ./packages/overlay.nix)
|
(import ./packages/overlay.nix)
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,12 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
catppuccin-discord = "${pkgs.catppuccin-discord}/share/catppuccin-discord/catppuccin-mocha-*.theme.css";
|
||||||
|
|
||||||
mergedThemes = pkgs.runCommand "mergedConfig" { } ''
|
mergedThemes = pkgs.runCommand "mergedConfig" { } ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp ${pkgs.base16-discord-git}/base16.css $out/theme.css
|
cp -rvf ${pkgs.base16-discord-git}/base16.css $out/base16.css
|
||||||
|
cp -rvf ${catppuccin-discord} $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
vesktopSettings = {
|
vesktopSettings = {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
useQuickCss = true;
|
useQuickCss = true;
|
||||||
themeLinks = [ ];
|
themeLinks = [ ];
|
||||||
eagerPatches = false;
|
eagerPatches = false;
|
||||||
enabledThemes = [ "theme.css" ];
|
enabledThemes = [ "base16.css" ];
|
||||||
enableReactDevtools = false;
|
enableReactDevtools = false;
|
||||||
frameless = false;
|
frameless = false;
|
||||||
transparent = true;
|
transparent = true;
|
||||||
|
|
|
||||||
56
packages/catppuccin-discord/default.nix
Normal file
56
packages/catppuccin-discord/default.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchYarnDeps,
|
||||||
|
yarn,
|
||||||
|
nodejs,
|
||||||
|
fixup-yarn-lock,
|
||||||
|
nodePackages,
|
||||||
|
catppuccin-discord-git,
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "catppuccin-discord";
|
||||||
|
version = "unstable-${catppuccin-discord-git.rev}";
|
||||||
|
|
||||||
|
src = catppuccin-discord-git;
|
||||||
|
|
||||||
|
yarnOfflineCache = fetchYarnDeps {
|
||||||
|
yarnLock = "${src}/yarn.lock";
|
||||||
|
hash = "sha256-BhE3aKyA/LBErjWx+lbEVb/CIXhqHkXbV+9U2djIBhs=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
yarn
|
||||||
|
nodejs
|
||||||
|
fixup-yarn-lock
|
||||||
|
nodePackages.sass
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace package.json \
|
||||||
|
--replace-fail "--no-charset --no-source-map" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
configurePhase = ''
|
||||||
|
export HOME=$TMPDIR
|
||||||
|
yarn config --offline set yarn-offline-mirror ${yarnOfflineCache}
|
||||||
|
fixup-yarn-lock yarn.lock
|
||||||
|
yarn install --offline --frozen-lockfile --ignore-scripts --ignore-platform
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
yarn --offline release
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/share/catppuccin-discord
|
||||||
|
cp -r dist/dist/* $out/share/catppuccin-discord/
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Soothing pastel theme for Discord";
|
||||||
|
homepage = "https://github.com/catppuccin/discord";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
final: prev: {
|
final: prev: {
|
||||||
spotify-webapp = final.callPackage ./spotify-webapp { };
|
spotify-webapp = final.callPackage ./spotify-webapp { };
|
||||||
|
|
||||||
|
catppuccin-discord = final.callPackage ./catppuccin-discord {
|
||||||
|
inherit (final) catppuccin-discord-git;
|
||||||
|
};
|
||||||
|
|
||||||
openmw = prev.openmw.overrideAttrs (oldAttrs: {
|
openmw = prev.openmw.overrideAttrs (oldAttrs: {
|
||||||
pname = "openmw";
|
pname = "openmw";
|
||||||
src = final.openmw-git;
|
src = final.openmw-git;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue