Re: [Nix-dev] Overriding a node package

2015-03-26 Thread Kirill Elagin
But this patch just adds a new package or do I misunderstand something?
Overriding the whole package by a completely new one just to override src =
not awesome.

On Fri, Mar 27, 2015 at 3:43 AM Marc Weber  wrote:

> This patch is outdated, but illustrates what you're looking for:
> https://github.com/MarcWeber/nixpkgs/commit/ad6ec783bb61e80f90d6e6ee9e0b2d
> 026982fbbe
>
> There is npm2nix utility you have to install.
>
> Marc Weber
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] patches to add mkcl and fix ecl

2015-03-26 Thread Michael Raskin
>attached are two patches:
>
>1) to add mkcl, a common lisp implementation

Applied, thanks

>2) to fix ecl, another common lisp implementation

I think adding a wrapper that sets NIX_CFLAGS_COMPILE and 
NIX_CFLAGS_LINK is a better last-ditch solution than just forbidding
libffi (I don't remember if ECL has an option to just add generic 
cflags).

>Would it be possible to get it committed?



___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Overriding a node package

2015-03-26 Thread Marc Weber
This patch is outdated, but illustrates what you're looking for:
https://github.com/MarcWeber/nixpkgs/commit/ad6ec783bb61e80f90d6e6ee9e0b2d026982fbbe

There is npm2nix utility you have to install.

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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  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 how node stuff works in nixpkgs (and not in nixpkgs,
> actually), so I tried the obvious thing:
>
> 
>   packageOverrides = pkgs_: {
> keybase-node-client = lib.overrideDerivation pkgs_.keybase-node-client
>   (drv: {
> src = fetchgit {
>   url = "/home/kirrun/proj/keybase/node-client";
>   <...>
> };
>   });
>   };
> 
>
> but this gives me a super-weird error when I try to install it:
>
> 
> replacing old ‘keybase-node-client-0.7.7’
> installing ‘keybase-node-client-0.7.7’
> these derivations will be built:
>   /nix/store/qsdsxcvnmn6hxs4kpi2mymmplwjq5kig-keybase-node-client-0.7.7.drv
> building path(s)
> ‘/nix/store/16pd9zjj1dh9pc2lpij5p5xqji0b88ag-keybase-node-client-0.7.7’
> building
> /nix/store/16pd9zjj1dh9pc2lpij5p5xqji0b88ag-keybase-node-client-0.7.7
> unpacking sources
> unpacking source archive
> /nix/store/m33g6lw3dg6455bqfnshhn73rn8710yz-node-client-7888c0d
> source root is node-client-7888c0d
> patching sources
> configuring
> 'node_modules/iced-coffee-script' ->
> '/nix/store/jhqn9ph542b8fc8ig8akq22sphbpi2ff-iced-coffee-script-1.7.1-g/lib/node_modules/iced-coffee-script'
> <... (more lines like that) ...>
> 'node_modules/request' ->
> '/nix/store/56b058k267wsf5nhb9n7cw89gi4l90km-node-request-2.30.0/lib/node_modules/request'
> building
> npm ERR! registry error parsing json
> npm ERR! SyntaxError: Unexpected token <
> npm ERR! 
> npm ERR! 
> npm ERR! 
> npm ERR! Example Domain
> npm ERR!
> npm ERR! 
> npm ERR! 
> npm ERR! 
> npm ERR! 

[Nix-dev] patches to add mkcl and fix ecl

2015-03-26 Thread Tomas Hlavaty
Hi all,

attached are two patches:

1) to add mkcl, a common lisp implementation

2) to fix ecl, another common lisp implementation

Would it be possible to get it committed?

Thank you very much!

Tomas

>From 716d6ad1b77aab67401cbde830ddb24930eea82a Mon Sep 17 00:00:00 2001
From: Tomas Hlavaty 
Date: Thu, 26 Mar 2015 23:49:58 +0100
Subject: [PATCH 1/2] mkcl added

---
 pkgs/development/compilers/mkcl/default.nix | 26 ++
 1 file changed, 26 insertions(+)
 create mode 100644 pkgs/development/compilers/mkcl/default.nix

diff --git a/pkgs/development/compilers/mkcl/default.nix b/pkgs/development/compilers/mkcl/default.nix
new file mode 100644
index 000..689324a
--- /dev/null
+++ b/pkgs/development/compilers/mkcl/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchgit, gmp }:
+
+stdenv.mkDerivation rec {
+  v = "1.1.9";
+  name = "mkcl-${v}";
+
+  src = fetchgit {
+url = "https://github.com/jcbeaudoin/mkcl.git";;
+rev = "86768cc1dfc2cc9caa1fe9696584bb25ea6c1429";
+sha256 = "0ja7vyp5rjidb2a1gah35jqzqn6zjkikz5sd966p0f0wh26l6n03";
+  };
+
+  propagatedBuildInputs = [ gmp ];
+
+  configureFlags = [
+"GMP_CFLAGS=-I${gmp}/include"
+"GMP_LDFLAGS=-L${gmp}/lib"
+  ];
+
+  meta = {
+description = "ANSI Common Lisp Implementation";
+homepage = https://common-lisp.net/project/mkcl/;
+license = stdenv.lib.licenses.lgpl2Plus;
+platforms = stdenv.lib.platforms.linux;
+  };
+}
-- 
2.1.4

>From a84507b69ee630960def9058434f7ef4685469ff Mon Sep 17 00:00:00 2001
From: Tomas Hlavaty 
Date: Thu, 26 Mar 2015 23:53:19 +0100
Subject: [PATCH 2/2] fix ecl

ensure that gmp is found when compiling with gcc dynamically

unfortunately there is no configure flag for libffi, thus turning it
off for now
---
 pkgs/development/compilers/ecl/default.nix | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pkgs/development/compilers/ecl/default.nix b/pkgs/development/compilers/ecl/default.nix
index be65061..d1991d6 100644
--- a/pkgs/development/compilers/ecl/default.nix
+++ b/pkgs/development/compilers/ecl/default.nix
@@ -27,6 +27,8 @@ stdenv.mkDerivation {
   };
   configureFlags = [
 "--enable-threads"
+"--with-gmp-prefix=${gmp}"
+"--with-dffi=no"
 ]
 ++
 (stdenv.lib.optional (! noUnicode)
-- 
2.1.4

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] NixOS next stable release

2015-03-26 Thread Jonathan Glines
2015-03-26 5:37 GMT-06:00 Domen Kožar :
> Hi all,
>
>
> I'd like to start the discussion what should be part of of next stable
> release. It's scheduled for the end of May. From the experience during last
> stable release we need a month to get everything together for a confident
> stable release.
>
> That gives us a bit more than a month to merge any big changes.
>
> I propose following major changes get merged into master during next period:
>
> - Gnome 3.14 (3.16 was released yesterday)
> https://github.com/NixOS/nixpkgs/pull/5308

This is exciting to me because GDM in Gnome 3.14 is the first real
display manager with support for launching Wayland compositors. There
are a number of very practical Wayland compositors popping up on
GitHub and elsewhere, but most of them seem to preclude the notion of
a "login" screen by including a CLI launcher (e.g. weston-launch).
It's difficult to claim Wayland support without a login screen.

I'm not sure when or how things will settle in the Wayland/Mir/X11
space, but hopefully by *next* stable release we can have something.
Gnome 3.14 will be good to have for developing *meaningful* Wayland
support. I'll update the Wayland issue once I've poked at Gnome 3.14
some more. I would really like for Gnome 3.14 to be merged.
https://github.com/NixOS/nixpkgs/issues/5071


> - syslinux boot loader for usb images
> https://github.com/NixOS/nixpkgs/pull/4678
I will test this soon. This is awesome. :)

> - systemd 219 https://github.com/NixOS/nixpkgs/issues/6671
> - set default kernel to 3.18 https://github.com/NixOS/nixpkgs/pull/6858
>
> I'd really like to see "private store files" implemented for this release,
> since it's the major drawback in our current package manager (after I've
> talked to quite some people from community in the last year). See
> https://github.com/NixOS/nix/issues/8

Does the "private store files" feature account for user
creation/management? The primary use for this from what I can see is
/etc/passwd management. What about /etc/wpa_supplicant? I assume these
nix expressions haven't yet been written/updated for private file
support. I would also like to be able to store my private data
somewhere in the interim *not* in my configuration.nix (gpgzip.nix?
fetchmegaupload.nix?) and prompt me for a password/key. Obviously
start small, but it should be proven before being set in stone.

Just my two cents.

Jonathan


> If you'd like to include something in next stable release, please tag the
> milestone on github and cc @domenkozar
>
> Domen
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Trying to compile and run mono gtk example but problem install gtksharp2

2015-03-26 Thread Paul Dufresne
Thanks a lot to took the time to investigate this.
I have tried your suggested default.nix and it works, and I am happy with it.
Would not have been able without your help!
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] NixOS next stable release

2015-03-26 Thread Domen Kožar
Hi all,


I'd like to start the discussion what should be part of of next stable
release. It's scheduled for the end of May. From the experience during last
stable release we need a month to get everything together for a confident
stable release.

That gives us a bit more than a month to merge any big changes.

I propose following major changes get merged into master during next period:

- Gnome 3.14 (3.16 was released yesterday)
https://github.com/NixOS/nixpkgs/pull/5308
- syslinux boot loader for usb images
https://github.com/NixOS/nixpkgs/pull/4678
- systemd 219 https://github.com/NixOS/nixpkgs/issues/6671
- set default kernel to 3.18 https://github.com/NixOS/nixpkgs/pull/6858

I'd really like to see "private store files" implemented for this release,
since it's the major drawback in our current package manager (after I've
talked to quite some people from community in the last year). See
https://github.com/NixOS/nix/issues/8

If you'd like to include something in next stable release, please tag the
milestone on github and cc @domenkozar

Domen
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev