Looks like gradle25 package doesn't follow nixpkgs conventions here. It has
no `.override` attribute, which, as I remember, is added by `callPackage`
function.
I think this is a bug, but there is a workaround:
```
# shell.nix
{ pkgs ? import {} }:
let
mygradle = (pkgs.gradleGen.override {
Ok I figured it out, sorry for the public conversation with myself but I
hope that it can help other new Nix users. The use case is: you have
some
private nix expressions and would like to configure a project
environment
that includes those as well as some modified packages provided by
Also, you probably already found it, but there is some docs in the nixpkgs
manual, called "11.2.5. How to create ad hoc environments for nix-shell"
On Mon, Jul 18, 2016 at 9:41 PM, Alex Berg wrote:
> Looks like that shell.nix file is correct.
>
> That load-time is only the
Looks like that shell.nix file is correct.
That load-time is only the first time, right? On the first run, all
dependencies are fetched, but after that there is no need.
What are you expecting? If you enter that nix-shell, you'll have a `gradle`
command. Are you expecting a `java` command, also?
For example, the shell.nix I wrote below doesn't make a gradle
available with openjdk8, and also takes 2m20s to load (!) when
I run `nix-shell`:
# shell.nix
# nix-shell prints 'warning: dumping very large path (> 256 MiB); this
may run out of memory'
{ pkgs ? import {} }:
let
mygradle =