depot/third_party/nixpkgs/pkgs/data/fonts/theano/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

31 lines
834 B
Nix

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "theano";
version = "2.0";
src = fetchzip {
url = "https://github.com/akryukov/theano/releases/download/v${version}/theano-${version}.otf.zip";
stripRoot = false;
hash = "sha256-9wnwHcRHB+AToOvGwZSXvHkQ8hqMd7Sdl26Ty/IwbPw=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/opentype
mkdir -p $out/share/doc/${pname}-${version}
cp *.otf $out/share/fonts/opentype
cp *.txt $out/share/doc/${pname}-${version}
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/akryukov/theano";
description = "An old-style font designed from historic samples";
maintainers = with maintainers; [ raskin rycee ];
license = licenses.ofl;
platforms = platforms.all;
};
}