Include Monaco for Powerline

This probably shouldn't be included within a git repo, but it's small enough that we're not going to fret about it too much.
This commit is contained in:
Spotlight 2023-07-18 09:51:10 -05:00
parent 1927e8e2fe
commit 041bf3a81f
Signed by: spotlight
GPG key ID: 874AA355B3209BDC
5 changed files with 36 additions and 6 deletions

12
flake.lock generated
View file

@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1689134369,
"narHash": "sha256-0G9dutIvhS/WUr3Awcnqw71g8EVVvvkOhVDnDDbY4Fw=",
"lastModified": 1689495092,
"narHash": "sha256-yZu2j5FpLZEPhJQQutMCPTxa1VMigLPabLYvLTq6ASM=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "e42fb59768f0305085abde0dd27ab5e0cc15420c",
"rev": "2f84579a70b8c74e5ebb37299a0c3ba279f09382",
"type": "github"
},
"original": {
@ -22,11 +22,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1689098530,
"narHash": "sha256-fxc/9f20wRyo/5ydkmZkX/Sh/ULa7RcT8h+cUv8p/44=",
"lastModified": 1689534811,
"narHash": "sha256-jnSUdzD/414d94plCyNlvTJJtiTogTep6t7ZgIKIHiE=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "f2406198ea0e4e37d4380d0e20336c575b8f8ef9",
"rev": "6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222",
"type": "github"
},
"original": {

View file

@ -1,6 +1,9 @@
{ config, lib, pkgs, ... }:
{
# Custom packages.
nixpkgs.overlays = [ (import ../pkgs/default.nix) ];
# Commonly used packages.
home.packages = with pkgs; [
binwalk
@ -17,6 +20,7 @@
jdk
jq
meld
monaco-powerline
mtr
ncdu
neofetch

4
pkgs/default.nix Normal file
View file

@ -0,0 +1,4 @@
self: super:
{
monaco-powerline = super.callPackage ./monaco-powerline/default.nix {};
}

View file

@ -0,0 +1,22 @@
{ lib, stdenvNoCC }:
stdenvNoCC.mkDerivation rec {
pname = "monaco-powerline";
version = "1.0";
# This font is located in the same directory.
dontUnpack = true;
installPhase = ''
runHook preInstall
install -Dm644 ${./monaco-for-powerline.otf} -t $out/share/fonts/opentype
runHook postInstall
'';
meta = with lib; {
description = "The Monaco font, but patched to include powerline symbols";
platforms = platforms.all;
};
}

Binary file not shown.