configuration/packages/affine.nix
2023-02-15 09:34:31 -08:00

33 lines
683 B
Nix

{ fetchFromGitHub
, lib
, stdenv
, unstableGitUpdater
# Dependencies
, fontforge
}:
stdenv.mkDerivation {
pname = "affine";
version = "unstable-2023-02-09";
src = fetchFromGitHub {
owner = "AndrewKvalheim";
repo = "affine";
rev = "7244376bfad1de2409d8081054f58fe97e611953";
hash = "sha256-KwNO+DKs2JTZSs8dwFFZFDsb30TtWTTTySh+BiERd1g=";
};
nativeBuildInputs = [ fontforge ];
buildPhase = "make otf";
installPhase = "install -m444 -Dt $out/share/fonts/opentype build/*.otf";
passthru.updateScript = unstableGitUpdater { };
meta = {
homepage = "https://github.com/AndrewKvalheim/affine";
license = lib.licenses.cc-by-nc-sa-40;
};
}