![aleksana](/assets/img/avatar_default.png)
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
689 B
Nix
30 lines
689 B
Nix
{ lib, stdenvNoCC, fetchFromGitHub }:
|
||
|
||
stdenvNoCC.mkDerivation rec {
|
||
pname = "et-book";
|
||
version = "unstable-2015-10-05";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "edwardtufte";
|
||
repo = pname;
|
||
rev = "7e8f02dadcc23ba42b491b39e5bdf16e7b383031";
|
||
hash = "sha256-B6ryC9ibNop08TJC/w9LSHHwqV/81EezXsTUJFq8xpo=";
|
||
};
|
||
|
||
installPhase = ''
|
||
runHook preInstall
|
||
|
||
mkdir -p $out/share/fonts/truetype
|
||
cp -t $out/share/fonts/truetype source/4-ttf/*.ttf
|
||
|
||
runHook postInstall
|
||
'';
|
||
|
||
meta = with lib; {
|
||
description = "Typeface used in Edward Tufte’s books";
|
||
license = licenses.mit;
|
||
platforms = platforms.all;
|
||
maintainers = with maintainers; [ jethro ];
|
||
};
|
||
}
|