mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
63 lines
1.5 KiB
Nix
63 lines
1.5 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
pnpm,
|
|
stdenvNoCC,
|
|
nodejs,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "sketchybar-app-font";
|
|
version = "2.0.24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kvndrsslr";
|
|
repo = "sketchybar-app-font";
|
|
rev = "v2.0.24";
|
|
hash = "sha256-7ILGOz+5S1I6R28i3cdmVs7gYmucPiOfCTIZM7rimV4=";
|
|
};
|
|
|
|
pnpmDeps = pnpm.fetchDeps {
|
|
inherit (finalAttrs) pname version src;
|
|
hash = "sha256-u0Rr086p6gotS+p9365+P8uKEqxDNGnWCsZDCaj8eEE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
nodejs
|
|
pnpm.configHook
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
pnpm i
|
|
pnpm run build
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 dist/sketchybar-app-font.ttf "$out/share/fonts/truetype/sketchybar-app-font.ttf"
|
|
install -Dm755 dist/icon_map.sh "$out/bin/icon_map.sh"
|
|
install -Dm644 dist/icon_map.lua "$out/lib/sketchybar-app-font/icon_map.lua"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Ligature-based symbol font and a mapping function for sketchybar";
|
|
longDescription = ''
|
|
A ligature-based symbol font and a mapping function for sketchybar, inspired by simple-bar's usage of community-contributed minimalistic app icons.
|
|
'';
|
|
homepage = "https://github.com/kvndrsslr/sketchybar-app-font";
|
|
license = lib.licenses.cc0;
|
|
maintainers = with lib.maintainers; [ khaneliman ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|