[Nix-dev] Jar files

2015-08-28 Thread Daniel Peebles
Hi all, We don't have much of a Java presence in Nixpkgs, but I was thinking of growing it. This leads to what seems like a bit of a thorny issue: most java code is distributed in jars, which are glorified zip files. Can anyone see the problem? The one I'm afraid of is one of runtime

Re: [Nix-dev] Jar files

2015-08-28 Thread Tomasz Kontusz
Nix only scans for hashes, and there's a good chance they'll be kept intact when compressing. If that's not good enough, then you'll have to make a file with references either by hand or by unpacking the jars. I don't know how often this will actually be needed - is Java retaining paths to

Re: [Nix-dev] Jar files

2015-08-28 Thread Eelco Dolstra
Hi, On 28/08/15 15:02, Daniel Peebles wrote: So is the solution to make our java packaging never produce any jars, and explicitly unpack any we encounter? The simple solution is to generate uncompressed JARs (jar -0). But that should be rarely needed since Java packages typically don't store