feat: use Segoe-UI fonts

This commit is contained in:
oddlama 2023-09-05 00:14:21 +02:00
parent 5daa44e11c
commit 7b26c45fb8
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 34 additions and 42 deletions

View file

@ -3,6 +3,7 @@
(import ./oauth2-proxy)
(_self: super: {
kanidm-secret-manipulator = super.callPackage ./kanidm-secret-manipulator.nix {};
segoe-ui-ttf = super.callPackage ./segoe-ui-ttf.nix {};
kanidm = super.kanidm.overrideAttrs (_finalAttrs: _previousAttrs: {
patches = [
(super.fetchpatch {

20
pkgs/segoe-ui-ttf.nix Normal file
View file

@ -0,0 +1,20 @@
{
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation rec {
pname = "segoe-ui";
version = "unstable-2023-09-04";
src = fetchFromGitHub {
owner = "mrbvrz";
repo = "segoe-ui-linux";
rev = "73b3a40c6c433d3b8149d945d4c441d4497d5f79";
hash = "sha256-EwsoX6Rz1uaysCIxL11AHTKb2hfwKi/hNIKgG4MzR5o=";
};
installPhase = ''
mkdir -p $out/share/fonts/truetype
install -m644 $src/font/*.ttf $out/share/fonts/truetype/
'';
}