From f451cc502877c4794984c5b05607771571331e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Mon, 27 Dec 2021 10:29:11 +0100 Subject: [PATCH] feat(astrolog): configure --- configs/packages/default.nix | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/configs/packages/default.nix b/configs/packages/default.nix index de59c22..2eee3dd 100644 --- a/configs/packages/default.nix +++ b/configs/packages/default.nix @@ -6,6 +6,25 @@ let nixpkgs-unstable = import { config.allowUnfree = true; }; + astrolog = nixpkgs-unstable.astrolog.overrideAttrs (old: old // { + installPhase = '' + ${old.installPhase} + # set sensible defaults + sed -i ' + /^-z /s/8:00W/1:00E/ # timezone + /^-zl /s/122W19:59 47N36:35/13E22:42 52N27:42/ # default location + /^-zj /s/"Current moment now"/Now/ # default name + /^-zj /s/"Seattle, WA, USA"/Berlin/ # default location + /^_k/s/_k/=k/ # use color + /^_Yd/s/_Yd/=Yd/ # sensible date format + /^_Yt/s/_Yt/=Yt/ # sensible time format + /^_Yv/s/_Yv/=Yv/ # sensible length format + /^:Xbw/s/:Xbw/:Xbn/ # set X11 bitmap format + /^:I /s/80/120/ # wider text output + ' $out/astrolog/astrolog.as + ''; + }); + recht = pkgs.callPackage (pkgs.fetchFromGitHub { owner = "kmein"; repo = "recht"; @@ -107,7 +126,7 @@ in { audacity calibre inkscape - nixpkgs-unstable.astrolog # astrolog + astrolog # astrolog anki # flashcards nixpkgs-unstable.zoom-us # video conferencing pdfgrep # search in pdf