Re: [Nix-dev] Customizing calibre PYTHONPATH to support plugins...

2015-03-02 Thread Domen Kožar
Issue in nixpkgs: https://github.com/NixOS/nixpkgs/issues/4855 On Mon, Mar 2, 2015 at 11:21 AM, Eelco Dolstra wrote: > Hi, > > On 28/02/15 19:10, Michael Alan Dorman wrote: > > > I have a plugin for calibre I would like to use that requires pycrypto. > > I looked at the derivation for calibre, a

Re: [Nix-dev] Customizing calibre PYTHONPATH to support plugins...

2015-03-02 Thread Eelco Dolstra
Hi, On 28/02/15 19:10, Michael Alan Dorman wrote: > I have a plugin for calibre I would like to use that requires pycrypto. > I looked at the derivation for calibre, and it seemed to me that it > would be sufficient to override it thusly: > > calibre = pkgs.stdenv.lib.overrideDerivation pkg

Re: [Nix-dev] Customizing calibre PYTHONPATH to support plugins...

2015-02-28 Thread Michael Alan Dorman
Attached. Mike. On Sat, Feb 28, 2015, at 12:24 PM, Domen Kožar wrote: > Could you provide a .nix file that demonstrates the problem? Then I > can play around and try to fix it. > > On Sat, Feb 28, 2015 at 9:22 PM, Michael Alan Dorman > wrote: >> >> On Sat, Feb 28, 2015, at 11:58 AM, Cillian de

Re: [Nix-dev] Customizing calibre PYTHONPATH to support plugins...

2015-02-28 Thread Michael Alan Dorman
On Sat, Feb 28, 2015, at 12:22 PM, Michael Alan Dorman wrote: > > On Sat, Feb 28, 2015, at 11:58 AM, Cillian de Róiste wrote: > > Hi Michael, > > > > I think the following would work: > > > > calibrePython = pkgs.python27Full.buildEnv.override { extraLibs = > > [ pkgs.python27Packages.pycryp

Re: [Nix-dev] Customizing calibre PYTHONPATH to support plugins...

2015-02-28 Thread Domen Kožar
Could you provide a .nix file that demonstrates the problem? Then I can play around and try to fix it. On Sat, Feb 28, 2015 at 9:22 PM, Michael Alan Dorman wrote: > > On Sat, Feb 28, 2015, at 11:58 AM, Cillian de Róiste wrote: > > Hi Michael, > > > > I think the following would work: > > > >

Re: [Nix-dev] Customizing calibre PYTHONPATH to support plugins...

2015-02-28 Thread Michael Alan Dorman
On Sat, Feb 28, 2015, at 11:58 AM, Cillian de Róiste wrote: > Hi Michael, > > I think the following would work: > > calibrePython = pkgs.python27Full.buildEnv.override { extraLibs = > [ pkgs.python27Packages.pycrypto ]; }; > myCalibre = pkgs.calibre.override { python = calibrePython; };

Re: [Nix-dev] Customizing calibre PYTHONPATH to support plugins...

2015-02-28 Thread Cillian de Róiste
Hi Michael, I think the following would work: calibrePython = pkgs.python27Full.buildEnv.override { extraLibs = [ pkgs.python27Packages.pycrypto ]; }; myCalibre = pkgs.calibre.override { python = calibrePython; }; Cheers, Cillian 2015-02-28 20:47 GMT+01:00 Michael Alan Dorman : > On Sa

Re: [Nix-dev] Customizing calibre PYTHONPATH to support plugins...

2015-02-28 Thread Michael Alan Dorman
On Sat, Feb 28, 2015, at 10:35 AM, Bjørn Forsman wrote: > Maybe propagatedBuildInputs works? Hi, Bjørn, I should have mentioned that I tried that as well, to no avail---and it seems to me that that would only apply if, say, I were trying to build a new expression for the plugin (which I might do

Re: [Nix-dev] Customizing calibre PYTHONPATH to support plugins...

2015-02-28 Thread Bjørn Forsman
Maybe propagatedBuildInputs works? ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

[Nix-dev] Customizing calibre PYTHONPATH to support plugins...

2015-02-28 Thread Michael Alan Dorman
I have a plugin for calibre I would like to use that requires pycrypto. I looked at the derivation for calibre, and it seemed to me that it would be sufficient to override it thusly: calibre = pkgs.stdenv.lib.overrideDerivation pkgs.calibre (o: { buildInputs = o.buildInputs ++ [ pythonP