{ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/release-22.05"; flake-utils.url = "github:numtide/flake-utils/master"; gomod2nix.url = "github:tweag/gomod2nix/master"; toaq-dictionary = { url = "github:toaq/dictionary/master"; flake = false; }; zugai = { url = "github:toaq/zugai/main"; flake = false; }; }; outputs = { self, nixpkgs, gomod2nix, flake-utils, zugai, toaq-dictionary, ... }: flake-utils.lib.eachDefaultSystem (system: let pkgs = (import nixpkgs { inherit system; overlays = [ gomod2nix.overlays.default (_: super: { go = super.go_1_17; }) ]; }).pkgs; in with pkgs; let toaqScript = runCommand "toaq-script" { } '' mkdir -p $out/share/fonts cp ${./ToaqScript.ttf} $out/share/fonts/ToaqScript.ttf ''; imagemagickWithPango = imagemagick.overrideAttrs (a: { buildInputs = a.buildInputs ++ [ pango ]; }); expand-serial = runCommand "expand-serial" { } '' mkdir -p $out/bin tee >$out/bin/expand-serial <