mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 04:03:04 +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.
38 lines
939 B
Nix
38 lines
939 B
Nix
{ lib, fetchurl, stdenv }:
|
|
|
|
let
|
|
pname = "agave";
|
|
version = "37";
|
|
|
|
mkAg = name: hash: fetchurl {
|
|
url = "https://github.com/agarick/agave/releases/download/v${version}/Agave-${name}.ttf";
|
|
sha256 = hash;
|
|
name = "Agave-${name}.ttf";
|
|
};
|
|
# There are slashed variants, but with same name so only bundle the default versions for now:
|
|
fonts = [
|
|
(mkAg "Regular" "sha256-vX1VhEgqy9rQ7hPmAgBGxKyIs2QSAYqZC/mL/2BIOrA=")
|
|
(mkAg "Bold" "sha256-Ax/l/RKyc03law0ThiLac/7HHV4+YxibKzcZnjZs6VI=")
|
|
];
|
|
|
|
in stdenv.mkDerivation {
|
|
inherit pname version;
|
|
srcs = fonts;
|
|
sourceRoot = ".";
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
install -D $srcs -t $out/share/fonts/truetype/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "truetype monospaced typeface designed for X environments";
|
|
homepage = "https://b.agaric.net/page/agave";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|
|
|