[Nix-dev] nixops logical network values depend on physical network deployed to

2015-06-13 Thread Richard Wallace
Hello all, I have a case where a value in my logical network configuration will be different depending on what physical network is deployed to. It's the base URI of the web service, which will be http://localhost:8080/ when deploying to a local virtualbox instance and the public address

Re: [Nix-dev] Understanding NIX_PATH

2015-06-13 Thread Luca Bruno
It's just there if someone wants to use that path. On Sat, Jun 13, 2015 at 1:58 PM, Eike e...@eknet.org wrote: oh how embarrassing. I didn't see this although looking at it for sooo long. One thing I don't understand: what does 'nixpkgs=/etc/nixos/nixpkgs' mean in NIX_PATH? It doesn't

Re: [Nix-dev] Understanding NIX_PATH

2015-06-13 Thread Eike
Yes, I know. My question is more why does it exist by default and is set to some non-existent path? I didn't tweak this variable myself. Does it maybe only apply to non-NixOS systems that use Nix? Thanks Eike Luca Bruno lethalma...@gmail.com writes: It's just there if someone wants to use

Re: [Nix-dev] Understanding NIX_PATH

2015-06-13 Thread Luca Bruno
If you knew the answer, that's the answer: It's just there if someone wants to use that path., just there for convenience and historical reasons. Nothing more. On Sat, Jun 13, 2015 at 3:14 PM, Eike e...@eknet.org wrote: Yes, I know. My question is more why does it exist by default and is set

Re: [Nix-dev] Nix 1.9 released

2015-06-13 Thread Aristid Breitkreuz
Very nice, thanks for the hard work! I'm especially excited about the nix-shell shebangs :) This should radically improve scripting on Nix. Cheers, Aristid Eelco Dolstra eelco.dols...@logicblox.com schrieb am Sa., 13. Juni 2015 01:17: Hi, I'm pleased to announce the availability of a new

Re: [Nix-dev] Understanding NIX_PATH

2015-06-13 Thread Luca Bruno
I think because you are using the nixpkgs-unstable instead of nixos-unstable, hence the NIX_PATH is wrong. Does /nix/var/nix/ profiles/per-user/root/channels/nixos/nixpkgs/nixos exist? If not, your NIX_PATH is wrong. On Sat, Jun 13, 2015 at 12:54 PM, Eike e...@eknet.org wrote: Hello all, I

Re: [Nix-dev] Understanding NIX_PATH

2015-06-13 Thread Eike
oh how embarrassing. I didn't see this although looking at it for sooo long. One thing I don't understand: what does 'nixpkgs=/etc/nixos/nixpkgs' mean in NIX_PATH? It doesn't exist on my system, so I gues it is referring to something…? thank you very much! Eike Luca Bruno lethalma...@gmail.com

[Nix-dev] Understanding NIX_PATH

2015-06-13 Thread Eike
Hello all, I just encountered a problem that I cannot figure out myself. I switched from the 14.12 channel to the unstable channel (in NixOS) and when doing nixos-rebuild build I get the following: # nix-channel --list nixos https://nixos.org/channels/nixpkgs-unstable #

Re: [Nix-dev] Nix 1.9 released

2015-06-13 Thread Peter Simons
Hi, nix-shell can now be used as a #!-interpreter. This allows you to write scripts that dynamically fetch their own dependencies. For example, here is a Haskell script that, when invoked, first downloads GHC and the Haskell packages on which it depends: [...]. users running current

[Nix-dev] Haskell in nix-shell scripts (was: Nix 1.9 released)

2015-06-13 Thread Peter Simons
Hi, users [of nixos-unstable] have to use a slightly modified version of the script that looks as follows: | #! /usr/bin/env nix-shell | #! nix-shell -i runghc -p haskellPackages.ghcWithPackages (p: [p.HTTP]) [...] it turns out that script won't work either. It seemed to work when

[Nix-dev] Nix expression for OpenModelica

2015-06-13 Thread Sergey Mironov
Hi! I've started to write Nix expression for building OpenModelica (https://openmodelica.org/index.php) the open source simulation environment. Currently, I have several 'standalone' nix expressions located at https://github.com/grwlf/nixcfg/tree/openmodelica/src/pkgs/OpenModelica At the moment,