mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
ferrum: migrate to stdenvNoCC, fix download link
This commit is contained in:
parent
50b0534bdc
commit
2734632de8
@ -1,27 +1,32 @@
|
||||
{ lib, fetchzip }:
|
||||
{ lib, stdenvNoCC, fetchzip }:
|
||||
|
||||
let
|
||||
majorVersion = "0";
|
||||
minorVersion = "200";
|
||||
pname = "ferrum";
|
||||
in
|
||||
stdenvNoCC.mkDerivation (self: {
|
||||
pname = "ferrum";
|
||||
version = "${majorVersion}.${minorVersion}";
|
||||
|
||||
fetchzip {
|
||||
name = "${pname}-font-${majorVersion}.${minorVersion}";
|
||||
src = fetchzip {
|
||||
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
|
||||
hash = "sha256-NDJwgFWZgyhMkGRWlY55l2omEw6ju3e3dHCEsWNzQIc=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
url = "http://dotcolon.net/DL/font/${pname}.zip";
|
||||
sha256 = "1w1b3ch7ik4264f05lxms01ls0aargvlx770a9szm682dfmizn8w";
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts/opentype/${pname}
|
||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
|
||||
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://dotcolon.net/font/${pname}/";
|
||||
homepage = "http://dotcolon.net/font/${self.pname}/";
|
||||
description = "A decorative font";
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ leenaars ];
|
||||
maintainers = with maintainers; [ leenaars minijackson ];
|
||||
license = licenses.cc0;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user