Re: [Nix-dev] Error: invalid printer model name

2017-06-26 Thread Kirill Elagin
elName: "Canon MP250 series" > > I think this might be where I leave the rabbit hole... > > > > On 20 June 2017 at 20:57, Kirill Elagin <kirela...@gmail.com> wrote: > >> Well, the log you posted is pretty clear on that: `pstocanonij` is >> callin

Re: [Nix-dev] /usr/bin/gs and /usr/bin/cifmp250

2017-06-20 Thread Kirill Elagin
-rpath $libPath:$out/lib \ > $out/lib/cups/backend/cnijnet > > ls -lh $out/lib/ > ls -lh $out/ > > ln -sv $out/lib/libcnbpcmcm356.so.8.0.1 $out/lib/libcnbpcmcm356.so > ln -sv $out/lib/libcnbpcnclbjcmd356.so.3.3.0 > $out/lib/libcnbpcnclbjcmd356.so > ln -sv $out/li

Re: [Nix-dev] symlink permission denied in builder.sh

2017-06-20 Thread Kirill Elagin
You do `chmod 777` on a bunch of files, but not on `$out/lib`, but it’s the creation of a link in `$out/lib` that fails, and according to your output of `ls` the `lib` directory does not have the `w` permission indeed, which is required to create a link in it. I am not sure how this works

Re: [Nix-dev] printing on nix

2017-06-20 Thread Kirill Elagin
I’m not quite sure, but I always thought CUPS was searching for the filter in the PATH: https://github.com/NixOS/nixpkgs/blob/50fadc8b18fb3da6bda2f3710009a15f6ac45567/nixos/modules/services/printing/cupsd.nix#L79 I don’t think the NixOS module has a simple way to adjust PATH, but you could try

Re: [Nix-dev] nixops: Deploying from macOS

2017-05-28 Thread Kirill Elagin
; BTW, why not let nix-daemon read the configuration from /etc so that it > can change at runtime? > > On Sun, May 28, 2017, 8:13 AM Kirill Elagin <kirela...@gmail.com> wrote: > >> I still can’t make sense of the troubles you were experiencing. >> >> As fa

Re: [Nix-dev] networking.wlanInterfaces issues

2017-05-28 Thread Kirill Elagin
On Sat, May 27, 2017 at 10:28 PM Tomas Hlavaty wrote: > Hi, > > I have issues with wifi configuration on 17.03.1203.58e227052d > (Gorilla): > > 1) specifying mac address doesn't work: > >building the system configuration... >error: undefined variable ‘device’ at >

Re: [Nix-dev] Disappearing X session on some systems

2017-05-28 Thread Kirill Elagin
Is there anything noteworthy in the X log? dmesg? Surely it doesn’t just disappear without saying anything at all, right? On Sat, May 27, 2017 at 6:57 PM Evan Rowley wrote: > Has anyone left their NixOS machine running for awhile, come back to it, > and saw a console on

Re: [Nix-dev] nixops: Deploying from macOS

2017-05-28 Thread Kirill Elagin
wrote: > The problem is probably ssh-ing into the VM it should be using for > building. This probably fails due to not having the correct environment, > and then it silently decides building on OSX. > > On Fri, May 26, 2017, 12:39 PM Kirill Elagin <kirela...@gmail.com> wrote: &g

Re: [Nix-dev] nixops: Deploying from macOS

2017-05-27 Thread Kirill Elagin
ely deterministic and fixed, so that Hydra will build everything, including configs, and nixops will be able to fetch everything it needs to deploy the machine from the cache. > > > On 26 May 2017 at 12:39:22, Kirill Elagin (kirela...@gmail.com) wrote: > > Hi, > > I have finally s

[Nix-dev] nixops: Deploying from macOS

2017-05-26 Thread Kirill Elagin
Hi, I have finally switched my laptop to using nix-daemon and got bitten by https://github.com/NixOS/nixops/issues/260 (and/or https://github.com/NixOS/nixops/issues/483). To be honest, I am completely lost. Could someone please explain to me what is going on here? 1. The error that I get is

[Nix-commits] [NixOS/nixpkgs] fcfe3c: jemalloc: 4.1.1 -> 4.3.1

2016-11-12 Thread Kirill Elagin
Branch: refs/heads/staging Home: https://github.com/NixOS/nixpkgs Commit: fcfe3c0909c7703bf5cfe6a7c2402e7e1b08b1d6 https://github.com/NixOS/nixpkgs/commit/fcfe3c0909c7703bf5cfe6a7c2402e7e1b08b1d6 Author: Kirill Elagin <kirela...@gmail.com> Date: 2016-11-12 (Sat, 12 No

Re: [Nix-dev] What license does the content of the nixos wiki and the manuals have?

2015-09-25 Thread Kirill Elagin
I’d like to also point out another problem. In case some of contributors do not agree to the new terms, how are we going to delete their contributions? My understanding is that simply deleting the content in question from the page is not enough, it’s wiki actually. We’ll have to see how, for

Re: [Nix-dev] ghc --enable-multi-instance, the end of cabal hell ?

2015-09-20 Thread Kirill Elagin
I’m sorry, I haven’t been following the development of GHC recently and there is one thing I didn’t get. Why starting from “Problem 3” he keeps referring to “Nix hashes” and “Nix store”? Is it just an analogy or does GHC in some way actually use Nix under the hood? On Sat, Sep 19, 2015 at 2:30

Re: [Nix-dev] Nixpkgs [haskell] overlay

2015-09-02 Thread Kirill Elagin
You can override haskellPackages [almost] just like other nixpkgs pkgs. Something like: haskellngPackages = pkgs_.haskellngPackages.override { overrides = self: super: { your-package = … }; }; (This goes to `packageOverrides` as always.) On Wed, Sep 2, 2015

Re: [Nix-dev] Custom packages and build-support functions

2015-09-02 Thread Kirill Elagin
`buildPecl` is defined in `top-level/php-packages.nix`, which is imported in `top-level/all-packages.nix` as `phpPackages`. So try replacing `buildPecl` with `phpPackages.buildPecl`. On Wed, Sep 2, 2015 at 8:08 AM Eric Sagnes wrote: > Hi, > > While trying to add the image

Re: [Nix-dev] Understanding runtime dependencies

2015-09-02 Thread Kirill Elagin
The problem here is that `Wand-config` is just a plain dumb shell script. And it does invoke `pkg-config`. As you might imagine, whenever you run a shell script and it, in turn, runs a command, what happens is exactly the same as when you run run that command yourself: it is being looked up in

Re: [Nix-dev] funding nixos documentation

2015-07-23 Thread Kirill Elagin
nix-assistant looks nice! By the way, there is https://en.wikipedia.org/wiki/Help:Export (e.g. https://nixos.org/wiki/Special:Export/Creating_a_NixOS_live_CD and https://nixos.org/wiki/Special:AllPages). On Thu, Jul 23, 2015 at 5:03 AM Joachim Schiele j...@lastlog.de wrote: hey, sorry that i

Re: [Nix-dev] [monitor.nixos.org]: Monitor generates patches where the subject does not fit the new scheme

2015-06-27 Thread Kirill Elagin
On Fri, Jun 26, 2015 at 8:02 PM Eelco Dolstra eelco.dols...@logicblox.com wrote: BTW, this really should be in the Nixpkgs manual, not in some random markdown file. Actually, the file is not random, it is the one that GitHub suggests to review when someone opens an issue or a pull-request

Re: [Nix-dev] /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found trying to install on RHEL 6.5

2015-06-26 Thread Kirill Elagin
This basically means that Nix expects a different version of libstdc++. You can use `objdump` or `readelf` on your library to find out which version you have. Your options are upgrading (or downgrading which is less likely) gcc (which provides this library) or building Nix yourself using gcc that

Re: [Nix-dev] fetchFromGithub

2015-05-31 Thread Kirill Elagin
I believe everyone just puts some random hash and then copy-pastes the right one from the error message. (See also https://github.com/NixOS/nixpkgs/issues/6750) On Mon, Jun 1, 2015 at 4:44 AM Arseniy Seroka ars.ser...@gmail.com wrote: Hello! What is a proper way to get pkg's sha if I use

Re: [Nix-dev] Building OpenWrt: mysterious segfaults

2015-05-21 Thread Kirill Elagin
By carefully stracing everything I figured out that they were setting `LD_LIBRARY_PATH` to `/lib` which resulted in incompatible libc being loaded, huh. OpenWrt just finished building successfully. On Wed, May 20, 2015 at 11:06 AM, Kirill Elagin kirela...@gmail.com wrote: I’m trying to build

[Nix-dev] Building OpenWrt: mysterious segfaults

2015-05-20 Thread Kirill Elagin
I’m trying to build OpenWrt on my Gentoo laptop. I never had any issues with this, but now I have some and the problem clearly is that I don’t have system-wide Git, only the one installed into my user profile. It all started at the very beginning, when the Makefile was looking for the tools it

Re: [Nix-dev] Leap Second

2015-05-19 Thread Kirill Elagin
What is exactly the issue with this leap second, and what do you mean by NixOS being affected? On Tue, May 19, 2015, 11:56 Roger Qiu roger@polycademy.com wrote: Will NixOS be affected by the leap second issue that's coming up on June 30 2015? -- Founder of Matrix AI http://matrix.ai/

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

2015-05-14 Thread Kirill Elagin
`pmount` is pretty stupid compared to, say, UDisks (as far as I understand it just allows everyone to mount any removable device), so it doesn’t really make any sense to say that it is supported or unsupported on any given distro. I’d like to note that as part of its “policy” `pmount` checks

Re: [Nix-dev] Best practives for handling setuid build inputs

2015-05-09 Thread Kirill Elagin
First of all, you should realise that it is not possible to handle this on the side of Nix/Nixpkgs. The user is free to build any expression he likes and it follows that it is insecure for Nix to produce any kind of suid binaries. You can see how [NixOS does this](

Re: [Nix-dev] Failed to add route because network is unreachable

2015-04-28 Thread Kirill Elagin
It would be nice if you showed us the output of `ip route` at the point where `ip route add` fails. Also `ip route get 136.243.17.1` might give some hints. It totally looks like the gateway you are trying to use is unreachable. To be honest, I have no idea what does the `mainIPv4 =

Re: [Nix-dev] haskellngPackages.cabal-instal wont install after haskell-generic-builder: gratuitous ...

2015-04-18 Thread Kirill Elagin
store. On Fri, Apr 17, 2015 at 7:26 PM James Cook james.c...@utoronto.ca wrote: Isn't this what nix-env --repair is for? I haven't used it, but that's what I would try first. James On 17 April 2015 at 07:51, Kirill Elagin kirela...@gmail.com wrote: I don’t understand much about those GHC

Re: [Nix-dev] Per-user default binary caches

2015-04-17 Thread Kirill Elagin
I don’t think Nix has any kind of user configuration. So, seems that the only option is creating a shell alias or something like that. On Fri, Apr 17, 2015 at 3:25 AM Ertugrul Söylemez ert...@gmx.de wrote: Hello everybody, is there a way to set a default binary cache for my regular user

Re: [Nix-dev] Binary trust

2015-04-17 Thread Kirill Elagin
That’s cool. Can you tell us more about the format of the keys etc.? It looks like you rely on libsodium which in turn uses a kind of EdDSA, so the `doc/signing.txt` is outdated. I didn‘t dive into the code, but my guess is that the part before colon is just the name of the key and the colon is

Re: [Nix-dev] haskellngPackages.cabal-instal wont install after haskell-generic-builder: gratuitous ...

2015-04-17 Thread Kirill Elagin
You also have to uninstall everything that may keep ghc from being garbage collected (this means removing any Haskell-related packages from your profiles [and getting rid of other gc roots if you have them]). On Fri, Apr 17, 2015 at 5:51 PM Kirill Elagin kirela...@gmail.com wrote: I don’t

Re: [Nix-dev] haskellngPackages.cabal-instal wont install after haskell-generic-builder: gratuitous ...

2015-04-17 Thread Kirill Elagin
I don’t understand much about those GHC package IDs issues but I guess it might be the cause here. The typical solution is to do: $ nix-store --delete /nix/store/*-ghc-7.8.4 On Fri, Apr 17, 2015 at 5:44 PM Mads Lindstrøm mads.lindstr...@gmail.com wrote: Hi all, When I run:

Re: [Nix-dev] bluetooth status query

2015-04-16 Thread Kirill Elagin
It might be a little bit late but I’ve been using an Apple Magic Trackpad for some time (more than a year) without any problems. Without any NixOS-specific problems, to be precise. My bluetooth mouse is also working fine although I don’t use it. On Sat, Apr 4, 2015 at 1:45 PM Sergey Mironov

Re: [Nix-dev] Haskell NG: Still no binaries

2015-04-16 Thread Kirill Elagin
Might it be the case that you are running nix in daemon mode and thus it ignores `binary-caches`? On Thu, Apr 16, 2015 at 7:50 PM Ertugrul Söylemez ert...@gmx.de wrote: Hi Peter, nix-env \ --option extra-binary-caches https://hydra.nixos.org \ --option extra-binary-caches

Re: [Nix-dev] Haskell NG: Still no binaries

2015-04-16 Thread Kirill Elagin
On Thu, Apr 16, 2015 at 11:33 PM Ertugrul Söylemez ert...@gmx.de wrote: IMHO, nix-env should pass those options on to the daemon, i.e. it should not be necessary to hard-code hydra.cryp.to as a global binary cache for this to work. Actually I'm not sure whether this is such a good idea.

Re: [Nix-dev] Binary trust (was: Haskell NG: Still no binaries)

2015-04-16 Thread Kirill Elagin
Actually, that’s an interesting question. I always assumed they were signed (AFAIK `nix-store` is able to check signatures contained inside NAR-files), but now I wonder how does hydra.cryp.to sign NAR’s… On Thu, Apr 16, 2015 at 9:09 PM Ertugrul Söylemez ert...@gmx.de wrote: Hi Kirill,

Re: [Nix-dev] Binary trust

2015-04-16 Thread Kirill Elagin
That’s not cool at all. An easy way would be to force TLS. Another option could be to sign NARs with a certificate tied to the hostname of the trusted binary cache and issued by a special NixOS/Nixpkgs CA. On Thu, Apr 16, 2015 at 11:30 PM Peter Simons sim...@cryp.to wrote: Hi Kirill,

Re: [Nix-dev] nixos-unstable channel update!

2015-04-11 Thread Kirill Elagin
I wasn’t aware of problems with channels updates, so could anyone explain in a few lines what was going on? Some weeks ago I needed a more recent version of nixpkgs than the one that was available on the channel, so I picked the most successful evaluation of nixpkgs:trunc, checked it out locally

Re: [Nix-dev] nixos-unstable channel update!

2015-04-11 Thread Kirill Elagin
to commit from 9th of April. On 11 April 2015 14:35:26 Kirill Elagin kirela...@gmail.com wrote: I wasn’t aware of problems with channels updates, so could anyone explain in a few lines what was going on? Some weeks ago I needed a more recent version of nixpkgs than the one that was available

Re: [Nix-dev] Improving security updates

2015-04-11 Thread Kirill Elagin
On Sat, Apr 11, 2015 at 12:57 AM Jonathan Glines auntie...@gmail.com wrote: 2015/04/10 15:54 Bjørn Forsman bjorn.fors...@gmail.com: On 10 April 2015 at 23:35, Jonathan Glines auntie...@gmail.com wrote: [...] I think it would be useful to have a bump bot for nixpkgs that could scan

Re: [Nix-dev] Q - Querying for common C tools like make and kernel headers

2015-03-28 Thread Kirill Elagin
This stuff (common development tools) is called `stdenv`. It is available as `pkgs.stdenv`, but the interesting part is here: https://github.com/NixOS/nixpkgs/tree/master/pkgs/stdenv. The kernel is available as `pkgs.linux_version` e.g. `pkgs.linux_3_18` (I think stdenv includes only the

Re: [Nix-dev] Overriding a node package

2015-03-26 Thread Kirill Elagin
Hello? Anyone using Node.js with nixpkgs? On Mon, Mar 9, 2015 at 4:38 PM Kirill Elagin kirela...@gmail.com wrote: I have a package (`pkgs.keybase-node-client` to be precise) which is generated by `nodePackages.buildNodePackage`. I want to install it from my local git repo. I have no idea

[Nix-dev] haskellNG binary cache

2015-03-20 Thread Kirill Elagin
Is something wrong with haskellNG substitutions or is it just me? I updated the channels for the first time in a while and most of the haskell packages are going to be built. I have hydra.nixos.org and hydra.cryp.to in `binary-caches`. ___ nix-dev

Re: [Nix-dev] haskellNG binary cache

2015-03-20 Thread Kirill Elagin
will be fine after I download another dozen of gigabytes :). Sorry for the noise. On Fri, Mar 20, 2015 at 10:11 AM Kirill Elagin kirela...@gmail.com wrote: Is something wrong with haskellNG substitutions or is it just me? I updated the channels for the first time in a while and most of the haskell

Re: [Nix-dev] Question about organising dependencies not in core nixpkgs?

2015-03-18 Thread Kirill Elagin
I’d say there is a more general problem. Imagine, that one day [in a far far away future] people start shipping derivations in `default.nix` in their sources (I guess people who develop on NixOS/with nixpkgs already do this as they have the file for their build environment anyway, so why not

Re: [Nix-dev] synaptics touchpad configuration question

2015-03-17 Thread Kirill Elagin
On Mon, Mar 16, 2015 at 8:05 AM, Kirill Elagin kirela...@gmail.com wrote: Well, the next thing to check is the X log. When X detects an input device, it lists all the options it is going to apply, so check that RBCornerButton is actually applied. Also, does the option work if you set

Re: [Nix-dev] synaptics touchpad configuration question

2015-03-16 Thread Kirill Elagin
Well, the next thing to check is the X log. When X detects an input device, it lists all the options it is going to apply, so check that RBCornerButton is actually applied. Also, does the option work if you set it manually (I mean, not in X config, but by actually calling `synclient` from the

Re: [Nix-dev] glib version?

2015-03-14 Thread Kirill Elagin
On Sat, Mar 14, 2015 at 2:02 PM Vladimír Čunát vcu...@gmail.com wrote: Add pkgconfig to buildInputs, as it's the surest way of finding dependencies, I think. And I’ll say an obvious thing, but don’t forget to add `glib` as well… ___ nix-dev mailing

Re: [Nix-dev] Qt Oxygen style in nixpkgs

2015-03-13 Thread Kirill Elagin
On Sat, Mar 14, 2015 at 2:46 AM Thomas Tuegel ttue...@gmail.com wrote: On Fri, Mar 13, 2015 at 6:38 PM, Kirill Elagin kirela...@gmail.com wrote: However I still have a question. For some reason Qt falled back not to a “built-in” style but for the Phase style plugin and seems that this one

Re: [Nix-dev] Qt Oxygen style in nixpkgs

2015-03-13 Thread Kirill Elagin
On Sat, Mar 14, 2015 at 1:34 AM Thomas Tuegel ttue...@gmail.com wrote: Here's what's going on: Nix sets RPATH for libraries and executables so they can find the libraries they depend on. Your distro's libraries, like oxygen.so, will not do this; instead, they rely on the interpreter ld.so to

[Nix-dev] Qt Oxygen style in nixpkgs

2015-03-13 Thread Kirill Elagin
I noticed a strange thing: Qt applications that I installed from nixpkgs look differently from (the same) applications installed by the native package manager. I started playing with `qtconfig`. What I can’t understand is whenever I run `qtconfig` from the nix store, I can’t choose Oxygen as GUI

Re: [Nix-dev] Firefox has become an unfree package in 'master'

2015-03-09 Thread Kirill Elagin
Isn’t Hydra allowed to build `unfreeRedistributable` packages? On Mon, Mar 9, 2015 at 1:53 PM Peter Simons sim...@cryp.to wrote: I guess that change was probably not intentional? in job ‘firefoxWrapper.x86_64-linux’: Package ‘faac-1.28’ in

[Nix-dev] Overriding a node package

2015-03-09 Thread Kirill Elagin
I have a package (`pkgs.keybase-node-client` to be precise) which is generated by `nodePackages.buildNodePackage`. I want to install it from my local git repo. I have no idea how node stuff works in nixpkgs (and not in nixpkgs, actually), so I tried the obvious thing: packageOverrides =

Re: [Nix-dev] Getting started with cloned nixpkgs: multiple errors and other questions

2015-03-05 Thread Kirill Elagin
, there shouldn’t be anything wrong. That’s actually the purpose of Nix/NixOS. Great. :-) Best, -- Jesse On Wed, Mar 4, 2015 at 1:03 AM, Kirill Elagin kirela...@gmail.com wrote: On Tue, Mar 3, 2015 at 5:09 PM Jesse Haber-Kucharsky je...@haberkucharsky.com wrote: I cloned the master branch

Re: [Nix-dev] per project env conf

2015-03-03 Thread Kirill Elagin
On Tue, Mar 3, 2015 at 3:29 PM Catonano caton...@gmail.com wrote: At this stage the contents of ~/.nix-defexpr/channels/ is like this $ ls -lha .nix-defexpr/channels/ totale 216K dr-xr-xr-x. 2 catonano catonano 4,0K 1 gen 1970 . drwxrwxr-x. 409 catonano catonano 204K 3 mar 12.14 ..

Re: [Nix-dev] locate utility (and likely find)

2015-03-03 Thread Kirill Elagin
On Wed, Mar 4, 2015 at 3:11 AM Tony Su ton...@su-networking.com wrote: It looks to me like locate is already installed and available in a default install (stable). But, it won't function without an updated database. But, running updatedb (as root) apparently points to a read-only location.

Re: [Nix-dev] Getting started with cloned nixpkgs: multiple errors and other questions

2015-03-03 Thread Kirill Elagin
On Tue, Mar 3, 2015 at 5:09 PM Jesse Haber-Kucharsky je...@haberkucharsky.com wrote: I cloned the master branch of github.com/nixos/nixpkgs and set my NIX_PATH to point exclusively to the local checkout with export NIX_PATH=/home/jhaberku/src (nixpkgs exist in the nixpkgs directory in that

Re: [Nix-dev] per project env conf

2015-03-03 Thread Kirill Elagin
On Tue, Mar 3, 2015 at 12:45 PM Catonano caton...@gmail.com wrote: $ nix-shell error: undefined variable ‘python’ at /home/catonano/Taranto/openpuglia/openArpa/default.nix:4:7 You probably still have `nixpkgs` pointing to a nixos channel. You _have to_ either switch back to unstable nixpkgs

Re: [Nix-dev] per project env conf

2015-03-02 Thread Kirill Elagin
. On Mon, Mar 2, 2015 at 11:29 AM Kirill Elagin kirela...@gmail.com wrote: That’s because you now have the `nixos` expression instead of `nixpkgs` but it is still misleadingly called `nixpkgs`. I suggested this to you somewhere mid-February just as the quickest solution to get stable nixpkgs

Re: [Nix-dev] attempt to call something which is not a function but a set

2015-03-01 Thread Kirill Elagin
Well, that’s correct: in `61adf9e` if you check `nixpkgs/pkgs/development/haskell-modules/lib.nix`, you’ll notice that it’s just a set. It became a function taking `pkgs` as an argument in `55003ca`. On Sat, Feb 21, 2015 at 10:50 AM Cody Goodman codygman.consult...@gmail.com wrote:

Re: [Nix-dev] HaskellNG and taffybar

2015-02-23 Thread Kirill Elagin
not to use ghc-paths. On Mon Feb 23 2015 at 23:59:51 Arseniy Seroka ars.ser...@gmail.com wrote: 2015-02-23 22:55 GMT+03:00 Kirill Elagin kirela...@gmail.com: Does XMonad work in your case? Can you import `System.Taffybar` in `ghci`? Yes, xmonad works and I can import `System.Taffybar

Re: [Nix-dev] HaskellNG and taffybar

2015-02-23 Thread Kirill Elagin
It might even be a good idea to send this patch to Dyre upstream. I doubt they really want to use GHC path stored during compilation for _dynamic_ reconfiguration. On Mon Feb 23 2015 at 0:18:58 Kirill Elagin kirela...@gmail.com wrote: Well, the author of the issue I pointed out is correct

Re: [Nix-dev] nix-env -i can't find package override I defined

2015-02-22 Thread Kirill Elagin
It's not really that straightforward, because `nix-env` is a part of Nix, but `configuration.nix` is a configuration of NixOS. Those are two different projects. Furthermore, it is not really correct to say that “`nix-env` reads” or “does not read” `configuration.nix`. It reads the expression it

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

2015-02-21 Thread Kirill Elagin
As far as I understand, this is already happening if possible. That is, once you agree to have packages with unfree licenses, they will be fetched for you. And will we have to accept licenses one by one or altogether (as it is happening now) is a separate discussion. The problem with Oracle JDK

Re: [Nix-dev] [***SPAM***] Re: Google Summer of Code 2015

2015-02-20 Thread Kirill Elagin
On Fri Feb 20 2015 at 0:35:24 Arseniy Seroka ars.ser...@gmail.com wrote: How to become mentor? The answer was right under your nose ;) On Fri Feb 20 2015 at 23:14:52 Domen Kožar do...@dev.si wrote: *If you haven't done so, please send me an email that you want to be a mentor this year.*

Re: [Nix-dev] Missing documentation

2015-02-18 Thread Kirill Elagin
On Mon Feb 16 2015 at 6:22:20 PM Eelco Dolstra eelco.dols...@logicblox.com wrote: Note that I removed --help on purpose because I didn't want to maintain two sets of option documentation. Invoking man is also what tools like Git do, so it's not entirely uncommon. -- Eelco Dolstra |

Re: [Nix-dev] Permission error when installing mpd

2015-02-18 Thread Kirill Elagin
As is clear from the log, it is not mpd who creates the directory, it’s the preStart = mkdir -p ${cfg.dataDir} chown -R mpd:mpd ${cfg.dataDir}; line it its unit file. The permission error likely happens because it doesn’t have the search (x) permission. Remember that it is running as

Re: [Nix-dev] A Journey into the Haskell NG infrastructure: Part I

2015-02-12 Thread Kirill Elagin
Hm, thanks, this works indeed! But how is this different from `nix-shell 'nixpkgs' -A haskell-ng.compiler.ghc763` (I probably missed something in `nix-shell` usage)? Here is another strange thing I found: whenever I have something like testHaskell =

Re: [Nix-dev] A Journey into the Haskell NG infrastructure: Part I

2015-02-12 Thread Kirill Elagin
How do I run a nix-shell with a specific version of ghc installed? I think I tried everything that came to my mind: › nix-shell 'nixpkgs' -A haskell-ng.compiler.ghc763 [nix-shell:~/tmp]$ which ghc /nix/store/mgs1il4qvvd70s50p2v8j2pxm50k7ias-ghc-7.0.4-binary/bin/ghc hmmm… ›

Re: [Nix-dev] A Journey into the Haskell NG infrastructure: Part I

2015-02-12 Thread Kirill Elagin
I cannot re-produce that, I'm afraid. On my system, both attributes testHaskell1 = self.haskell-ng.packages.ghc784.ghcWithPackages (hp: []); testHaskell2 = self.haskell-ng.packages.ghc784.ghcWithPackages (hp: with hp; [mtl]); seem to work fine. Right, they do work fine, but

Re: [Nix-dev] Unstable Nixpkgs on stable NixOS (was: Automatically locking the screen with xautolock)

2015-02-10 Thread Kirill Elagin
On Tue Feb 10 2015 at 6:12:58 PM Wout Mertens wout.mert...@gmail.com wrote: where it would be a lot cleaner to have everything under ~/.nix/ `$XDG_CONFIG_HOME/nix`. ___ nix-dev mailing list nix-dev@lists.science.uu.nl

Re: [Nix-dev] symbola font expression

2015-02-09 Thread Kirill Elagin
https://github.com/NixOS/nixpkgs/pull/3504#issuecomment-54260503 I asked the author to provide stable URLs and I thought that he agreed to do this, but then he disappeared and didn’t respond to my last email. I’m not sure what was going on. You might try to ask him too, I hope you’ll be able to

Re: [Nix-dev] sass not available ?

2015-02-04 Thread Kirill Elagin
You are looking at the `release-14.12` branch which is a little bit outdated of course. There was some work going on with Ruby support, you might want to check this PR: https://github.com/NixOS/nixpkgs/pull/4677. I don’t use Ruby so I wasn’t following that, but it looks that things work

Re: [Nix-dev] How to add (self-signed) SSL certificate to NixOS?

2015-02-02 Thread Kirill Elagin
An even better solution is for NixOS to switch from $SSL_CERT_FILE to $SSL_CERT_DIR so you can just add extra certificate files. I’m afrain `curl` can’t handle CA directories, I think there is only `$CURL_CA_BUNDLE`. -- Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/

Re: [Nix-dev] How to add (self-signed) SSL certificate to NixOS?

2015-02-02 Thread Kirill Elagin
`ca-bundle.crt` is actually just a text file with a list of certificates, so I’m not sure what the error you get can possibly refer to. It should be perfectly fine to do what you are trying to do. Could it be that there was an error in your nix expression (e.g. you had `.source` instead of

Re: [Nix-dev] How to add (self-signed) SSL certificate to NixOS?

2015-02-02 Thread Kirill Elagin
On Mon Feb 02 2015 at 7:17:28 PM Bjørn Forsman bjorn.fors...@gmail.com wrote: On 2 February 2015 at 17:08, Kirill Elagin kirela...@gmail.com wrote: `ca-bundle.crt` is actually just a text file with a list of certificates, so I’m not sure what the error you get can possibly refer

Re: [Nix-dev] pulseaudio not reading /etc/pulse/default.pa [Was: pulseaudio broken in 14.12: Daemon already running]

2015-01-27 Thread Kirill Elagin
`man default.pa` has to say: The PulseAudio sound server interprets the file ~/.config/pulse/default.pa on startup, and when that file doesn't exist /etc/pulse/default.pa. Just out of curiosity I checked the source and it seems that this line was already there in 2007 and the code that

Re: [Nix-dev] Pulseaudio broken in 14.12: Daemon already running

2015-01-27 Thread Kirill Elagin
On Mon, Jan 26, 2015 at 6:46 PM, Peter Jones mli...@pmade.com wrote: From what I understand, there's no way to use `startx' with systemd. There might be some NixOS-specific issues here, I’m not sure. But in general there _is_ a way: you just login on the text console and run `startx`. That's

Re: [Nix-dev] Pulseaudio broken in 14.12: Daemon already running

2015-01-27 Thread Kirill Elagin
On Tue, Jan 27, 2015 at 11:57 AM, Michael Raskin 7c6f4...@mail.ru wrote: From what I understand, there's no way to use `startx' with systemd. There might be some NixOS-specific issues here, I’m not sure. But in general there _is_ a way: you just login on the text console and run `startx`. No.

Re: [Nix-dev] Pulseaudio broken in 14.12: Daemon already running

2015-01-26 Thread Kirill Elagin
As Benno said this means that most likely something is wrong with your session and you don’t get access to audio devices. What’s strange is that 14.12 uses xorg-server-1.16-* and this should run as user by default and as a result should crash with insufficient permissions to access video devices

Re: [Nix-dev] Pulseaudio broken in 14.12: Daemon already running

2015-01-24 Thread Kirill Elagin
What exactly do you mean by “disabling” pulseaudio? Do you have a system-wide instance of pulseaudio running (e.g. by setting `pulseAudio.systemWide = true` in the configuration.nix)? If yes, then do you have any good reasons for doing so? If no, then disable the system-wide instance. Normally,

Re: [Nix-dev] KDE with i3 as window manager in NixOS?

2015-01-05 Thread Kirill Elagin
I am running KDE with xmonad as window manager (not on NixOS but I don’t think there is any difference). I always thought the easiest way of replacing _just_ the window manager in KDE was setting the KDEWM environment variable during startup which I do by exporting it in `~/.kde4/env/xmonad.sh`

Re: [Nix-dev] KDE with i3 as window manager in NixOS?

2015-01-05 Thread Kirill Elagin
Just run `plasma-desktop` ;). Feel free to add it to some kind of autostart! ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] KDE with i3 as window manager in NixOS?

2015-01-05 Thread Kirill Elagin
:49:49 PM Matthias Beyer m...@beyermatthias.de wrote: On 05-01-2015 18:22:14, Kirill Elagin wrote: Just run `plasma-desktop` ;). Feel free to add it to some kind of autostart! I know how to run it. But as the plasma-desktop is the actual _desktop_ in KDE, I cannot use i3 _inside_

Re: [Nix-dev] Making a custom installation tarball

2014-12-27 Thread Kirill Elagin
I’m no expert but this totally looks like an ordinary derivation, just `nix-build` it. On Fri Dec 26 2014 at 12:14:51 Nikita Karetnikov nik...@karetnikov.org wrote: I’d like to make an installation tarball with a custom set of packages. I’ve been pointed to [1], which is a Hydra job. Is it

Re: [Nix-dev] Making a custom installation tarball

2014-12-27 Thread Kirill Elagin
… passing in your `nixpkgs` and `false` of course. On Sat Dec 27 2014 at 11:14:31 Kirill Elagin kirela...@gmail.com wrote: I’m no expert but this totally looks like an ordinary derivation, just `nix-build` it. On Fri Dec 26 2014 at 12:14:51 Nikita Karetnikov nik...@karetnikov.org wrote

Re: [Nix-dev] Modifying the init system (introducing S6 supervision suite)

2014-12-26 Thread Kirill Elagin
I'm afraid I fail to see how S6 is better than systemd, except that the author is totally worried about the future of Linux with systemd. That said, of course no one can stop you from implementing a module for some other init system but be warned that that's hell lot of work. On Sat, Dec 27,

[Nix-dev] Wine x64

2014-12-22 Thread Kirill Elagin
Hi, Does anyone know what’s exactly the problem https://github.com/NixOS/nixpkgs/blob/6d1befb7b7d27c3f54e70aec790b2eaa54700f0f/pkgs/top-level/all-packages.nix#L12864 with wine on amd64? ___ nix-dev mailing list nix-dev@lists.science.uu.nl

Re: [Nix-dev] NixOS as dom0 for Xen

2014-12-21 Thread Kirill Elagin
Well the same commit that commented out the module also marks all of Xen as `broken` and it is still marked so https://github.com/NixOS/nixpkgs/blob/91cc22e841354199d16f5f86fcaf3395eebf92c7/pkgs/applications/virtualization/xen/default.nix#L139 (with a comment that explains something). I’m not

Re: [Nix-dev] Enable openntpd instead ntp by default

2014-12-21 Thread Kirill Elagin
If we are talking about _defaults_, than “no extra packages” is the best option, IMHO, and systemd already ships `systemd-timesyncd`, why not use it? On Mon Dec 22 2014 at 6:02:03 Anderson Torres torres.anderson...@gmail.com wrote: There exists a portable (OS-independent) version of OpenNTPD?

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] Terminfo issues with haskell 'vty' package nix-shell

2014-11-14 Thread Kirill Elagin
On Thu Nov 13 2014 at 20:20:53 Michael Jones m.pricejo...@gmail.com wrote: Hi, I hope this is the right list. I'm very new to nix and trying to get a set up working on Ubuntu 14.04 for a small haskell project I have. I use rxvt-unicode as a shell which generally seems to work fine but when I

Re: [Nix-dev] Terminfo issues with haskell 'vty' package nix-shell

2014-11-14 Thread Kirill Elagin
Hm, by the way `TERMINFO` gets set by urxvt itself, so that’s probably not what causes the problem. On Fri Nov 14 2014 at 13:59:05 Kirill Elagin kirela...@gmail.com wrote: On Thu Nov 13 2014 at 20:20:53 Michael Jones m.pricejo...@gmail.com wrote: Hi, I hope this is the right list. I'm very

Re: [Nix-dev] I'd like to package 'python-qscintilla2' from Debian. How should I do that?

2014-11-11 Thread Kirill Elagin
I believe this page is the most useful one: https://nixos.org/wiki/Create_and_debug_nix_packages. On Tue Nov 11 2014 at 22:41:03 Daniel Hlynskyi abcz2.upr...@gmail.com wrote: http://nixos.org/nixpkgs/manual/ Oh, that's new manual for me, thanks! 2014-11-11 19:37 GMT+01:00 Domen Kožar

Re: [Nix-dev] Oracle Java

2014-06-17 Thread Kirill Elagin
There is evidence https://stackoverflow.com/questions/15519891/neo4j-unsupported-java-runtime-use-jdk-6-ubuntu-12-04 on the internets that people are happily running neo4j with OpenJDK. It's indeed a good question to ask the developers of neo4j why do they issue this warning, especially since

Re: [Nix-dev] Testing NixOS modules.

2014-06-16 Thread Kirill Elagin
One of the most advertised features of NixOS is the simplicity of building VMs. Just build a VM with your new modules and test it. `nixos-rebuild` has a bunch of cool options, including `nixos-rebuild build` (in case you just want to check you got all the files and symlinks right). Assertions,

Re: [Nix-dev] Proper way to handle OpenGL applications

2014-06-15 Thread Kirill Elagin
Any software such as ‘mpv’ that I put in my configuration.nix will think it's using OpenGL 1.4. This carries over to the user, where you'll see the similar output. What I have noticed in the past is that sometimes if I nix-env -i an existing piece of software on my user account, it will no

Re: [Nix-dev] hydra's nix-expression works in nix-shell, but fails with nix-build

2014-06-14 Thread Kirill Elagin
Have you tried it with `nix-shell --pure`? -- Кирилл Елагин On Sun, Jun 15, 2014 at 5:01 AM, Thomas Strobel ts...@cam.ac.uk wrote: Hi! I'm trying to write a nix-expression for current hydra, see below. It works within nix-shell, but fails with nix-build, both on 14.04. Could someone

Re: [Nix-dev] About packages update with nix

2014-06-13 Thread Kirill Elagin
http://nixos.org/nixos/manual/#sec-upgrading Basically, you just subscribe to unstable channel and get new packages with a few days delay (Hydra is being somewhat moody now). -- Кирилл Елагин On Fri, Jun 13, 2014 at 5:13 PM, Pierre de Boisset pde-b...@isep.fr wrote: Hello all of you, I'm

Re: [Nix-dev] About packages update with nix

2014-06-13 Thread Kirill Elagin
Releases basically follow Ubuntu's scheme (you might have guessed that from the latest version 14.04), that is, twice a year. There is no special policy regarding _versions of software_ in master but I wouldn't say you can find lots of alpha/beta versions of packges there. You might want to check

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Kirill Elagin
If I got it right, you just create exactly the same environment on your own box with nix store wherever you like (its location is controlled by NIX_STORE_DIR) and build everything from source, thus you get binaries with custom path to the store hard-wired. Then you copy those to your target

  1   2   3   >