dev.fron.io nixrc / 36b04d0
flake(baduk): attempt to action Tony Olagbaiye a month ago
3 changed file(s) with 29 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
22 {
33 emacs.loader.jabber = {
44 demand = true;
5 package = epkgs: epkgs.trivialBuild rec {
5 package = epkgs: if true then (builtins.trace "emacs.jabber: build fails" pkgs.emacs.pkgs.jabber) else (epkgs.trivialBuild rec {
66 pname = "jabber";
7 version = lib.substring 0 7 src.rev;
7 version = lib.substring 0 7 (src.rev or src.outputHash);
88 src = pkgs.fetchzip {
99 url = "https://gitlab.com/cnngimenez/emacs-jabber/-/archive/lexical-binding/emacs-jabber-lexical-binding.tar.gz";
10 sha256 = "1vg5zwcc7afwbjbravbbwjbfpd3jz2i4zckmnlpg5cabidlxwjzr";
10 sha256 = "Fnrk3DIbbJUx+y4kwoJU0DSBvVBmMghk8dEZtLTGths=";
1111 };
1212 buildInputs = with epkgs; [
13 srv fsm
13 srv fsm literate-elisp
1414 ];
15 };
15 });
1616 config = ''
1717 nil
1818 '';
377377 },
378378 "emacs": {
379379 "locked": {
380 "lastModified": 1618011587,
381 "narHash": "sha256-BIrQ6nA2Ap2vQWv3p6hYvV1VO6KeK9j0/gDYawtNENU=",
380 "lastModified": 1618197716,
381 "narHash": "sha256-PAc6oslesUzIZ5yIUdYOVfmkr9XK/KiRE6cJ+zR7Lxk=",
382382 "owner": "nix-community",
383383 "repo": "emacs-overlay",
384 "rev": "4ee9158fc7c62b92f02a748aa5199bb7ff713286",
384 "rev": "58a4432c801b8d63ce267ae54bfb04f7b511f06b",
385385 "type": "github"
386386 },
387387 "original": {
158158 #{
159159 # description = "matrix-dendrite: init at 0.3.9";
160160 # id = 109561; hash = "+lTYEXjiMGh6hsYAWU+y5Cn0nFfzeW0yD84AZKsyHT4=";
161 #}
161 #} # broken, for now
162162 ];
163163 patches = [
164164 #(basePkgs.fetchurl {
240240 appendOverlays = exts: (final.appendOverlays exts).withPins;
241241
242242 # this is one light breeze away from infrec
243 inherit (withDevshellFlake) devshell;
244 mkDevShell = configuration: (withDevshellFlake.devshell.eval { inherit configuration; }).shell;
243245 inherit (withGuixFlake) guix;
244246 inherit (withFunkwhaleFlake) funkwhale;
245247 inherit (withEmacsFlake.withSelfFlake.withEmacs) emacsPgtkGcc emacsPgtkGccClient emacsPgtkGccPackages;
246 #inherit (withGiara) giara;
247 giara = prev.hello;
248 giara = builtins.trace "pkgs.giara: broken, for now" prev.hello; #inherit (withGiara) giara;
248249 inherit (withLbry) lbry;
249250 inherit (withCordless) cordless;
250251 inherit (withLarge.withHnix) hnix;
298299 plasma5 = plasma5Packages;
299300 inherit (libsForQt5) kdeFrameworks;
300301 pulseeffects = pulseeffects-pw;
301 tuir = withLarge.tuir;
302 searx = withLarge.searx;
302 tuir = builtins.trace "pkgs.tuir: held back because broken, for now" withLarge.tuir;
303 searx = builtins.trace "pkgs.searx: held back because a dep is broken, for now" withLarge.searx;
303304 };
304305 in overlaySets // overlayPkgs // {
305306 inherit overlaySets overlayPkgs;
883884 };
884885 baduk = {
885886 imports = [ (import inputs.baduk) ];
887 #baduk.sabaki.enable = false; # needs flake-ification patches
886888 baduk.sabaki.engines = lib.mkDefault [];
889 #baduk.gnugo.enable = false;
890 #baduk.katago.enable = false;
891 #baduk.leela-zero.enable = false;
887892 };
888893 impermanence = import "${inputs.impermanence}/home-manager.nix";
889894 in flakeModules ++ [
962967 devShell = forAllSystems ({ system, ... }:
963968 let
964969 pkgs = import channels.pkgs { inherit system; overlays = [ inputs.devshell.overlay ]; };
965 in pkgs.mkDevShell {
970 mkDevShell = configuration: (pkgs.devshell.eval { inherit configuration; }).shell;
971 in mkDevShell {
966972 packages = with pkgs; let
967973 git-crypt = pkgs.git-crypt.overrideAttrs (attrs: rec {
968974 worktreePatch = fetchurl {
977983 git git-crypt git-secrets nixfmt
978984 ];
979985
980 env.NIX_CONF_DIR = with pkgs; let
986 env = with pkgs; let
981987 nixConf = ''
982988 ${lib.optionalString (builtins.pathExists /etc/nix/nix.conf)
983989 (builtins.readFile /etc/nix/nix.conf)}
985991 print-build-logs = true
986992 access-tokens = "github.com=${secrets.git.github.oauth-token}"
987993 '';
988 in linkFarm "nix-conf-dir" ( [
989 { name = "nix.conf"; path = writeText "flakes-nix.conf" nixConf; }
990 { name = "registry.json"; path = /etc/nix/registry.json; }
991 { name = "machines"; path = /etc/nix/machines; }
992 ] );
994 in [{
995 name = "NIX_CONF_DIR";
996 value = "${linkFarm "nix-conf-dir" ( [
997 { name = "nix.conf"; path = writeText "flakes-nix.conf" nixConf; }
998 { name = "registry.json"; path = /etc/nix/registry.json; }
999 { name = "machines"; path = /etc/nix/machines; }
1000 ] )}";
1001 }];
9931002
9941003 commands = [{
9951004 name = "forecast";