nixpkgs/pkgs/by-name/ga/garamond-libre/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
727 B
Nix
Raw Normal View History

2023-01-24 20:17:01 +00:00
{ lib, stdenvNoCC, fetchzip }:
2022-12-13 10:57:30 +00:00
2023-01-24 20:17:01 +00:00
stdenvNoCC.mkDerivation rec {
2022-12-13 10:57:30 +00:00
pname = "garamond-libre";
version = "1.4";
2023-01-24 20:17:01 +00:00
src = fetchzip {
url = "https://github.com/dbenjaminmiller/garamond-libre/releases/download/${version}/garamond-libre_${version}.zip";
stripRoot = false;
hash = "sha256-cD/JMICtb6MPIUcWs2VOTHnb/05ma0/KKtPyR4oJlIc=";
};
2022-12-13 10:57:30 +00:00
2023-01-24 20:17:01 +00:00
installPhase = ''
runHook preInstall
2022-12-13 10:57:30 +00:00
2023-01-24 20:17:01 +00:00
install -Dm644 *.otf -t $out/share/fonts/opentype
runHook postInstall
'';
2022-12-13 10:57:30 +00:00
meta = with lib; {
homepage = "https://github.com/dbenjaminmiller/garamond-libre";
description = "Garamond Libre font family";
maintainers = with maintainers; [ drupol ];
license = licenses.x11;
platforms = platforms.all;
};
}