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

stdenvNoCC.mkDerivation rec {
  pname = "edwin";
  version = "0.54";

  src = fetchurl {
    url = "https://github.com/MuseScoreFonts/Edwin/archive/refs/tags/v${version}.tar.gz";
    hash = "sha256-F6BzwnrsaELegdo6Bdju1OG+RI9zKnn4tIASR3q6zYk=";
  };

  installPhase = ''
    runHook preInstall

    mkdir -p $out/share/fonts/opentype
    install *.otf $out/share/fonts/opentype

    runHook postInstall
  '';

  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; [ moni ];
  };
}