Re: [Nix-dev] Nix as a dotfiles manager

2014-12-02 Thread Kirill Elagin
It basically links everything from `$out` to the user profile, see https://github.com/NixOS/nix/blob/master/corepkgs/buildenv.pl and, actually, https://github.com/NixOS/nix/blob/master/src/nix-env/user-env.cc#L106. Also there is

Re: [Nix-dev] Nix as a dotfiles manager

2014-12-02 Thread Sergey Mironov
2014-12-01 13:28 GMT+03:00 Sergey Mironov grr...@gmail.com: Hi. I've adopted the following compromise solution: 1) Add the file include/templatecfg.nix with the following contents { config, pkgs, ... } : { environment.etc.template_XResources.source = ../cfg/Xresources;

Re: [Nix-dev] Is anyone using Julia with PyPlot?

2014-12-02 Thread Andreas Herrmann
On Monday 01 December 2014 18:19:38 Bjørn Forsman wrote: Might be that matplotlib runs with wrong (non-gui) default backend...? At least I had some issues with that when packaging gnuradio. It does indeed `plt.get_backend()` returns agg. Thanks for that hint. I just noticed, that I misread the

[Nix-dev] use cabal2nix to create local nix environment for packages that aren't in nixpkgs

2014-12-02 Thread cdep.illab...@gmail.com
Hi, I posted the following question on Stackoverflow, but I received no responses, so I thought this list might be more appropriate. http://stackoverflow.com/questions/27215302/use-cabal2nix-to-create-local-nix-environment-for-packages-that-arent-in-nixpkg I currently have a Yesod web

Re: [Nix-dev] use cabal2nix to create local nix environment for packages that aren't in nixpkgs

2014-12-02 Thread John Wiegley
cdep illabout@gmail com cdep.illab...@gmail.com writes: I posted the following question on Stackoverflow, but I received no responses, so I thought this list might be more appropriate. Btw, I've been using the following two scripts to great success in my local haskell work: nix-cabal-build

Re: [Nix-dev] use cabal2nix to create local nix environment for packages that aren't in nixpkgs

2014-12-02 Thread Benno Fünfstück
Hi Dennis, The problem here is that `haddock` can't guess where it should find the packages (all packages are in /nix/store/somehash-...). GHC only works because the nix cabal builder takes special care to use a wrapped GHC that also looks in PATH (replacing /bin with /lib/ghc-$ver/, which is

Re: [Nix-dev] Locally built haskell package not showing up in ghci

2014-12-02 Thread Benno Fünfstück
Hi Carlo, can you try running nix-shell with --pure as an addiitional argument? If you don't pass --pure, nix-shell might pick up packages from your user environment. Benno Carlo Nucera medit...@gmail.com schrieb am Mon Dec 01 2014 at 18:59:09: Hi all, a couple weeks ago I was trying to

Re: [Nix-dev] Nix as a dotfiles manager

2014-12-02 Thread Roger Qiu
What if Nix could have a lens functionality? Check out http://augeas.net/ Then you could use lenses to manipulate the dot files or any config file from Nix. On 01/12/2014 9:28 PM, Sergey Mironov grr...@gmail.com wrote: Hi. I've adopted the following compromise solution: 1) Add the file

Re: [Nix-dev] Setting proxy environmental variables

2014-12-02 Thread masterdeZign
Dear all, thank you for the Proxies page on the nixos.org. However, I tried to follow the steps, and here is what went wrong: [root@nixos:~]# export https_proxy=some-proxy.com:3128 # The same result was for https://some-proxy.com:3128 [root@nixos:~]# export http_proxy=some-proxy.com:3128 #

Re: [Nix-dev] Nix as a dotfiles manager

2014-12-02 Thread Vladimír Čunát
On 12/01/2014 11:52 AM, Roger Qiu wrote: What if Nix could have a lens functionality? Check out http://augeas.net/ Then you could use lenses to manipulate the dot files or any config file from Nix. Yeah, lenses are great things, but in this case it would take lots of work for *each*

[Nix-dev] vim-plugins

2014-12-02 Thread Marc Weber
Leave your comments about this pull request, please: https://github.com/NixOS/nixpkgs/commit/f54f79e5a3632a510daceeb0ccd6fa1ebd8a9ce4#commitcomment-8806938 Now its possible to put all of your plugins into a ~/.vim-scripts [1] files and almost derive your nix configuration from it by doing some

Re: [Nix-dev] Nix as a dotfiles manager

2014-12-02 Thread Roger Qiu
The main idea is to allow the Nix language to cleanly specify any configuration, rather than stitching up strings. And yes it's sad that everybody has different configuration languages. But a augeas might serve as a base for all the Xtonix things. On 3/12/2014 6:50 AM, Vladimír Čunát wrote: