diff --git a/packages/pandoc-cli-3.5.nix b/packages/pandoc-cli-3.5.nix new file mode 100644 index 0000000..5168636 --- /dev/null +++ b/packages/pandoc-cli-3.5.nix @@ -0,0 +1,34 @@ +{ system, nixpkgs }: +let + hlib = pkgs.haskell.lib.compose; + leanHaskellLibrary = hlib.overrideCabal (old: { + doHaddock = false; + enableLibraryProfiling = false; + }); + pkgs = import nixpkgs { + inherit system; + overlays = [ + (final: prev: { + haskellPackages = prev.haskellPackages.extend ( + hfinal: hprev: with hprev; { + pandoc = leanHaskellLibrary pandoc_3_5; + pandoc-lua-engine = leanHaskellLibrary pandoc-lua-engine_0_3_3; + pandoc-server = leanHaskellLibrary pandoc-server_0_1_0_9; + pandoc-cli = pandoc-cli_3_5; + hslua-module-doclayout = leanHaskellLibrary hslua-module-doclayout_1_2_0; + lpeg = leanHaskellLibrary lpeg_1_1_0; + doclayout = doclayout_0_5; + texmath = hlib.dontCheck (hlib.doJailbreak texmath_0_12_8_11); + typst = hlib.doJailbreak typst_0_6; + typst-symbols = hprev.callPackage ./typst-symbols.nix { }; + tls = tls_2_1_1; + toml-parser = toml-parser_2_0_1_0; + crypton-connection = crypton-connection_0_4_1; + } + ); + }) + ]; + config = { }; + }; +in +pkgs.haskellPackages.pandoc-cli diff --git a/packages/typst-symbols.nix b/packages/typst-symbols.nix new file mode 100644 index 0000000..5bb581e --- /dev/null +++ b/packages/typst-symbols.nix @@ -0,0 +1,13 @@ +{ mkDerivation, base, lib, text }: +mkDerivation { + pname = "typst-symbols"; + version = "0.1.6"; + sha256 = "947ff2a09549a6a0387327e6b15c9219947be67ebe5fb190d1fb98495d7e429d"; + libraryHaskellDepends = [ base text ]; + doHaddock = false; + doCheck = false; + hyperlinkSource = false; + homepage = "https://github.com/jgm/typst-symbols"; + description = "Symbol and emoji lookup for typst language"; + license = lib.licenses.mit; +} diff --git a/programs/default.nix b/programs/default.nix index 6b4fa33..6ef358e 100644 --- a/programs/default.nix +++ b/programs/default.nix @@ -19,7 +19,6 @@ let config.nix.package niv nix - nix-diff nix-tree nixfmt-rfc-style nvd @@ -40,6 +39,7 @@ let broot coreutils-full fd + glow gnugrep less ranger @@ -52,6 +52,12 @@ let brotli cabal2nix (opaComplete "cabal-plan" (leanHaskellBinary haskellPackages.cabal-plan)) + (leanHaskellBinary ( + import ../packages/pandoc-cli-3.5.nix { + system = pkgs.system; + nixpkgs = inputs.nixpkgs; + } + )) cloc comma difftastic