mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +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.
32 lines
833 B
Nix
32 lines
833 B
Nix
{ lib, stdenvNoCC, fetchFromGitHub }:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "fg-virgil";
|
|
version = "0.17.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "excalidraw";
|
|
repo = "excalidraw";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-j8fT17RkgMQAAS4KsC2+uItT8Z300SZWnLkyo4XI1WY=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -D -m 444 public/Virgil.woff2 -t $out/share/fonts/woff2
|
|
install -D -m 444 public/FG_Virgil.woff2 -t $out/share/fonts/woff2
|
|
install -D -m 444 public/FG_Virgil.ttf -t $out/share/fonts/ttf
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/excalidraw/virgil";
|
|
description = "Font that powers Excalidraw";
|
|
platforms = lib.platforms.all;
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
license = lib.licenses.ofl;
|
|
};
|
|
})
|