Re: [Nix-dev] Not understanding evaluation of with inside let

2016-05-16 Thread Harald van Dijk
.nix available similarly to how a rec-expression would. However, the names introduced by with have lower priority than those introduced by other means. For instance, let as = { x = "foo"; y = "bar"; }; y = "baz"; in with as; x + y evaluates to &quo

[Nix-dev] Not understanding evaluation of with inside let

2016-05-15 Thread Harald van Dijk
it says the whole set is introduced into the lexical scope. So what's going on here? Using Nix 1.11.2 if it matters. Cheers, Harald van Dijk ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] Accessing files in derivations.

2016-04-19 Thread Harald van Dijk
On 19/04/16 18:51, Vladimír Čunát wrote: > On 04/19/2016 04:01 PM, Layus wrote: >> That operator would ensure that the path exists in the derivation, but >> also look up through the outputs to find one containing that file. > > Unfortunately, during evaluation you can't access the results of builds

Re: [Nix-dev] An issue regarding the default parameters of a function

2016-02-12 Thread Harald van Dijk
e = "nk-parser"; buildDepends = args.buildDepends ++ [nk]; isExecutable = true; }); Both of these might be easier to maintain than the workaround you've come up with, although yours is of course perfectly valid too. Cheers, Harald van Dijk __

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

2016-01-02 Thread Harald van Dijk
for the same reason, but at least it is a list of very stable software that's widely available in pretty much all package repositories. Rust is not yet in the same category, as far as I know. Cheers, Harald van Dijk ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] isFloat

2015-12-29 Thread Harald van Dijk
ance if "." must always be followed by a digit, if a leading "+" is also allowed, if exponential notation ("1E10") is supposed to be allowed, if some spaces should be allowed, etc., it can be tweaked fairly easily. Cheers, Harald van Dijk ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] Git branches to track nix channels

2015-05-20 Thread Harald van Dijk
e sure to use tags and not some custom ref naming scheme, nothing special needs to be done. Cheers, Harald van Dijk > But anyway, IMO it will take some time before it gets noticeable. I > often check out all the pull request branches, so I have thousands refs > already, without noticing any

Re: [Nix-dev] How to install pmount properly?

2015-05-14 Thread Harald van Dijk
wn configuration the same way. If using Nix without NixOS, then something similar should be easy to do manually. Cheers, Harald van Dijk ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] Fetching variable and unpredictable URL download link

2015-03-01 Thread Harald van Dijk
t you should be able to use instead. Cheers, Harald van Dijk On 03/01/2015 04:21 PM, Anderson Torres wrote: > Hello, Nixers! > > How can I "fetchurl" a variable url? > > When I download a dockapp from Windowmaker site, like > > "http://windowmaker.org/dockapps/?

Re: [Nix-dev] Automatic download option for "requireFile"

2015-02-24 Thread Harald van Dijk
ftware is freely downloadable -- although admittedly doing so through the website does require the user to indicate acceptance of the EULA. According to Adobe, even mere use of the software requires acceptance of the EULA. Because of this, the package is installab

Re: [Nix-dev] Please test Nix store auto-optimise

2015-02-12 Thread Harald van Dijk
worth it. One thing worth pointing out is that it makes (or at least seems to make) nix-collect-garbage need more time to complete. Cheers, Harald van Dijk ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] A few questions about ARM support and NixOS on a Chromebook

2015-02-09 Thread Harald van Dijk
On 09/02/2015 15:57, James Haigh wrote: On 09/02/15 14:16, Harald van Dijk wrote: On 09/02/2015 14:55, James Haigh wrote: On 28/01/15 07:42, Luke Clifton wrote: Hi Bjørn, I have read that thread. I agree with you 100% that native builds (on real or virtual hardware) is the only way this can

Re: [Nix-dev] A few questions about ARM support and NixOS on a Chromebook

2015-02-09 Thread Harald van Dijk
piling. Still, many packages build such tools with the host compiler anyway, because upstream only tests native compilations. This too is not an issue with the toolchain. Cheers, Harald van Dijk ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] Making Nix use pivot_root in addition to chroot

2014-12-11 Thread Harald van Dijk
On 09/12/2014 21:04, Colin Walters wrote: > On Thu, Dec 4, 2014, at 06:24 AM, Harald van Dijk wrote: >> Hello, >> >> I've recently been trying to use Nix in a somewhat different way than >> NixOS, and the builders I've got, it would be useful if they were abl

Re: [Nix-dev] Making Nix use pivot_root in addition to chroot

2014-12-08 Thread Harald van Dijk
lco Dolstra >> wrote: >> >> Hi, >> >>> On 04/12/14 12:24, Harald van Dijk wrote: >>> >>> Is there any interest in getting something like this in Nix? I would be >>> perfectly happy to clean this patch up, get it into better shape, bu

[Nix-dev] Making Nix use pivot_root in addition to chroot

2014-12-04 Thread Harald van Dijk
any interest in getting something like this in Nix? I would be perfectly happy to clean this patch up, get it into better shape, but I'd like to avoid doing so if (for whatever reason) it is decided that Nix should not be using this. Cheers, Harald van Dijk --- a/src/libstore/build.c