NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.48k stars 12.98k forks source link

Can't find dual-function-keys package #192487

Open petitengineer opened 1 year ago

petitengineer commented 1 year ago

Project description A plug-in for interception tools. Helps configure things like utilizing capslock as both escape on release and control when held. Helpful for Wayland users in particular.

Metadata

infinisil commented 1 year ago

It's already there, was added in https://github.com/NixOS/nixpkgs/pull/94097 :)

petitengineer commented 1 year ago

Okay, weird. I thought that all packages would show up on https://search.nixos.org/, but a search for "dual-function-keys" yields "no packages found". Moreover, nix-env won't resolve "nix-env -iA nixpkgs.dual-function-keys", but it will resolve "nix-env -iA nixpkgs.interception-tools-plugins.dual-function-keys". The only way I was able to figure out how to install the package was by looking at https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix . So I guess I should open an issue at https://github.com/NixOS/nixos-search/issues ?

infinisil commented 1 year ago

Ah no, the problem is that in all-packages.nix the definition of interception-tools-plugins needs a recurseIntoAttrs to expose nested packages:

-  interception-tools-plugins = {
+  interception-tools-plugins = recurseIntoAttrs {
    caps2esc = callPackage ../tools/inputmethods/interception-tools/caps2esc.nix { };
    dual-function-keys = callPackage ../tools/inputmethods/interception-tools/dual-function-keys.nix { };
  };
petitengineer commented 1 year ago

Ah, Okay. Can you commit the change to https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix ?

infinisil commented 1 year ago

I'm a bit short on time, I'd appreciate it if you could make a PR for that, I can review and merge it if you ping me :)