mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
31 lines
716 B
Nix
31 lines
716 B
Nix
{ lib, stdenvNoCC, fetchFromGitHub }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "sn-pro";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "supernotes";
|
|
repo = "sn-pro";
|
|
rev = version;
|
|
hash = "sha256-7GrCEYgP6kfdlAWjNddmkwJrB/s1mFmugMGPPOM34JA=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 -t $out/share/fonts/otf exports/SNPro/*.otf
|
|
install -Dm644 -t $out/share/fonts/woff2 exports/SNPro/*.woff2
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "SN Pro Font Family";
|
|
homepage = "https://github.com/supernotes/sn-pro";
|
|
license = licenses.ofl;
|
|
maintainers = with maintainers; [ colemickens ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|