-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conflicting packages #635
Comments
It seems that the Maybe we can do the same thing with multiple outputs. |
That seems a, not that satisfying, solution. Is it possible to compute schema based on chosen pkgs? should be possible I guess? create a common dependency which changes according to profile? |
The issue is not related to compile. It happens simply because https://github.com/iDvel/rime-ice and https://github.com/rime/rime-double-pinyin both provide Multiple outputs mean that nix derivation can have multiple output paths. |
Like stopping double-pinyin from automatically install schema, but tell user to manually configure yaml instead? Actually I didn't say anthing about compile. I mean, there can be a schema.drv which computes and generates the schema file according to <rime-*> env vars(which shamefully makes it not supposedly pure) |
I just added a If you want to use https://github.com/rime/rime-double-pinyin and https://github.com/iDvel/rime-ice simultaneously, you may use this option like this: rimeDataPkgs = with THIS_REPO.rimePackages; withRimeDeps [
(rime-ice.override {
schemaRegex = "^rime_ice$";
})
rime-double-pinyin
]; |
Thanks!Unfortunately I'm quite new to nix. I've tried to replace THIS_REPO with nur.repos.linyinfeng and put the block in ~/.config/nix/nix.conf or ~/.config/nixpkgs/conf.nix, and both failed.An hour's searching and reading didn't help me out. Seems getting needed info of nix is never easy. I really don't want to bother but could you please tell me how to apply that?Envoyé depuis mon téléphone Huawei-------- Message original --------De : Lin Yinfeng ***@***.***>Date : ven. 19 avr. 2024 à 19:50À : linyinfeng/nur-packages ***@***.***>Cc : AmourAmer ***@***.***>, Author ***@***.***>Objet : Re: [linyinfeng/nur-packages] conflicting packages (Issue #635)
I just added a schemaRegex option to rime-ice in #667, which allows users to choose which schemas of rime-ice to include.
If you want to use https://github.com/rime/rime-double-pinyin and https://github.com/iDvel/rime-ice simultaneously, you may use this option like this:
rimeDataPkgs = with THIS_REPO.rimePackages; withRimeDeps [
(rime-ice.override {
schemaRegex = "^rime_ice$";
})
rime-double-pinyin
];
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I'm confused... To use the rime packages in this repository, the expected nixos configuration should be like this: { pkgs, ... }:
{
# nixos configuration
i18n.inputMethod = {
enabled = "ibus"/"fcitx5";
# for ibus
ibus.engines = with pkgs.ibus-engines; [
(rime.override {
rimeDataPkgs = with pkgs.nur.repos.linyinfeng.rimePackages; withRimeDeps [
rime-ice
...
];
})
];
# for fcitx5
fcitx5.addons = with pkgs; [
(fcitx5-rime.override {
rimeDataPkgs = with pkgs.nur.repos.linyinfeng.rimePackages; withRimeDeps [
rime-ice
...
];
})
];
};
} If you install these packages with |
The |
Thanks for that! At least something has changed, it's just, seems to be some font issue and I need to further debug |
No, {
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }: {
nixosConfigurations.test = nixpkgs.lib.nixosSystem {
modules = [
({ config, pkgs, ... }: {
users.users.test = {
isNormalUser = true;
password = "12345678";
};
services.xserver.enable = true;
services.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
i18n.inputMethod = {
enabled = "fcitx5";
fcitx5.addons = with pkgs; [ fcitx5-rime ];
};
nixpkgs.hostPlatform = { system = "x86_64-linux"; };
system.stateVersion = "24.05";
})
];
};
};
}
And to enable # flake.nix
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nur.url = "github:nix-community/nur";
};
outputs = { self, nixpkgs, nur }: {
nixosConfigurations.test = nixpkgs.lib.nixosSystem {
modules = [
nur.nixosModules.nur
({ config, pkgs, ... }: {
users.users.test = {
isNormalUser = true;
password = "12345678";
};
services.xserver.enable = true;
services.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
i18n.inputMethod = {
enabled = "fcitx5";
fcitx5.addons = with pkgs;
[
(fcitx5-rime.override {
rimeDataPkgs = with config.nur.repos.linyinfeng.rimePackages;
withRimeDeps [
(rime-ice.override { schemaRegex = "^rime_ice$"; })
rime-double-pinyin
];
})
];
};
nixpkgs.hostPlatform = { system = "x86_64-linux"; };
system.stateVersion = "24.05";
})
];
};
};
} # default.custom.yaml
patch:
__include: rime_ice_suggestion:/
schema_list/+:
- schema: double_pinyin
|
I'm a new user to nixos and thx to your repo I am easily able to use rime-double-pinyin and rime-ice!
Well, more precisely, any one of them, but not simultaneous. Errors like:
Maybe instead of static files, computed file generated according to profile should be implemented?
(
不过看上去有点复杂,我自己写的cmdstorm项目就碰到了诸如此类的问题于是停滞了)The text was updated successfully, but these errors were encountered: