NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.39k stars 14.34k forks source link

Package request: librime-octagram #231458

Closed eval-exec closed 1 month ago

eval-exec commented 1 year ago

Project description It's octagram plugin for RIME RIME〖八股文〗語法插件

Metadata

pca006132 commented 8 months ago

I think you can do something like this:

    nixpkgs.overlays = [
      (final: prev: {
        librime = prev.librime.override {
          plugins =
            [
              (pkgs.stdenv.mkDerivation rec {
                name = "librime-lua";
                src = inputs.librime-lua;
                version = src.rev;
                propagatedBuildInputs = with pkgs; [ lua ];
                installPhase = ''
                  mkdir -p $out
                  cp -r * $out
                '';
              })
            ];
        };
      })
    ];

but iirc I got some issues compiling octagram, so it may require some patching or version update?

gepbird commented 1 month ago

Fixed by https://github.com/NixOS/nixpkgs/pull/328396