init: public
@@ -1,5 +1,13 @@
|
||||
# Custom packages, that can be defined similarly to ones from nixpkgs
|
||||
# You can build them using 'nix build .#example'
|
||||
pkgs: {
|
||||
# example = pkgs.callPackage ./example { };
|
||||
}
|
||||
pkgs:
|
||||
let
|
||||
packages = [
|
||||
"win11-icon-theme"
|
||||
"mono-gtk-theme"
|
||||
"fcitx5-themes"
|
||||
"fcitx5-lightly"
|
||||
"fluent-fcitx5"
|
||||
"wps-office-fonts"
|
||||
"translate-shell"
|
||||
];
|
||||
in
|
||||
pkgs.lib.genAttrs packages (package: pkgs.callPackage ./${package}.nix { })
|
||||
|
||||
30
pkgs/fcitx5-lightly.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "fcitx5-lightly";
|
||||
version = "unstable";
|
||||
|
||||
src = ./lightly;
|
||||
|
||||
phases = [
|
||||
"unpackPhase"
|
||||
"installPhase"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/fcitx5/themes/lightly
|
||||
cp -r * $out/share/fcitx5/themes/lightly
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "lightly-qt fcitx5 theme (generated by fcitx5 plasma theme)";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
38
pkgs/fcitx5-themes.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "fcitx5-themes";
|
||||
version = "unstable-2022-09-28";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "thep0y";
|
||||
repo = "fcitx5-themes";
|
||||
rev = "9d6e437289aa8de61d2c198b2e6ce4b5edea204f";
|
||||
hash = "sha256-iNOquWc6d1rgdWeGPBQ6na/bq+ZOV9cx4MCLf3SdBLg=";
|
||||
};
|
||||
|
||||
phases = [
|
||||
"unpackPhase"
|
||||
"installPhase"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
rm -rf images README.md install.sh
|
||||
|
||||
mkdir -p $out/share/fcitx5/themes
|
||||
cp -r * $out/share/fcitx5/themes
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "fcitx5的简约风格皮肤——四季";
|
||||
homepage = "https://github.com/thep0y/fcitx5";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
37
pkgs/fluent-fcitx5.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "fluent-fcitx5";
|
||||
version = "unstable-2024-03-10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Reverier-Xu";
|
||||
repo = "Fluent-fcitx5";
|
||||
rev = "e4745fd598ddfd4b26f693cfb951cd028575a1f0";
|
||||
hash = "sha256-tVPp6kFgsWlSLcEUffOvXCWDEV0y7qcSqYKQkGO7lrM=";
|
||||
};
|
||||
|
||||
phases = [
|
||||
"unpackPhase"
|
||||
"installPhase"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/fcitx5/themes
|
||||
cp -r Fluent* $out/share/fcitx5/themes
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Fluent-Design theme with blur effect and shadow. ";
|
||||
homepage = "https://github.com/Reverier-Xu/Fluent-fcitx5";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
BIN
pkgs/lightly/arrow.png
Normal file
|
After Width: | Height: | Size: 177 B |
BIN
pkgs/lightly/highlight.png
Normal file
|
After Width: | Height: | Size: 777 B |
BIN
pkgs/lightly/line.png
Normal file
|
After Width: | Height: | Size: 93 B |
BIN
pkgs/lightly/mask.png
Normal file
|
After Width: | Height: | Size: 630 B |
BIN
pkgs/lightly/next.png
Normal file
|
After Width: | Height: | Size: 204 B |
BIN
pkgs/lightly/panel.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
pkgs/lightly/prev.png
Normal file
|
After Width: | Height: | Size: 226 B |
BIN
pkgs/lightly/radio.png
Normal file
|
After Width: | Height: | Size: 597 B |
98
pkgs/lightly/theme.conf
Normal file
@@ -0,0 +1,98 @@
|
||||
[Metadata]
|
||||
Name=Light
|
||||
Version=1
|
||||
Author=Fcitx
|
||||
Description="从 Plasma 主题 lightly 生成的主题"
|
||||
|
||||
[InputPanel]
|
||||
NormalColor=#282a2f
|
||||
HighlightCandidateColor=#282a2f
|
||||
HighlightColor=#eff0f1
|
||||
HighlightBackgroundColor=#526f95
|
||||
BlurMask=mask.png
|
||||
EnableBlur=True
|
||||
|
||||
[InputPanel/ContentMargin]
|
||||
Left=14
|
||||
Top=14
|
||||
Right=14
|
||||
Bottom=14
|
||||
|
||||
[InputPanel/ShadowMargin]
|
||||
Left=10
|
||||
Top=10
|
||||
Right=10
|
||||
Bottom=10
|
||||
|
||||
[InputPanel/Background]
|
||||
Image=panel.png
|
||||
|
||||
[InputPanel/Background/Margin]
|
||||
Left=14
|
||||
Top=14
|
||||
Right=14
|
||||
Bottom=14
|
||||
|
||||
[InputPanel/Highlight]
|
||||
Image=highlight.png
|
||||
|
||||
[InputPanel/Highlight/Margin]
|
||||
Left=4
|
||||
Top=4
|
||||
Right=4
|
||||
Bottom=4
|
||||
|
||||
[InputPanel/TextMargin]
|
||||
Left=4
|
||||
Top=7
|
||||
Right=4
|
||||
Bottom=7
|
||||
|
||||
[InputPanel/PrevPage]
|
||||
Image=prev.png
|
||||
|
||||
[InputPanel/NextPage]
|
||||
Image=next.png
|
||||
|
||||
[Menu]
|
||||
Spacing=2.500000
|
||||
|
||||
[Menu/ContentMargin]
|
||||
Left=14
|
||||
Top=14
|
||||
Right=14
|
||||
Bottom=14
|
||||
|
||||
[Menu/Background]
|
||||
Image=panel.png
|
||||
|
||||
[Menu/Background/Margin]
|
||||
Left=14
|
||||
Top=14
|
||||
Right=14
|
||||
Bottom=14
|
||||
|
||||
[Menu/Highlight]
|
||||
Image=highlight.png
|
||||
|
||||
[Menu/Highlight/Margin]
|
||||
Left=4
|
||||
Top=4
|
||||
Right=4
|
||||
Bottom=4
|
||||
|
||||
[Menu/TextMargin]
|
||||
Left=4
|
||||
Top=4
|
||||
Right=4
|
||||
Bottom=4
|
||||
|
||||
[Menu/SubMenu]
|
||||
Image=arrow.png
|
||||
|
||||
[Menu/CheckBox]
|
||||
Image=radio.png
|
||||
|
||||
[Menu/Separator]
|
||||
Image=line.png
|
||||
|
||||
40
pkgs/mono-gtk-theme.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "mono-gtk-theme";
|
||||
version = "main";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "witalihirsch";
|
||||
repo = "Mono-gtk-theme";
|
||||
rev = "89fa83a14b4e26c5b8fc4dbfa5558a7df704d5a4";
|
||||
sha256 = "sha256-NaZgOOo5VVTlEand3qWryZ5ceNmyHaEt0aeT7j/KwvE=";
|
||||
};
|
||||
|
||||
phases = [
|
||||
"unpackPhase"
|
||||
"installPhase"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/{Mono-gtk-theme,themes}
|
||||
cp -r MonoTheme $out/share/themes
|
||||
cp -r MonoThemeDark $out/share/themes
|
||||
cp LICENSE $out/share/Mono-gtk-theme
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "...";
|
||||
homepage = "https://github.com/witalihirsch/Mono-gtk-theme";
|
||||
platforms = lib.platforms.linux;
|
||||
license = lib.licenses.gpl3Only;
|
||||
};
|
||||
}
|
||||
37
pkgs/translate-shell.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "translate-shell";
|
||||
version = "0.9.7.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "soimort";
|
||||
repo = "${pname}";
|
||||
rev = "gh-pages";
|
||||
hash = "sha256-YQevXwslWzHen9n+Fn0a+oNx/EKg0Kd/Ge8ksYP0ekY=";
|
||||
};
|
||||
|
||||
phases = [
|
||||
"unpackPhase"
|
||||
"installPhase"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
patchShebangs ./trans
|
||||
cp ./trans $out/bin/trans
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Command-line translator using Google Translate, Bing Translator, Yandex.Translate, etc.";
|
||||
homepage = "https://github.com/soimort/translate-shell";
|
||||
license = lib.licenses.unlicense;
|
||||
};
|
||||
}
|
||||
46
pkgs/win11-icon-theme.nix
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
gtk3,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "win11-icon-themes";
|
||||
version = "main";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "yeyushengfan258";
|
||||
repo = "Win11-icon-theme";
|
||||
rev = "9c69f73b00fdaadab946d0466430a94c3e53ff68";
|
||||
sha256 = "sha256-jN55je9BPHNZi5+t3IoJoslAzphngYFbbYIbG/d7NeU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gtk3
|
||||
];
|
||||
|
||||
phases = [
|
||||
"unpackPhase"
|
||||
"installPhase"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/icons
|
||||
patchShebangs ./install.sh
|
||||
sed -i "s@shift 2@shift 1@" ./install.sh
|
||||
./install.sh -d "$out/share/icons" -n Win11
|
||||
./install.sh -d "$out/share/icons" -n Win11 -a
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A colorful design icon theme for linux desktops";
|
||||
homepage = "https://github.com/yeyushengfan258/Win11-icon-theme";
|
||||
platforms = lib.platforms.linux;
|
||||
license = lib.licenses.gpl3Only;
|
||||
};
|
||||
}
|
||||
34
pkgs/wps-office-fonts.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "wps-office-fonts";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Universebenzene/wps-office-fonts/archive/refs/tags/v${version}.tar.gz";
|
||||
sha256 = "db01fc07324115b181cb06f50dfe09fd17feee132c46423ee70b260830211224";
|
||||
};
|
||||
|
||||
phases = [
|
||||
"unpackPhase"
|
||||
"installPhase"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/fonts/wps-office-fonts
|
||||
cp *.TTF $out/share/fonts/wps-office-fonts
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "The wps-office-fonts package contains Founder Chinese fonts";
|
||||
homepage = "https://github.com/Universebenzene/wps-office-fonts";
|
||||
license = lib.licenses.unlicense;
|
||||
};
|
||||
}
|
||||