Nicolas George
2024-06-28 12:10:02 UTC
Hi.
I am trying to use Nix on Debian, with the packaged version.
My goal is to have a pristine Debian OS and the ability to install
binaries for specific versions of common software independently from the
OS.
The problem is: none of the commands I find on the web work in this
setup.
For example, I did:
nix-channel --add https://nixos.org/channels/nixos-24.05 nixos
nix-channel --update
Then I check the packages I want:
https://search.nixos.org/packages?channel=24.05&from=0&size=50&sort=relevance&type=packages&query=postgresql
https://search.nixos.org/packages?channel=24.05&from=0&size=50&sort=relevance&type=packages&query=ossp
https://search.nixos.org/packages?channel=24.05&from=0&size=50&sort=relevance&type=packages&query=boost
And type the commands they suggest:
nix-shell -p libossp_uuid
and it fails miserably:
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
Or:
nix-env -iA nixpkgs.libossp_uuid
fails too:
error: attribute 'nixpkgs' in selection path 'nixpkgs.libossp_uuid' not found
Can somebody tell me what I am doing wrong and/or give me hints on how
to get started?
Alternatively, if you know other packages systems that can achieve a
similar goal, I can consider using it instead. But it has to handle
shared dependencies.
Thanks in advance.
I am trying to use Nix on Debian, with the packaged version.
My goal is to have a pristine Debian OS and the ability to install
binaries for specific versions of common software independently from the
OS.
The problem is: none of the commands I find on the web work in this
setup.
For example, I did:
nix-channel --add https://nixos.org/channels/nixos-24.05 nixos
nix-channel --update
Then I check the packages I want:
https://search.nixos.org/packages?channel=24.05&from=0&size=50&sort=relevance&type=packages&query=postgresql
https://search.nixos.org/packages?channel=24.05&from=0&size=50&sort=relevance&type=packages&query=ossp
https://search.nixos.org/packages?channel=24.05&from=0&size=50&sort=relevance&type=packages&query=boost
And type the commands they suggest:
nix-shell -p libossp_uuid
and it fails miserably:
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
Or:
nix-env -iA nixpkgs.libossp_uuid
fails too:
error: attribute 'nixpkgs' in selection path 'nixpkgs.libossp_uuid' not found
Can somebody tell me what I am doing wrong and/or give me hints on how
to get started?
Alternatively, if you know other packages systems that can achieve a
similar goal, I can consider using it instead. But it has to handle
shared dependencies.
Thanks in advance.
--
Nicolas George
Nicolas George