First Try
This commit is contained in:
30
overlays/10-feather-font.nix
Normal file
30
overlays/10-feather-font.nix
Normal file
@ -0,0 +1,30 @@
|
||||
self: super: with super; {
|
||||
|
||||
feather-font = let
|
||||
version = "1.0";
|
||||
pname = "feather-font";
|
||||
in stdenv.mkDerivation {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/dustinlyons/feather-font/archive/refs/tags/${version}.zip";
|
||||
sha256 = "sha256-Zsz8/qn7XAG6BVp4XdqooEqioFRV7bLH0bQkHZvFbsg=";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp $src/feather.ttf $out/share/fonts/truetype/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.feathericons.com/";
|
||||
description = "Set of font icons from the open source collection Feather Icons";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.dlyons ];
|
||||
platforms = [ platforms.x86_64-linux platforms.x86_64-darwin ];
|
||||
};
|
||||
};
|
||||
}
|
6
overlays/README.md
Normal file
6
overlays/README.md
Normal file
@ -0,0 +1,6 @@
|
||||
# Overlays
|
||||
|
||||
Files in this directory run automatically as part of each build. Some common ways I've used overlays in the past:
|
||||
* Applying patches
|
||||
* Downloading different versions of files (locking to a version or trying a fork)
|
||||
* Workarounds and stuff I need to run temporarily
|
Reference in New Issue
Block a user