Re: [Nix-dev] FreeBSD Support

2015-01-17 Thread Malcolm Matalka
Does that mean the nix software itself or nix expressions or both?

Thanks
Den 17 jan 2015 18:46 skrev "Domen Kožar" :

> It's because no one is investing time to support FreeBSD.
>
> On Sat, Jan 17, 2015 at 6:32 PM, Malcolm Matalka 
> wrote:
>
>> I see that FreeBSD is no longer stated as supported.
>>
>> Is this because the nix tools themselves no longer work under FreeBSD or
>> because the packages have fallen into disrepair?
>>
>> /Malcolm
>> ___
>> 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] FreeBSD Support

2015-01-17 Thread Malcolm Matalka
I see that FreeBSD is no longer stated as supported.

Is this because the nix tools themselves no longer work under FreeBSD or
because the packages have fallen into disrepair?

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


Re: [Nix-dev] Dataflow

2014-12-25 Thread Malcolm Matalka
It's unclear to me what problem your proposal solves.  If the source of
the issue is the package itself is paralleizing builds (i.e. rebar) then
how does making Nix more dataflow solve that?

stewart mackenzie  writes:

>> Maybe I'm wrong, but I don't think the Nix language itself has any idea
>> of concurrency as such -- at the manual says
>>
>>"The Nix expression language is a pure, lazy, functional language."
>>
>> (https://nixos.org/nix/manual/#ch-expression-language)
>
> Actually I recall eelco talking about threads in nix. IIRC there was a
> motion to remove them but he wanted to keep them.
>
>> Therefore, there's no value in adding concurrency unless your bottleneck
>> is the actual derivation of the build *plan* (not the actual build).
>
> You're quite correct, indeed I was referring to the build plan. One
> light weight language thread calling the build tool for each
> build/package that forms part of the build plan.
> If one uses declarative concurrency I suspect one could essentially
> remove much of the build plan logic that's in nix-the-language.
>
> I need to do some more reading.
>
>> As you've discovered, your problem is that the underlying mechansism is
>> impure (and buggy). There's nothing Nix-the-language can do about that
>> -- unless you want to go about replacing the build systems used by
>> individual programs by more principled ones. I'm sure we'd all love
>> that, but it's not a trivial task and need buy-in from any potential
>> upstream.
>
> Well that's certainly not going to happen any time soon. :) It was
> just rather annoying trying to debug something that keeps hopping
> about.
> ___
> 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


Re: [Nix-dev] cabal install vs. libgcc_s.so.1 must be installed for pthread_cancel to work

2014-08-12 Thread Malcolm Matalka
As a bandaid, I have gotten around this in some ocaml packages by using
LD_PRELOAD:

export LD_PRELOAD=$HOME/.nix-profile/lib/libgcc_s.so

This 'solves' the problem for me.

Gergely Risko  writes:

> Hi,
>
> Sorry for the long email, this is a somewhat complicated topic.
>
> I hope both Eelco and Peter will find the time to read through though,
> thanks! :)
>
> I started to get "libgcc_s.so.1 must be installed for pthread_cancel to
> work" errors randomly with the new parallel cabal install.
>
> This is only an annoyance right now, because I can just rerun the
> command and it will succeed sooner or later, since this is
> non-deterministic, but I started to dig nevertheless.
>
> It's not apparent to me that pthread_cancel is ever called by GHC
> runtime itself, most probably it's a third party library that's issuing
> the call.
>
> Take this code as an example...
>
> ctest.c:
> #include 
> #include 
>
> static void *thread_func(void *ignored_argument) {
>   sleep(100);
>   return NULL;
> }
>
> void x() {
>   pthread_t thr;
>   pthread_create(&thr, NULL, &thread_func, NULL);
>   pthread_cancel(thr);
> }
>
> test.hs:
> {-# LANGUAGE ForeignFunctionInterface #-}
>
> foreign import ccall "x" x :: IO ()
>
> main :: IO ()
> main = x >> putStrLn "end"
>
> Compile with:
> gcc -Wall -c ctest.c
> /nix/store/8sdpn4z5skf3hpmaihg926v1ma1sw9zq-ghc-7.8.3/bin/ghc --make 
> -fforce-recomp -threaded test ctest.o
>
> Or you can also do:
> gcc -Wall -c ctest.c
> /opt/ceh/bin/ghc --make -fforce-recomp -threaded test ctest.o
> if you have http://github.com/nilcons/ceh installed.
>
> With the first version, when we run the executable, we have:
> $ ./test
> libgcc_s.so.1 must be installed for pthread_cancel to work
> Aborted
> $ strace -e file ./test 2>&1 | tail -n 5
> libgcc_s.so.1 must be installed for pthread_cancel to work
> open("/nix/store/jllh2r8dbjhl513ljgips79yld9mnf0h-glibc-2.19/etc/ld.so.cache",
>  O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/nix/store/jllh2r8dbjhl513ljgips79yld9mnf0h-glibc-2.19/lib/libgcc_s.so.1",
>  O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/dev/tty", O_RDWR|O_NOCTTY|O_NONBLOCK) = 10
> --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=24640, si_uid=1000} 
> ---
> +++ killed by SIGABRT +++
>
> So libgcc_s.so.1 is searched for in glibc-2.19/lib/libgcc_s.so.1 instead
> of searching in the gcc closure.
>
> With the second version:
> $ ./test
> end
> $ strace -e file ./test 2>&1 | grep libgcc_s
> open("/nix/store/dsfs84981xvlilg0kzia7rgab69w15mc-gmp-5.1.3/lib/libgcc_s.so.1",
>  O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/nix/store/jllh2r8dbjhl513ljgips79yld9mnf0h-glibc-2.19/lib/libgcc_s.so.1",
>  O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/nix/store/7whfi1pd7bqcy5w9s07ak93348xlcg9h-gcc-4.8.3/lib/tls/i686/sse2/libgcc_s.so.1",
>  O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/nix/store/7whfi1pd7bqcy5w9s07ak93348xlcg9h-gcc-4.8.3/lib/tls/i686/libgcc_s.so.1",
>  O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/nix/store/7whfi1pd7bqcy5w9s07ak93348xlcg9h-gcc-4.8.3/lib/tls/sse2/libgcc_s.so.1",
>  O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/nix/store/7whfi1pd7bqcy5w9s07ak93348xlcg9h-gcc-4.8.3/lib/tls/libgcc_s.so.1",
>  O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/nix/store/7whfi1pd7bqcy5w9s07ak93348xlcg9h-gcc-4.8.3/lib/i686/sse2/libgcc_s.so.1",
>  O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/nix/store/7whfi1pd7bqcy5w9s07ak93348xlcg9h-gcc-4.8.3/lib/i686/libgcc_s.so.1",
>  O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/nix/store/7whfi1pd7bqcy5w9s07ak93348xlcg9h-gcc-4.8.3/lib/sse2/libgcc_s.so.1",
>  O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/nix/store/7whfi1pd7bqcy5w9s07ak93348xlcg9h-gcc-4.8.3/lib/libgcc_s.so.1",
>  O_RDONLY|O_CLOEXEC) = 3
>
> Now libgcc_s is searched for everywhere correctly.  This is because:
> $ ldd ./test
>   linux-gate.so.1 (0xf776d000)
>   libgmp.so.10 => 
> /nix/store/dsfs84981xvlilg0kzia7rgab69w15mc-gmp-5.1.3/lib/libgmp.so.10 
> (0xf76e8000)
>   libm.so.6 => 
> /nix/store/jllh2r8dbjhl513ljgips79yld9mnf0h-glibc-2.19/lib/libm.so.6 
> (0xf76a6000)
>   librt.so.1 => 
> /nix/store/jllh2r8dbjhl513ljgips79yld9mnf0h-glibc-2.19/lib/librt.so.1 
> (0xf769e000)
>   libdl.so.2 => 
> /nix/store/jllh2r8dbjhl513ljgips79yld9mnf0h-glibc-2.19/lib/libdl.so.2 
> (0xf769a000)
>   libpthread.so.0 => 
> /nix/store/jllh2r8dbjhl513ljgips79yld9mnf0h-glibc-2.19/lib/libpthread.so.0 
> (0xf768)
>   libgcc_s.so.1 => 
> /nix/store/7whfi1pd7bqcy5w9s07ak93348xlcg9h-gcc-4.8.3/lib/libgcc_s.so.1 
> (0xf7664000)
>   libc.so.6 => 
> /nix/store/jllh2r8dbjhl513ljgips79yld9mnf0h-glibc-2.19/lib/libc.so.6 
> (0xf74ce000)
>   
> /nix/store/jllh2r8dbjhl513ljgips79yld9mnf0h-glibc-2.19/lib/ld-linux.so.2 => 
> /lib/ld-linux.so.2 (0xf776e0

Re: [Nix-dev] Firewall enabled by default

2014-04-08 Thread Malcolm Matalka
Thanks!

Eelco Dolstra  writes:

> Hi,
>
> On 08/04/14 10:08, Malcolm Matalka wrote:
>
>> Is there documentation for what the default firewall configuration is?
>
> Yeah, see the "Firewall" section in the manual:
> http://nixos.org/nixos/manual/#idm140194845698704
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Firewall enabled by default

2014-04-08 Thread Malcolm Matalka
Is there documentation for what the default firewall configuration is?

Eelco Dolstra  writes:

> Hi,
>
> Just a heads-up that starting with revision 694cc61, NixOS enables its 
> firewall
> by default. If you don't want this, you should explicitly set
>
>   networking.firewall.enable = false;
>
> in your configuration.nix.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] cannot install cinnamon-session

2014-04-07 Thread Malcolm Matalka
Did you add it to all-packages then?

Perhaps you could upload more information to a pastebin somewhere, it's
hard to debug at this granularity.

Roelof Wobben  writes:

> Not working, I see the same error message.
> also nix-env -f . -i cinnamon is working.
>
> Roelof
>
>
>
> Malcolm Matalka schreef op 7-4-2014 9:28:
>> I'm guessing (based on my workflow) you want:
>>
>> nix-env -f . -i cinnamon-session
>>
>> Roelof Wobben  writes:
>>
>>> Hello,
>>>
>>> I want to test if cinnamon-session works well so I can proceed.
>>> So I did nix-env -i cinnamon-session.
>>>
>>> But then I see this message: error: selector 'cinnamon-session' matches
>>> no derivation.
>>>
>>> Roelof
>>> ___
>>> 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 mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] cannot install cinnamon-session

2014-04-07 Thread Malcolm Matalka
I'm guessing (based on my workflow) you want:

nix-env -f . -i cinnamon-session

Roelof Wobben  writes:

> Hello,
>
> I want to test if cinnamon-session works well so I can proceed.
> So I did nix-env -i cinnamon-session.
>
> But then I see this message: error: selector 'cinnamon-session' matches 
> no derivation.
>
> Roelof
> ___
> 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


Re: [Nix-dev] 403 Forbidden on nixexprs

2014-01-06 Thread Malcolm Matalka
Eelco Dolstra  writes:

> Hi,
>
> On 06/01/14 13:52, Malcolm Matalka wrote:
>
>> Is there a location on the website for what various configuration values
>> should be?  
>
> This lists the Nixpkgs channel: http://nixos.org/nixpkgs/download.html
>
> And here are the NixOS channels (which are set up automatically anyway):
> http://nixos.org/nixos/manual/#sec-upgrading
>

The issue I ran into was having a NixOS around for awhile and trying to
upgrade, so being setup automatically didn't help in this situation.
Perhaps it makes sense to have a page with what various default
configurations should be?

>> I ended up having to poke around documentation, and even the
>> URLs there were not correct, 
>
> Where did you see an incorrect URL?

Either I'm mistaken or I'm not looking at the same place, but the URL's
look correct.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] 403 Forbidden on nixexprs

2014-01-06 Thread Malcolm Matalka
Thanks,

Is there a location on the website for what various configuration values
should be?  I ended up having to poke around documentation, and even the
URLs there were not correct, and finally someone on #nixos gave me the
correct URL.


Eelco Dolstra  writes:

> Hi,
>
> On 04/01/14 15:33, Malcolm Matalka wrote:
>
>> curl: (22) The requested URL returned error: 403 Forbidden
>> /nix/store/1f3v6ski9h3pwmfj2zgmjygwqk733sly-nix-1.6.1/bin/nix-prefetch-url:
>> download of
>> ‘http://releases.nixos.org/nixos/channels/nixos-unstable/nixexprs.tar.bz2’
>> failed
>> cannot fetch
>> `http://releases.nixos.org/nixos/channels/nixos-unstable/nixexprs.tar.bz2'
>
> Those URIs are not supposed to work.  The correct channel URIs are the ones in
> http://nixos.org/channels/.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] 403 Forbidden on nixexprs

2014-01-04 Thread Malcolm Matalka
curl: (22) The requested URL returned error: 403 Forbidden
/nix/store/1f3v6ski9h3pwmfj2zgmjygwqk733sly-nix-1.6.1/bin/nix-prefetch-url:
download of
‘http://releases.nixos.org/nixos/channels/nixos-unstable/nixexprs.tar.bz2’
failed
cannot fetch
`http://releases.nixos.org/nixos/channels/nixos-unstable/nixexprs.tar.bz2'
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Cinnamon quitting

2013-12-22 Thread Malcolm Matalka
> Another thing that is bugging me is that I have to wait more than 4 days for 
> something
> gets accepted.

Nothing requires you to wait for individual packages to be accepted
before moving on to your next package.  Nor that you can't do multiple
packages in the same pull request.

Roelof Wobben  writes:

> 
>> From: marco-owe...@gmx.de
>> To: nix-dev@lists.science.uu.nl
>> Date: Sun, 22 Dec 2013 08:51:18 +0100
>> Subject: Re: [Nix-dev] Cinnamon quitting
>>
>> Excerpts from Roelof Wobben's message of Sat Dec 21 19:45:59 +0100 2013:
>>> Because I do not get Cinnamon work because of the error I mentioned
>>> I forced to quit this project.
>>
>> If you write such a message
>> a) reference "the error you couldn't get to work"
>
> I did already in several other messages. 
>>
>> b) Rethink whether Cinnamon is most important to you.
>
> Yes, It it. 
>>
>> c) If it is, rethink whether you have to give up "on this project"
>> (whatever you mean by that) - eg you can happily install the nix
>> toolchain on ubuntu - thus get both - or install Cinnamon in a chroot
>> etc.
>
> I cannot compile it and pointing to Ubuntu I get the feeling not gettting 
> serious. 
> Another thing that is bugging me is that I have to wait more than 4 days for 
> something
> gets accepted. As I see how many packages I have to do , I think I wil be 
> ready in 2020.
> ___
> 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


Re: [Nix-dev] Recommended way of running nix on mac osx

2013-12-02 Thread Malcolm Matalka
These directions show how to set it up for a non root user

http://functional-orbitz.blogspot.se/2013/05/setting-up-nixops-on-mac-os-x-with.html
On Dec 3, 2013 4:57 AM, "Matt Paine"  wrote:

> Hi Guys. I have bit the bullet and installed nix on my mac, following the
> instructions from http://nixos.org/nix/manual/#idp24450384. I'll note
> that I was root when I did this. So all the files created etc were owned by
> root, and the .nix-profile directory is located in /root/.nix-profile. I
> have added the source line to my /root/.profile file. This all works really
> well, when I am root.
>
> When I am a normal user, I cannot 'source' the root profile directory (as
> it is hidden and I am unwilling to change the ownership of my root
> directory or any of its contents available to any other user). I ran the
> 'nix-finish-install' as a normal user, thinking it might cause a new set of
> profiles etc to be created for my user. It failed with the following
> error...
>
> matts-air:pkgs matt$ nix-finish-install
> error: setting synchronous mode: unable to open database file
> /usr/bin/nix-finish-install: unable to register valid paths
>
> ... which I assume is because /nix/var is writable only by root. However
> the /nix/store directory seems to have the sticky bit set for users, so
> this would indicate that it should work for this directory.
>
> Any hints on how to be able to use nix for my normal mac user?
>
> Thank you once again.
> Matt.
>
>
> ___
> 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


Re: [Nix-dev] Newbie questions

2013-12-02 Thread Malcolm Matalka
You can use Nix on OS X, however NixOS is an OS, I'm unaware of any
overlay for OS X (or how much sense that would make).  Myself, I use a
Mac mostly for hardware + (once upon a time) a non bad UI.  I do
everything on my Mac inside a VM running NixOS.  This works pretty well
for me.  If you want to replace OS X with NixOS, I know some people have
had success there.

For installing Nix on OS X, so you can use nixops to create VMs (if you
want to do it that way), you can see this blog post:

http://functional-orbitz.blogspot.se/2013/05/setting-up-nixops-on-mac-os-x-with.html

This has been turned into a few shell scripts too, by Zef,
https://github.com/zefhemel/nixops-mac-setup

They are 6+mo old though, so I can't guarantee the directions will work
right off the bat.

Welcome!

Matt Paine  writes:

> Hi Guys. This is an awesome project. I have been thinking about how to do
> this kind of package management for a long time, but to see it working in
> practice is quite a thrill. Also seeing the idea extrapolated out to an
> entire OS build as well is quite exciting!
>
> I would like to ask a few questions if thats okay. I hope they are not too
> out of place in this list. I would like to contribute back with some
> development too, even if its just improving the current documentation at
> first with the answers to some of my queries, and hopefully some
> derivations/code at a later time :)
>
> 1) I am currently running a mac. I tentatively use HomeBrew (a bsd ports
> like package manager) as it doesn't interfere too much with the system, and
> uninstall it and all the ports it has installed is a relatively easy
> process. How does installing nix on my mac integrate? Obviously using the
> NixOS it is tightly integrated, but I would like to try it out with my mac.
> What does the installer (for macosx) actually touch? Hopefully just adding
> .nix-profile to the path etc, but I would like to make sure before I
> uninstall it and wreck my specific mac setup.
>
> 2) I LOVE the way I can define a system from the one file
> (/etc/nixos/configuration.nix). Is there a way I can define my user profile
> like that as well? i.e. ~/.nixos/configuration.nix. This way I can
> source-control that file, and when I setup a new machine, I can not only
> ensure the system is configured sanely, but also my specific user (which
> might want a different version of python for instance than whats built for
> the system)
>
> 3) After modifying /etc/nixos/configuration.nix, and if the system screws
> up, and I want to rollback, is there a way of knowing what the previous
> configuration.nix was so I can compare to the existing one?
>
> 4) I notice there is a raspberry pi image available for download. Its quite
> old, I was hoping to build my own .img file and try out nixos on my
> raspberry pi. Building CD/DVD ISO's is pretty easy, but I am unfamiliar
> with out to build an image for raspberry pi. Any hints on how I can do that?
>
> 5) The documentation mentions after creating a .nix file for a software
> package, to add it to the top-level/all-packages.nix. If I wanted to create
> a derivation for a specific older instance of php with specific
> configuration, which would not be very useful for the community, but highly
> useful for my deployment, what is the best way to handle that instance? Can
> I just put the .nix file in my projects repo, and run the derivation direct
> from that file? I assume the answer is yes, but I have not found out how
> yet.
>
> 6) How do I handle global installation of packages from the myriad of other
> package managers out there (npm (node), easy-install (python), pear/pecl
> (php), etc etc). I see a conversation on the mailing list at the moment
> which will likely cover this answer, so I might stalk that thread and see
> what comes of it :). But how do we do it now (i.e. with wrappers??)
>
> I have more questions, but I haven't googled them for answers yet, so I
> will refrain if I cannot work them out myself :)
>
> Thank you in advance.
> Matt.
> ___
> 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


Re: [Nix-dev] experience packager or coder to help me with cinnamon

2013-11-29 Thread Malcolm Matalka
Not to be rude, but I don't think this kind of rhetoric will get you
far.  I offered a suggestion for trying simpler packages first.

Roelof Wobben  writes:

> If nobody is responding then I have to quit porting cinnamon to Nixos and 
> maybe quit Nixos.
>  
> From: rwob...@hotmail.com
> To: nix-dev@lists.science.uu.nl
> Subject: experience packager or coder to help me with cinnamon
> Date: Thu, 28 Nov 2013 19:31:29 +
>
>
>
>
> Hello, 
>  
> Im now 3 days at work to make cinnamon-desktop working so Nixos can have 
> Cinnamon 2.x 
> It looks like to me the configure and make files are really broken. On make I 
> see several error messages
> about missing and not found error messages.
>  
> Now I wonder if there is a experienced packager of coder who is willing to be 
> a sort of mentor
> so we get the packages working. 
>  
> Regards, 
>  
> Roelof Wobben
>  
>   
>   
> ___
> 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


Re: [Nix-dev] experience packager or coder to help me with cinnamon

2013-11-28 Thread Malcolm Matalka
Perhaps you could work your way up to Cinnamon by contributing packages
for simpler things first.

Roelof Wobben  writes:

> Hello, 
>  
> Im now 3 days at work to make cinnamon-desktop working so Nixos can have 
> Cinnamon 2.x 
> It looks like to me the configure and make files are really broken. On make I 
> see several error messages
> about missing and not found error messages.
>  
> Now I wonder if there is a experienced packager of coder who is willing to be 
> a sort of mentor
> so we get the packages working. 
>  
> Regards, 
>  
> Roelof Wobben
>  
> 
> ___
> 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


Re: [Nix-dev] Nix 1.6 released

2013-09-15 Thread Malcolm Matalka
I am unable to upgrade to 1.6 on one of my machines for an unknown
reason.

I updated my machine by doing 'nixos-rebuild --upgrade switch' and
rebooting.

$ nixos-version
13.09pre5022_71365b7-38d54cf (Aardvark)

$ nix-env --version
nix-env (Nix) 1.5.3

$ which nix-env
/run/current-system/sw/bin/nix-env

$ sudo nix-channel --list
nixos http://nixos.org/releases/nixos/channels/nixos-unstable

$ nix-env -qa '*' | grep -e '^nix'
nix-1.5.3
nix-1.6pre3215_2c1ecf8
nix-generate-from-cpan-1
nixops-1.0.1
nixpkgs-lint-1


Interesting fact: on my other machine that did upgrade properly, the
output of the grep is different:

$ nix-env -qa '*' | grep -e '^nix'
nix-1.5.2
nix-1.5.3pre3141_1b6ee8f
nix-generate-from-cpan-1

$ nix-env --version
nix-env (Nix) 1.6pre3215_2c1ecf8

Any suggestions?

Thanks!

/Malcolm

Eelco Dolstra  writes:

> Hi,
>
> I'm pleased to announce the availability of a new stable release of the
> Nix package manager.  Release 1.6 can be found at
>
>   http://hydra.nixos.org/release/nix/nix-1.6
>
> and
>
>   http://nixos.org/releases/nix/nix-1.6/
>
> In addition to the usual bug fixes, this release has several new features:
>
>   * The command nix-build --run-env has been renamed to nix-shell.
>
>   * nix-shell now sources $stdenv/setup inside the interactive shell, rather
> than in a parent shell. This ensures that shell functions defined by 
> stdenv
> can be used in the interactive shell.
>
>   * nix-shell has a new flag --pure to clear the environment, so you get an
> environment that more closely corresponds to the "real" Nix build.
>
>   * nix-shell now sets the shell prompt (PS1) to ensure that Nix shells are
> distinguishable from your regular shells.
>
>   * nix-env no longer requires a * argument to match all packages, so nix-env
> -qa is equivalent to nix-env -qa '*'.
>
>   * nix-env -i has a new flag --remove-all (-r) to remove all previous 
> packages
> from the profile. This makes it easier to do declarative package 
> management
> similar to NixOS's environment.systemPackages. For instance, if you have a
> specification my-packages.nix like this:
>
> with import  {};
> [ thunderbird
>   geeqie
>   ...
> ]
>
> then after any change to this file, you can run:
>
> $ nix-env -f my-packages.nix -ir
>
> to update your profile to match the specification.
>
>   * The `with' language construct is now more lazy. It only evaluates its
> argument if a variable might actually refer to an attribute in the
> argument. For instance, this now works:
>
> let
>   pkgs = with pkgs; { foo = "old"; bar = foo; } // overrides;
>   overrides = { foo = "new"; };
> in pkgs.bar
>
> This evaluates to "new", while previously it gave an "infinite recursion"
> error.
>
>   * Nix now has proper integer arithmetic operators. For instance, you can
> write x + y instead of builtins.add x y, or x < y instead of
> builtins.lessThan x y. The comparison operators also work on strings.
>
>   * On 64-bit systems, Nix integers are now 64 bits rather than 32 bits.
>
>   * When using the Nix daemon, the nix-daemon worker process now runs on the
> same CPU as the client, on systems that support setting CPU affinity. This
> gives a significant speedup on some systems.
>
>   * If a stack overflow occurs in the Nix evaluator, you now get a proper 
> error
> message (rather than "Segmentation fault") on some systems.
>
>   * In addition to directories, you can now bind-mount regular files in 
> chroots
> through the (now misnamed) option build-chroot-dirs.
>
> This release has contributions from Domen Kožar, Eelco Dolstra, Florian
> Friesdorf, Gergely Risko, Ivan Kozik, Ludovic Courtès and Shea Levy.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Hydra out of memory?

2013-08-05 Thread Malcolm Matalka
Perhaps add some monitoring?
Den 5 aug 2013 14:53 skrev "Eelco Dolstra" :

> Hi,
>
> On 04/08/13 22:35, Bjørn Forsman wrote:
>
> > The channel doesn't update because virtualbox-image won't build
> (out-of-memory):
>
> Thanks. I've doubled the available memory size, hopefully that will
> prevent this
> from happening again.
>
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> ___
> 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


Re: [Nix-dev] Templates

2013-06-26 Thread Malcolm Matalka
That does not give access to variables, from my understanding.
On Jun 26, 2013 9:29 PM, "Michael Raskin" <7c6f4...@mail.ru> wrote:

> >I want to add Riak support to NixOS.  The config file is quite large and
> >can be complex.  It also is a supported file type in my Emacs so I get
> >pretty syntax highlighting.  Putting this inside Nix expressions losses
> >this feature.  I think putting config files in Nix expressions is
> >suboptimal.
>
> There is readFile builtin then.
>
> >
> >> I don't get what's bad about nix, you can use import (but you know
> that).
> >>
> >> Nix should suppport: (I never tested it):
> >>
> >>   let config = import
> >>
> "${derivation_reading_config_file_creating_nix_file}/the_generated_nix_file.nix":
> >>
> >> That's closest and works right now.
> >>
> >> Well of course you can just write ruby preprocessors turning your
> >> templates into nix files, too.
> >>
> >> Or patching nix are options.
> >>
> >> But honestly I don't understand your use case.
>
>
>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Templates

2013-06-26 Thread Malcolm Matalka
I want to add Riak support to NixOS.  The config file is quite large and
can be complex.  It also is a supported file type in my Emacs so I get
pretty syntax highlighting.  Putting this inside Nix expressions losses
this feature.  I think putting config files in Nix expressions is
suboptimal.
On Jun 26, 2013 9:20 PM, "Marc Weber"  wrote:

> I don't get what's bad about nix, you can use import (but you know that).
>
> Nix should suppport: (I never tested it):
>
>   let config = import
> "${derivation_reading_config_file_creating_nix_file}/the_generated_nix_file.nix":
>
> That's closest and works right now.
>
> Well of course you can just write ruby preprocessors turning your
> templates into nix files, too.
>
> Or patching nix are options.
>
> But honestly I don't understand your use case.
>
> Marc Weber
> ___
> 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


Re: [Nix-dev] Templates

2013-06-26 Thread Malcolm Matalka
I want the same semantics as including a config as a string literal in a
nix expression, but I want it to be in its own file, preferably without
any nix syntax around it.  Chef has this concept in the form of
'templates'.

Marc Weber  writes:

>> This can become unweildly for applications with large configurations. 
> Of course, use a file as "input" ?
> Taslk about your use case.
>
> Marc Weber
> ___
> 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] Templates

2013-06-26 Thread Malcolm Matalka
This was discussed a little bit in #nixos.  The question is: currently
it seems that the only option for doing configs in NixOS is by putting a
string literal in a nix expression.  This can become unweildly for
applications with large configurations.  Are there other options?

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


Re: [Nix-dev] Obfuscated TOR bridge is packaged. Please consider running it.

2013-06-13 Thread Malcolm Matalka
I just did this and 'worked for me'.  Looks like your machine cannot
resolve the git host.

Moritz Ulrich  writes:

> Just tried it:
>
> exporting https://git.torproject.org/pluggable-transports/obfsproxy.git
> (rev 3c4e843a30c430aec1de03e0e09ef654072efc03) into
> /nix/store/w3mzdvnh4wyzy86l19m6yln7iwl0fxdj-git-export
> fetching path 
> `/nix/store/02yrag3nhmdz8vx6zbxjzikr209nnfch-python-offline-distutils-2.7.3'...
> Initialized empty Git repository in
> /nix/store/w3mzdvnh4wyzy86l19m6yln7iwl0fxdj-git-export/.git/
> error: Couldn't resolve host 'git.torproject.org' while accessing
> https://git.torproject.org/pluggable-transports/obfsproxy.git/info/refs?service=git-upload-pack
> fatal: HTTP request failed
> error: Couldn't resolve host 'git.torproject.org' while accessing
> https://git.torproject.org/pluggable-transports/obfsproxy.git/info/refs?service=git-upload-pack
> fatal: HTTP request failed
> Unable to checkout 3c4e843a30c430aec1de03e0e09ef654072efc03 from
> https://git.torproject.org/pluggable-transports/obfsproxy.git.
> builder for `/nix/store/lvif9n2yr7fggizhqkarpi9fxc7dlnm2-git-export.drv'
> failed with exit code 1
>
> On Tue, Jun 11, 2013 at 3:00 AM,   wrote:
>> Hi,
>>
>> Helping people in censorship-heavy countries has just gotten even easier.
>>
>> TOR in bridge mode now also runs obfsproxy which helps defeat those nasty DPI
>> boxes in those countries which are actively trying to prevent people from
>> using TOR.
>>
>> There are no known cases of non-exit node operators getting attacked by
>> governments. Defeating censorship requires a vast and diverse pool of IP
>> addresses, so please consider adding this to your configuration.nix on your
>> internet-facing box:
>>
>>   services.tor.relay = {
>> enable = true;
>> isBridge = true;
>> port = 443;
>>   };
>>
>> If you need help with a more complex setup, just ask me.
>> ___
>> 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 mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] nixos-install building FLAC and failing

2013-06-13 Thread Malcolm Matalka
That worked, has sound become enabled by default all of a sudden?

Vladimír Čunát  writes:

> On 06/14/2013 12:23 AM, Malcolm Matalka wrote:
>> I'm trying to install NixOS on another Linode host, and I'm running into
>> something odd during 'nixos-install'.
>>
>> Despite my configuration, AFAIK, a bunch of sound stuff is being
>> installed, and FLAC is failing on tests, most likely because I'm running
>> as root.  I just don't understand why FLAC is being installed at all.
>> Here is part of the output from nixos-install showing the deps it still
>> needs to build.
>> [...]
>> Also, I don't seem able to build a dependency graph to see why sound is
>> begin pulled in because nothing is actually installed yet.
>
> And what about setting sound.enable = false; in configuration.nix? It seems 
> all to come from alsa utils.
>
>
> Vlada
>
>
> ___
> 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] nixos-install building FLAC and failing

2013-06-13 Thread Malcolm Matalka
I'm trying to install NixOS on another Linode host, and I'm running into
something odd during 'nixos-install'.

Despite my configuration, AFAIK, a bunch of sound stuff is being
installed, and FLAC is failing on tests, most likely because I'm running
as root.  I just don't understand why FLAC is being installed at all.
Here is part of the output from nixos-install showing the deps it still
needs to build.

building the system configuration...
these derivations will be built:
  /nix/store/0kpj3rl5w9ycgfqs2wb5bikdmyf1sgir-unit.drv
  /nix/store/4v3x9b21gk0yf80aahy3l6m23l1g66kk-udev-rules.drv
  /nix/store/85zn8vkpwprb1i7zacd150gjmxmxh3vz-dbus-conf.drv
  /nix/store/9xaz4r1ivpf4pk5cq4yqzw5bfhk3hz9m-libsndfile-1.0.23.drv
  /nix/store/iq8rdzk2ybzvpq8m1pvwwb6lsrz6gvpg-flac-1.3.0.drv
  /nix/store/ja8a6k37a2vp60gpd74gd3y01iqgh7z9-units.drv
  /nix/store/jc3935zzvkyzc2xq61lflmnqb5420b61-alsa-utils-1.0.26.drv
  /nix/store/kdr9hr1gdkn1q81sigijry48shgf8r9l-system-path.drv
  /nix/store/npkljyz5ilgg9b8r45yi384bgqibr4cf-etc.drv
  /nix/store/p6cr6phxzavm78wk4srgkr8cknw53kyf-nixos-0.2pre-git.drv
  /nix/store/szj3ha2qac6xkr4wzvgp0p5z1gg6ahk8-system-crontab.drv
  /nix/store/wy5m4svdmj1gkgyzmijy7z09jfwfgqcb-libsamplerate-0.1.7.drv

Here is the error:

ERROR: iterator claims file is writable when tester thinks it should not
be; are you running as root?

ERROR during test_libFLAC
make[1]: *** [check] Error 1
make[1]: Leaving directory
`/tmp/nix-build-flac-1.3.0.drv-0/flac-1.3.0/test'
ESC[qESC[qmake: *** [check-recursive] Error 1
ESC[qESC[qESC[qbuilder for
`/nix/store/iq8rdzk2ybzvpq8m1pvwwb6lsrz6gvpg-flac-1.3.0.drv' failed with
exit code 2
cannot build derivation
`/nix/store/9xaz4r1ivpf4pk5cq4yqzw5bfhk3hz9m-libsndfile-1.0.23.drv': 1
dependencies couldn't be built
cannot build derivation
`/nix/store/wy5m4svdmj1gkgyzmijy7z09jfwfgqcb-libsamplerate-0.1.7.drv': 1
dependencies couldn't be built
cannot build derivation
`/nix/store/jc3935zzvkyzc2xq61lflmnqb5420b61-alsa-utils-1.0.26.drv': 1
dependencies couldn't be built
cannot build derivation
`/nix/store/kdr9hr1gdkn1q81sigijry48shgf8r9l-system-path.drv': 1
dependencies couldn't be built
cannot build derivation
`/nix/store/p6cr6phxzavm78wk4srgkr8cknw53kyf-nixos-0.2pre-git.drv': 1
dependencies couldn't be built
error: build of
`/nix/store/p6cr6phxzavm78wk4srgkr8cknw53kyf-nixos-0.2pre-git.drv' failed

Also, I don't seem able to build a dependency graph to see why sound is
begin pulled in because nothing is actually installed yet.

Any suggestions how to debug this?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Job fails in Hydra, works locally

2013-06-13 Thread Malcolm Matalka
http://hydra.nixos.org/build/5270051

This job seems to fail sometimes in hydra.  However when I run the do
"Reproduce locally" it works fine.

Does anyone have any suggestions for how to debug this?

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


Re: [Nix-dev] HOWTO: Running NixOps on OS X

2013-05-25 Thread Malcolm Matalka
Does that mean the bootstrapping VM is not needed at all?  I was under
the impression it was (that some building happened prior to starting the
VM which needs to happen on a build server).

/M

Eelco Dolstra  writes:

> Hi,
>
> On 25/05/13 13:46, Malcolm Matalka wrote:
>
>> I have created a blog post describing how to go from nothing to a
>> working nixops on OS X.  If you are interested, please try the
>> directions out and let me know if they work for you.  If anything else
>> needs to be corrected, let me know a well.  I'm not sure how to get this
>> information into the nixops manual, but whoever owns it, feel free to
>> integrate this content into it.
>
> Thanks, very useful :-)
>
> Regarding step 5 (setting up distributed builds): this is really something
> NixOps should be able to do automatically on the Mac, since it can just set
> NIX_REMOTE_SYSTEMS to point to the VM it just started (i.e. using the target
> machine to perform builds).
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] HOWTO: Running NixOps on OS X

2013-05-25 Thread Malcolm Matalka
I have created a blog post describing how to go from nothing to a
working nixops on OS X.  If you are interested, please try the
directions out and let me know if they work for you.  If anything else
needs to be corrected, let me know a well.  I'm not sure how to get this
information into the nixops manual, but whoever owns it, feel free to
integrate this content into it.

http://functional-orbitz.blogspot.se/2013/05/setting-up-nixops-on-mac-os-x-with.html

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


Re: [Nix-dev] $out in configureFlags is not expanded

2013-05-21 Thread Malcolm Matalka
Not sure how correct this is, but I grepped my nixpkgs in attempted to
quantify this a bit, here are the results:

$ grep -R configureFlags . | wc -l
951
$ grep -R configureFlags . | grep -E '\$[^{]' | wc -l
156

Marc Weber  writes:

> 1) I remember having hit this case, too.
>
> 2) If we don't want to break builds, we could at least change setup.sh
> to test whethet it countains $out, if it does, cause error message:
>   use preConfigure = ''
>   ...
>   ''
> instead.
>
> About changing semantics: I don't think it would affect any existing
> builds, becaues you just neven pass literal $out to a configure script
> - or does anybody remebmber having done so?
>
> Cases I know about where you want to presever $out are setup hooks for
> instance. So replacing all $out by the path would be too much - 
>
>
>>   preConfigure = ''configureFlags="--foo=$out/etc/foo.cfg"'';
>> works just fine. Maybe it would be sufficient to document the current
>> behavior in more detail?
> Yes - it works. However nix is a tool, and it should make the "average
> case" simple - but - if we started doing so - we had to document where
> $out substitution happens etc. So eventually I'd vote for creating a
> wiki page, explaining this in detail, that attr are just passed "as is"
> as env vars, to use preConfigure.
>
> Thinking about it I'd vote for such solution if we are about changing
> anything:
>
> mkDerivation {
>   # NEW, implicit: you don't have to pass this, because its default
>   # but you can opt-out [] or opt-in ["configureFlags","other-env-var"]
>   substituteOut = ["configureFlags"]; 
>
>   configureFlags="--prefix=$out"
> }
>
> On the other hand maybe its not that bad that people run into this
> problem, because they'll learn and understand how derivations work this
> way :)
>
> Marc Weber
> ___
> 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] Double channels accidentally

2013-05-20 Thread Malcolm Matalka
I ran:

nix-channel --add http://nixos.org/channels/nixpkgs-unstable
nix-channel --add
http://nixos.org/releases/nixos/channels/nixos-unstable
nix-channel --update

Twice by accident, and now if I do: nix-env -qa '*' I see doubles for
every package.  My list of channels only show 1 instance of each and
deleting them, updating, and adding again doesn't seem to do anything.

Any suggestions on how to fix?

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


Re: [Nix-dev] nixops:vbox:os x

2013-05-19 Thread Malcolm Matalka
Whoops, sorry about spamming, this was fixed with the directions found
here:

http://www.islandora.ca/node/4645

/M

Malcolm Matalka  writes:

> On booting up an image I'm getting hte following error.  VBox actually
> brings up the settings window for me to play with stuff but I'm not sure
> what to do.  I attempted to delete Adapter 2 and continue, and nixops
> determined the IP address of my VM but it got stuck on waiting for SSH.
> I'm not sure why.
>
> Any suggestions?
>
> /M
>
> webserver> VBoxManage: error: Nonexistent host networking interface,
> webserver> name 'vboxnet0' (VERR_INTERNAL_ERROR)
> webserver> VBoxManage: error: Details: code NS_ERROR_FAILURE
> webserver> (0x80004005), component Console, interface IConsole
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] nixops:vbox:os x

2013-05-19 Thread Malcolm Matalka
On booting up an image I'm getting hte following error.  VBox actually
brings up the settings window for me to play with stuff but I'm not sure
what to do.  I attempted to delete Adapter 2 and continue, and nixops
determined the IP address of my VM but it got stuck on waiting for SSH.
I'm not sure why.

Any suggestions?

/M

webserver> VBoxManage: error: Nonexistent host networking interface,
webserver> name 'vboxnet0' (VERR_INTERNAL_ERROR)
webserver> VBoxManage: error: Details: code NS_ERROR_FAILURE
webserver> (0x80004005), component Console, interface IConsole
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] nixops - cannot import archive

2013-05-19 Thread Malcolm Matalka
To follow up on this:

The solution was to setup signing.  So adding a pub/priv keys on remote
builder and host machine.

Thanks to the awesome people in #nixos for helping me solve this.

I'll write something up once I have the rest of the setup figured out
for using nixops on OS X.

/M

Malcolm Matalka  writes:

> Hello!
>
> With the help of #nixos, I'm trying to get nixops working on OS X using
> another NixOS VM as a build server.
>
> I've managed to get up to this error:
> webserver> error: imported archive of
> `/nix/store/g8qw4m0a0srfv478scwakdbfvz4kp3rx-builder.sh' lacks a
> signature
>
> The entire error output is below.
>
> I am attempting to build the webserver example in the nixops manual,
> except I am just building the vbox file.
>
> Let me know if you need any more information, thanks!
>
> /Malcolm
>
>
> Total output:
> webserver> creating disk ‘disk1’...
> webserver> these derivations will be built:
> webserver>
> /nix/store/26yl29hrq8z3vr9qhkw3sknd37g7cpya-virtualbox-nixops-0.2pre4657_af0e751-e7b1dfd.vdi.drv
> webserver>
> /nix/store/a6qip8famlyc5y8lw8mkgcpqw3j35f4g-mirrors-list.drv
> webserver>
> /nix/store/gc7k9pg9l91j91bwp63h1icwsdq6478q-virtualbox-nixops-0.2pre4657_af0e751-e7b1dfd.vdi.xz.drv
> webserver> building
> `/nix/store/a6qip8famlyc5y8lw8mkgcpqw3j35f4g-mirrors-list.drv' on
> `foo-bar-01.internal.machines'
> webserver> copying 133 missing paths to
> ‘foo-bar-01.internal.machines’...
> webserver> importing path
> `/nix/store/g8qw4m0a0srfv478scwakdbfvz4kp3rx-builder.sh'
> webserver> error: imported archive of
> `/nix/store/g8qw4m0a0srfv478scwakdbfvz4kp3rx-builder.sh' lacks a
> signature
> webserver> writing to file: Broken pipe at
> /nix/store/gj1i12k1kisgxcs421szyybivmz5k8s5-nix-1.5.2/lib/perl5/site_perl/5.16.2/darwin-2level/Nix/CopyClosure.pm
> line 50.
> webserver> builder for
> `/nix/store/a6qip8famlyc5y8lw8mkgcpqw3j35f4g-mirrors-list.drv' failed
> with exit code 32
> webserver> cannot build derivation
> `/nix/store/gc7k9pg9l91j91bwp63h1icwsdq6478q-virtualbox-nixops-0.2pre4657_af0e751-e7b1dfd.vdi.xz.drv':
> 1 dependencies couldn't be built
> webserver> cannot build derivation
> `/nix/store/26yl29hrq8z3vr9qhkw3sknd37g7cpya-virtualbox-nixops-0.2pre4657_af0e751-e7b1dfd.vdi.drv':
> 1 dependencies couldn't be built
> webserver> error: build of
> `/nix/store/26yl29hrq8z3vr9qhkw3sknd37g7cpya-virtualbox-nixops-0.2pre4657_af0e751-e7b1dfd.vdi.drv'
> failed
> error: command ‘['nix-build', '-I',
> 'nixops=/nix/store/myh66cn7mizlgmj1dsws44jhcp3brhlc-nixops-0/share/nix/nixops',
> '--arg', 'networkExprs', u'[
> /Users/mmatalka/projects/nixops-exprs/trivial-vbox.nix ]', '--arg',
> 'args', '{ }', '--argstr', 'uuid',
> u'3d600a26-bf07-11e2-b81f-705681aecd03', '--show-trace',
> '', '--arg', 'checkConfigurationOptions',
> 'false', '-A',
> 'nodes.webserver.config.deployment.virtualbox.disks.disk1.baseImage',
> '-o',
> '/var/folders/51/xjkd97zd0y7cp0rss8kbqnwwgn/T/nixops-tmpCH2zuz/vbox-image-webserver']’
> failed on machine ‘webserver’
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] nixops - cannot import archive

2013-05-17 Thread Malcolm Matalka
Hello!

With the help of #nixos, I'm trying to get nixops working on OS X using
another NixOS VM as a build server.

I've managed to get up to this error:
webserver> error: imported archive of
`/nix/store/g8qw4m0a0srfv478scwakdbfvz4kp3rx-builder.sh' lacks a
signature

The entire error output is below.

I am attempting to build the webserver example in the nixops manual,
except I am just building the vbox file.

Let me know if you need any more information, thanks!

/Malcolm


Total output:
webserver> creating disk ‘disk1’...
webserver> these derivations will be built:
webserver>
/nix/store/26yl29hrq8z3vr9qhkw3sknd37g7cpya-virtualbox-nixops-0.2pre4657_af0e751-e7b1dfd.vdi.drv
webserver>
/nix/store/a6qip8famlyc5y8lw8mkgcpqw3j35f4g-mirrors-list.drv
webserver>
/nix/store/gc7k9pg9l91j91bwp63h1icwsdq6478q-virtualbox-nixops-0.2pre4657_af0e751-e7b1dfd.vdi.xz.drv
webserver> building
`/nix/store/a6qip8famlyc5y8lw8mkgcpqw3j35f4g-mirrors-list.drv' on
`foo-bar-01.internal.machines'
webserver> copying 133 missing paths to
‘foo-bar-01.internal.machines’...
webserver> importing path
`/nix/store/g8qw4m0a0srfv478scwakdbfvz4kp3rx-builder.sh'
webserver> error: imported archive of
`/nix/store/g8qw4m0a0srfv478scwakdbfvz4kp3rx-builder.sh' lacks a
signature
webserver> writing to file: Broken pipe at
/nix/store/gj1i12k1kisgxcs421szyybivmz5k8s5-nix-1.5.2/lib/perl5/site_perl/5.16.2/darwin-2level/Nix/CopyClosure.pm
line 50.
webserver> builder for
`/nix/store/a6qip8famlyc5y8lw8mkgcpqw3j35f4g-mirrors-list.drv' failed
with exit code 32
webserver> cannot build derivation
`/nix/store/gc7k9pg9l91j91bwp63h1icwsdq6478q-virtualbox-nixops-0.2pre4657_af0e751-e7b1dfd.vdi.xz.drv':
1 dependencies couldn't be built
webserver> cannot build derivation
`/nix/store/26yl29hrq8z3vr9qhkw3sknd37g7cpya-virtualbox-nixops-0.2pre4657_af0e751-e7b1dfd.vdi.drv':
1 dependencies couldn't be built
webserver> error: build of
`/nix/store/26yl29hrq8z3vr9qhkw3sknd37g7cpya-virtualbox-nixops-0.2pre4657_af0e751-e7b1dfd.vdi.drv'
failed
error: command ‘['nix-build', '-I',
'nixops=/nix/store/myh66cn7mizlgmj1dsws44jhcp3brhlc-nixops-0/share/nix/nixops',
'--arg', 'networkExprs', u'[
/Users/mmatalka/projects/nixops-exprs/trivial-vbox.nix ]', '--arg',
'args', '{ }', '--argstr', 'uuid',
u'3d600a26-bf07-11e2-b81f-705681aecd03', '--show-trace',
'', '--arg', 'checkConfigurationOptions',
'false', '-A',
'nodes.webserver.config.deployment.virtualbox.disks.disk1.baseImage',
'-o',
'/var/folders/51/xjkd97zd0y7cp0rss8kbqnwwgn/T/nixops-tmpCH2zuz/vbox-image-webserver']’
failed on machine ‘webserver’
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] command-not-found can't open db

2013-05-15 Thread Malcolm Matalka
I just noticed it's trying to open programs.sqlite in per-user/root,
which my user does not have read access to.  programs.sqlite does exist
in the per-user dir for my user, I don't know if it should be looking
there or why it isn't.

/M

Malcolm Matalka  writes:

> I did a manual upgrade to the latest version of NixOS and Nix a month or
> so ago, and just realized that command-not-found doesn't work for me.
> So I ran it manually (command-not-found whois) and I get the following
> error.  I'm not sure if my manual upgrade didn't set it up properly:
>
> $ command-not-found whois
> DBI
> connect('dbname=/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite','',...)
> failed: unable to open database file at
> /run/current-system/sw/bin/command-not-found line 12.
> cannot open database
> `/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite' at
> /run/current-system/sw/bin/command-not-found line 12.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] command-not-found can't open db

2013-05-15 Thread Malcolm Matalka
I did a manual upgrade to the latest version of NixOS and Nix a month or
so ago, and just realized that command-not-found doesn't work for me.
So I ran it manually (command-not-found whois) and I get the following
error.  I'm not sure if my manual upgrade didn't set it up properly:

$ command-not-found whois
DBI
connect('dbname=/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite','',...)
failed: unable to open database file at
/run/current-system/sw/bin/command-not-found line 12.
cannot open database
`/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite' at
/run/current-system/sw/bin/command-not-found line 12.

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


Re: [Nix-dev] Hydra is out-of-space

2013-05-01 Thread Malcolm Matalka
This seems to happen a lot, any chance some simple program could be
installed to warn the maintainers of this so they can get to it in time?


Vladimír Čunát  writes:

> Hi.
>
>> On 04/24/2013 10:00 AM, Vladimír Čunát wrote:
>> Now there's a more serious issue:
>> http://hydra.nixos.org/build/4664332
>> it seems that directly hydra can't write new files.
>
> There are still/again some out-of-space problems on the build farm.
> http://hydra.nixos.org/build/4828865/nixlog/1/tail-reload
>
> Vlada
>
> ___
> 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


Re: [Nix-dev] nginx & systemd - not starting

2013-04-14 Thread Malcolm Matalka
Bombs away:

https://github.com/NixOS/nixos/pull/141

Domen Kožar  writes:

> Agreed, let's do that.
>
>
> On Sat, Apr 13, 2013 at 9:18 PM, Malcolm Matalka  wrote:
>
>> What about changing:
>>
>>   configFile = pkgs.writeText "nginx.conf" ''
>> ${cfg.config}
>>   '';
>>
>> To:
>>
>>   configFile = pkgs.writeText "nginx.conf" ''
>> user nginx nginx;
>> daemon off;
>> ${cfg.config}
>>   '';
>>
>> ?
>>
>>
>> Domen Kožar  writes:
>>
>> > Could you put that into nginx config example? Thanks!
>> >
>> >
>> > On Sat, Apr 13, 2013 at 7:06 PM, Malcolm Matalka 
>> wrote:
>> >
>> >> This was solved, it was a configuration issue on my nginx, you have to
>> >> turn demonizing off.
>> >>  On Apr 13, 2013 4:02 PM, "Malcolm Matalka"  wrote:
>> >>
>> >>> Hello,
>> >>> I'm trying to get Nginx running, but systemd does not want to start it.
>> >>> I can run the commands by hand, and those work, but not through
>> systemd.
>> >>>
>> >>> Here is output:
>> >>>
>> >>> systemctl status nginx.service
>> >>> nginx.service - Nginx Web Server
>> >>>   Loaded: loaded
>> >>>
>> (/nix/store/iqmmiai4rxq8b9wp161ll135kawb9bhp-unit/nginx.service)
>> >>>   Active: inactive (dead) since Sat 2013-04-13 15:45:24 CEST;
>> >>>   15min ago
>> >>>  Process: 31028
>> >>>
>> >>>
>>  ExecStart=/nix/store/jp7q64dir51p6a2z3vfis76yxq0315gc-nginx-1.2.4/bin/nginx
>> >>>  -c /nix/store/mbvjzv3ryz4rqvclbggn6fxq6k8z4hf7-nginx.conf -p
>> >>>  /var/spool/nginx (code=exited, status=0/SUCCESS)
>> >>>  Process: 31019
>> >>>
>> >>>
>>  
>> ExecStartPre=/nix/store/k2ba2yj60az352kjfzii86p59vhsyv0y-unit-script/bin/nginx-pre-start
>> >>>  (code=exited, status=0/SUCCESS)
>> >>>
>> >>> I'm not sure what other information is useful in debugging this.
>> >>>
>> >>> Thanks,
>> >>> /Malcolm
>> >>>
>> >>
>> >> ___
>> >> 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


Re: [Nix-dev] nginx & systemd - not starting

2013-04-13 Thread Malcolm Matalka
Great, I'll send a pull request tomorrow.
Den 13 apr 2013 22:55 skrev "Domen Kožar" :

> Agreed, let's do that.
>
>
> On Sat, Apr 13, 2013 at 9:18 PM, Malcolm Matalka wrote:
>
>> What about changing:
>>
>>   configFile = pkgs.writeText "nginx.conf" ''
>> ${cfg.config}
>>   '';
>>
>> To:
>>
>>   configFile = pkgs.writeText "nginx.conf" ''
>> user nginx nginx;
>> daemon off;
>> ${cfg.config}
>>   '';
>>
>> ?
>>
>>
>> Domen Kožar  writes:
>>
>> > Could you put that into nginx config example? Thanks!
>> >
>> >
>> > On Sat, Apr 13, 2013 at 7:06 PM, Malcolm Matalka 
>> wrote:
>> >
>> >> This was solved, it was a configuration issue on my nginx, you have to
>> >> turn demonizing off.
>> >>  On Apr 13, 2013 4:02 PM, "Malcolm Matalka" 
>> wrote:
>> >>
>> >>> Hello,
>> >>> I'm trying to get Nginx running, but systemd does not want to start
>> it.
>> >>> I can run the commands by hand, and those work, but not through
>> systemd.
>> >>>
>> >>> Here is output:
>> >>>
>> >>> systemctl status nginx.service
>> >>> nginx.service - Nginx Web Server
>> >>>   Loaded: loaded
>> >>>
>> (/nix/store/iqmmiai4rxq8b9wp161ll135kawb9bhp-unit/nginx.service)
>> >>>   Active: inactive (dead) since Sat 2013-04-13 15:45:24 CEST;
>> >>>   15min ago
>> >>>  Process: 31028
>> >>>
>> >>>
>>  ExecStart=/nix/store/jp7q64dir51p6a2z3vfis76yxq0315gc-nginx-1.2.4/bin/nginx
>> >>>  -c /nix/store/mbvjzv3ryz4rqvclbggn6fxq6k8z4hf7-nginx.conf -p
>> >>>  /var/spool/nginx (code=exited, status=0/SUCCESS)
>> >>>  Process: 31019
>> >>>
>> >>>
>>  
>> ExecStartPre=/nix/store/k2ba2yj60az352kjfzii86p59vhsyv0y-unit-script/bin/nginx-pre-start
>> >>>  (code=exited, status=0/SUCCESS)
>> >>>
>> >>> I'm not sure what other information is useful in debugging this.
>> >>>
>> >>> Thanks,
>> >>> /Malcolm
>> >>>
>> >>
>> >> ___
>> >> 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


Re: [Nix-dev] nginx & systemd - not starting

2013-04-13 Thread Malcolm Matalka
What about changing:

  configFile = pkgs.writeText "nginx.conf" ''
${cfg.config}
  '';

To:

  configFile = pkgs.writeText "nginx.conf" ''
user nginx nginx;
daemon off;
${cfg.config}
  '';

?


Domen Kožar  writes:

> Could you put that into nginx config example? Thanks!
>
>
> On Sat, Apr 13, 2013 at 7:06 PM, Malcolm Matalka  wrote:
>
>> This was solved, it was a configuration issue on my nginx, you have to
>> turn demonizing off.
>>  On Apr 13, 2013 4:02 PM, "Malcolm Matalka"  wrote:
>>
>>> Hello,
>>> I'm trying to get Nginx running, but systemd does not want to start it.
>>> I can run the commands by hand, and those work, but not through systemd.
>>>
>>> Here is output:
>>>
>>> systemctl status nginx.service
>>> nginx.service - Nginx Web Server
>>>   Loaded: loaded
>>>   (/nix/store/iqmmiai4rxq8b9wp161ll135kawb9bhp-unit/nginx.service)
>>>   Active: inactive (dead) since Sat 2013-04-13 15:45:24 CEST;
>>>   15min ago
>>>  Process: 31028
>>>
>>>  ExecStart=/nix/store/jp7q64dir51p6a2z3vfis76yxq0315gc-nginx-1.2.4/bin/nginx
>>>  -c /nix/store/mbvjzv3ryz4rqvclbggn6fxq6k8z4hf7-nginx.conf -p
>>>  /var/spool/nginx (code=exited, status=0/SUCCESS)
>>>  Process: 31019
>>>
>>>  
>>> ExecStartPre=/nix/store/k2ba2yj60az352kjfzii86p59vhsyv0y-unit-script/bin/nginx-pre-start
>>>  (code=exited, status=0/SUCCESS)
>>>
>>> I'm not sure what other information is useful in debugging this.
>>>
>>> Thanks,
>>> /Malcolm
>>>
>>
>> ___
>> 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


Re: [Nix-dev] NixOS on Linode

2013-04-13 Thread Malcolm Matalka
Shea was kind enough to help me out a lot (aka, doing every step then
teaching it to me).

I have taken what Shea has done and pushed it to the wiki.  These
instructions have been done at least twice, and I have plans to do it
again once I have migrated my Ubuntu Linode to my NixOS one and can
reinstall.

Sorry if wiping out the previous Wiki page was incorrect, these
instructions are more complete and verified, though.  Thank you all for
your help.

http://nixos.org/wiki/Install_NixOS_on_Linode

/Malcolm

s...@shealevy.com writes:

> Hi Malcolm,
>
> I have NixOS running on a linode instance using pv-grub. I originally 
> created three disk images: One to hold the /boot mountpoint (not 
> partitioned, a direct ext2 filesystem was placed on it), one to hold the 
> rest of my partitions, and one to hold the livecd. I then copied the 
> livecd image to the partition (IIRC just using dd), booted into that, 
> and installed my system like normal. Then I deleted the livecd image and 
> folded the free space into the "rest of my partitions" image. My NixOS 
> configuration can be found here: 
> https://bitbucket.org/shlevy/dotfiles/src/bf7f86a6bca2a5fd81614cd40777006bd0e4ff5c/nixos/linode-configuration.nix?at=default
>
> Cheers,
> Shea
>
> On 2013-04-08 16:27, Malcolm Matalka wrote:
>> Hello! I'm wondering if anyone has any tips on getting NixOS on 
>> Linode?
>> I know there is a wiki page, but it seems outdated.  The Linode docs 
>> on
>> running a custom linux distro are also incomplete.
>>
>> I was under the impression I could create a NixOS image on Vbox at 
>> home,
>> and then just upload that and run it, but this doesn't seem to be the
>> case.  Could anyone provide a high-level overview of it?
>>
>> Thanks!
>>
>> /Malcolm
>> ___
>> 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 mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] nginx & systemd - not starting

2013-04-13 Thread Malcolm Matalka
This was solved, it was a configuration issue on my nginx, you have to turn
demonizing off.
 On Apr 13, 2013 4:02 PM, "Malcolm Matalka"  wrote:

> Hello,
> I'm trying to get Nginx running, but systemd does not want to start it.
> I can run the commands by hand, and those work, but not through systemd.
>
> Here is output:
>
> systemctl status nginx.service
> nginx.service - Nginx Web Server
>   Loaded: loaded
>   (/nix/store/iqmmiai4rxq8b9wp161ll135kawb9bhp-unit/nginx.service)
>   Active: inactive (dead) since Sat 2013-04-13 15:45:24 CEST;
>   15min ago
>  Process: 31028
>
>  ExecStart=/nix/store/jp7q64dir51p6a2z3vfis76yxq0315gc-nginx-1.2.4/bin/nginx
>  -c /nix/store/mbvjzv3ryz4rqvclbggn6fxq6k8z4hf7-nginx.conf -p
>  /var/spool/nginx (code=exited, status=0/SUCCESS)
>  Process: 31019
>
>  
> ExecStartPre=/nix/store/k2ba2yj60az352kjfzii86p59vhsyv0y-unit-script/bin/nginx-pre-start
>  (code=exited, status=0/SUCCESS)
>
> I'm not sure what other information is useful in debugging this.
>
> Thanks,
> /Malcolm
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] nginx & systemd - not starting

2013-04-13 Thread Malcolm Matalka
Hello,
I'm trying to get Nginx running, but systemd does not want to start it.
I can run the commands by hand, and those work, but not through systemd.

Here is output:

systemctl status nginx.service
nginx.service - Nginx Web Server
  Loaded: loaded
  (/nix/store/iqmmiai4rxq8b9wp161ll135kawb9bhp-unit/nginx.service)
  Active: inactive (dead) since Sat 2013-04-13 15:45:24 CEST;
  15min ago
 Process: 31028
 
ExecStart=/nix/store/jp7q64dir51p6a2z3vfis76yxq0315gc-nginx-1.2.4/bin/nginx
 -c /nix/store/mbvjzv3ryz4rqvclbggn6fxq6k8z4hf7-nginx.conf -p
 /var/spool/nginx (code=exited, status=0/SUCCESS)
 Process: 31019
 
ExecStartPre=/nix/store/k2ba2yj60az352kjfzii86p59vhsyv0y-unit-script/bin/nginx-pre-start
 (code=exited, status=0/SUCCESS)

I'm not sure what other information is useful in debugging this.

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


Re: [Nix-dev] NixOS on Linode

2013-04-09 Thread Malcolm Matalka
Thanks Shea!

How do you boot the ISO on Linode.  What I did:

- Created a small Gentoo disk and a LiveCD disk

- Booted into Rescue Mode

- Downloaded the
  http://nixos.org/releases/nixos/latest-iso-minimal-x86_64-linux to the
  Gentoo disk

- dd'd the iso to my LiveCD disk

- Modified Configuration so LiveCD is the boot disk, and kernel is
  pv-grub (x86_64)

Then I try to boot and I get a grubdom screen and can't get it to boot.

Am I doing it right?

Thanks!

Once I can get a working Linode I'll push this information back to the
wiki.

/M

s...@shealevy.com writes:

> Hi Malcolm,
>
> I have NixOS running on a linode instance using pv-grub. I originally 
> created three disk images: One to hold the /boot mountpoint (not 
> partitioned, a direct ext2 filesystem was placed on it), one to hold the 
> rest of my partitions, and one to hold the livecd. I then copied the 
> livecd image to the partition (IIRC just using dd), booted into that, 
> and installed my system like normal. Then I deleted the livecd image and 
> folded the free space into the "rest of my partitions" image. My NixOS 
> configuration can be found here: 
> https://bitbucket.org/shlevy/dotfiles/src/bf7f86a6bca2a5fd81614cd40777006bd0e4ff5c/nixos/linode-configuration.nix?at=default
>
> Cheers,
> Shea
>
> On 2013-04-08 16:27, Malcolm Matalka wrote:
>> Hello! I'm wondering if anyone has any tips on getting NixOS on 
>> Linode?
>> I know there is a wiki page, but it seems outdated.  The Linode docs 
>> on
>> running a custom linux distro are also incomplete.
>>
>> I was under the impression I could create a NixOS image on Vbox at 
>> home,
>> and then just upload that and run it, but this doesn't seem to be the
>> case.  Could anyone provide a high-level overview of it?
>>
>> Thanks!
>>
>> /Malcolm
>> ___
>> 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 mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] NixOS on Linode

2013-04-09 Thread Malcolm Matalka
Thank you for the responses everyone.  I'm such a noob at this, I have
some questions.

I'm trying to follow the Rackspace directions, but I'm running into
issues.

1 - I couldn't get anywhere with the Rescue Disk, because I couldn't
install anything on ~.  So instead I created a Gentoo partition of 5
gigs, then devoted the remaining room for where I want to install NixOS

2 - I tried to follow the Rackspace directions but I ran into issues.
The farthest I got was nixos-install and it saying it would not install
because '/' was not a real mount point (or something similar, sorry I
don't have the output).

So here is what I think I should be doing, and hopefully someone can
school me:

1 - I need to have a place I can mount the NixOS install ISO

2 - I need to unsquash that filesystem into a dir so it looks like a
running installation iso

3 - I need to chroot into this, then I can install NixOS as if I were
installing while running the installation ISO.  In this case I should
mount my destination location to /mnt, modify
/mnt/etc/nixos/configuration.nix and do nixos-install

Unfortunately, at step 3 is where I get an error.

Do I understand the procedure correctly?  Am I messing up someplace
obvious?

Thanks!

Kevin Quick  writes:

> Malcolm,
>
> Yes, the wiki page is a bit outdated.  I recently built NixOS on Linode
> largely following this page instead:
> http://nixos.org/wiki/Install_NixOS_on_Rackspace_Cloud_Servers
>
> You'll need to build some other natively supported distribution first,
> and then you can generally follow the above to build a NixOS boot disk.
>
> In the Linode dashboard, configure the "kernel" for the NixOS
> configuration profile to be "pv-grub-x86_64".  I also selected "Xenify
> Distro" and "Disable updatedb", but not "modules.dep Helper" and
> "Automount devtmpfs".
>
> Here are some excerpts from my configuration.nix:
>
> { config, pkgs, modulesPath, ... }:
>
> {
>   require =
> [ ./hardware-configuration.nix   # This is essentially empty
>
>   # The following should be used, but can't be currently because
>   # services.mingettys.ttys is no longer a valid specification, so
>   # individual elements are reproduced below
>   # "${modulesPath}/virtualisation/xen-domU.nix"
> ];
>
>   boot = {
> initrd.kernelModules = [ "xen-blkfront" "xen-fbfront" "xen-netfront" 
> "xen-kbdfront" ];
> loader.grub = {
>   enable = true;
>   version = 1;
>   extraPerEntryConfig = "root (hd0)";
>   device = "nodev";
> };
> extraKernelParams=["root=/dev/xvda" "console=hvc0" "earlyprintk=xen"];
> kernelPackages = pkgs.linuxPackages_3_7;
>   };
>   fileSystems =
> [ { mountPoint = "/";
> device = "/dev/xvda";
>options = "noatime,nodiratime,errors=remount-ro,barrier=0";
>   }
> ];
>   swapDevices = [ { device = "/dev/xvdb"; }];
>   ...
>
> Good Luck,
>   Kevin
>
> Malcolm Matalka writes:
>
>> Hello! I'm wondering if anyone has any tips on getting NixOS on Linode?
>> I know there is a wiki page, but it seems outdated.  The Linode docs on
>> running a custom linux distro are also incomplete.
>>
>> I was under the impression I could create a NixOS image on Vbox at home,
>> and then just upload that and run it, but this doesn't seem to be the
>> case.  Could anyone provide a high-level overview of it?
>>
>> Thanks!
>>
>> /Malcolm
>> ___
>> 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] NixOS on Linode

2013-04-08 Thread Malcolm Matalka
Hello! I'm wondering if anyone has any tips on getting NixOS on Linode?
I know there is a wiki page, but it seems outdated.  The Linode docs on
running a custom linux distro are also incomplete.

I was under the impression I could create a NixOS image on Vbox at home,
and then just upload that and run it, but this doesn't seem to be the
case.  Could anyone provide a high-level overview of it?

Thanks!

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


[Nix-dev] nixos-install fail due to sync

2013-04-08 Thread Malcolm Matalka
Hello!

I'm trying to do a new install of nixos on VirtualBox, and nixos-install
is failing because of a sync call in 'switch-to-configuration'.  The
error is that it cannot run sync.  I believe this is a known issue but
in a quick search of mailing list I didn't see it.

Is there a known solution?

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


Re: [Nix-dev] ncurses failing with glibc

2013-04-07 Thread Malcolm Matalka
I got some help on #nixos, my problem was actually that I didn't upgrade
gcc-wrapper.
 On Apr 7, 2013 1:59 PM, "Malcolm Matalka"  wrote:

> Hello, last night I did:
>
> nixos-rebuild switch
> nix-env -u '*'
>
> And now I have the following error when trying to link ncurses programs:
>
> /run/current-system/sw/lib/libncursesw.so: undefined reference to
> `memcpy@GLIBC_2.14'
>
> I've tried uninstalling and reinstalling ncurses with no effect.  I
> noticed there is another thread related to this but reinstalling Opera
> seemed to have fixed that persons issue.  What is the suggested
> solution?
>
> Thanks,
> /Malcolm
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] ncurses failing with glibc

2013-04-07 Thread Malcolm Matalka
Hello, last night I did:

nixos-rebuild switch
nix-env -u '*'

And now I have the following error when trying to link ncurses programs:

/run/current-system/sw/lib/libncursesw.so: undefined reference to
`memcpy@GLIBC_2.14'

I've tried uninstalling and reinstalling ncurses with no effect.  I
noticed there is another thread related to this but reinstalling Opera
seemed to have fixed that persons issue.  What is the suggested
solution?

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


Re: [Nix-dev] Bad bash in NixOS?

2012-12-06 Thread Malcolm Matalka
In this case the problem isn't a package but using the interactive
shell.  Could I get an updated version of that just for interactive use
but not for building new packages?


Lluís Batlle i Rossell  writes:

> On Thu, Dec 06, 2012 at 07:14:55AM -0500, Malcolm Matalka wrote:
>> How bad is this to do in my own branch?  I've only fooled with nixpkgs a bit.
>
> You'll loose prebuilt binaries from hydra. Other than that, all should be 
> fine.
>
> Remember that if that annoys you in some specific package, you can override 
> the
> bash in that package, only. Not /bin/sh though.
>
>> Peter Simons  writes:
>> 
>> > Hi Malcolm,
>> >
>> >  > This appears to be an acknowledged bug in bash with a patch out[1].  Is
>> >  > this coming to NixOS?  Is it here right now and I just am not upgrading
>> >  > properly?
>> >
>> > updates to Bash take a while to arrive in Nixpkgs, because a change like
>> > that trigger rebuilds of every single package that we have. I guess, the
>> > patch will be included when the stdenv-updates branch is going to merged
>> > the next time.
>> >
>> > Take care,
>> > Peter
>> >
>> > ___
>> > 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 mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Bad bash in NixOS?

2012-12-06 Thread Malcolm Matalka
How bad is this to do in my own branch?  I've only fooled with nixpkgs a bit.

/M

Peter Simons  writes:

> Hi Malcolm,
>
>  > This appears to be an acknowledged bug in bash with a patch out[1].  Is
>  > this coming to NixOS?  Is it here right now and I just am not upgrading
>  > properly?
>
> updates to Bash take a while to arrive in Nixpkgs, because a change like
> that trigger rebuilds of every single package that we have. I guess, the
> patch will be included when the stdenv-updates branch is going to merged
> the next time.
>
> Take care,
> Peter
>
> ___
> 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] Bad bash in NixOS?

2012-12-01 Thread Malcolm Matalka
The version of bash in the NixOS I am running (which I think is fairly
up to date) has a bug in it where if you have try to tab-expand an env
variable it escapes it, so:

export FOO=$HOME/bar

becomes

export FOO=\$HOME/bar

This appears to be an acknowledged bug in bash with a patch out[1].  Is
this coming to NixOS?  Is it here right now and I just am not upgrading
properly?

/Malcolm

[1]
http://gnu-bash.2382.n7.nabble.com/bash-tab-variable-expansion-question-td9614.html
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Language-specific package managers

2012-11-30 Thread Malcolm Matalka
The situations you've described are basically the ones I'm in.  Luckily
the ocaml package manager I am using just does local installs the
packages in the home dir.  I actually think I have figured out why it
wasn't building packages for me before, and think I can get around it so
I can just use the ocaml package manager for fast development and once
things become static make real Nix expressions from it.

/M

Florian Friesdorf  writes:

> Hi Malcolm,
>
> Malcolm Matalka  writes:
>> Thanks for the complete response Marc.
>>
>> For the mean time, the current solution I'm working on is manually
>> converting packages to Nix.  The translation is pretty straight forward
>> and I should be able to write a tool to automatically do it.  It's not
>> optimal but I have been able to get all of the packages I care about
>> into my local nixpkgs repo and will submit them to the master repo once
>> I'm satisfied with them.
>
> I like the approach of (semi-)automatically creating nix expressions.
>
> In my understanding (and I am pretty determined but happy to change it
> based on good arguments):
>
> A set of nix expressions always produces the very same output.
>
> For me this means (so far) that ad-hoc resolving dependencies within nix
> is not needed. I want to resolve dependencies ad-hoc when creating a new
> set of nix expressions, but not when I install a package via nix.
>
> Therefore the resolver belongs outside of nix.
>
> If I want to install things ad-hoc in a nix system, I need to create a
> bridge between a nix world where everything is determined and a fluent
> world where things are installed as they are available. These fluent
> things cannot reside in the nix store. Whether such dynamically managed
> things belong into /var or a user's home is another discussion.
>
> For nodejs I was quit happy that I got such a dynamic profile via:
> % npm config set prefix ~/.nodejs
>
> Now installing things "globally" end up in ~/.nodejs and the bins in
> ~/.nodejs/.bin, which I included in my path. Perfect quick and dirty
> installation of the view nodejs packages I need.
>
> For python we are aiming at something similar: generate nix expression
> and check them into git for commonly needed packages, use the rest via
> easy_install, but give the people the tool to create nix expressions for
> whatever they need.
>
> Looking forward to your ocaml work!
>
> regards
> forian
>
>> Marc Weber  writes:
>>
>>> I created 
>>> hack-nix for Haskell, which dumps hackage. contains a brute force
>>> dependency solver
>>>
>>> nixpkgs-ruby-overlay [1] which dumps rubyforge (which is quite usable, but 
>>> not perfect yet)
>>> nixpkgs-python-overlay [2] which dumps PyPi (experimental, dependency 
>>> inforamtion is not complete enough)
>>> does not do backtracking, if dependencies fails its you having to to
>>> tell it "try lib-A version 2.0.0".
>>>
>>> They are special because they all work on a "dump of packages" creating
>>> .nix derivations on the fly whereas cabal2nix creates .nix files very
>>> close to what you find in nixpkgs.
>>>
>>> They all create kind of shell script you can source to augment the
>>> environment variables, so that dependencies are found.
>>> Thus you can have multiple "sets of packages" for different targen
>>> porjects within the same user account without conflicts - however you
>>> always have to load such an environment, eg by
>>>
>>>   # run bash with ruby packgaes found in environment "name"
>>>   ruby-env-name bash
>>>
>>> Known additional universes:
>>>   - perl
>>>   - java, scala (ivy, maven, sbt)
>>>   - 
>>>
>>> There are many ideas and ways to implement such.
>>> Eg for scala/maven/ivy/... one way to think about it would be using the
>>> store as "installation place", but not using much about the nix* tools
>>> otherwise.
>>>
>>> then sbt build would just store everything in store.
>>> Other ways are creating .nix files for a target on the fly - such as
>>> sbt/ivy/mvn create-nix-derivations (which is close to what cabal2nix
>>> does).
>>>
>>> The downside is that you may have to run a tool before you can succeed
>>> with nixos-rebuild-switch, because not everything may be packaged.
>>>
>>> The perfect way would be including a SOT solver in nix, which hasn't
>>> beeen done yet - and which was not favored by Eelco in the pa

Re: [Nix-dev] Language-specific package managers

2012-11-26 Thread Malcolm Matalka
Thanks for the complete response Marc.

For the mean time, the current solution I'm working on is manually
converting packages to Nix.  The translation is pretty straight forward
and I should be able to write a tool to automatically do it.  It's not
optimal but I have been able to get all of the packages I care about
into my local nixpkgs repo and will submit them to the master repo once
I'm satisfied with them.

/M

Marc Weber  writes:

> I created 
> hack-nix for Haskell, which dumps hackage. contains a brute force
> dependency solver
>
> nixpkgs-ruby-overlay [1] which dumps rubyforge (which is quite usable, but 
> not perfect yet)
> nixpkgs-python-overlay [2] which dumps PyPi (experimental, dependency 
> inforamtion is not complete enough)
> does not do backtracking, if dependencies fails its you having to to
> tell it "try lib-A version 2.0.0".
>
> They are special because they all work on a "dump of packages" creating
> .nix derivations on the fly whereas cabal2nix creates .nix files very
> close to what you find in nixpkgs.
>
> They all create kind of shell script you can source to augment the
> environment variables, so that dependencies are found.
> Thus you can have multiple "sets of packages" for different targen
> porjects within the same user account without conflicts - however you
> always have to load such an environment, eg by
>
>   # run bash with ruby packgaes found in environment "name"
>   ruby-env-name bash
>
> Known additional universes:
>   - perl
>   - java, scala (ivy, maven, sbt)
>   - 
>
> There are many ideas and ways to implement such.
> Eg for scala/maven/ivy/... one way to think about it would be using the
> store as "installation place", but not using much about the nix* tools
> otherwise.
>
> then sbt build would just store everything in store.
> Other ways are creating .nix files for a target on the fly - such as
> sbt/ivy/mvn create-nix-derivations (which is close to what cabal2nix
> does).
>
> The downside is that you may have to run a tool before you can succeed
> with nixos-rebuild-switch, because not everything may be packaged.
>
> The perfect way would be including a SOT solver in nix, which hasn't
> beeen done yet - and which was not favored by Eelco in the past (maybe
> for good reason). Eg Eclipse plugin system works this way: the SAT
> solver tries to find one working set of dependencies to satisfy the
> setup you want - however the search space may be very big - which is why
> I limit the simple brute force solver used by hack-nix by passing only a
> subset of all packages found on hackage (latest versions & same manually
> selected ones).
>
> While such a generic approach may seem perfect, there are these
> downsides:
>
> - its harder to controls when rebuilds will take place, because small
>   changes in the pool may cause the solver arbitrarely choose a
>   different solution, otherwise its you having to force eg library-A
>   version should be 1.0 like thing.
>
>   and such rebuilds are bad, because its easy to loos track about which
>   combinations actually work, because while constrtaints are fine, they
>   are never complete.
>
>   Thus in any case there will be lots of maintainance effort.
>
> - its also hard and time consuming (for humans and the cpu) to evaluate
>   all solutions over and over again - which may not be the perfect end
>   user experience. Eg you do'nt want wont to wait 30secs for the
>   evaluation to finish just to install "gnu sed"
>
>> translation apps for all language package manager types?  Specifically I
>> am looking at opam, the new ocaml package manager.
> I never used opam.
>
> Can you copy paste a package description with dependency information so
> that we can get an idea about how it actually looks like?
>
> Cabal is kind of "static", but very complex.
> Example:
> http://hackage.haskell.org/packages/archive/darcs/2.8.3/darcs.cabal
> scroll down to "build-depends" which depend on "flags" which are
> automatiacally chosen depending on the ghc version available - but
> flags are also used to enable/disable features or test cases
>
> for python and ruby there are .py or gemspec files.
> The problem is that they may even run python or ruby code - thus
> there may be packages whos dependencies may depend on configuration
> options and or the system which makes it harder to to dump such info
> into something which can be read and used by nix.
>
> [1] ruby: http://gitorious.org/nixpkgs-ruby-overlay
> [2] python: http://gitorious.org/nixpkgs-python-overlay
>
> For ruby and Haskell I also have some code which can create package
> descriptions for dev versions of packages which then can be read by the
> code creating the derivations on the fly.
>
> And then there is stills the question:
> Is it efficient to download 40.000 package descriptions if you need only
> 10? The lazy behaviour of the native package managers for ruby (gem),
> python (eg pip) etc somehow make this question obsolete.
>
> Just think about how many perl packag

[Nix-dev] package aliases

2012-11-25 Thread Malcolm Matalka
I'm creating a series of packages where one of them is just an alias for
installing the entire suite, so it doesn't have any build script or src.
What is the appropriate way to accomplish this?


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


Re: [Nix-dev] fetchgit - why sha256 protection?

2012-11-19 Thread Malcolm Matalka
Could fetchgit handle that on its own though?

Also, at least for github, if you want to install a specific tag, which
isn't always the case, you can link to the .zip copy of it from the
github page.

/M

Shea Levy  writes:

> Is it terribly difficult to run nix-prefetch-git? Built-in vcs-specific 
> support doesn't strike me as simplification.
>
> On Nov 19, 2012, at 7:10 AM, Joachim Schiele  wrote:
>
>> - Original message - 
>> > Excerpts from Eelco Dolstra's message of Mon Nov 19 11:36:00 +0100 2012: 
>> > > No.  "fetchgit" won't work if it's not a fixed-output derivation, 
>> > > because it won't necessarily have network access (it might run in a 
>> > > chroot). 
>> > Again: I'm not talking about the current state. I'm aware about how it 
>> > works. 
>> > I'm talking about: 
>> > "Does it make sense to introduce a special fixed hash for git repos" or 
>> > "what about implementing git checkouts natively so that passing the 
>> > git's hash is enough"? 
>> > git sources are very common today. 
>> 
>> True, simplification sounds like a good idea. 
>> 
>> 
>> > Marc Weber 
>> > ___ 
>> > 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 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] Curl certs

2012-11-11 Thread Malcolm Matalka
I'm trying to create a package that, as part of its make, downloads some
stuff through curl.  Most work but one in particular is failing due to
certificates (see below).  This works if I do it on the command line.  I
tried adding 'cacert' to my buildInputs and parameters, but that didn't
seem to work.  What is the correct solution?  Still quite new to Nix so
apologies if this is a common question, I didn't find anything in my
google searches.

Thanks,
/M

curl -OL
https://gforge.inria.fr/frs/download.php/31595/dose3-3.1.2.tar.gz
  % Total% Received % Xferd  Average Speed   TimeTime Time
  Current
 Dload  Upload   Total   SpentLeft
 Speed
  0 00 00 0  0  0 --:--:-- --:--:-- --:--:--
  0curl: (60) SSL certificate problem: self signed 
certificate in certificate chain
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
make[2]: *** [dose3-3.1.2.tar.gz] Error 60
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Language-specific package managers

2012-11-11 Thread Malcolm Matalka
Hello!

I am wondering what the Nix view on language specific package managers
is.  They seem at odds with the goals of Nix. I see there is a tool for
converting cabal packages to Nix packages, is the idea to have little
translation apps for all language package manager types?  Specifically I
am looking at opam, the new ocaml package manager.

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


[Nix-dev] upgrading `gcc-wrapper-4.7.2' to `gcc-wrapper-4.6.3'

2012-11-10 Thread Malcolm Matalka
Hello,
I just installed NixOS yesterday so I'm quite new, but I did:

# nix-channel --update
# nix-env -u '*'

And I got:

upgrading `gcc-wrapper-4.7.2' to `gcc-wrapper-4.6.3'
building path(s)
`/nix/store/ff6a8q2wlyxhnfhx43b35h10b0gnlr31-user-environment'
created 811 symlinks in user environment

I'm curious why it is considered an upgrade to go from 4.7.2 to 4.6.3.

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