Nix package for OTB

Hi @thibaut.romain !

Thanks for the suggestion. I will check how to backport the package to current stable channel (nixos-24.11). Although the name of the channel is unstable actually this channel basically contains the latest tested version for packages :smiley:

Channel branches - NixOS Wiki.

  • Stable/unstable:
    • Stable channels (nixos-24.11) only provide conservative updates for fixing bugs and security vulnerabilities, but do not receive major updates after the initial release. New stable channels are released every six months.
    • Unstable channels (nixos-unstable, nixpkgs-unstable) follow the master branch of Nixpkgs, delivering the latest tested updates on a rolling basis.

I would also like to add OTB can be used without having NixOS distro. Nix can also be used as a package manager with any Platform (Linux or MacOS, WSL2). But OTB Nix package is currently available only for any Linux distro (x86_64 and aarch64), not for MacOS c.f

Getting it started with Nix requires only two steps:

  1. Install Nix:

curl --proto ‘=https’ --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s – install

  1. Start a Nix shell with OTB
  • nix-shell -I nixpkgs=channel:nixos-unstable -p otb
  • Now we can use all the otbcli applications in this activated shell
  • otbcli_BandMathX -help
  • exit

Once we exit the shell there should be no OTB :smiley: