2024-09-21 16:40:45 +00:00
|
|
|
{ stdenv, pkgs }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "freight-pro-fonts";
|
|
|
|
version = "20240828T164047Z-001";
|
|
|
|
nativeBuildInputs = [ pkgs.unzip ];
|
|
|
|
buildInputs = [ pkgs.unzip ];
|
|
|
|
|
2024-12-06 18:04:47 +00:00
|
|
|
src = ../../modules/nixos/secrets/Freight-20240828T164047Z-001.zip;
|
2024-09-21 16:40:45 +00:00
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
runHook preUnpack
|
|
|
|
${pkgs.unzip}/bin/unzip $src
|
|
|
|
|
|
|
|
runHook postUnpack
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2024-09-23 18:12:56 +00:00
|
|
|
install -m 644 -D Freight-${version}/*.otf -t $out/share/fonts/opentype
|
2024-09-21 16:40:45 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
}
|