# Nix package for OTB

**URL:** <https://forum.orfeo-toolbox.org/t/nix-package-for-otb/3194>\
**Category:** OTB Usage\
**Created:** [December 15, 2024, 11:12am UTC](https://forum.orfeo-toolbox.org/t/nix-package-for-otb/3194 "2024-12-15T11:12:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Pratyush](https://forum.orfeo-toolbox.org/user_avatar/forum.orfeo-toolbox.org/pratyush/32/612_2.png) [@Pratyush](https://forum.orfeo-toolbox.org/u/Pratyush)\
**Post date:** [December 16, 2024, 4:59pm UTC](https://forum.orfeo-toolbox.org/t/nix-package-for-otb/3194/3 "2024-12-16T16:59:50Z")

</div>

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 😃

[Channel branches - NixOS Wiki](https://wiki.nixos.org/wiki/Channel_branches).

> - 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](https://github.com/NixOS/nixpkgs/pull/325630#discussion_r1845249444)

**Getting it started with Nix requires only two steps:**

1. Install Nix:

> curl --proto ‘=https’ --tlsv1.2 -sSf -L [https://install.determinate.systems/nix](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 😃

---

_[View the full topic](https://forum.orfeo-toolbox.org/t/nix-package-for-otb/3194)._
