[Nix-dev] Installing manpages

2017-05-25 Thread Sergey Mironov
Hi! Is there a possibility to install manpages for all packages I have in NixOS. Possibly, a combinator which would convert a list of `with pkgs; [foo bar]` to `with pkgs; [foo foo.man bar bar.man]` with checks of .man existing ? Regards, Sergey PS Sorry If I am missing the topic in

Re: [Nix-dev] NixOS and nix 1.12

2017-05-09 Thread Sergey Mironov
Where can I read more about new features of nix-1.12 ? Regards, Sergey 2017-04-25 11:26 GMT+03:00 zimbatm : > At some point but there is no timeline yet. We don't even have a list of > regressions to fix before release yet. > > > On Thu, 13 Apr 2017, 15:12 Volth,

Re: [Nix-dev] For go-wizards: Building the geth using buildGoPackage

2017-04-26 Thread Sergey Mironov
:00 Profpatsch <m...@profpatsch.de>: > On 17-04-19 09:50pm, Sergey Mironov wrote: >> building the geth > > I had a short fear of sentinent AI robots, but it’s (just?) > a go package. > >> # github.com/ethereum/go-ethereum/vendor/github.com/karalabe/hid >> go/src

[Nix-dev] For go-wizards: Building the geth using buildGoPackage

2017-04-19 Thread Sergey Mironov
Hi. I'm trying to build the latest version of the geth package. Unfortunately, the current (v1.3.0) expression doesn't work anymore, so I tried to use the buildGoPackage function. The build process starts but the compiler issues errors listed below, all regarding github.com/karalade/hid

Re: [Nix-dev] [Nix-Dev] Packaging a Haskell project using Stack

2017-03-15 Thread Sergey Mironov
if there is another tool for this task (cabal2nix? stack itself?) 2017-01-10 13:20 GMT+03:00 Sergey Mironov <grr...@gmail.com>: >>> I am to package Stack project which >>> >>> 1) depends on old lts-2.21 package set from stackage >>> 2) doesn't have .cabals

Re: [Nix-dev] [Nix-Dev] Packaging a Haskell project using Stack

2017-01-10 Thread Sergey Mironov
>> I am to package Stack project which >> >> 1) depends on old lts-2.21 package set from stackage >> 2) doesn't have .cabals anymore, only .yamls. >> >> The question is basically How to do it? > > Run "hpack" to generate the Cabal files. Then run "cabal2nix" to > generate the Nix files. Add

[Nix-dev] [Nix-Dev] Packaging a Haskell project using Stack

2016-10-12 Thread Sergey Mironov
Hi. As far as I understand it correctly, https://github.com/commercialhaskell/stack/issues/2259 says that Stack mirroring in Nix is not supported anymore. Instead, per-compiler-version package sets are (re-)introduced, which are mostly Hackage-oriented. So compiling Haskell projects is still

[Nix-dev] [Nix-Dev] Problem building Haskell-lts2.21 (ghc784)

2016-10-11 Thread Sergey Mironov
Hi. I have a problem while building Haskell packages for ghc-7.8.4. I am using the following expression: { config, pkgs, ... } : let mypkgs = a : with a ; [ cabal-install alex happy parsec optparse-applicative hasktags]; in { nixpkgs.config = { packageOverrides = pkgs: {

Re: [Nix-dev] [NixDev] buildFHSUserEnv, network problems

2016-09-22 Thread Sergey Mironov
I solved my problem (2). The solution was to add "iana_etc" package to the list of 'buildFHSUserEnv'. It creates file /etc/protocols which stack reads. > Side note about Buildroot + buildFHSUserEnv. I hit an issue with > fakeroot, which Buildroot uses near the end of the build process, due > to

Re: [Nix-dev] [NixDev] buildFHSUserEnv, network problems

2016-09-22 Thread Sergey Mironov
quot; instead of "nixos.org" which is indeed > unreachable for me -- just in case, try the latter instead. > > On 09/22/2016 12:04 PM, Sergey Mironov wrote: >> Hi! I tried to use buildFHSUserEnv to create chroot environment to >> build some tricky BuildRoot project. T

[Nix-dev] [NixDev] buildFHSUserEnv, network problems

2016-09-22 Thread Sergey Mironov
Hi! I tried to use buildFHSUserEnv to create chroot environment to build some tricky BuildRoot project. The function seems to do the Right Thing in general except for network behavior: calling wget from this environment returns following

[Nix-dev] Bug(?) in derivation/hashing

2016-08-26 Thread Sergey Mironov
Hi. I recently faced a strange behavior of nix, wiich resulted in installation of package with incorrect name. Here I'd like to describe the steps I performed. There is an compilers/urweb/default.nix expression containing the expression for building Ur/Web compiler. Originally, it contained the

[Nix-dev] infinite recursion on newer nixpkgs

2016-08-04 Thread Sergey Mironov
Hi. I've updated my nixpkgs up to 8983df7 and faced an infinite recursion on the following peace of config: services = pkgs.lib.mkIf config.services.postgresql.enable { postgresql.initialScript = pkgs.writeText "postgreinit.sql" '' create role grwlf superuser login createdb createrole

Re: [Nix-dev] firefox + Nix + sha512

2016-06-08 Thread Sergey Mironov
. Who can I ask to re-gain them? 2016-06-08 20:30 GMT+03:00 Sergey Mironov <grr...@gmail.com>: > Thanks for the '--realize' command, it saved my day! > How should I know the right Nix hash to --realize in future? > > Regards, > Sergey > > 2016-05-22 10:45 GMT+03:00 Vladi

Re: [Nix-dev] firefox + Nix + sha512

2016-06-08 Thread Sergey Mironov
Thanks for the '--realize' command, it saved my day! How should I know the right Nix hash to --realize in future? Regards, Sergey 2016-05-22 10:45 GMT+03:00 Vladimír Čunát <vcu...@gmail.com>: > Hi. > > On 05/21/2016 04:00 PM, Sergey Mironov wrote: >> [...] Unfortunate

[Nix-dev] firefox + Nix + sha512

2016-05-21 Thread Sergey Mironov
Hi. I faced error: assertion failed at /home/grwlf/proj/nixcfg/nixpkgs/pkgs/build-support/fetchurl/default.nix:90:1 when tried to upgrade NixOS from older release to d541e0d. After examining the assert condition I decided to upgrade Nix from 1.10 to nix-1.12pre4591_c879a20. The error changed

[Nix-dev] Etherium software status

2016-05-18 Thread Sergey Mironov
Hi. I'd like to ask the status of expressions Etherium (a crypto-currency platform) software. Looks like their main application Mist is hosted at https://github.com/ethereum/mist. Were there any attempts to package it? Regards, Sergey ___ nix-dev

Re: [Nix-dev] Why is there no way to run `nix-shell` in a chroot and without the user's .bashrc?

2016-05-18 Thread Sergey Mironov
Hi. +1 from my side. I noticed that in nix-shell mode, Haskell setup reads global package database, so I had to write a script containing `rm -rf /run/user/1000/package.conf.d` Regards, Sergey 2016-05-16 20:20 GMT+03:00 zimbatm : > Yes, we should not load the `.bashrc`

Re: [Nix-dev] Packaging Torch

2016-03-01 Thread Sergey Mironov
-02-24 16:25 GMT+03:00 Sergey Mironov <grr...@gmail.com>: > Unfortunately, the Torch build from > https://github.com/grwlf/torch-distro has a Segfault problem. > > $ th > th> N = 5 > > [0.00

Re: [Nix-dev] Packaging Torch

2016-02-24 Thread Sergey Mironov
.0002s] th> A = A*A:t() Segmentation fault (core dumped) Core dump shows that it is the luajit who cause the fault. The source of a problem is still a mystery. Regards, 2016-02-19 16:27 GMT+03:00 Sergey Mironov <grr...@gmail.com>: > Hi again. I come to a runnable version of Torch

Re: [Nix-dev] Packaging Torch

2016-02-19 Thread Sergey Mironov
, iTorch) have failed to build. Also, the package has many Lua dependencies incorporated, one have to switch them to lua-packages.nix somehow. Regards, Sergey 2016-02-17 18:11 GMT+03:00 Sergey Mironov <grr...@gmail.com>: > Thanks! > > I'll report the progress here :) > > 2016-

Re: [Nix-dev] Packaging Torch

2016-02-17 Thread Sergey Mironov
nting not where the author's cmake file expected to point. > Didn't research, much, but if anything, I'd be interested to contribute to > little things when it comes to lua packaging. > > On Feb 16, 2016 7:06 PM, "William Casarin" <b...@casarin.me> wrote: >> >&g

[Nix-dev] Packaging Torch

2016-02-16 Thread Sergey Mironov
Hi, List. I'd like to use Torch (http://torch.ch/) on NixOS and it looks like I have to package it first. The task is not going to be easy due to (lots of) Lua and NodeJS dependencies. Also, they require what Ubuntu guys call webkit-qt. Do we have this package? I've established a forked repo

[Nix-dev] Using Nix as a package manager (for yet another language)

2016-02-12 Thread Sergey Mironov
Hi, List. I've just noticed a long topic regarding using NIx as a package manager for a language. Сoincidentally, I use Nix for the same purpose: I am working on packaging UrWeb libraries using Nix. Here is the combinators library I wrote [1] -

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

2016-02-12 Thread Sergey Mironov
Thanks, It is clear. I would also vote for shorter code here. Sergey 2016-02-12 14:21 GMT+03:00 Vladimír Čunát <vcu...@gmail.com>: > Hi. > > On 02/12/2016 12:11 PM, Sergey Mironov wrote: >> I have an issue regarding the combination of two Nix features: >> default

[Nix-dev] Link to NixOS package

2016-01-28 Thread Sergey Mironov
Hi, Is it possible to get a link pointing to a package page on NixOS Website? AFAIK, Hydra doesn't build the package I mean (urweb) so hydra.nixos.org/job/.. is not representative in this case. The package is functioning and can be compiled locally. It would be nice to let users know that they

Re: [Nix-dev] Link to NixOS package

2016-01-28 Thread Sergey Mironov
vcu...@gmail.com>: > On 01/28/2016 08:45 PM, Sergey Mironov wrote: >> AFAIK, Hydra doesn't build the package I mean (urweb) > > It does build urweb > http://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.urweb.x86_64-linux > > --Vladimir > > ___

Re: [Nix-dev] NixCon St. Petersburg 2016

2016-01-25 Thread Sergey Mironov
Hi! I am very glad to read news like this. It is a good place for meeting from my point of view, since it is close to Moscow where I am from. I'll probably visit the conference and tell friends about it. Regards, Sergey 2016-01-22 0:19 GMT+03:00 stewart mackenzie : >

Re: [Nix-dev] Pass arguments to 'required' configs

2015-11-18 Thread Sergey Mironov
by the goproxy shell alias command. > ''; > }; > }; > > config = { > environment = { > > extraInit = with config.custom.go.proxy '' > alias goproxy "nc ${port} ${host} > ''; > }; > }; > } > > > On Tue, Nov

Re: [Nix-dev] [nix-dev] private NixOS modules

2015-11-18 Thread Sergey Mironov
…; > … > } > > ** (b): > > { > imports = [ ./custom-service.nix ]; > services.openssh.enable = true = …; > … > } > > [1] http://nixos.org/nixos/manual/index.html#sec-modularity > > On Wed, Nov 18, 2015 at 8:14 AM, Sergey Mironov <grr...@gmail.com> wr

Re: [Nix-dev] [nix-dev] private NixOS modules

2015-11-18 Thread Sergey Mironov
kgs/blob/master/nixos/lib/eval-config.nix#L30 > > > On Tue, Nov 17, 2015 at 2:04 PM, Sergey Mironov <grr...@gmail.com> wrote: >> Hi. I'd like to write a couple of NixOS modules which probably don't >> look meaningful for large audience. Normally, we keep modules in >> n

Re: [Nix-dev] Pass arguments to 'required' configs

2015-11-18 Thread Sergey Mironov
Sorry, I just noticed that you have modified my example radically. Looks like this is the answer to my question regarding custom modules, thanks! Sergey 2015-11-18 12:11 GMT+03:00 Sergey Mironov <grr...@gmail.com>: > Nicolas, this solution makes sense if I understand how to include

[Nix-dev] [nix-dev] private NixOS modules

2015-11-17 Thread Sergey Mironov
Hi. I'd like to write a couple of NixOS modules which probably don't look meaningful for large audience. Normally, we keep modules in nixpkgs/nixos/modules directory and list them in module-list.nix file. In my case, I'd like to put module in a private place (which is my git repo which keeps

[Nix-dev] Pass arguments to 'required' configs

2015-11-17 Thread Sergey Mironov
Hi. This is a follow-up to my previous letter about Private NixOS modules. Another thing I am missing is the ability to pass arguments to 'required' configuration modules. Below is the illustration of the idea. Could you please give me some advice on this? Regards, Sergey // configuration.nix

[Nix-dev] Encrypted partition via loop device, syncronization

2015-11-12 Thread Sergey Mironov
Hi, List. I have an idea of setting up a small encrypted partition for storing things like passwords, wallets etc. The additional feature I want is synchronization: I'd like to use syncthing or rsync or whatever to synchronize the encrypted binary file with the whole partition between several

[Nix-dev] syncthing questions

2015-09-21 Thread Sergey Mironov
Hi, List! I have two questions regarding Syncthing synchronization service. They may be not strongly related to Nix but I'd like to ask here before going to the upstream's forum. 1) I've upgraded NixOS installations on both desktop and server workstations recently. After the upgrade I noticed

Re: [Nix-dev] syncthing questions

2015-09-21 Thread Sergey Mironov
OK, I have solved my syncthing-related problems. It turns out that I misused service.syncthing.dataDir config option. I thought it is pre-defined data directory to syncronize, but it is configuration-only directory in reality! Regards, Sergey 2015-09-21 22:28 GMT+03:00 Sergey Mironov <

Re: [Nix-dev] Haskell: Stackage and Nix

2015-09-11 Thread Sergey Mironov
Hi! I am also interested in handling Stackage packages with NixOS. I personally think that NixOS itself does all the things Stackage do and more. Unfortunately, I am to build several existing projects which use Stackage and not Nix. Nikita, are you going to patch Stack with patchelf or construct

Re: [Nix-dev] Nix expression for OpenModelica

2015-07-22 Thread Sergey Mironov
New instance of OpenModelica pull request is here. This one has some environment fixes included which make it possible to actually run the simulation. https://github.com/NixOS/nixpkgs/pull/8949 2015-07-21 14:39 GMT+03:00 Sergey Mironov grr...@gmail.com: I agree, adding OM expression to nixpkgs

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

2015-07-21 Thread Sergey Mironov
Hi! I am (forced into) using a proxy server. I have configured it as shown at the end of the letter. In general, almost everything works. Unfortunately, it seems that fetchsvn is not the case. I have the following errors while trying to build the package from sources stored in an SVN repository:

Re: [Nix-dev] Nix expression for OpenModelica

2015-07-21 Thread Sergey Mironov
: attribute ‘sitePackages’ missing, at /home/travis/.nox/nixpkgs/pkgs/top-level/python-packages.nix:7515:19 What does Travis try to make? What can I do to fix it? Regards, Sergey 2015-06-18 15:28 GMT+03:00 Rok Garbas r...@garbas.si: Quoting Sergey Mironov (2015-06-14 00:38:05) Hi! I've started

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

2015-07-21 Thread Sergey Mironov
/servers file generated: http-proxy-host = proxy.avp.ru http-proxy-port = 3128 http-proxy-username=Mironov_S http-proxy-password=Password The conclusion is: fetchsvn has to be updated in order to handle more common cases Regards, Sergey 2015-07-21 11:13 GMT+03:00 Sergey Mironov grr...@gmail.com: Hi

[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,

[Nix-dev] bluetooth status query

2015-04-04 Thread Sergey Mironov
Hi! I'd like to buy Bluetooth keyboard and headset but I have no experience of setting them up with Linux. What is current status of bluez5, does anybody try to use it? What is the status of pulseaudioFull I saw in nixpkgs? Does it work? Regards, Sergey

Re: [Nix-dev] Bash completion makes bash startup awefully slow

2015-02-18 Thread Sergey Mironov
+1 from here. I remember, in Gentoo one could select the groups of completion scripts to include into file Regards, Sergey 2015-02-14 14:54 GMT+03:00 Wout Mertens wout.mert...@gmail.com: Err, can you quantify how slow bash starts up? Anyway, Marc Weber has been working on modular bash

[Nix-dev] NetworkManager Ad-Hoc problem

2015-02-18 Thread Sergey Mironov
Hi! I've got a trouble connecting to my mobile phone's Ad-Hoc network with NetworkManager. The log contains the following [1]. Quick googling [2] shows that it may be a WPA problem, or the driver problem. Could you please advice how to fix it? Dow we use WPA or WPA2? I forked from

Re: [Nix-dev] NixOS 14.12 released

2014-12-31 Thread Sergey Mironov
Thanks and happy new year! 2014-12-31 17:19 GMT+03:00 Luca Bruno lethalma...@gmail.com: Thanks a lot to everybody for the effort. Will be a great release. On Wed, Dec 31, 2014 at 2:13 PM, Rok Garbas r...@garbas.si wrote: Awesome news! tnx everybody. Domen you rock! On Wed, Dec 31, 2014 at

Re: [Nix-dev] NixOps, managing virtual hardware and network

2014-12-08 Thread Sergey Mironov
2014-12-01 16:30 GMT+04:00 Wout Mertens wout.mert...@gmail.com: You'll have to create bridged networks in Virtualbox, one for each interface. Then you assign them to each VM. I'd just make an extra interface configurable and give your VMs a third interface. The other two are used for internet

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] NixOps, managing virtual hardware and network

2014-12-01 Thread Sergey Mironov
Hi, Wout! yup, NixOps fits the bill, but I'm not sure what you mean with being bound to the host's physical adapter. When you deploy virtualboxes with NixOps it gives the VM 2 interfaces: One host-local and one on vboxnet0. If you want a different setup you'll have to tweak nixops here:

[Nix-dev] NixOps, managing virtual hardware and network

2014-11-26 Thread Sergey Mironov
Hi, List! Please, help me to decide what deployment tools (NixOps?) to use for the following task: I'd like to build a test server for testing a hardware NAT device. The server should be a Host machine hosting 2-4 Virtual machines. Every Virtual machine should have 2 ethernet adapters: first one

Re: [Nix-dev] fetching tarballs recursively

2014-10-30 Thread Sergey Mironov
, Eelco Dolstra eelco.dols...@logicblox.com wrote: Hi, On 30/05/14 09:48, Sergey Mironov wrote: Hi! I am managing an nixpkgs branch and this branch become more and more older. There already were issues where I had to change mirror urls because of missing sources. I'd like to store as much

Re: [Nix-dev] fetching tarballs recursively

2014-10-29 Thread Sergey Mironov
wrote: Hi, On 30/05/14 09:48, Sergey Mironov wrote: Hi! I am managing an nixpkgs branch and this branch become more and more older. There already were issues where I had to change mirror urls because of missing sources. I'd like to store as much as possible into local repository

[Nix-dev] Skype drops support for ALSA

2014-08-23 Thread Sergey Mironov
Hi, I've discovered that Skype doesn't see my audio devices any more. Investigation shows that no ALSA support exist in Skype any more so I had to install PulseAudio service to make it work again. Should we declare somehow this new dependency? Regards, Sergey

[Nix-dev] Moving /nix/store to another partition

2014-07-28 Thread Sergey Mironov
Hi, List! Looks like I've made not wise choice of locating /nix/store in root (/) partition on my build server. Now all 'no space left on a device' are my friends. Is it possible to relocate /nix/store's contents into /home (located on a much larger partition) without re-installing the entire

[Nix-dev] Fwd: Moving /nix/store to another partition

2014-07-28 Thread Sergey Mironov
Sorry, forgot to CC to all. -- Forwarded message -- From: Sergey Mironov grr...@gmail.com Date: 2014-07-28 14:34 GMT+04:00 Subject: Re: [Nix-dev] Moving /nix/store to another partition To: Luca Bruno lethalma...@gmail.com 2014-07-28 13:59 GMT+04:00 Luca Bruno lethalma

Re: [Nix-dev] Moving /nix/store to another partition

2014-07-28 Thread Sergey Mironov
Thanks! I'll try to relocate it this way. Regards, Sergey 2014-07-28 14:41 GMT+04:00 Eelco Dolstra eelco.dols...@logicblox.com: Hi, On 28/07/14 11:54, Sergey Mironov wrote: Hi, List! Looks like I've made not wise choice of locating /nix/store in root (/) partition on my build server. Now

[Nix-dev] eval or in-place expression execution

2014-07-11 Thread Sergey Mironov
Hi. I need to do non-trivial string calculations (encrypt the password with openssl) which AFAIK can't be written in Nix at the moment. That's why I think about Nix `eval` equivalent. I wonder if it goes against Nix concepts or not? My implementation looks like the following: encryptPassword =

Re: [Nix-dev] eval or in-place expression execution

2014-07-11 Thread Sergey Mironov
' can not. Is it a bug or a feature? Maybe import also should block such attempts and I've just found an exploit? 2014-07-11 12:04 GMT+04:00 Luca Bruno lethalma...@gmail.com: On 11/07/2014 09:46, Sergey Mironov wrote: Hi. I need to do non-trivial string calculations (encrypt the password

Re: [Nix-dev] Compile Haskell program on nixos that works on ubuntu server

2014-07-08 Thread Sergey Mironov
Hi! My 2 cents: I create /nix/store on standalone server and copy all the dependencies (as listed by nix-store -qR app) there in order to run NixOS application. Of cause, I use root access in order to do it. Refards, Sergey 2014-07-06 15:56 GMT+04:00 Vladimír Čunát vcu...@gmail.com: On

Re: [Nix-dev] string vs path hell

2014-06-10 Thread Sergey Mironov
OK, you are right. My code snippet really works fine. So I feel I must post a part of my real code which still doesn't work for me. It is a bit long, but maybe you will be able to help me find a mistake. Here it is (below). This expression takes a set of paths to the executables (exe // setuids)

Re: [Nix-dev] string vs path hell

2014-06-10 Thread Sergey Mironov
/foo; } ] ~ Dunno, you should probably inspect your `exe` set closer in case something's wrong with values there. -- Кирилл Елагин On Tue, Jun 10, 2014 at 10:41 AM, Sergey Mironov grr...@gmail.com wrote: OK, you are right. My code snippet really works fine. So I feel I

[Nix-dev] string vs path hell

2014-06-09 Thread Sergey Mironov
Hi. I've faced a path/string problem. Looks like the code lib.splitString - (toString (./some/valid/path)) returns [ ./some/valid/path ] instead of [ some valid path ] in other words, looks like paths are treated in a some special way. Is it a known issue? Regards, Sergey

Re: [Nix-dev] string vs path hell

2014-06-09 Thread Sergey Mironov
2014-06-09 16:34 GMT+04:00 Luca Bruno lethalma...@gmail.com: On 09/06/2014 14:32, Sergey Mironov wrote: lib.splitString - (toString (./some/valid/path)) Perhaps you should split by / instead of -? Sorry, this is my copypaste mistake. I've meant another file name. The correct code

[Nix-dev] fetching tarballs recursively

2014-05-30 Thread Sergey Mironov
Hi! I am managing an nixpkgs branch and this branch become more and more older. There already were issues where I had to change mirror urls because of missing sources. I'd like to store as much as possible into local repository in order to protect myself from such situations. Is there a way to

Re: [Nix-dev] xfce: 'lock screen' button

2014-05-20 Thread Sergey Mironov
/home/ielectric/bin/xflock4 scrot /tmp/screen_locked.png convert /tmp/screen_locked.png -scale 10% -scale 1000% /tmp/screen_locked.png killall -SIGUSR1 dunst DISPLAY=:0.0 i3lock -i /tmp/screen_locked.png --nofork -d killall -SIGUSR2 dunst On Fri, May 16, 2014 at 8:56 AM, Sergey Mironov

[Nix-dev] xfce: 'lock screen' button

2014-05-16 Thread Sergey Mironov
Hi. A question to Xfce gurus: In my current config the 'lock screen' button performs no action. If I install xscreensaver, the button will run it, but the login prompt window looks a bit .. Xy. Does anybody know how to connect 'lock screen' button with lightdm display manager? Regards, Sergey

[Nix-dev] Nix language: converting an attribute set to a list

2014-04-14 Thread Sergey Mironov
Hi. Nix language has a built-in function builtins.listToAttrs which converts list to the Attrs. I'm searching a way to make an opposite thing - convert attrs to a list. Say, I'd like to convert users = { root = { name = root; group = groups.root; }; ssh = { name = ssh ;

[Nix-dev] Fwd: Installing wireless drivers

2014-04-01 Thread Sergey Mironov
NetworkMangager? On Mon, Mar 31, 2014 at 9:27 PM, Sergey Mironov grr...@gmail.com wrote: Hi. Have you checked this wiki? https://nixos.org/wiki/WICD By the way, NetworkManager or KDE's equivalent may be a better choice for managing wireless networks. Wicd worked for me too, but it looks abandoned

Re: [Nix-dev] NiJS package manager

2014-04-01 Thread Sergey Mironov
Hi! Interesting project, but I mostly agree with Colin: asynchronous programming is hard and in my opinion wouldn't become a 'killer feature'. More, I am sure there are concepts in functional languages which will overcome the callback-passing approach of JavaScript. I think, Haskell's continuation

Re: [Nix-dev] NiJS package manager

2014-04-01 Thread Sergey Mironov
OK, april 1st? 2014-04-01 23:11 GMT+04:00 Sergey Mironov grr...@gmail.com: Hi! Interesting project, but I mostly agree with Colin: asynchronous programming is hard and in my opinion wouldn't become a 'killer feature'. More, I am sure there are concepts in functional languages which

Re: [Nix-dev] Installing wireless drivers

2014-03-31 Thread Sergey Mironov
(Sorry, forgot to reply to all) Hi. Have you checked this wiki? https://nixos.org/wiki/WICD By the way, NetworkManager or KDE's equivalent may be a better choice for managing wireless networks. Wicd worked for me too, but it looks abandoned by it's developers. Regards, Sergey 2014-03-31 10:10

[Nix-dev] login: Cannot make/remove an entry for the specified session

2014-03-28 Thread Sergey Mironov
Hi. A question to PAM wizards: what may be wrong with my login setup? `login' returns the [topic] error when I start it from the console. Is this method still supported or maybe systemd denies it? I'm trying to setup the shellinaboxd server (a web console), and it uses `login' in this way to start

Re: [Nix-dev] Compiling Thunar from git

2014-03-18 Thread Sergey Mironov
I actually started with copying Thunar from nixpkgs, and https://nixos.org/wiki/Howto_develop_software_on_nixos#Example_1:_Using_nix-shell_to_Initialize_a_Development_Shell I have made a small change in Thunar source and I wanted to test it, and it seems appropriate to do it with git HEAD.

Re: [Nix-dev] Compiling Thunar from git

2014-03-17 Thread Sergey Mironov
in which package is dbus-shared.h? On Sun, Mar 16, 2014 at 6:11 PM, Vladimír Čunát vcu...@gmail.com wrote: On 03/16/2014 05:52 PM, Sergey Mironov wrote: Try adding [pkgs.autoconf pkgs.automake pkgs.m4] to the buildInputs. Maybe try adding autoreconfHook into buildInputs instead. That should add

Re: [Nix-dev] Compiling Thunar from git

2014-03-17 Thread Sergey Mironov
2014-03-17 16:25 GMT+04:00 Vladimír Čunát vcu...@gmail.com: Hi. On 03/17/2014 12:55 PM, Strahinja Popovic wrote: I have tried all that, it is still not working. Like it is not looking at all inside dbus_libs package. I have attached thunar.nix and make output. OMG, this thunar

Re: [Nix-dev] Compiling Thunar from git

2014-03-16 Thread Sergey Mironov
Hi! Maybe, here is what is going on: Existing thunar expression builds Thunar from a tarball which already has ./configure script. In contrast, you don't have it in your git-tree so you need more dependencies to let ./autogen.sh to build it. Try adding [pkgs.autoconf pkgs.automake pkgs.m4] to the

Re: [Nix-dev] Compiling Thunar from git

2014-03-16 Thread Sergey Mironov
Didn't know about autoreconfHook, thanks! 2014-03-16 21:11 GMT+04:00 Vladimír Čunát vcu...@gmail.com: On 03/16/2014 05:52 PM, Sergey Mironov wrote: Try adding [pkgs.autoconf pkgs.automake pkgs.m4] to the buildInputs. Maybe try adding autoreconfHook into buildInputs instead. That should add

Re: [Nix-dev] Building linux kernle with manual-config.nix

2014-03-12 Thread Sergey Mironov
, Mar 07, 2014 at 12:17:50PM +0400, Sergey Mironov wrote: Hi. I am trying to build my own minimalistic kernel with `buildLinux' defined in kernel/manual-config.nix. I've written the wrapper expression as follows: # linuxHandMade.nix { stdenv, fetchurl, buildLinux } : buildLinux rec

Re: [Nix-dev] Building linux kernle with manual-config.nix

2014-03-07 Thread Sergey Mironov
#L77 2014-03-07 12:17 GMT+04:00 Sergey Mironov grr...@gmail.com: Hi. I am trying to build my own minimalistic kernel with `buildLinux' defined in kernel/manual-config.nix. I've written the wrapper expression as follows: # linuxHandMade.nix { stdenv, fetchurl, buildLinux } : buildLinux rec

[Nix-dev] [Nix-pkgs] man pages for C functions

2014-02-18 Thread Sergey Mironov
I've noticed that NixOS doesn't provide man pages for well-known C functions from it's stdlib. Probably most of the users don't need them, but I'd prefer to install it on my system. Do we have such an option? If not, I probably can write a separate expression. What package does contain them?

Re: [Nix-dev] [Nix-pkgs] man pages for C functions

2014-02-18 Thread Sergey Mironov
Didn't know about this! Thanks! 2014-02-18 21:05 GMT+04:00 Lluís Batlle i Rossell vi...@viric.name: On Tue, Feb 18, 2014 at 08:52:17PM +0400, Sergey Mironov wrote: I've noticed that NixOS doesn't provide man pages for well-known C functions from it's stdlib. Probably most of the users don't

Re: [Nix-dev] nix-shell NetworkManager

2014-02-17 Thread Sergey Mironov
2014-02-17 14:38 GMT+04:00 Cillian de Róiste cillian.deroi...@gmail.com: Hi, I don't know the answer to your question, but just in case you overlooked it, your user needs to be a member of the networkmanager group to be able to use NetworkManager. Cheers, Cillian Yes, I know about this,

Re: [Nix-dev] nix-shell NetworkManager

2014-02-17 Thread Sergey Mironov
configuration? I guess this happens when you try to connect on protected wifi, right? d. On Mon, Feb 17, 2014 at 12:15 PM, Sergey Mironov grr...@gmail.com wrote: 2014-02-17 14:38 GMT+04:00 Cillian de Róiste cillian.deroi...@gmail.com: Hi, I don't know the answer to your question

Re: [Nix-dev] nix-shell NetworkManager

2014-02-17 Thread Sergey Mironov
be easier to debug this on irc FreeNode #nixos On Mon, Feb 17, 2014 at 1:41 PM, Sergey Mironov grr...@gmail.com wrote: Yes, it pops up the error when I try to connect to protected wifi. My configuration has nothing special in the area of networking, but I am using Xfce as a window manager (I guess

Re: [Nix-dev] nix-store -q --references in more details

2014-02-16 Thread Sergey Mironov
Thanks, it works! I didn't know about strings as well. Small addition: Its better to execute strings with -a option to really discover all stings. Sergey 2014-02-12 15:08 GMT+04:00 Vladimír Čunát vcu...@gmail.com: On 02/12/2014 11:32 AM, Eelco Dolstra wrote: I use grep -r to find the binaries

[Nix-dev] nix-shell NetworkManager

2014-02-16 Thread Sergey Mironov
Hi! I tried debug a nasty NetworkManager (32) insufficient privileges problem by building my own hacked version of the package. I called nix-shell and tried to build the sources. Both patchPhase and configurePhase run without problems, but buildPhase stoppes with an error saying

Re: [Nix-dev] nix-shell NetworkManager

2014-02-16 Thread Sergey Mironov
2014-02-16 22:44 GMT+04:00 Sergey Mironov grr...@gmail.com: Hi! I tried debug a nasty NetworkManager (32) insufficient privileges problem by building my own hacked version of the package. I called nix-shell and tried to build the sources. Both patchPhase and configurePhase run without problems

[Nix-dev] nix-store -q --references in more details

2014-02-12 Thread Sergey Mironov
Hi. I'd like to automatically filter out gcc from my hand-made initrd image created with make-initrd.nix. The problem is that some packages depend on gcc package, but we know that they probably need libgcc_s.so.1 only. So I plan to know is it really true or not. Unfortunately, `nix-store -q

Re: [Nix-dev] boot problem: stage1 repair console doesn't work under VirtualBox

2014-02-05 Thread Sergey Mironov
I've tried this approach on a real machine, the result is the same. 2014-02-05 Sergey Mironov grr...@gmail.com: Hi! Looks like stage1 repair console can't read user input, at least under VirtualBox. Here is how to reproduce the problem: 1. Boot VirtualBox with NixOS minimal installation CD

Re: [Nix-dev] boot problem: stage1 repair console doesn't work under VirtualBox

2014-02-05 Thread Sergey Mironov
, Feb 05, 2014 at 12:00:05PM +0400, Sergey Mironov wrote: I've tried this approach on a real machine, the result is the same. Does it happen with a master iso image? At some point, we missed the atkbd module in stage 1. In case of a USB keyboard, something similar may happen. 2014-02-05

Re: [Nix-dev] boot problem: stage1 repair console doesn't work under VirtualBox

2014-02-05 Thread Sergey Mironov
...@gmail.com: On 02/05/2014 11:34 AM, Sergey Mironov wrote: linux_3_10 = pkgs.linux_3_10.override { extraConfig = '' KEYBOARD_ATKBD y ''; }; Adding the module to boot.initrd.kernelModules should work the same without rebuilding the kernel, won't

[Nix-dev] Please explain grub installer

2014-02-04 Thread Sergey Mironov
Hi! I've got a troubles while trying to understand how does install-grub.pl works (maybe that is because I'm not skilled in perl). Here is what I am trying to figure out: grub.nix calls ./install-grub.pl with XML parameter list as an argument.

Re: [Nix-dev] Please explain grub installer

2014-02-04 Thread Sergey Mironov
Thanks, I understand now. 2014-02-04 Eelco Dolstra eelco.dols...@logicblox.com: Hi, On 04/02/14 12:04, Sergey Mironov wrote: Hi! I've got a troubles while trying to understand how does install-grub.pl works (maybe that is because I'm not skilled in perl). Here is what I am trying

[Nix-dev] boot problem: stage1 repair console doesn't work under VirtualBox

2014-02-04 Thread Sergey Mironov
Hi! Looks like stage1 repair console can't read user input, at least under VirtualBox. Here is how to reproduce the problem: 1. Boot VirtualBox with NixOS minimal installation CD attached 2. Press 'e' in the grub to edit kernel command line 3. Add bood.debug1 kernel argument 4. Boot Repair

[Nix-dev] (Cross-)Building a custom installation CD

2014-01-20 Thread Sergey Mironov
Hi. I need to create a custom installation CD to be able to install a very minimalistic Linux system to a target device (an x86 server with known set of hardware). Target OS should contain no multy-user support, no plug-and-play and even no package manager. It's task is to run one and only

[Nix-dev] curl SSL question

2013-12-11 Thread Sergey Mironov
Hi. A questions to curl experts. I'm working with application which uses libcurl to send https:// requests. For the security reasons application enables both SSL_VERIFY* options curl_easy_setopt(c, CURLOPT_SSL_VERIFYPEER, 1); curl_easy_setopt(c, CURLOPT_SSL_VERIFYHOST, 2); Unfortunately,

Re: [Nix-dev] curl SSL question

2013-12-11 Thread Sergey Mironov
How does it supposed to contact with ca-bundle.crt? env var CURL_CA_BUNDLE - Is this an openssl-specific problem? Does anybody try it with gnutls? It's a CURL thing. :) Wait, but I have this variable set (and probably I had it set at the time of test failures). OK, I probably should

Re: [Nix-dev] A generic wrapper method (possibly)

2013-12-02 Thread Sergey Mironov
Hi! Plus one from here. I also notice '.myapp-wrappers' while alt-tab-switching tasks and it is not good for the endusers. A note about binary programs. May we say that applying a wrapper breaks only applications with interpreters (like python, shell, perl) and does not affects binary

Re: [Nix-dev] Nixpkgs-monitor. New milestone: patches

2013-11-28 Thread Sergey Mironov
2013/11/28 Vladimír Čunát vcu...@gmail.com: On 11/28/2013 08:57 AM, Sergey Mironov wrote: Hi! Could you please repost the link to the nixpkgs-monitor? https://vdmvtkitqc3grub6.onion.to/ How can you not remember it :-D Awesome! But. Tor2web Error: Generic Socks Error A typo, maybe

  1   2   >