cachix / devenv

Fast, Declarative, Reproducible, and Composable Developer Environments
https://devenv.sh
Apache License 2.0
4.05k stars 304 forks source link

Search for packages in custom input flakes #1031

Open imincik opened 5 months ago

imincik commented 5 months ago

Please add possibility to search for packages in custom input flakes.

For example, if I add geospatial-nix flake as additional input:

devenv.yaml

inputs:
  nixpkgs:
    url: github:cachix/devenv-nixpkgs/rolling
  geonix:
    url: github:imincik/geospatial-nix

And want to be able to search and find a package called gdal which exists in both nixpkgs and geospatial-nix.

Currently, search command will only find gdal package in nixpkgs.

devenv search gdal
trace: warning: libsForQt5 now uses makeScopeWithSplicing which does not have "overrideScope'", use "overrideScope".
+-----------------------------+---------+-------------------------------------------------------------------+
| Package                     | Version | Description                                                       |
+-----------------------------+---------+-------------------------------------------------------------------+
| pkgs.pdal                   | 2.5.6   | PDAL is Point Data Abstraction Library. GDAL for point cloud data |
+-----------------------------+---------+-------------------------------------------------------------------+
| pkgs.python310Packages.gdal | 3.7.3   | Translator library for raster geospatial data formats             |
+-----------------------------+---------+-------------------------------------------------------------------+
| pkgs.gdalMinimal            | 3.7.3   | Translator library for raster geospatial data formats             |
+-----------------------------+---------+-------------------------------------------------------------------+
| pkgs.gdal                   | 3.7.3   | Translator library for raster geospatial data formats             |
+-----------------------------+---------+-------------------------------------------------------------------+
| pkgs.python311Packages.gdal | 3.7.3   | Translator library for raster geospatial data formats             |
+-----------------------------+---------+-------------------------------------------------------------------+
• Found 5 packages and 0 options for 'gdal'.

Thank you.

domenkozar commented 5 months ago

Yeah that would be great to have! Need to think about the design.