the.bay.news

How do I override the stdenv that maven.buildMavenPackage uses?

NixOS Discourse
How do I override the stdenv that maven.buildMavenPackage uses?
I have a Java tool that I build with maven.buildMavenPackage. I think that ultimately resolves to a stdenv.mkDerivation call. When I build the tool at the terminal with nix build, I see that it pulls in gcc. I understand that stdenv comes with gcc. And I’m sure my Java compilation doesn’t need a C compiler. What’s the nixiest way of excluding gcc? I’ve been trying my darndest to inject a stdenv = stdenvNoCC; at maven/package.nix:57 with no success. The only thing I’ve been able to get to work i...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.