[Nix-dev] Clear all

2013-09-21 Thread Stewart Mackenzie
Hi all, I've only recently found out about nix-shell or what was nix-env --run-env. Though i've completely polluted my user space by installing everything with nix-env -i pkgs . I'd like to clear it up and start from scratch properly. How do i do that? Delete the profiles directory?

Re: [Nix-dev] Clear all

2013-09-21 Thread Stewart Mackenzie
Mathijs Kwik math...@bluescreen303.nl wrote: You can go a step further and define multiple sub-profiles. For example 1 you typically use during c development. And another for haskell development, and yet another for an experimental python3 environment. Then you can jump between those

Re: [Nix-dev] Clear all

2013-09-22 Thread stewart mackenzie
Should one use nix-shell to change to this environment? No, the myEnvFun environments create their own scripts for this. If you have an environment called foo, you will have a ~/.nix-profile/dev-envs/foo file containing most stuff that needs to be set. I'm afraid all I have in my

Re: [Nix-dev] Clear all

2013-09-22 Thread stewart mackenzie
Actually I just want to make this message go away. After compiling and running oz I try run the emulator. $ ./ozemulator ./ozemulator: error while loading shared libraries: libboost_program_options.so.1.54.0: cannot open shared object file: No such file or directory Thanks kindly Stewart

[Nix-dev] Change /nix to /home/user/nix

2013-10-06 Thread stewart mackenzie
Hi all, Is there a way to correctly change /nix to /home/user/nix? I'm running out of space on my root partition and I would prefer having nix on my 'home' partition. Kind regards Stewart ___ nix-dev mailing list nix-dev@lists.science.uu.nl

[Nix-dev] linking error

2013-10-17 Thread stewart mackenzie
Dear nixors, I've reinstalled my system using LVM to allow for greater space on root if I run out, so this is a fresh clean system. I've setup a mozart-oz development environment with all the needed dependencies (although I still had to nix-env -i * them as the weren't in ~/.nix-profile/lib, I

Re: [Nix-dev] linking error

2013-10-18 Thread Stewart Mackenzie
Hi Peter, Yay, I found a bug. I ended up with a dirty hack by editing my ~/.bashrc by adding `export LD_LIBRARY_PATH=~/.nix-profile/lib:$LD_LIBRARY_PATH` to it. A note on nixpkgs, that current mozart is mozart1, I'm working on getting nixos support for mozart2, the completely overhauled,

[Nix-dev] Hydra to build RPMs

2014-12-03 Thread stewart mackenzie
Hi all, So the below is a hydra release.nix used to do CI. Steps to replicate: * setup a hydra jobset * configure a jobset to point to github.com/processone/ejabberd * another to the git repo containing the below release.nix * add another jobset pointing to github.com/nixos/nixpkgs repo * let

Re: [Nix-dev] Hydra to build RPMs

2014-12-04 Thread stewart mackenzie
So you're absolutely correct. Here is my solution which correctly downloads the image. Though a new error has appeared: rsync needs libacl.so.1()(64bit) satisfied by libacl needs libacl.so.1(ACL_1.0)(64bit) satisfied by libacl needs libc.so.6(GLIBC_2.15)(64bit) satisfied by

Re: [Nix-dev] OpenSSL

2014-12-15 Thread stewart mackenzie
Vladimir I'm shocked, I've been using this method for a while now. I am pretty sure myEnvFun doesn't do this export the needed env paths. Could you be so kind and copy-paste a frequently used development environment from your config.nix script. (preferably one with many dependency libs) Kind

Re: [Nix-dev] OpenSSL

2014-12-15 Thread stewart mackenzie
Yes indeed, I was so interested in that pull request I created it :) On Mon, Dec 15, 2014 at 7:40 PM, Vladimír Čunát vcu...@gmail.com wrote: On 12/15/2014 12:39 PM, Vladimír Čunát wrote: BTW, you might be interested in https://github.com/NixOS/nixpkgs/pull/5306 Ah, never mind, I was being

Re: [Nix-dev] Ejabberd Options

2014-12-15 Thread stewart mackenzie
-ejabberd instead of ejabberd? Kind regards Stewart On Mon, Dec 15, 2014 at 8:14 PM, Luca Bruno lethalma...@gmail.com wrote: On 15/12/2014 12:55, stewart mackenzie wrote: Is the configuration of the ejabberd.nix nixos module compatible with your chaatz-ejabberd? Yes one-for-one compatible Add

Re: [Nix-dev] OpenSSL

2014-12-16 Thread stewart mackenzie
okay the solution worked perfectly. Thanks I've changed all my envs. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] Ejabberd Options

2014-12-16 Thread stewart mackenzie
Absolutely Luca, you're absolutely right. I suspect a book needs to be written on NixOS + Hydra + Nixops, this will be a good way to formalize knowledge and share it. Do you know of any books in progress? /sjm My main hint: don't make assumptions about magic or anything like that, Nix is a

Re: [Nix-dev] Ejabberd Options

2014-12-16 Thread stewart mackenzie
On Tue, Dec 16, 2014 at 6:04 PM, Luca Bruno lethalma...@gmail.com wrote: The best you can do is reading the nix manual, and reading code and playing with nix in general, not through hydra where it takes time to test things. github.com/nixos/nixpkgs is the first frequency ranked tile on my

Re: [Nix-dev] Ejabberd Options

2014-12-16 Thread stewart mackenzie
Thomas, that's a very nice article thank you! On Tue, Dec 16, 2014 at 6:41 PM, Thomas Hunger tehun...@gmail.com wrote: I also found this introduction useful: https://medium.com/@MrJamesFisher/nix-by-example-a0063a1a4c55 ___ nix-dev mailing list

Re: [Nix-dev] Breaking changes log

2014-12-19 Thread stewart mackenzie
Ah indeed thank you for the correction. Though my suggestion is to adopt C4 in its entirety. There would be no unstable master branch. At all times there is only one branch, that being master, and the stable APIs as part of this master branch remain stable, to be depricated and eventually made

[Nix-dev] Adoption of C4

2014-12-19 Thread stewart mackenzie
A new thread is spawned. I disagree that it would slow down development. Issues would be merged much faster. Regarding feature requests: The logic goes that you implement the feature yourself. Don't nag core dev to satisfy your fanciful flights. They'll burnout. Besides it'll increase community

Re: [Nix-dev] Adoption of C4

2014-12-19 Thread stewart mackenzie
The minimal idea is: maintainers dont do 'deep' code reviews. They just glance over the patch and make sure it qualifies as a correct patch, as defined by C4. After travis goes green they hit merge. If a bug gets in, its not their fault. The community responds quickly with a fixing patch. Main

Re: [Nix-dev] Adoption of C4

2014-12-19 Thread stewart mackenzie
I disagree I've closed patches because I cant be bothered arguing about the nitty gritty. If patches are merged quickly and efficiently the contributor gets an endorphin boost which is addictive. This creates a positive feedback loop in that you get more participation.

Re: [Nix-dev] Adoption of C4

2014-12-19 Thread stewart mackenzie
Checking that the patch is correct then hitting the merge button is hardly dirty work, but its better than deep code review maintainers burning out, whom tend to become a tad nasty. Causing a vicious cycle. Who does the dirty work? Those people whom are affected by the introduced problem. Whom

[Nix-dev] Dataflow

2014-12-25 Thread stewart mackenzie
So I've packaged together a number of erlang dependencies together, then compiled them a number of times in a row. I noticed that the error outputs were different each time. To me this means nix isn't deterministic. I'd like to discuss the inclusion of the dataflow language concept into nix.

Re: [Nix-dev] Dataflow

2014-12-25 Thread stewart mackenzie
Hello Moritz, On Thu, Dec 25, 2014 at 10:39 PM, Moritz Ulrich mor...@tarn-vedra.de wrote: stewart mackenzie setor...@gmail.com writes: So I've packaged together a number of erlang dependencies together, then compiled them a number of times in a row. I noticed that the error outputs were

Re: [Nix-dev] Dataflow

2014-12-25 Thread stewart mackenzie
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

Re: [Nix-dev] Dataflow

2014-12-25 Thread stewart mackenzie
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? My initial problem was non-deterministic error messages. the-kenny and James helped me realize it is

Re: [Nix-dev] Dataflow

2014-12-25 Thread stewart mackenzie
So bang goes that idea of Declarative Concurrency, as it's already coarsely implemented and seems to be correct. Correction, Declarative Concurrency isn't implemented into nix-the-language but determinism is achieved via another more procedural means.

[Nix-dev] nixops elastic ip

2014-12-29 Thread stewart mackenzie
Hello, Ie is there a way to make Nixops control Amazon's Elastic IP to automatically allocate and assign an IP address? Kind regards Stewart ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] nixops elastic ip

2014-12-30 Thread stewart mackenzie
Brilliant ta! I have a question about the code. What is the name-of-ip also isn't it resources.elastic-ip and not resources.elasticIP On Wed, Dec 31, 2014 at 1:07 AM, Ben Doyle ben.do...@skedge.me wrote: Yes. Here's a minimal nix expression that provisions and assigns an Elastic IP:

Re: [Nix-dev] Erlang Package Manager

2014-12-30 Thread stewart mackenzie
Dear all, I am an Erlang programmer and I use NixOS almost exclusively. Here is a nix project that compiles and deploys MongooseIM https://github.com/headcounter/deployment You can visit www.headcounter.org/hydra to see the CI. Particularly this build: https://headcounter.org/hydra/eval/14531

Re: [Nix-dev] NixOS 14.12 released

2014-12-31 Thread stewart mackenzie
Great way to start off the new year! Thank you! ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] [erlang-questions] Erlang Package Manager

2014-12-31 Thread stewart mackenzie
Nix has cabal2nix, npm2nix what is needed is a rebar2nix. Lets not get too dramatic about it all. Next you could package Erl deps in the same fashion nix packages python, perl and other languages ie include the name pythonPackages.package_name. It really isnt far flung to imagine an

Re: [Nix-dev] [erlang-questions] Erlang Package Manager

2014-12-31 Thread stewart mackenzie
On Wed, Dec 31, 2014 at 11:47 PM, Anthony Ramine n.ox...@gmail.com wrote: How do you handle multiple versions of a single package? Okay allow me to give a rather detailed answer describing in how NixOS works. I'll also describe how I envisage Erlang adopting Nix as its package manager. So I

Re: [Nix-dev] Funding Hydra Development

2015-01-22 Thread stewart mackenzie
On Thu, Jan 22, 2015 at 8:52 PM, Vladimír Čunát vcu...@gmail.com wrote: (They can distribute the content signed by trusted people, but distribution isn't much of a problem in our case, IMHO.) Data dissemination over a point-to-point network is a costly affair. It's a problem. Why pay amazon

Re: [Nix-dev] Google Summer of Code 2015

2015-02-04 Thread stewart mackenzie
Possibly so, though maybe limiting the scope of this GSoC project to reproducible builds is a suitable approach? Thus laying the foundation for whatever dissemination strategy to be adopted in future. On 5 Feb 2015 14:18, Michael Raskin 7c6f4...@mail.ru wrote: As for web of trust and NDN, I am

Re: [Nix-dev] Google Summer of Code 2015

2015-02-04 Thread stewart mackenzie
Yes indeed NDN will change, as does everything :-) I love the idea of adding NDN as a retrieval method. The way I understand it, NDN has a concept of a face, which is designed to talks over different protocols. In other words NDN /becomes/ your multiprotocol non-centralized thingy-ma-gig.

Re: [Nix-dev] Google Summer of Code 2015

2015-02-04 Thread stewart mackenzie
I prefer the NDN approach for a number of reasons: * An Alan Kay quote: The Internet was done so well that most people think of it as a natural resource like the Pacific Ocean, rather than something that was man-made. When was the last time a technology with a scale like that was so error-free?

Re: [Nix-dev] Google Summer of Code 2015

2015-02-04 Thread stewart mackenzie
to arising issues and thus more responsive. This project lays the foundations of a truly distributed build system. The goal of this project is to ensure Hydra's builds are 100% reproducible. Skills * Perl * C/C++ Contacts Stewart Mackenzie setor...@gmail.com

Re: [Nix-dev] Google Summer of Code 2015

2015-02-05 Thread stewart mackenzie
The main problems NDN solves are: TCP is inherently a conversational point-to-point network. We now do content dissemination over a point-to-point network as a side effect. It doesn't work well in 3 ways: * you can't make a viable security model - secure pipes vs secure data. (spam still gets

Re: [Nix-dev] Google Summer of Code 2015

2015-02-05 Thread stewart mackenzie
On Thu, Feb 5, 2015 at 5:56 PM, Michael Raskin 7c6f4...@mail.ru wrote: This is called breaking many use cases for email. This means I cannot write email on a blackboard in the beginning of a talk. Not so, I issue an Interest packet which floods into the network and finds you. The Interest

Re: [Nix-dev] Google Summer of Code 2015

2015-02-05 Thread stewart mackenzie
On Thu, Feb 5, 2015 at 5:10 PM, Michael Raskin 7c6f4...@mail.ru wrote: * you can't make a viable security model - secure pipes vs secure data. (spam still gets through, network is blind to the data) You cannot solve spam problem just by switching protocols without breaking a ton of

Re: [Nix-dev] Again: Why don't these people have commit access

2015-01-18 Thread stewart mackenzie
I request that we come up with a detailed and carefully thought out contribution guideline which evolves and grows. It should keep pychopaths under control, expand bottlenecks and make this development process fun! I've suggested Pieter Hintjens C4 and ensuing private discussions made it clear

[Nix-dev] Funding Hydra Development

2015-01-21 Thread stewart mackenzie
Dear all, A recent thread regarding contributors brought up a point about throwing a stack of money at further devlopment and refinement of Hydra. Wouldn't it be nice to: - be able to do as they do in the OpenBSD world by living on master. When things break the fix comes in quick. No hanging

Re: [Nix-dev] Funding Hydra Development

2015-01-21 Thread stewart mackenzie
: homing-on-code.blogspot.hk/2015/01/code-rot-openbsd.html (read the OpenBSD section) Kind regards Stewart On Thu, Jan 22, 2015 at 9:51 AM, James Cook james.c...@utoronto.ca wrote: On 21 January 2015 at 17:25, stewart mackenzie setor...@gmail.com wrote: James you execute code that wasn't written

Re: [Nix-dev] Funding Hydra Development

2015-01-21 Thread stewart mackenzie
Forgive me, this is my fault for not being clear enough. Yes I too would feel uncomfortable about a nixos@home setup unless of course it includes some kind of blockchain. Even then it would be too expensive to run. ___ nix-dev mailing list

Re: [Nix-dev] Why are there so many branches in the nixpkgs repo

2015-02-17 Thread stewart mackenzie
Might I ask, what is the point of stale code not being executed? And if code is being written to sit stale on a branch, isn't that wasted talent? Lastly (if there is no renaming attic/name) it just confuses people. Having code merged into a canonical branch asap makes for faster feedback cycles

Re: [Nix-dev] setting environment values.

2015-01-28 Thread stewart mackenzie
Tim you need to do something like this: ``` let pkgs = import nixpkgs {}; stdenv = pkgs.stdenv; in rec { erlangEnv = pkgs.myEnvFun { name = erlang; buildInputs = with pkgs; [ erlang rebar openssl git binutils bash emacs which mc meld tig elixir ];

Re: [Nix-dev] setting environment values.

2015-01-28 Thread stewart mackenzie
add something like this: extraCmds = '' export SOMEPATH_ERLANG=${erlang}/opt/path/to/libs; ''; }; ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] setting environment values.

2015-01-28 Thread stewart mackenzie
Okay, I'm at the point too where I need to see your nix-expression. Though, by creating a package, in other nix-expressions you would simply refer to that library by ${library_name}. That should achieve your propagation needs. ___ nix-dev mailing list

[Nix-dev] Bit-wise identical builds

2015-03-24 Thread stewart mackenzie
Seems google released http://bazel.io/. Gaining inspiration on how they get identical bitwise builds might be interesting. /sjm ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] Update stable?

2015-05-11 Thread stewart mackenzie
Thanks Domen for your time, much appreciated! ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

[Nix-dev] Update stable?

2015-05-11 Thread stewart mackenzie
When was the last time stable was updated? I think things might be getting a tad stale in there. /sjm ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

[Nix-dev] Ctrl-pnfb

2015-05-11 Thread stewart mackenzie
So after using a mac at work I miss one thing i'd like to do on nix. That is everywhere (input boxes, browsers, tex editors, IDEs) I can navigate my cursor using: ctrl-f :forward ctrl-b :backward ctrl-n :next line ctrl-p : previous line is this possible within nixos? If so, how so? /sjm

[Nix-dev] Can't open /dev/null: Permission denied

2015-05-10 Thread stewart mackenzie
I'm trying to get gnuradio-osmosdr to see the new hackrf package. when I try compile gnuradio-osmosdr: `nix-build -A gnuradio-osmosdr` in my nixpkgs cloned repo I get this: ''' ... exporting git://git.osmocom.org/gr-osmosdr (rev refs/tags/v0.1.4) into

Re: [Nix-dev] Can't open /dev/null: Permission denied

2015-05-10 Thread stewart mackenzie
Herwig, thanks, yes it was my udev updates. On Sun, May 10, 2015 at 11:58 PM, Herwig Hochleitner hhochleit...@gmail.com wrote: I've seen such errors, not sure what triggers them, maybe udev updates? For me, rebooting normally solves the problem. ___

Re: [Nix-dev] Possible breaking changes from staging

2015-05-11 Thread stewart mackenzie
Well done Luca! Great work! ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] hydra build fails on unstable localhost

2015-04-07 Thread stewart mackenzie
yes it helps it run # hydra-init okay all good thanks /sjm ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

[Nix-dev] hydra build fails on unstable localhost

2015-04-07 Thread stewart mackenzie
Hi, an unstable localhost has an issue with building hydra: Error message: building make flags: SHELL=/nix/store/4dd49ybmqlaq2xw6cb4wxrgs51zhv19s-bash-4.3-p33/bin/bash building all-recursive Making all in src make[1]: Entering directory

Re: [Nix-dev] hydra build fails on unstable localhost

2015-04-07 Thread stewart mackenzie
Okay this is great progress. Moritz, thanks for that info, I did as you suggested, then switched. but exactly the same errors appeared: [root@server:~] $ hydra-create-user sjm --password 123 --role admin DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached

Re: [Nix-dev] [UTILS] nixos-scripts - searching for testers / contributors!

2015-06-09 Thread stewart mackenzie
This is a great idea, after introducing nix to my company a mate changed crontab without thinking of doing it via configuration.nix, he then wondered why the database backup scripts weren't working after I nixos-rebuild switch. emulating the git command set would really drive home

[Nix-dev] ZeroTier-One service

2015-06-23 Thread stewart mackenzie
So, I'm setting up a service for ZeroTier-One, the issue arises when the ZeroTierOne service tries to start. After doing a `sudo nixos-rebuild build-vm -I nixpkgs=~/nixdev/nixpkgs/ --fallback -j 8 --cores 8 --fast` then `./result/bin/run-rivergod-vm` once logged in to the vm I issue `sudo

Re: [Nix-dev] ZeroTier-One service

2015-06-24 Thread stewart mackenzie
$ sudo strace -efile zerotier-one -d execve(/home/stewart/.nix-profile/bin/zerotier-one, [zerotier-one, -d], [/* 26 vars */]) = 0 access(/etc/ld-nix.so.preload, R_OK) = -1 ENOENT (No such file or directory) open(/run/opengl-driver/lib/tls/x86_64/libstdc++.so.6, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No

[Nix-dev] Single user mode

2015-06-11 Thread stewart mackenzie
So I've got a corrupted harddisk sector that needs a fsck.ext4 run. It disturbs my bootup flow nagging me of this fact. I'm unable to umount /nix/store so I need to boot into single user mode. Pressing 'e' during bootup then typing 'single' into the line that starts with 'linux' doesn't solve

Re: [Nix-dev] Fwd: Single user mode

2015-06-12 Thread stewart mackenzie
Okay to clarify in detail: I'm using luks to encrypt my harddisk. steps to reproduce: * turn on machine * enter grub then press down to select a working nix generation (221) * press 'e' I see: ''search -someargs linux /some/path systemConfig /some/path init=/some/path loglevel=4 initrd

Re: [Nix-dev] writing a muttrc configuration file

2015-05-29 Thread stewart mackenzie
Hendrik, thanks! On 29 May 2015 18:53, Hendrik Bunke bunke.hend...@gmail.com wrote: --On 2015-05-29 18:33, stewart mackenzie wrote: Okay yes it wrote to /nix/store, so this approach won't work as Mutt won't see /nix/store/kl3v8gvzk4c3q7zfjcjpm4kb3c248ahl-muttrc/root So it would be great

[Nix-dev] writing a muttrc configuration file

2015-05-29 Thread stewart mackenzie
Hi, So I'm trying to write the mutt configuration file using this: let muttConfigFile = pkgs.writeTextFile { name = muttrc; text = '' set spoolfile=/var/spool/mail/root/ ''; executable = false; destination = /root/.muttrc; }; { environment = { systemPackages

Re: [Nix-dev] writing a muttrc configuration file

2015-05-29 Thread stewart mackenzie
Okay yes it wrote to /nix/store, so this approach won't work as Mutt won't see /nix/store/kl3v8gvzk4c3q7zfjcjpm4kb3c248ahl-muttrc/root So it would be great to open Mutt and it automatically opens to the correct location: /var/spool/mail/root and not /var/mail/root How do I do this? Most

[Nix-dev] cron job to backup a database as part of the configuration.nix file

2015-05-28 Thread stewart mackenzie
Hello, So we've written a database bash backup script for a database running on nixos. The idea is to configure cron via configuration.nix to execute this script. Ideally we'ed like the actual backup script to be part of the configuration.nix file which then is used in the cron job. What is the

[Nix-dev] --ignore-liveness when nix-store --delete'ing

2015-07-02 Thread stewart mackenzie
Hello all, Please do not run this command: nix-store --delete --ignore-liveness /nix/store/hash-gnutar-version I have exactly this issue: http://pastebin.com/z5k8bxWQ and wanted to selectively delete the troublesome gnutar package. The above command completely and utterly borked my system. It

Re: [Nix-dev] --ignore-liveness when nix-store --delete'ing

2015-07-02 Thread stewart mackenzie
On Thu, Jul 2, 2015 at 11:22 PM, Eelco Dolstra eelco.dols...@logicblox.com wrote: So ... is this --ignore-liveness expected behaviour? Sort of. nix-store --delete PATH will delete paths that refer to PATH, provided that those paths are themselves garbage, in order to make PATH deletable. But

Re: [Nix-dev] --ignore-liveness when nix-store --delete'ing

2015-07-02 Thread stewart mackenzie
exciting, shall do. On 3 Jul 2015 00:47, Arseniy Seroka seni...@gmail.com wrote: The only way is to boot live nixos, mount your partition and run `nixos-install`. ___ nix-dev mailing list nix-dev@lists.science.uu.nl

Re: [Nix-dev] --ignore-liveness when nix-store --delete'ing

2015-07-02 Thread stewart mackenzie
Some more information: $ sudo nixos-rebuild --rollback switch switching from generation 223 to 222 /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/installer/tools/nixos-rebuild.sh: line 237: /nix/var/nix/profiles/system/bin/switch-to-configuration: No such file or

Re: [Nix-dev] Idea: Add a user group in the github organization

2015-06-26 Thread stewart mackenzie
Please read pieter hintjens culture and empire, specifically chapter 2 light of spheres. Good contributors should be promoted quickly before they move off onto other projects. Yes if you choose to use nixos you aren't going anywhere quickly but nonetheless it's an important hat tip to

Re: [Nix-dev] hydra-init

2015-07-13 Thread stewart mackenzie
Okay that did it, just created a hydra user. Much appreciated. On Mon, Jul 13, 2015 at 4:57 PM, Eelco Dolstra eelco.dols...@logicblox.com wrote: Hi, On 11/07/15 19:15, stewart mackenzie wrote: So I deleted /var/db/postgresql and /var/lib/hydra then following the section Letting nix handle

[Nix-dev] point to channel via configuration.nix

2015-07-17 Thread stewart mackenzie
Hi All, Problem: We have custom software to build and distribute via Hydra. We want our cloned hydra to be that channel. Thus, how does one configure NixOS via the configuration.nix to point to this cloned hydra instance? /sjm ___ nix-dev mailing

[Nix-dev] hydra job to include a previous hydra evaluation

2015-07-18 Thread stewart mackenzie
Hi, I've got a release.nix: with import nixpkgs {}; with import exicon-channel {}; { appboard = stdenv.mkDerivation rec { version = 0.0.1; name = appboard-${version}; src = ./.; buildInputs = [ exicon-channel.boot ]; }; } Now this is my hydra jobset configuration:

Re: [Nix-dev] Meetup in London ?

2015-07-18 Thread stewart mackenzie
You can take a look at Susan Potter's nix-cookbook https://github.com/mbbx6spp/nix-cookbook/tree/add-README You could add to that maybe? ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] [nix-dev] fetchsvn fails to go via proxy

2015-07-21 Thread stewart mackenzie
http_proxy is deliberately mangled. The Nix Way is to download dependencies into the /nix/store then patch build scripts such that the project looks to the /nix/store for the dependencies. This is a feature. On 21 Jul 2015 16:54, Sergey Mironov grr...@gmail.com wrote: Fetchsvn expression is

Re: [Nix-dev] [nix-dev] fetchsvn fails to go via proxy

2015-07-21 Thread stewart mackenzie
On 21 Jul 2015 21:18, Lluís Batlle i Rossell vi...@viric.name wrote: That's not the case for fixed-output derivations. fetchsvn, like fetchurl, should properly handle http_proxy. Ah yes of course. ___ nix-dev mailing list nix-dev@lists.science.uu.nl

[Nix-dev] Oliver Charles Talk

2015-11-17 Thread stewart mackenzie
Hi Oliver, I'd greatly appreciate it if you could share your cleaned up deployment nix scripts for fynder. You're doing some really cool stuff there which is currently what I'm building out here: github.com/fractalide/nixos-infrastructure btw I've got a boot-nix which is a boot-clj.com task

Re: [Nix-dev] Ideas for a NixOS-related bachelors thesis?

2015-11-01 Thread stewart mackenzie
Yes indeed the Named Data Networking overlay is much more interesting. There are other implementations you can look at other than IPFS as it's the new kid on the block - named-data.net and the now closed source ccnx.org On 29 Oct 2015 18:16, "Domen Kožar" wrote: > > I'd go for:

[Nix-dev] hydra-init

2015-07-11 Thread stewart mackenzie
So I deleted /var/db/postgresql and /var/lib/hydra then following the section Letting nix handle the git repository of this tutorial: https://nixos.org/wiki/Installing_hydra_as_nixos_module then # su hydra $ psql # and can see all the hydra tables with \d hydra select * from users; # results in

Re: [Nix-dev] NixCon thanks

2015-11-17 Thread stewart mackenzie
Great putting faces to names, currently working my way through the talks online. Very enjoyable indeed. /sjm ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] Logo improvement ideas

2015-08-25 Thread stewart mackenzie
Personally I really like what the current logo communicates to me: * lambdas, lots of them * snowflake - a unique system I'm enjoying these logos! /sjm On 26 Aug 2015 00:16, Cillian de Róiste cillian.deroi...@gmail.com wrote: Before updating the logo, I wonder if we should step back a bit

[Nix-dev] hotkey to change between qwerty <-> dvorak

2015-09-09 Thread stewart mackenzie
I have the issue when working in a team of needing to change my keyboard layout from dvorak to qwerty. What does the configuration.nix look like for this? preferably + - /sjm ___ nix-dev mailing list nix-dev@lists.science.uu.nl

Re: [Nix-dev] Can NixOS run against hyper-v?

2015-09-17 Thread stewart mackenzie
I found you need to modify the automatically generated hardware-configuration.nix. so I overrode it with my own, eschewing UUIDs in favour of /dev/sda2 for example. It then worked. On 18 Sep 2015 08:46, "Lili Deng (Wicresoft)" wrote: > Hi dear, > > > > We are working for

Re: [Nix-dev] What license does the content of the nixos wiki and the manuals have?

2015-09-25 Thread stewart mackenzie
On 25 Sep 2015 15:29, "Joachim Schiele" wrote: > > two problems i see here: > - text can't be covered by GPL thus they created CC I suggested nix{os,pkgs} to be GPL3 or MPLv2 not the wiki. > - some edits in the wiki are anonymous (whom to ask?) I wouldn't care about anonymous

Re: [Nix-dev] What license does the content of the nixos wiki and the manuals have?

2015-09-24 Thread stewart mackenzie
According to my understanding: * 1st agree on a license for the wiki. * we need to get all wiki contributors to agree on said license. * we'll need a written statement from all wiki contributors, could be something simple like "I agree to publish my contributions to the nixos wiki under the X

[Nix-dev] Generate name->/nix/store/-name mapping file

2015-12-17 Thread stewart mackenzie
Greetings, I'd like to generate a mapping file for all the components that successfully compile. It would look something like this: boolean-not : hjybhyrcjk4zxjhqcr3gba0pfvvv5wvn-boolean-not boolean-nand : 9638b93sxj78612m0i6ag6malj4il03m-boolean-nand ... So the idea is to have hydra compile

Re: [Nix-dev] Perl -> C++

2016-01-02 Thread stewart mackenzie
hmm I suppose the real question is who'd be willing to do this? 1) C++ only, makes nix more portable and reduces deps but adds C++ memory model. 2) Rust adds deps, stop gapping till a long term stable port happens then it'll be rust only. 3) Rust's windows support is still flaky (correct me pls)

Re: [Nix-dev] Perl -> C++

2016-01-01 Thread stewart mackenzie
On 31 Dec 2015 22:36, "Luca Bruno" wrote: > Nix is already C++. It's just that some tools are written in perl. I missed this information in the beginning; yes, C++ sensible. ___ nix-dev mailing list nix-dev@lists.science.uu.nl

Re: [Nix-dev] Perl -> C++

2016-01-06 Thread stewart mackenzie
Good god man, please stop using the term 'transpile', the correct term you want is 'compile'. If a new nix language backend is to be created the first step is to define the nix language (using something like ABNF) as previously suggested. Otherwise you open up a whole class of exploits, see

Re: [Nix-dev] Perl -> C++

2015-12-31 Thread stewart mackenzie
Language features of the implementation language are generally lost when implementing a new language. So we are left with: "can be compiled and existing infrastructure." Leveraging LLVM would be astute. On 31 Dec 2015 21:47, "Tomasz Czyż" wrote: > > Why not haskell? > >

Re: [Nix-dev] Perl -> C++

2015-12-30 Thread stewart mackenzie
On Thu, Dec 31, 2015 at 4:04 AM, jeaye wrote: > As C++ devs, I think it's important that we consider using a safer, more > functional language everywhere we can. Rust does this very well, to the > point where me enumerating its benefits would be redundant. The point I > want to

Re: [Nix-dev] Perl -> C++

2015-12-30 Thread stewart mackenzie
On Thu, Dec 31, 2015 at 7:21 AM, Arseniy Seroka wrote: > And in general - Eelco uses c++ in nix, and that's why we need this > language. hmm in a rather tongue in cheek fashion, we've all had to learn Eelco's Nix Expression language, I'm sure he could learn a language the

Re: [Nix-dev] nix for reproducible and self-updating developer environments

2015-11-26 Thread stewart mackenzie
Alexander, I agree whole heartedly with your points. I've experienced many of these issues too, I've also tried rolling it out in companies but for the very reasons you mention it wasn't adopted. I suspect if the nix community nails each one of these issues then Nix can go mainstream.

[Nix-dev] linking libraries

2015-11-26 Thread stewart mackenzie
Hello, I want to do a simple thing. When running a default.nix: with import {}; { projnameEnv = myEnvFun { name = "projname"; buildInputs = [ stdenv rustcMaster cargo nanomsg]; }; } then execute nix-shell I don't get an error and the rust project correctly

Re: [Nix-dev] Why does my system rebuild rustc and cargo?

2015-11-22 Thread stewart mackenzie
> ... "whenever I enter a nix-shell" ... Do you have auto garbage collect activated, i.e. nix.gc.automatic & nix.gc.dates set in your configuration.nix? Your gc could clean up your rustc everyday. not sure /sjm ___ nix-dev mailing list

[Nix-dev] scsh scripting

2016-01-12 Thread stewart mackenzie
Has anyone managed to get scsh scripting to work on nixos? So far I've got something like this: test.scm #! /usr/bin/env nix-shell !# #! nix-shell -i scsh -p scsh !# I'm getting issues found in this webpage

Re: [Nix-dev] wordpress

2016-06-09 Thread stewart mackenzie
Ah I see this: https://nixos.org/wiki/Wordpress I'll need to override the src of wordpress with my own version of wordpress. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

[Nix-dev] wordpress

2016-06-09 Thread stewart mackenzie
Hi, I see there's a wordpress package: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/web-servers/apache-httpd/wordpress.nix There are no available wordpress attributes. How do I install wordpress? Kind regards Stewart ___

  1   2   3   >