overlays/material-icons: fix build
This commit is contained in:
parent
fb194c9baa
commit
a4c6078ffe
1 changed files with 9 additions and 8 deletions
|
|
@ -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
|
||||||
|
'';
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue