joypixels: Switch on kernel.name rather than system
x86_64-darwin is too specific because macOS runs on multiple architectures.
This commit is contained in:
parent
c5249d1e9d
commit
f9f1cbbffa
@ -2,17 +2,17 @@
|
|||||||
, acceptLicense ? config.joypixels.acceptLicense or false
|
, acceptLicense ? config.joypixels.acceptLicense or false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let inherit (stdenv.hostPlatform) system;
|
let inherit (stdenv.hostPlatform.parsed) kernel;
|
||||||
|
|
||||||
systemSpecific = {
|
systemSpecific = {
|
||||||
x86_64-darwin = rec {
|
darwin = rec {
|
||||||
systemTag = "nix-darwin";
|
systemTag = "nix-darwin";
|
||||||
capitalized = systemTag;
|
capitalized = systemTag;
|
||||||
ext = "ttc";
|
ext = "ttc";
|
||||||
fontFile = "Apple%20Color%20Emoji.ttc";
|
fontFile = "Apple%20Color%20Emoji.ttc";
|
||||||
name = "joypixels-apple-color-emoji.ttc";
|
name = "joypixels-apple-color-emoji.ttc";
|
||||||
};
|
};
|
||||||
}.${system} or rec {
|
}.${kernel.name} or rec {
|
||||||
systemTag = "nix-os";
|
systemTag = "nix-os";
|
||||||
capitalized = "NixOS";
|
capitalized = "NixOS";
|
||||||
ext = "ttf";
|
ext = "ttf";
|
||||||
@ -55,8 +55,8 @@ stdenv.mkDerivation rec {
|
|||||||
inherit name;
|
inherit name;
|
||||||
url = "https://cdn.joypixels.com/distributions/${systemTag}/font/${version}/${fontFile}";
|
url = "https://cdn.joypixels.com/distributions/${systemTag}/font/${version}/${fontFile}";
|
||||||
sha256 = {
|
sha256 = {
|
||||||
x86_64-darwin = "043980g0dlp8vd4qkbx6298fwz8ns0iwbxm0f8czd9s7n2xm4npq";
|
darwin = "043980g0dlp8vd4qkbx6298fwz8ns0iwbxm0f8czd9s7n2xm4npq";
|
||||||
}.${system} or "1vxqsqs93g4jyp01r47lrpcm0fmib2n1vysx32ksmfxmprimb75s";
|
}.${kernel.name} or "1vxqsqs93g4jyp01r47lrpcm0fmib2n1vysx32ksmfxmprimb75s";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user