joypixels: run install hooks
Also clean up formatting.
This commit is contained in:
parent
196c828153
commit
5902a08028
@ -1,8 +1,11 @@
|
||||
{ stdenv, fetchurl, config
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, config
|
||||
, acceptLicense ? config.joypixels.acceptLicense or false
|
||||
}:
|
||||
|
||||
let inherit (stdenv.hostPlatform.parsed) kernel;
|
||||
let
|
||||
inherit (stdenv.hostPlatform.parsed) kernel;
|
||||
|
||||
systemSpecific = {
|
||||
darwin = rec {
|
||||
@ -69,7 +72,11 @@ stdenv.mkDerivation rec {
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = with systemSpecific; ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm644 $src $out/share/fonts/truetype/${fontFile}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
@ -80,7 +87,9 @@ stdenv.mkDerivation rec {
|
||||
of files ranging from png, svg, iconjar, sprites, and fonts.
|
||||
'';
|
||||
homepage = "https://www.joypixels.com/fonts";
|
||||
license = let free-license = joypixels-free-license;
|
||||
license =
|
||||
let
|
||||
free-license = joypixels-free-license;
|
||||
appendix = joypixels-license-appendix;
|
||||
in with systemSpecific; {
|
||||
spdxId = "LicenseRef-JoyPixels-Free-6.0-with-${capitalized}-Appendix";
|
||||
|
Loading…
Reference in New Issue
Block a user