Re: [Nix-dev] zlib, iconv, bzip2, et. al.

2016-09-07 Thread Peter Simons
Hi Thomas,

 > Yes, ive done that (nix-env). But perhaps i dont have that extra bit about
 > allowing my linker to find them.

This resource might help:

  
http://nixos.org/nixpkgs/manual/#builds-using-stack-complain-about-missing-system-libraries

BR, Peter

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] zlib, iconv, bzip2, et. al.

2016-09-07 Thread Vladimír Čunát
On 09/07/2016 09:11 PM, Thomas Bereknyei wrote:
> One that is normally set in bash_profile?

Such paths aren't added by default. That's on purpose. I think most of
the community prefers to use "purer ways", e.g. doing their development
within nix-shell.

Those ways are also more flexible, e.g. "I want to try with this library
replaced by latest git" or "with these extra build flags", etc.

--Vladimir




smime.p7s
Description: S/MIME Cryptographic Signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] zlib, iconv, bzip2, et. al.

2016-09-07 Thread Thomas Bereknyei
Yes, ive done that (nix-env). But perhaps i dont have that extra bit about
allowing my linker to find them. Thats why i suspected my zsh shell may be
to blame, some shell variable isnt being set? One that is normally set in
bash_profile?

Tom

On Wed, Sep 7, 2016, 09:01 Ryan Trinkle <ryan.trin...@gmail.com> wrote:

> Have you tried installing those libraries with `nix-env -i`?  You may need
> to add some stuff to your environment to make the linker find them, but
> that should put them in your ~/.nix-profile/lib.
>
> On Wed, Sep 7, 2016 at 7:18 AM, Thomas Bereknyei <tombe...@gmail.com>
> wrote:
>
>> Ryan,
>>
>> Thia happens in my normal zsh shell. Cabal will complain about a missing
>> library, but I can fix that by going to 'nix-shell -p libiconv'. Stack
>> interacting with nix changes things so it sometimes works, I dont have a
>> clear example.  Stack setup or even try-reflex has given me this sort of
>> issue. I resorted to adding addBuildDepends to a bunch of packages in
>> try-reflex's defsault.nix, but somehow i don't think anyone else is doing
>> that. My normal shell just never seems to have the libraries in scope and
>> no amount of nix-env seems to work. It's as if I'm not getting the -dev
>> versions.
>>
>>  Tom
>>
>>> -
>>>
>>> Message: 1
>>> Date: Tue, 6 Sep 2016 16:50:58 -0400
>>> From: Ryan Trinkle <ryan.trin...@gmail.com>
>>> To: Thomas Bereknyei <tombe...@gmail.com>
>>> Cc: nix-dev <nix-dev@lists.science.uu.nl>
>>> Subject: Re: [Nix-dev] zlib, iconv, bzip2, et. al.
>>> Message-ID:
>>> <
>>> cahnepize-d638eyz4htjqey_nm2bjgvayt95jsovua89dr0...@mail.gmail.com>
>>> Content-Type: text/plain; charset="utf-8"
>>>
>>> Can you provide the command line you're using to get into the nix shell?
>>> My understanding was that this kind of thing should be handled
>>> automatically, but apparently that's not always the case.
>>>
>>> On Tue, Sep 6, 2016 at 8:23 AM, Thomas Bereknyei <tombe...@gmail.com>
>>> wrote:
>>>
>>> > I often have a problem where a library is not available during
>>> > compilation, usually Haskell. The standard answer is to start
>>> 'nix-shell -p
>>> > zlib' and proceed. Is there a way to have them in my standard
>>> environment?
>>> > This occurs both on OSX and NixOS even when i have those packages
>>> installed
>>> > (either via nixos-rebuild or nix-env). I am also using zsh.
>>> >
>>> > Tom
>>> >
>>> >
>>>
>>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] zlib, iconv, bzip2, et. al.

2016-09-07 Thread Ryan Trinkle
Have you tried installing those libraries with `nix-env -i`?  You may need
to add some stuff to your environment to make the linker find them, but
that should put them in your ~/.nix-profile/lib.

On Wed, Sep 7, 2016 at 7:18 AM, Thomas Bereknyei <tombe...@gmail.com> wrote:

> Ryan,
>
> Thia happens in my normal zsh shell. Cabal will complain about a missing
> library, but I can fix that by going to 'nix-shell -p libiconv'. Stack
> interacting with nix changes things so it sometimes works, I dont have a
> clear example.  Stack setup or even try-reflex has given me this sort of
> issue. I resorted to adding addBuildDepends to a bunch of packages in
> try-reflex's defsault.nix, but somehow i don't think anyone else is doing
> that. My normal shell just never seems to have the libraries in scope and
> no amount of nix-env seems to work. It's as if I'm not getting the -dev
> versions.
>
>  Tom
>
>> -
>>
>> Message: 1
>> Date: Tue, 6 Sep 2016 16:50:58 -0400
>> From: Ryan Trinkle <ryan.trin...@gmail.com>
>> To: Thomas Bereknyei <tombe...@gmail.com>
>> Cc: nix-dev <nix-dev@lists.science.uu.nl>
>> Subject: Re: [Nix-dev] zlib, iconv, bzip2, et. al.
>> Message-ID:
>> <CAHNEpize-D638EyZ4HTjQEy_Nm2BjgVaYT95jSoVua89dr0Wwg@
>> mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Can you provide the command line you're using to get into the nix shell?
>> My understanding was that this kind of thing should be handled
>> automatically, but apparently that's not always the case.
>>
>> On Tue, Sep 6, 2016 at 8:23 AM, Thomas Bereknyei <tombe...@gmail.com>
>> wrote:
>>
>> > I often have a problem where a library is not available during
>> > compilation, usually Haskell. The standard answer is to start
>> 'nix-shell -p
>> > zlib' and proceed. Is there a way to have them in my standard
>> environment?
>> > This occurs both on OSX and NixOS even when i have those packages
>> installed
>> > (either via nixos-rebuild or nix-env). I am also using zsh.
>> >
>> > Tom
>> >
>> >
>>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] zlib, iconv, bzip2, et. al.

2016-09-07 Thread Thomas Bereknyei
Ryan,

Thia happens in my normal zsh shell. Cabal will complain about a missing
library, but I can fix that by going to 'nix-shell -p libiconv'. Stack
interacting with nix changes things so it sometimes works, I dont have a
clear example.  Stack setup or even try-reflex has given me this sort of
issue. I resorted to adding addBuildDepends to a bunch of packages in
try-reflex's defsault.nix, but somehow i don't think anyone else is doing
that. My normal shell just never seems to have the libraries in scope and
no amount of nix-env seems to work. It's as if I'm not getting the -dev
versions.

 Tom

> -
>
> Message: 1
> Date: Tue, 6 Sep 2016 16:50:58 -0400
> From: Ryan Trinkle <ryan.trin...@gmail.com>
> To: Thomas Bereknyei <tombe...@gmail.com>
> Cc: nix-dev <nix-dev@lists.science.uu.nl>
> Subject: Re: [Nix-dev] zlib, iconv, bzip2, et. al.
> Message-ID:
> <
> cahnepize-d638eyz4htjqey_nm2bjgvayt95jsovua89dr0...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Can you provide the command line you're using to get into the nix shell?
> My understanding was that this kind of thing should be handled
> automatically, but apparently that's not always the case.
>
> On Tue, Sep 6, 2016 at 8:23 AM, Thomas Bereknyei <tombe...@gmail.com>
> wrote:
>
> > I often have a problem where a library is not available during
> > compilation, usually Haskell. The standard answer is to start 'nix-shell
> -p
> > zlib' and proceed. Is there a way to have them in my standard
> environment?
> > This occurs both on OSX and NixOS even when i have those packages
> installed
> > (either via nixos-rebuild or nix-env). I am also using zsh.
> >
> > Tom
> >
> >
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] zlib, iconv, bzip2, et. al.

2016-09-06 Thread Ryan Trinkle
Can you provide the command line you're using to get into the nix shell?
My understanding was that this kind of thing should be handled
automatically, but apparently that's not always the case.

On Tue, Sep 6, 2016 at 8:23 AM, Thomas Bereknyei  wrote:

> I often have a problem where a library is not available during
> compilation, usually Haskell. The standard answer is to start 'nix-shell -p
> zlib' and proceed. Is there a way to have them in my standard environment?
> This occurs both on OSX and NixOS even when i have those packages installed
> (either via nixos-rebuild or nix-env). I am also using zsh.
>
> Tom
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] zlib, iconv, bzip2, et. al.

2016-09-06 Thread Thomas Bereknyei
I often have a problem where a library is not available during compilation,
usually Haskell. The standard answer is to start 'nix-shell -p zlib' and
proceed. Is there a way to have them in my standard environment? This
occurs both on OSX and NixOS even when i have those packages installed
(either via nixos-rebuild or nix-env). I am also using zsh.

Tom
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev