font-awesome-ttf: make the font derivation fixed-output
- [x] make the font derivation fixed-output (https://github.com/NixOS/nixpkgs/issues/27754)
This commit is contained in:
parent
1fe7f03544
commit
7c79bb6a87
@ -1,21 +1,19 @@
|
||||
{ stdenv, fetchFromGitHub }:
|
||||
{ stdenv, fetchzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "font-awesome-${version}";
|
||||
let
|
||||
version = "4.7.0";
|
||||
in fetchzip rec {
|
||||
name = "font-awesome-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FortAwesome";
|
||||
repo = "Font-Awesome";
|
||||
rev = "v${version}";
|
||||
sha256 = "0w30y26jp8nvxa3iiw7ayl6rkza1rz62msl9xw3srvxya1c77grc";
|
||||
};
|
||||
url = "https://github.com/FortAwesome/Font-Awesome/archive/v${version}.zip";
|
||||
|
||||
buildCommand = ''
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp $src/fonts/*.ttf $out/share/fonts/truetype
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
unzip -j $downloadedFile Font-Awesome-${version}/fonts/fontawesome-webfont.ttf -d $out/share/fonts/truetype
|
||||
'';
|
||||
|
||||
sha256 = "0w8y7gxbqiy444phg4jl89kc5hq3jffbkhab8p110qy9jx8s106s";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Font Awesome - TTF font";
|
||||
longDescription = ''
|
||||
|
Loading…
Reference in New Issue
Block a user