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 {
|
let
|
||||||
name = "font-awesome-${version}";
|
|
||||||
version = "4.7.0";
|
version = "4.7.0";
|
||||||
|
in fetchzip rec {
|
||||||
|
name = "font-awesome-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
url = "https://github.com/FortAwesome/Font-Awesome/archive/v${version}.zip";
|
||||||
owner = "FortAwesome";
|
|
||||||
repo = "Font-Awesome";
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "0w30y26jp8nvxa3iiw7ayl6rkza1rz62msl9xw3srvxya1c77grc";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildCommand = ''
|
postFetch = ''
|
||||||
mkdir -p $out/share/fonts/truetype
|
mkdir -p $out/share/fonts
|
||||||
cp $src/fonts/*.ttf $out/share/fonts/truetype
|
unzip -j $downloadedFile Font-Awesome-${version}/fonts/fontawesome-webfont.ttf -d $out/share/fonts/truetype
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
sha256 = "0w8y7gxbqiy444phg4jl89kc5hq3jffbkhab8p110qy9jx8s106s";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Font Awesome - TTF font";
|
description = "Font Awesome - TTF font";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user