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.
47 lines
1.5 KiB
Nix
47 lines
1.5 KiB
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libre-caslon";
|
|
version = "1.002";
|
|
|
|
srcs = [
|
|
(fetchFromGitHub {
|
|
owner = "impallari";
|
|
repo = "Libre-Caslon-Text";
|
|
rev = "c31e21f7e8cf91f18d90f778ce20e66c68219c74";
|
|
name = "libre-caslon-text-${version}-src";
|
|
sha256 = "0zczv9qm8cgc7w1p64mnf0p0fi7xv89zhf1zzf1qcna15kbgc705";
|
|
})
|
|
|
|
(fetchFromGitHub {
|
|
owner = "impallari";
|
|
repo = "Libre-Caslon-Display";
|
|
rev = "3491f6a9cfde2bc15e736463b0bc7d93054d5da1";
|
|
name = "libre-caslon-display-${version}-src";
|
|
sha256 = "12jrny3y8w8z61lyw470drnhliji5b24lgxap4w3brp6z3xjph95";
|
|
})
|
|
];
|
|
|
|
sourceRoot = ".";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/fonts/opentype
|
|
mkdir -p $out/share/doc/${pname}-${version}
|
|
cp -v "libre-caslon-text-${version}-src/fonts/OTF/"*.otf $out/share/fonts/opentype/
|
|
cp -v "libre-caslon-display-${version}-src/fonts/OTF/"*.otf $out/share/fonts/opentype/
|
|
cp -v libre-caslon-text-${version}-src/README.md libre-caslon-text-${version}-src/FONTLOG.txt $out/share/doc/${pname}-${version}
|
|
'';
|
|
|
|
outputHashAlgo = "sha256";
|
|
outputHashMode = "recursive";
|
|
outputHash = "05aajwny99yqzn1nnq1blx6h7rl54x056y12hyawfbigkzxhscns";
|
|
|
|
meta = with lib; {
|
|
description = "Caslon fonts based on hand-lettered American Caslons of 1960s";
|
|
homepage = "http://www.impallari.com/librecaslon";
|
|
license = licenses.ofl;
|
|
maintainers = with maintainers; [ cmfwyp ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|