# RFC140: what about package with multiple names?

**URL:** https://discourse.nixos.org/t/rfc140-what-about-package-with-multiple-names/41846
**Category:** Nixpkgs Architecture
**Created:** [March 19, 2024, 8:57pm UTC](https://discourse.nixos.org/t/rfc140-what-about-package-with-multiple-names/41846 "2024-03-19T20:57:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nim65s](https://discourse.nixos.org/user_avatar/discourse.nixos.org/nim65s/32/15914_2.png) [@nim65s](https://discourse.nixos.org/u/nim65s)
#### Post date: [March 19, 2024, 8:57pm UTC](https://discourse.nixos.org/t/rfc140-what-about-package-with-multiple-names/41846/1 "2024-03-19T20:57:16Z")

</div>

Hi,

I’m trying to package a cursor theme, which is available in 2 projects (standard and lite versions), where in each project there are 2 flavors (black and white). Currently, on [gruppled-cursors, gruppled-lite-cursors: init at 1.0.0 by nim65s · Pull Request #242667 · NixOS/nixpkgs · GitHub](https://github.com/NixOS/nixpkgs/pull/242667), I have:

```auto

  gruppled-black-cursors = callPackage ../data/icons/gruppled-cursors { theme = "gruppled_black"; };

  gruppled-black-lite-cursors = callPackage ../data/icons/gruppled-lite-cursors { theme = "gruppled_black_lite"; };

  gruppled-white-cursors = callPackage ../data/icons/gruppled-cursors { theme = "gruppled_white"; };

  gruppled-white-lite-cursors = callPackage ../data/icons/gruppled-lite-cursors { theme = "gruppled_white_lite"; };

```

But since the CI checks RFC140, it is not happy anymore, and ask for `pkgs/by-name/gr/gruppled-{black,white}-{lite-,}cursors/package.nix`, but I’d rather avoid duplicating declarations for black/white flavors. I could decide that one is the “default”, and the second could import the first, only setting the theme.

What are the guidelines in such case ?

NB: On this particular case, if that’s better, I guess I can also create a single github repo for the 4 versions.

---

<div class="post-metadata">

### Author: ![Infinisil](https://discourse.nixos.org/user_avatar/discourse.nixos.org/infinisil/32/26523_2.png) [@Infinisil](https://discourse.nixos.org/u/Infinisil)
#### Post date: [March 19, 2024, 9:15pm UTC](https://discourse.nixos.org/t/rfc140-what-about-package-with-multiple-names/41846/2 "2024-03-19T21:15:56Z")

</div>

You can use the recommendation [here](https://github.com/NixOS/nixpkgs/tree/master/pkgs/by-name#recommendation-for-new-packages-with-multiple-versions). It’s not perfect, but it works 🙂

---

<div class="post-metadata">

### Author: ![nim65s](https://discourse.nixos.org/user_avatar/discourse.nixos.org/nim65s/32/15914_2.png) [@nim65s](https://discourse.nixos.org/u/nim65s)
#### Post date: [March 20, 2024, 12:06am UTC](https://discourse.nixos.org/t/rfc140-what-about-package-with-multiple-names/41846/3 "2024-03-20T00:06:12Z")

</div>

Perfect, thanks !

I have no idea how could I miss this paragraph 😕
