Install codeblocks in nixos

I would like to install codeblocks in Nixos. How should I proceed?

Thanks

As you can see on this search page, the package is available in two versions.

You can put

environment.systemPackages = [ pkgs.codeblocks ];

in your configuration.nix file

Thank you for your help.