overlays/material-icons: fix build

This commit is contained in:
LavaDesu 2023-01-23 22:08:57 +07:00
parent fb194c9baa
commit a4c6078ffe
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -1,17 +1,11 @@
self: super: { self: super: {
material-icons = let version = "4.0.0"; in super.fetchFromGitHub { material-icons = let version = "4.0.0"; in (super.fetchFromGitHub {
name = "material-icons-${version}"; name = "material-icons-${version}";
owner = "google"; owner = "google";
repo = "material-design-icons"; repo = "material-design-icons";
rev = version; rev = version;
postFetch = ''
tar xf $downloadedFile --strip=1
mkdir -p $out/share/fonts/opentype $out/share/fonts/truetype
cp font/*.ttf $out/share/fonts/truetype
cp font/*.otf $out/share/fonts/opentype
'';
sha256 = "05g5b8dn8vkjv98lmfgbd92wb5i8cfgc9j5f9ai86xl4r58yx10a"; sha256 = "05g5b8dn8vkjv98lmfgbd92wb5i8cfgc9j5f9ai86xl4r58yx10a";
meta = with super.lib; { meta = with super.lib; {
@ -21,5 +15,12 @@ self: super: {
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ mpcsh ]; maintainers = with maintainers; [ mpcsh ];
}; };
}; }).overrideAttrs(o: {
postFetch = ''
tar xf $downloadedFile --strip=1
mkdir -p $out/share/fonts/opentype $out/share/fonts/truetype
cp font/*.ttf $out/share/fonts/truetype
cp font/*.otf $out/share/fonts/opentype
'';
});
} }