[Nix-dev] 32bit on 64bit Nix
Tim Hawes
tim at easyfreeunix.com
Wed Jul 30 00:21:11 CEST 2014
The list was dropped in the send to by mistake, so leaving the entire message
that was transferred just between Mateusz and I for posterity.
Adding the following:
{ allowUnfree = true; }
to root's ~/.nixpkgs/config.nix and running nix-env -qa|grep skype
reveals skype in repository.
Running nix-env -qaP|grep teamspeak reveals:
nixos.pkgs.teamspeak_client teamspeak-client-3.0.13.1
so the attribute is listed on the left, and is what needs to be added to
configuration.nix to be included in the build.
I am getting that zen feeling, now. Thanks Mateusz!
Mateusz Kowalczyk writes:
> On 07/29/2014 11:27 PM, Tim Hawes wrote:
>>
>> Mateusz Kowalczyk writes:
>>
>>> On 07/29/2014 05:26 PM, Tim Hawes wrote:
>>>> Thank you all for your replies!
>>>>
>>>> I am trying to keep the desktop version of my NixOS at stable 14.04
>>>> only, as much as possible.
>>>
>>> Is there a reason?
>>
>> Same reason why I'd stay away from Fedora and SuSE, and stick with
>> either Debian Stable, Ubuntu LTS, or CentOS. When I pick up my laptop, I
>> want it to just work. It's the tool I use to muck everything else up. ;)
>
> The nixos-unstable channel doesn't get updated until certain tests pass
> so you never really end up with a ‘broken’ system and you can roll back
> if you don't like something anyway. Each to their own.
>
>>>> Skype is not in the stable repositories,
>>>> however, when I put Skype in the configuration.nix, it installs it with
>>>> dependencies. I also noticed that some packages that are available to
>>>> install via nix-env are not available when you add them to the
>>>> configuration.nix.
>>>> The manual gives me the impression that any package
>>>> available with nix-env could be added to the configuration.nix, and
>>>> vice-versa. Can some one explain the part I am missing?
>>>
>>> Perhaps your user and your system are using different nixpkgs. If you
>>> are not specifying nixpkgs by hand, I'd check what your channels are at.
>>> Might want to run nixos-version.
>>
>> Would my system use something else other than root user, out of the box?
>
> No, I don't think so. Where is your assertion that skype is not in
> stable repositories coming from? Did you try to ‘nix-env -iA skype’?
> Perhaps you don't have allowUnfree set so nix-env -i doesn't see it.
>
>> [root at nixos:~]# nix-channel --list
>> nixos https://nixos.org/channels/nixos-14.04
>>
>> [root at nixos:~]# nixos-version
>> 14.04.376.f6ad69a (Baboon)
>>
>> [root at nixos:~]#
>>
>>> Another thing to watch out for is that names taken by nix-env -i are
>>> sometimes not the same as those you need to put in configuration.nix:
>>> configuration.nix takes attribute names. It does not matter here however
>>> because it seems it's just ‘skype’ for both in this scenario.
>>
>> How would I get a list of attribute names I can use with configuration.nix?
>
> Add -P flag to your nix-env queries. For example nix-env -qaP would list
> all visible packages and the attribute names.
>
>>
>>>> Also, is there a script or configuration parameter that will sym-link
>>>> essential UNIX utilities under /run/current-system/sw/bin to /bin (like
>>>> sed, awk, grep, etc.)? This would be required by any third party shell
>>>> scripts, or scripts written for a mixed OS environment (Solaris, AIX,
>>>> and Linux).
>>>
>>> Not that I know of. It is better if you package up such scripts which
>>> would ensure such scripts always work on your system. There are things
>>> to make this easier such as the ‘patchShebangs’ tool available during
>>> packaging.
>>
>> I'll have to take a look at the patchShebangs tool, then.
>>
>> Thanks, again!
>>
>
> You should have replied on the nix-dev list so that others can benefit
> from the conversation. Please forward this reply there unless there is a
> specific reason why you replied to me directly instead to the list.
More information about the nix-dev
mailing list