summary refs log tree commit diff
path: root/pkgs/by-name/fc/fcitx5-nord/package.nix
blob: 6ab7fc15f0a20de9c43ccbacbca9bbc517bb4f5d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
  };
}