about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/edwin/default.nix
blob: 4b1688dbc55e756c8789441590825c5be1a6ece0 (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
{ lib, fetchurl }:

let
  version = "0.52";
in fetchurl {
  name = "edwin-${version}";

  url = "https://github.com/MuseScoreFonts/Edwin/archive/refs/tags/v${version}.tar.gz";

  downloadToTemp = true;

  recursiveHash = true;

  sha256 = "sha256-e0ADK72ECl+QMvLWtFJfeHBmuEwzr9M+Kqvkd5Z2mmo=";

  postFetch = ''
    tar xzf $downloadedFile
    mkdir -p $out/share/fonts/opentype
    install Edwin-${version}/*.otf $out/share/fonts/opentype
  '';

  meta = with lib; {
    description = "A text font for musical scores";
    homepage = "https://github.com/MuseScoreFonts/Edwin";
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = with maintainers; [ fortuneteller2k ];
  };
}