[Nix-dev] Project environment setup
Ryan Eckbo
eckbo at cim.mcgill.ca
Tue Jul 19 05:17:20 CEST 2016
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 <nixpkgs> {} }:
let
mygradle = pkgs.lib.overrideDerivation pkgs.gradle25 (oldAttrs: {
jdk = pkgs.openjdk8;
});
in
pkgs.stdenv.mkDerivation {
name = "myproject";
src = ./.;
buildInputs = [ mygradle ];
}
On 19 Jul 2016, at 10:53, Ryan Eckbo wrote:
> I've been reading the docs and blog posts but I'm still unsure on the
> proper
> way to configure a local shell.nix with my required modified packages.
> Specifically, I need gradle built with jdk 8, something like
>
> pkgs.gradle25.override { jdk = pkgs.openjdk8; }
>
> and I also have some local nix expressions. But I only want this for
> one project (so no
> setting of .nixpkgs/config.nix). Can someone point me in the right
> direction?
>
> Thanks!
> Ryan
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
More information about the nix-dev
mailing list