mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
tenderness: migrate to stdenvNoCC, fix download link
This commit is contained in:
parent
3e68671ed0
commit
b3f58e84f5
|
@ -1,27 +1,32 @@
|
||||||
{ lib, fetchzip }:
|
{ lib, stdenvNoCC, fetchzip }:
|
||||||
|
|
||||||
let
|
let
|
||||||
majorVersion = "0";
|
majorVersion = "0";
|
||||||
minorVersion = "601";
|
minorVersion = "601";
|
||||||
pname = "tenderness";
|
|
||||||
in
|
in
|
||||||
|
stdenvNoCC.mkDerivation (self: {
|
||||||
|
pname = "tenderness";
|
||||||
|
version = "${majorVersion}.${minorVersion}";
|
||||||
|
|
||||||
fetchzip {
|
src = fetchzip {
|
||||||
name = "${pname}-font-${majorVersion}.${minorVersion}";
|
url = "https://dotcolon.net/download/fonts/${self.pname}_${majorVersion}${minorVersion}.zip";
|
||||||
|
hash = "sha256-bwJKW+rY7/r2pBCSA6HYlaRMsI/U8UdW2vV4tmYuJww=";
|
||||||
|
stripRoot = false;
|
||||||
|
};
|
||||||
|
|
||||||
url = "http://dotcolon.net/DL/font/${pname}_${majorVersion}${minorVersion}.zip";
|
installPhase = ''
|
||||||
sha256 = "0d88l5mzq0k63zsmb8d5w3hfqxy04vpv4j0j8nmj1xv6kikhhybh";
|
runHook preInstall
|
||||||
|
|
||||||
postFetch = ''
|
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
|
||||||
mkdir -p $out/share/fonts/opentype/${pname}
|
|
||||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/${pname}
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://dotcolon.net/font/${pname}/";
|
homepage = "http://dotcolon.net/font/${self.pname}/";
|
||||||
description = "Serif font designed by Sora Sagano with old-style figures";
|
description = "Serif font designed by Sora Sagano with old-style figures";
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ leenaars ];
|
maintainers = with maintainers; [ leenaars minijackson ];
|
||||||
license = licenses.ofl;
|
license = licenses.ofl;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue