about summary refs log tree commit diff
path: root/pkgs/by-name/ic/icomoon-feather/package.nix
blob: fd16c313bf5059949dabd35b9485f4217f269ec1 (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
{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
}:
stdenvNoCC.mkDerivation {
  pname = "icomoon-feather";
  version = "0-unstable-2024-05-11";

  src = fetchFromGitHub {
    owner = "adi1090x";
    repo = "polybar-themes";
    rev = "adb6a4546a8351a469fa779df173e46b69aa1ac3";
    sparseCheckout = [ "fonts/panels/icomoon_feather.ttf" ];
    hash = "sha256-QL7/pfIqOd2JOm6rkH+P4rMg0AhGllfkReQ03YeGW+8=";
  };

  installPhase = ''
    runHook preInstall

    install -Dm644 fonts/panels/icomoon_feather.ttf -t $out/share/fonts/truetype/

    runHook postInstall
  '';

  meta = with lib; {
    homepage = "https://github.com/adi1090x/polybar-themes/tree/master/fonts/panels";
    description = "Icomoon feather font";
    license = licenses.agpl3Plus;
    maintainers = with maintainers; [ luftmensch-luftmensch ];
    platforms = platforms.all;
  };
}