aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/berkeley-mono.nix
blob: 75020f6827c0ebe0a73ce0d43643bd10a6765b46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ pkgs, ... }:

pkgs.stdenvNoCC.mkDerivation {
  pname = "berkeley-mono";
  version = "1.1.3";

  phases = [ "unpackPhase" "installPhase" ];
  nativeBuildInputs = with pkgs; [ unzip ];

  src = pkgs.requireFile {
    name = "260803308JW8WP23.zip";
    hash = "sha256-VWBAqmqK2ZEisb8fIZpGA7ypyiBKLiRUcrHaHuy/C2Q=";
    message = "Please provide your licensed copy of Berkeley Mono.";
  };

  installPhase = ''
    install -Dm444 -t $out/share/fonts/truetype $(find . -name '*.ttf')
  '';
}