mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
30 lines
1.0 KiB
Nix
30 lines
1.0 KiB
Nix
{ lib, fetchurl }:
|
|
let
|
|
pname = "quivira";
|
|
version = "4.1";
|
|
in fetchurl {
|
|
name = "${pname}-${version}";
|
|
url = "http://www.quivira-font.com/files/Quivira.otf";
|
|
|
|
# Download the source file to a temporary directory so that $out can be a
|
|
# directory with the expected structure.
|
|
downloadToTemp = true;
|
|
# recursiveHash needs to be true because $out is going to be a directory.
|
|
recursiveHash = true;
|
|
postFetch = ''
|
|
install -D $downloadedFile $out/share/fonts/opentype/Quivira.otf
|
|
'';
|
|
|
|
sha256 = "Hhl+0Oc5DDohOpBbEARMunMYCpr6nn4X6RgpQeEksNo=";
|
|
meta = {
|
|
description = "Free Unicode font in the OpenType format which is supported by every usual office program or printer";
|
|
homepage = "http://www.quivira-font.com/";
|
|
license = lib.licenses.publicDomain;
|
|
maintainers = [ lib.maintainers.nosewings ];
|
|
# From the homepage: "If you try to install Quivira on a Mac,
|
|
# you will get an error message about the 'post table
|
|
# usability'."
|
|
platforms = lib.filter (platform: !lib.hasInfix "darwin" platform) lib.platforms.all;
|
|
};
|
|
}
|