summary refs log tree commit diff
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-10-30 08:30:26 -0400
committerGitHub <noreply@github.com>2023-10-30 08:30:26 -0400
commite0acf703cec2d95a03bfad75a4082a02def79bba (patch)
treebc5b61f355675a43ebea1b2b0bda7e2af0f4d5cb
parent1c92b1f03bd4c8c98f355554592e21a9d3e8a6da (diff)
parent29e19d0aba1fd580d5e7569a5391c6566c6a283b (diff)
downloadnixpkgs-e0acf703cec2d95a03bfad75a4082a02def79bba.tar
nixpkgs-e0acf703cec2d95a03bfad75a4082a02def79bba.tar.gz
nixpkgs-e0acf703cec2d95a03bfad75a4082a02def79bba.tar.bz2
nixpkgs-e0acf703cec2d95a03bfad75a4082a02def79bba.tar.lz
nixpkgs-e0acf703cec2d95a03bfad75a4082a02def79bba.tar.xz
nixpkgs-e0acf703cec2d95a03bfad75a4082a02def79bba.tar.zst
nixpkgs-e0acf703cec2d95a03bfad75a4082a02def79bba.zip
Merge pull request #263319 from Cryolitia/fcitx5
fcitx5-nord: init at unstable-2021-07-27, fcitx5-material-color: init at 0.2.1
-rw-r--r--maintainers/maintainer-list.nix9
-rw-r--r--pkgs/by-name/fc/fcitx5-material-color/package.nix41
-rw-r--r--pkgs/by-name/fc/fcitx5-nord/package.nix33
3 files changed, 83 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index 40fbec456dc..a9dcb0b64e4 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -3680,6 +3680,15 @@
       fingerprint = "2017 E152 BB81 5C16 955C  E612 45BC C1E2 709B 1788";
     }];
   };
+  Cryolitia = {
+    name = "Beiyan Cryolitia";
+    email = "Cryolitia@gmail.com";
+    github = "Cryolitia";
+    githubId = 23723294;
+    keys = [{
+      fingerprint = "1C3C 6547 538D 7152 310C 0EEA 84DD 0C01 30A5 4DF7";
+    }];
+  };
   cryptix = {
     email = "cryptix@riseup.net";
     github = "cryptix";
diff --git a/pkgs/by-name/fc/fcitx5-material-color/package.nix b/pkgs/by-name/fc/fcitx5-material-color/package.nix
new file mode 100644
index 00000000000..0385c33e704
--- /dev/null
+++ b/pkgs/by-name/fc/fcitx5-material-color/package.nix
@@ -0,0 +1,41 @@
+{ stdenvNoCC
+, fetchFromGitHub
+, lib
+}:
+
+stdenvNoCC.mkDerivation (finalAttrs: {
+  pname = "fcitx5-material-color";
+  version = "0.2.1";
+
+  src = fetchFromGitHub {
+    owner = "hosxy";
+    repo = "Fcitx5-Material-Color";
+    rev = finalAttrs.version;
+    hash = "sha256-i9JHIJ+cHLTBZUNzj9Ujl3LIdkCllTWpO1Ta4OT1LTc=";
+  };
+
+  installPhase = ''
+    runHook preInstall
+
+    # https://gitlab.archlinux.org/archlinux/packaging/packages/fcitx5-material-color/-/blob/main/PKGBUILD?ref_type=heads#L16
+    install -Dm644 arrow.png radio.png -t $out/share/${finalAttrs.pname}/
+    for _variant in black blue brown deepPurple indigo orange pink red sakuraPink teal; do
+      _variant_name=Material-Color-$_variant
+      install -dm755 $_variant_name $out/share/fcitx5/themes/$_variant_name
+      ln -sv ../../../$pname/arrow.png $out/share/fcitx5/themes/$_variant_name/
+      ln -sv ../../../$pname/radio.png $out/share/fcitx5/themes/$_variant_name/
+      install -Dm644 theme-$_variant.conf $out/share/fcitx5/themes/$_variant_name/theme.conf
+      sed -i "s/^Name=.*/Name=$_variant_name/" $out/share/fcitx5/themes/$_variant_name/theme.conf
+    done
+
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "Fcitx5 themes based on Material color";
+    homepage = "https://github.com/hosxy/Fcitx5-Material-Color";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ Cryolitia h7x4 ];
+    platforms = platforms.all;
+  };
+})
diff --git a/pkgs/by-name/fc/fcitx5-nord/package.nix b/pkgs/by-name/fc/fcitx5-nord/package.nix
new file mode 100644
index 00000000000..6ab7fc15f0a
--- /dev/null
+++ b/pkgs/by-name/fc/fcitx5-nord/package.nix
@@ -0,0 +1,33 @@
+{ stdenvNoCC
+, fetchFromGitHub
+, lib
+}:
+
+stdenvNoCC.mkDerivation {
+  pname = "fcitx5-nord";
+  version = "unstable-2021-07-27";
+
+  src = fetchFromGitHub {
+    owner = "tonyfettes";
+    repo = "fcitx5-nord";
+    rev = "bdaa8fb723b8d0b22f237c9a60195c5f9c9d74d1";
+    hash = "sha256-qVo/0ivZ5gfUP17G29CAW0MrRFUO0KN1ADl1I/rvchE=";
+  };
+
+  installPhase = ''
+    runHook preInstall
+
+    mkdir -pv $out/share/fcitx5/themes/
+    cp -rv Nord* $out/share/fcitx5/themes/
+
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "Fcitx5 theme based on Nord color";
+    homepage = "https://github.com/tonyfettes/fcitx5-nord";
+    license = licenses.mit;
+    maintainers = with maintainers; [ Cryolitia ];
+    platforms = platforms.all;
+  };
+}