summary refs log tree commit diff
path: root/pkgs/desktops/pantheon/apps/elementary-screenshot-tool/redacted-script.nix
blob: db1d9d240c40fa6122828fca2da80423bde84c21 (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
{ stdenv, fetchFromGitHub, pantheon }:

stdenv.mkDerivation rec {
  name = "elementary-redacted-script-${version}";
  version = "5.1.0";

  src = fetchFromGitHub {
    owner = "elementary";
    repo = "fonts";
    rev = version;
    sha256 = "16x2w7w29k4jx2nwc5932h9rqvb216vxsziazisv2rpll74kn8b2";
  };

  dontConfigure = true;

  installPhase = ''
    mkdir -p $out/share/fonts/truetype/redacted-elementary
    cp -a redacted/*.ttf $out/share/fonts/truetype/redacted-elementary
  '';

  meta = with stdenv.lib; {
    description = "Redacted Script Font for elementary";
    homepage = https://github.com/elementary/fonts;
    license = licenses.ofl;
    maintainers = pantheon.maintainers;
    platforms = platforms.linux;
  };
}