[Nix-commits] [NixOS/nixpkgs] 29667f: dbus: catch new services without reboot (#20871)

2017-01-27 Thread Guillaume Maudoux
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 29667f639c8f88b736e8607f36eb713f8b26b6e9 https://github.com/NixOS/nixpkgs/commit/29667f639c8f88b736e8607f36eb713f8b26b6e9 Author: Guillaume Maudoux Date: 2017-01-27 (Fri, 27 Jan 2017) Changed paths

[Nix-commits] [NixOS/nixpkgs] 698f17: default nixos config: add firewall options.

2017-02-03 Thread Guillaume Maudoux
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 698f178d4ed1f04f58936fcfb1a0c0753ee69679 https://github.com/NixOS/nixpkgs/commit/698f178d4ed1f04f58936fcfb1a0c0753ee69679 Author: Guillaume Maudoux Date: 2017-02-03 (Fri, 03 Feb 2017) Changed paths

[Nix-commits] [NixOS/nixpkgs] f7b7d8: dafny: fix meta attribute

2017-02-07 Thread Guillaume Maudoux
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: f7b7d8e7b59f5e13338be76256e8b524eb993959 https://github.com/NixOS/nixpkgs/commit/f7b7d8e7b59f5e13338be76256e8b524eb993959 Author: Guillaume Maudoux Date: 2017-02-07 (Tue, 07 Feb 2017) Changed paths

[Nix-commits] [NixOS/nixpkgs] c1401e: curl, git: Fix curl default CA, let git use it

2017-03-22 Thread Guillaume Maudoux
Branch: refs/heads/staging-17.03 Home: https://github.com/NixOS/nixpkgs Commit: c1401e1e4c56619d1e743f83eaaeac4a0fbfbfba https://github.com/NixOS/nixpkgs/commit/c1401e1e4c56619d1e743f83eaaeac4a0fbfbfba Author: Guillaume Maudoux Date: 2017-03-22 (Wed, 22 Mar 2017) Changed

[Nix-commits] [NixOS/nixpkgs] 772434: wrapFirefox: fix default-browser update

2017-03-25 Thread Guillaume Maudoux
Branch: refs/heads/release-17.03 Home: https://github.com/NixOS/nixpkgs Commit: 77243451fed639f1b884c85aa7fac7a6578bc22f https://github.com/NixOS/nixpkgs/commit/77243451fed639f1b884c85aa7fac7a6578bc22f Author: Guillaume Maudoux Date: 2017-03-25 (Sat, 25 Mar 2017) Changed

[Nix-commits] [NixOS/nixpkgs] 605ce9: cppcheck: 0.76.1 -> 0.78 (#24937)

2017-04-16 Thread Guillaume Maudoux
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 605ce9b2413a18ca43c8843890e4d775b694b58a https://github.com/NixOS/nixpkgs/commit/605ce9b2413a18ca43c8843890e4d775b694b58a Author: Guillaume Maudoux Date: 2017-04-16 (Sun, 16 Apr 2017) Changed paths

[Nix-commits] [NixOS/nixpkgs] 92f53a: factorio-demo: init at 0.14.23 (#25265)

2017-04-29 Thread Guillaume Maudoux
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 92f53af64d0be1c9a61924b45910c41da7a6d03e https://github.com/NixOS/nixpkgs/commit/92f53af64d0be1c9a61924b45910c41da7a6d03e Author: Guillaume Maudoux Date: 2017-04-30 (Sun, 30 Apr 2017) Changed paths

[Nix-commits] [NixOS/nix] 26f7e8: Fix hash computation when importing NARs greater t...

2017-05-01 Thread Guillaume Maudoux
3b18a1a8155b40b06e) Commit: a10bd3355a53efb786bdff10ce52b7ac069bee45 https://github.com/NixOS/nix/commit/a10bd3355a53efb786bdff10ce52b7ac069bee45 Author: Guillaume Maudoux Date: 2017-05-01 (Mon, 01 May 2017) Changed paths: M src/libexpr/lexer.l M tests/lang/eval-okay-ind-string.exp M tests

[Nix-commits] [NixOS/nixpkgs] dacfe8: cups_filters: 1.11.1 -> 1.14.0

2017-05-24 Thread Guillaume Maudoux
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: dacfe8109e5d326a1c8cd5ed833c47eca4e10ac4 https://github.com/NixOS/nixpkgs/commit/dacfe8109e5d326a1c8cd5ed833c47eca4e10ac4 Author: Guillaume Maudoux Date: 2017-05-24 (Wed, 24 May 2017) Changed paths

[Nix-commits] [NixOS/nixpkgs] e6550c: calibre: fix RPATH problems

2017-06-04 Thread Guillaume Maudoux
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: e6550cb5c19599d7016bab488f94e8f59d0c924c https://github.com/NixOS/nixpkgs/commit/e6550cb5c19599d7016bab488f94e8f59d0c924c Author: Guillaume Maudoux Date: 2017-06-05 (Mon, 05 Jun 2017) Changed paths

[Nix-commits] [NixOS/nixpkgs] b1817f: linux_mptcp: 0.90.1 (kernel 3.18) -> 0.91 (kernel ...

2016-08-12 Thread Guillaume Maudoux
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: b1817fa8a3e8379fb35bff0a55b417ceb5acafab https://github.com/NixOS/nixpkgs/commit/b1817fa8a3e8379fb35bff0a55b417ceb5acafab Author: Guillaume Maudoux Date: 2016-08-12 (Fri, 12 Aug 2016) Changed paths

[Nix-commits] [NixOS/nixpkgs] 3aef93: nixos/containers: Process config like toplevel opt...

2016-08-29 Thread Guillaume Maudoux
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 3aef93e8f046210f1715b555d835f2f20cd07753 https://github.com/NixOS/nixpkgs/commit/3aef93e8f046210f1715b555d835f2f20cd07753 Author: Guillaume Maudoux Date: 2016-08-29 (Mon, 29 Aug 2016) Changed paths

[Nix-commits] [NixOS/nixpkgs] 2184df: Add changelog for container config (#18756)

2016-09-19 Thread Guillaume Maudoux
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 2184df98f77a893c80553d8665ec34faab8f6bdc https://github.com/NixOS/nixpkgs/commit/2184df98f77a893c80553d8665ec34faab8f6bdc Author: Guillaume Maudoux Date: 2016-09-19 (Mon, 19 Sep 2016) Changed paths

[Nix-commits] [NixOS/nix] f78126: Get rid of unicode quotes (#1140)

2016-11-25 Thread Guillaume Maudoux
Branch: refs/heads/master Home: https://github.com/NixOS/nix Commit: f78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7 https://github.com/NixOS/nix/commit/f78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7 Author: Guillaume Maudoux Date: 2016-11-25 (Fri, 25 Nov 2016) Changed paths: M

Re: [Nix-dev] Automount for usb thumb drives / other external drives

2015-07-16 Thread Guillaume Maudoux (Layus)
Hi, Le 16/07/15 13:58, Eelco Dolstra a écrit : > Hi, > > On 15/07/15 23:22, Paul Koerbitz wrote: > >> I would like to automatically mount usb sticks that I plug into my >> laptop. I haven't been able to figure out how to do this in NixOS, >> what's the easiest option? > The standard mechanism used

Re: [Nix-dev] Logo improvement ideas

2015-09-08 Thread Guillaume Maudoux (Layus)
Tim has invested some time in making great logos, and everybody seems to like the hex-half version. It would be too sad to loose his job, so what is the next step ? Who is authorized to do such a modification ? Brand nex NixOS logo ! We can tune the logo for other media later, when we print t-s

Re: [Nix-dev] Help with setup php xdebug

2015-09-29 Thread Guillaume Maudoux (Layus)
Dear Erik, I am no expert on this topic, but it seems to me that writing a custom phpIni is the way to go. For example, I have the following code in my config, which mimics the default phpIni generation. phpIni = pkgs.runCommand "php.ini" { options = '' extension=${pk

Re: [Nix-dev] Help with setup php xdebug

2015-09-29 Thread Guillaume Maudoux (Layus)
ini options to be adjusted. For clarification: I'm nowhere near even understanding how nixos works, let alone write my own packages, I'm just trying to setup a valid configuration for an nginx / phpfpm / lumen/laravel server.. so it's very possible that I'm ma

Re: [Nix-dev] nix-build -A builds everything

2015-11-19 Thread Guillaume Maudoux (Layus)
Hi, The problem is that you build odoo within the nixpkgs defined by the master branch. As the master branch defines derivations more recent than the ones installed, it needs to instantiate them. But these derivations are so new that even hydra did not build them yet, so you have no binary support

Re: [Nix-dev] nix-build -A builds everything

2015-11-19 Thread Guillaume Maudoux (Layus)
. As for me, I update my tag on the current channel revision after each update, and branch/rebase on top of it. I will update the wiki to reference the manual. Le 19/11/15 15:50, Eelco Dolstra a écrit : > Hi, > > On 19/11/15 11:46, Guillaume Maudoux (Layus) wrote: > >> To get b

Re: [Nix-dev] How to write module outside the nixpkgs tree and integrated with nixos-rebuild

2015-12-04 Thread Guillaume Maudoux (Layus)
This is not the first time this question arises on the mailing list. Where did you expect to find this information in the docs ? This may be the ideal place to add the info. G. Le 04/12/15 06:18, rohit yadav a écrit : > Thanks! This is exactly I was looking for. I should have looked more > befor

[Nix-dev] Letsencrypt in open beta.

2015-12-04 Thread Guillaume Maudoux (Layus)
Hi, Now that Let’s Encrypt[1] is in open beta, I would like to try it on my server. Has someone sucessfully used it on a NixOS server ? I have seen that Domen Kožar pushed the realted python tools on nixpkgs[2]. Is someone working on integrating this tool into NixOS ? Regards, Guillaume (layus)

Re: [Nix-dev] Some hints for Perl -> C++ translation?

2016-01-06 Thread Guillaume Maudoux (Layus)
Le 06/01/16 12:59, Mateusz Czaplinski a écrit : > > > On Mon, Jan 4, 2016 at 9:22 AM, Vladimír Čunát > wrote: > > > - how I might try to setup a dev environment for that, ideally in > NixOS? > I think ./dev-shell is meant exactly for that. > > > Thanks! > So, I

Re: [Nix-dev] sonarQube package

2016-01-12 Thread Guillaume Maudoux (Layus)
Le 12/01/16 06:40, Bjørn Forsman a écrit : > > On Jan 12, 2016 00:27, "Augustin Borsu" > wrote: > > > > Hello, > > > > I'm a bit stuck so I thought I would try and ask the community if > any one has an idea. > > I'm trying to make a package to run SonarQube on a nixos

Re: [Nix-dev] Best way to store strong passwords in nix configuration file

2016-01-13 Thread Guillaume Maudoux (Layus)
I am not sure I understand your issue. On my side, I have |$ cat test.nix rec { a = "ETrai_5{h'aG,MQ"; b = "${a}${a}"; } $ nix-instantiate --eval --strict test.nix { a = "ETrai_5{h'aG,MQ"; b = "ETrai_5{h'aG,MQETrai_5{h'aG,MQ"; } | Could it just happen that you forgot a semicolon at the end of yo

Re: [Nix-dev] Going through hell with systemd timers

2016-01-28 Thread Guillaume Maudoux (Layus)
Hi, My experience with urlwatch was that the SSL_CERT_FILE env var was missing. This may also be your issue if you are using the network. It is however always possible to run the service manually, and see the logs. A service declaration with a startAt attribute creates two services, .service and

Re: [Nix-dev] [Fixed?] Re: environment in systemd services

2016-01-30 Thread Guillaume Maudoux (Layus)
Yep. Most probably SSL_CERT_FILE. Look for that string on thé github issues, or in the mailing list archives. Layus. Le 30 janvier 2016 17:35:17 UTC+01:00, zimbatm a écrit : >My guess is that it's probably an environnent variable that's missing >and >bash is sourcing the profiles. > >On Sat, 30

Re: [Nix-dev] Custom php.ini for cli calls

2016-02-04 Thread Guillaume Maudoux (Layus)
: (none) Scan for additional .ini files in: /etc Additional .ini files parsed: (none) so you probably need to put your own php.ini file in /etc or call php -c Nothing to do with the derivation :-). Layus. Le 04/02/16 17:14, Guillaume Maudoux (Layus) a écrit : > > Hi, > &g

Re: [Nix-dev] Custom php.ini for cli calls

2016-02-04 Thread Guillaume Maudoux (Layus)
Hi, I found a hint on StackOverflow[1], which outlines that php is not the product of a makeDerivation, but instead is a composableDerivation. More info on these strange beasts can be found in the source itself[2], with php being explicitly cited as an exception. Once you know it, you notice it at

Re: [Nix-dev] Systemd User Timers: timerConfig section?

2016-02-19 Thread Guillaume Maudoux (Layus)
There is also systemd.services..startAt that creates the timer for you :-). systemd.services.urlwatch = rec { description = "Run urlwatch (${startAt})"; startAt = "hourly"; environment =

Re: [Nix-dev] Installing CA certificates

2016-02-22 Thread Guillaume Maudoux (Layus)
Just my two cents, but could you test again your openssl command with `-partial_chain` ? Like in `openssl s_client -connect {HOSTNAME}:443 -partial_chain` ? My reasoning is that, most probably, the certificate downloaded by chrome is an intermediate certificate, signed by some authority for your w

Re: [Nix-dev] Commit access

2016-02-29 Thread Guillaume Maudoux (Layus)
Le 29/02/16 18:28, Thomas Tuegel a écrit : > On Mon, Feb 29, 2016 at 10:29 AM, Eelco Dolstra > wrote: >> Then when you make a PR, you should look up the responsible maintainer and >> assign the PR to them. Having every PR assigned to somebody should also help >> prevent them from falling through t

Re: [Nix-dev] nix-shell is unable to install the package which nix-env just returned

2016-03-31 Thread Guillaume Maudoux (Layus)
Hmm.. could it be that your system is confused by multiple channels ? What's the output of (normal user) $ nix-channel --list I think your best bet is `nix-shell "" -p letsencrypt` where nixpkgs is your channel name. You can even go further and set the nixpkgs path directly using nix-shell /nix/

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

2016-04-20 Thread Guillaume Maudoux (Layus)
Le 20/04/16 08:59, Vladimír Čunát a écrit : > On 04/19/2016 10:03 PM, Layus wrote: >> But your description made me think of a viable workaround. >> We could ensure that every derivation has a fixed set of known outputs, >> like dev, lib, out and man. >> If there is no "lib" output, then the lib att

Re: [Nix-dev] Is it possible to limit nix access to sudoers and/or a group?

2017-01-20 Thread Guillaume Maudoux (Layus)
On 20/01/17 12:46, Profpatsch wrote: On 17-01-20 10:59am, Danylo Hlynskyi wrote: Nix design doesn't support quotas on filled store per-user, and let's not forget #8. https://github.com/NixOS/nixpkgs/pull/8 ? That looks unrelated. Rather https://github.com/NixOS/nix/issues/8 I would say.

Re: [Nix-dev] How to ensure that a directory exists via configuration.nix

2017-02-09 Thread Guillaume Maudoux (Layus)
Hi Mark, This is usually handled by systemd units. When a service requires a directory, we add ExecBefore scripts to setup the directory. There are plenty such examples in nixos modules. If you need it for you as a user, you could make a service required by multiuser.target. On the other han

Re: [Nix-dev] setuidwrapper questions

2017-03-23 Thread Guillaume Maudoux (Layus)
Hi Jon, Unless I am terribly mistaken, setuid wrappers are only needed for executables in the nix store because the nix store fordids to set the suid bit. For your executable, just set the suid bit and... Voilà :-). -- Layus. On 16/03/17 17:41, Jon Parris wrote: Hi All, NixOS noob here.

Re: [Nix-dev] With-expressions question

2017-03-23 Thread Guillaume Maudoux (Layus)
Yep, there has been previous ML discussions about this. Short story is that local variables always take precedence over variables from "with" expressions. This is kind of a security feature, otherwise the following expression could change its meaning when an "outer" package is added/removed f

Re: [Nix-dev] How do you work on big packages?

2017-03-27 Thread Guillaume Maudoux (Layus)
On 26/03/17 21:15, Will Dietz wrote: Just to add to this, something I haven't seen neatly documented but I personally find very helpful (if a bit rough) is to run "genericBuild" from within nix-shell, which will run the phases from the derivation... and usually fail to install during installPhas

Re: [Nix-dev] garbage-collection of the last 'n' generations

2017-03-30 Thread Guillaume Maudoux (Layus)
Your system generations are under /nix/var/nix/profiles. You can `rm -i $(cd /nix/var/nix/profiles; ls *-link -1dtr | head -n -<# of versions to to keep> | grep -v $(readlink system) | xargs realpath -s)` :-) and then do a normal gc. -- Layus. On 30/03/17 15:42, Azul wrote: Hi there, I w

Re: [Nix-dev] paths in user's i3 configs broken by upgrade

2017-04-05 Thread Guillaume Maudoux (Layus)
On 05/04/17 03:46, Profpatsch wrote: On 17-04-03 04:25pm, Mark Gardner wrote: Instead of: bindsym $mod+d exec /nix/store/04sx6lx7hssid7a6iwdbdvxbkp25xsx1-dmenu-4.6/bin/dmenu_run I think it should be to be: bindsym $mod+d exec /run/current-system/sw/bin/dmenu_run The problem with /

Re: [Nix-dev] Banning people from the mailinglist?

2017-04-05 Thread Guillaume Maudoux (Layus)
+1 I read once an article showing that to avoid proliferation of annoying messages, the best action was to ignore them. Banning people just makes them want to fight harder against the perceived injustice. When new (non-constructive) "fuck systemd" messages come to this mailing list, I will d

Re: [Nix-dev] [Help] Accidentally removed configuration.nix

2017-04-06 Thread Guillaume Maudoux (Layus)
Hi, system.copySystemConfiguration is far from perfect. As soon as you modularize your config, you will miss all the other files. If you want a correct system.copySystemConfiguration, you really need https://github.com/NixOS/nix/pull/709. It allows you to snapshot all the sources of a nix der

Re: [Nix-dev] What are the rules about 'share/' directory symlinking to profile?

2017-04-20 Thread Guillaume Maudoux (Layus)
I guess the idea is that you need to install `fzf.out` explicitly, because installing `fzf` installs the first output, which is `fzf.bin`. -- Layus. On 20/04/17 11:46, Alexey Lebedeff wrote: Hi folks. What are the rules about how and when 'share/' folder of (multi-output) derivation will be

Re: [Nix-dev] What are the rules about 'share/' directory symlinking to profile?

2017-04-20 Thread Guillaume Maudoux (Layus)
f-tmp $ nix-env -f . -iA fzf.bin $ ls -la ~/.nix-profile/share/vim-plugins lrwxrwxrwx 1 root root 76 Jan 1 1970 /home/binarin/.nix-profile/share/vim-plugins -> /nix/store/3dzqj1xk6s5jfm1z4kwnkfdg9yw3xckr-fzf-0.16.6-bin/share/vim-plugins Best, Alexey Guillaume Maudoux (Layus) wri

Re: [Nix-dev] The .nixpkgs/config.nix file and user configuration

2017-05-03 Thread Guillaume Maudoux (Layus)
Hi John, I guess the reason you are not receiving many answers is that your question highlights some misconceptions, and some design issues with nix. There does not exist any declarative configuration file for user environments. /etc/nixos/configuration.nix is amazing, but has not been parte

Re: [Nix-dev] Extend wrapper created with makeWrapper

2017-05-05 Thread Guillaume Maudoux (Layus)
Stackable wrappers are implemented in https://github.com/NixOS/nixpkgs/pull/24858, but you will need to wait for that package to land in master, and then get included in some channel :-). You can also create a trivial wrapper derivation: |# file ~/.nixpkgs/config.nix { pkgs, ...}: { packageOv

Re: [Nix-dev] Extend wrapper created with makeWrapper

2017-05-08 Thread Guillaume Maudoux (Layus)
wrapQtProgram. But okular uses kdeWrapper, which doesn't seem to offer a way to extend the created wrapper. Is it really not possible to extend the wrapper created with kdeWrapper, or am I missing something? On Fri, May 5, 2017 at 4:12 PM, Guillaume Maudoux (Layus) mailto:layus...@gmail.com&

Re: [Nix-dev] If anyone is using VIM and BYOBU (or Screen or Tmux) in 256 colors - would you please send me your configuration file?

2017-05-15 Thread Guillaume Maudoux (Layus)
I do use screen+vim, but there is zero config in my configuration.nix related to that. To support my terminal (rxvt-unicode-256color) I had to `ln -s ./.nix-profile/share/terminfo .terminfo`, and install rxvt_unicode to the distant machine. I also have `set t_Co=256` in my vim config. Maybe

Re: [Nix-dev] confused using the ? operator with non literal operators

2016-05-09 Thread Guillaume Maudoux (Layus)
You are missing the only command that could enlighten you : > foo ? bar true The second operant is taken as a string literal, that's why you need to evaluate variables there. The following also works : > foo ? ${quux} true -- Layus. Le 09/05/16 à 15:25, Samuel a écrit : > Am I holding some fal

Re: [Nix-dev] Latex package to handle unicode characters?

2016-06-01 Thread Guillaume Maudoux (Layus)
Hi, `xelatex` comes with the texlive package `xetex`, which is included in scheme-small. I just checked that adding xetex to my texlive.combine function, and I have access to xelatex. You can try it yourself with $ ls -l $(nix-build -E "with import {}; pkgs.texlive.combine { foo = pkgs.texlive.s

Re: [Nix-dev] fetchurl and unpacker produced multiple directories

2016-06-03 Thread Guillaume Maudoux (Layus)
Why not simply set unpackPhase tout tour nées ? Le 3 juin 2016 09:22:33 UTC+02:00, Tomas Hlavaty a écrit : >Rok Garbas writes: >> sourceRoot = "."; >> and then you can mv/cp in postUnpack phase > >ah, great, thank you! > >Tomas >___ >nix-dev mailing li

Re: [Nix-dev] Latex package to handle unicode characters?

2016-06-06 Thread Guillaume Maudoux (Layus)
Bottom line is that texlive updates its packages frequently and our md5 are always out of sync. We mirror some packages but not the whole scheme-full. AFAIK, you can either use scheme basic, or go trough the update procedure described in texlive-new/default.nix to get a (temporarily) up-to-date

Re: [Nix-dev] How to install RubyOnRails on nixos?

2016-06-07 Thread Guillaume Maudoux (Layus)
I am sure the usual Google-fu on the mailing list archive, manuals and wiki should get you started with ruby Gems bundling. The usual workflow seems to get bundler, generate a gemspec and let some gem-to-nix tool do the packaging job. Feel free to ask more specific questions. Regards, -- Layus

Re: [Nix-dev] Broken nix database/store.

2016-06-10 Thread Guillaume Maudoux (Layus)
Le 10/06/16 à 12:09, Joachim Schiele a écrit : > On 09.06.2016 19:21, Layus wrote: >> Hi, >> >> Due to a wrong manipulation when activating dir_index on my root >> partition, I have now plenty of live orphaned paths in my store (about >> 5G) like this one: >> >> |$ nix-store -q --referrers-closur

Re: [Nix-dev] Overriding a Haskell package can't be that hard...

2016-06-24 Thread Guillaume Maudoux (Layus)
I have written nix examples in increasing order of complexity. They should help you understand what is going on behind the scenes. (see below). As for your snippets, |haskellPackages.override { overrides = self: super: { thrift = self.callPackage /home/cody/sources/thrift/lib/hs {}; }; }; | perf

[Nix-dev] Nix syntax surprise.

2016-06-24 Thread Guillaume Maudoux (Layus)
Hi, Does someone understand why the following nix expression is invalid ? |[ let a = 10; in { b = "a = ${a}"; } ] | Running |nix-instantiate --eval ./bug.nix --strict| gives |error: syntax error, unexpected ID, expecting '{', at /home/layus/bug.nix:3:5|. The manual says nothing about this in th

Re: [Nix-dev] Nix syntax surprise.

2016-06-24 Thread Guillaume Maudoux (Layus)
Yep, that's it. In my original use case however, the issue was several lines above the reported location. Thanks for your fast answer! -- Layus Le 24/06/16 à 12:15, Vladimír Čunát a écrit : > On 06/24/2016 11:58 AM, Guillaume Maudoux (Layus) wrote: >> Does someone understand why

Re: [Nix-dev] Too many open issues

2016-07-22 Thread Guillaume Maudoux (Layus)
Hi, I have tried code triage for some weeks, and finally stopped using it. Yes, it allows to spread attention to many issues, but many issues do not need attention, either because they are already in progress, or because nobody really cares. Some issues are even weirder, like the 200 issues op

Re: [Nix-dev] Too many open issues

2016-07-22 Thread Guillaume Maudoux (Layus)
Hi, May I suggest that the culprit is the tool itself ? Clearly GitHub does a poor job at managing and displaying issues. It works well for pull requests and code exploration, but not for issues. What we need is to maintain a pool of issues that need attention. Ideally this pool is quite small

Re: [Nix-dev] Seemingly inexplicable proliferation of gcc/glibc runtimes

2016-07-25 Thread Guillaume Maudoux (Layus)
My intuition tells me that you have something like gc-keep-derivations or gc-keep-outputs pinning build inputs/outputs in the store. You could use --option xxx false to disable these options temporarily when doing nix store gc. -- Layus. Le 25 juillet 2016 00:47:53 UTC+07:00, Kosyrev Serge <_

Re: [Nix-dev] Seemingly inexplicable proliferation of gcc/glibc runtimes

2016-07-28 Thread Guillaume Maudoux (Layus)
Le 27/07/16 à 19:28, Kosyrev Serge a écrit : > zimbatm writes: >> Is it possible some of them are kept from the bootstrap? What you need is a >> tool that constructs the dependency tree(s). > The key question is -- what this tool would use as source of > information? > > Let me repeat the steps:

Re: [Nix-dev] duplicate packages?

2016-08-04 Thread Guillaume Maudoux (Layus)
Le 04/08/16 à 10:57, Roland Koebler a écrit : > Hi, > > I have Nix running on Debian with the default channel [*], and I noticed, > that -- although I only have a few packages installed -- many dependencies > are installed several times. I would like to understand, why. > > [*] https://nixos.org/

Re: [Nix-dev] multiple versions of the same software? / collisions

2016-08-04 Thread Guillaume Maudoux (Layus)
Hi, I think you are putting your efforts in the wrong direction. Nix is not designed to install both python 3.4 and 3.5 in the same environment. What it can do however is cache both in the store, so you can get an environment with python 3.4 with nix-shell -p python34 and an environment with pyth

[Nix-dev] Locking issues with Nix

2016-08-09 Thread Guillaume Maudoux (Layus)
Hi nix devs, I am posting here an issue reported on [1], hoping to get a quick fix With my current version of nix, I observe the following behaviour after some calls to nix: The command hangs forever. |$ nix-build ... these derivations will be built: /nix/store/-.drv waiting for locks or

Re: [Nix-dev] multiple versions of the same software? / collisions

2016-08-12 Thread Guillaume Maudoux (Layus)
<https://github.com/garbas/pypi2nix>. also know > that pypi2nix is in early stage - still it is giving good results for > some - and i'm looking for feedback of packages that break since this > is the only way i can fix it. > > > On Thu, Aug 4, 2016

Re: [Nix-dev] Two declarative ways to install a package?

2016-08-12 Thread Guillaume Maudoux (Layus)
I would rather see it as a convenience. The package is in your store anyway, so better make it available in user shells. With mysql for example, having the mysql command in your path is not strictly necessary, but it would be really annoying not to have it. Forcing users to install it in their own

Re: [Nix-dev] Two declarative ways to install a package?

2016-08-12 Thread Guillaume Maudoux (Layus)
Le 12 août 2016 18:02:49 UTC+02:00, Arnold Krille a écrit : >On Fri, 12 Aug 2016 16:15:46 +0200 "Guillaume Maudoux (Layus)" > wrote: >> I would rather see it as a convenience. >> The package is in your store anyway, so better make it available in >> user

Re: [Nix-dev] changing the default source epoch to be zip-safe

2016-08-20 Thread Guillaume Maudoux (Layus)
Le 21 août 2016 01:30:34 UTC+02:00, Daniel Hlynskyi a écrit : >still, why 1.1.1970? Because it is a timestamp with value 0 for Linux files. Or maybe 1, to distinguish them from pure zero. > One of @edolstra's commits introduced algorithm, >that >sets source epoch time to most recent source c

Re: [Nix-dev] Multiple stores

2016-08-26 Thread Guillaume Maudoux (Layus)
Le 26/08/16 à 14:51, Freddy Rietdijk a écrit : > Hi, > > I would like to use Nix for a certain data analysis where I will have > several thousand files which are all together about two TB in size. At > the moment NixOS is installed on a SSD which is a quarter that size. > Would it be possible to

Re: [Nix-dev] nix modules: Unsetting attrsOf options?

2016-09-07 Thread Guillaume Maudoux (Layus)
I remember having som luck with config = { myattrs.a = mkForce null; } Depending on how the module handles null values, it could work. -- Layus. Le 07/09/16 à 00:35, Rickard Nilsson a écrit : > Is it possible to unset an attrsOf option? Say I import a module that > looks like this: > > option

Re: [Nix-dev] nix.buildCores and determinism

2016-10-14 Thread Guillaume Maudoux (Layus)
And because the hash does not represent the content, but the intended content, it is very important for the build to be reproducible. This means that the build must be deterministic, and stripped from information such as the host name, time of build and such. Sadly, many parallel builds are not de

Re: [Nix-dev] unequal build hash

2017-07-07 Thread Guillaume Maudoux (Layus) via nix-dev
On 07/07/17 10:28, Harmen via nix-dev wrote: On Fri, Jul 07, 2017 at 07:59:46AM +0200, Vladimír Čunát wrote: On 07/06/2017 07:35 PM, Harmen via nix-dev wrote: Does that makes sense? Did I forget a 'name' somewhere? When you use things like src = ./.; the directory gets copied into nix sto