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
908 B
Nix
32 lines
908 B
Nix
{ lib, stdenvNoCC, fetchurl }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "nasin-nanpa";
|
|
version = "3.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ETBCOR/nasin-nanpa/releases/download/n${version}/nasin-nanpa-${version}.otf";
|
|
hash = "sha256-remTvvOt7kpvTdq9H8tFI2yU+BtqePXlDDLQv/jtETU=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/fonts/opentype
|
|
cp $src $out/share/fonts/opentype/nasin-nanpa.otf
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/ETBCOR/nasin-nanpa";
|
|
description = "UCSUR OpenType monospaced font for the Toki Pona writing system, Sitelen Pona";
|
|
longDescription = ''
|
|
ni li nasin pi sitelen pona.
|
|
sitelen ale pi nasin ni li sama mute weka.
|
|
sitelen pi nasin ni li lon nasin UCSUR kin.
|
|
'';
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ somasis ];
|
|
};
|
|
}
|