[Nix-dev] neo4j and clojure
Hello people, I'm getting my feet wet with nix installed in my home folder in a Fedora box. I want to explore neo4j but it requires the Oracle java JDK that is NOT the OpenJdk I commonly use on my machine. I was wondering if nix based tech could help me. I'd love to have neo4j installed in isolation from the rest of my Fedora environment, with its own dependencies (even the Oracle thing). I'd use it to get acquainted with it Probably in a later step I'd snapshot/reproduce that combination of packages/configuration in a virtual machine and later I could move the thing on a cloud. Is this idea sane or did I completely equivocate the sense of nix ? I see in nixpkgs there's no neo4j package, so I suppose I should add it myself. How hard could it be ? Thanks Cato ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] neo4j and clojure
On 22/05/2014 11:22, Catonano wrote: > Hello people, > > I'm getting my feet wet with nix installed in my home folder in a > Fedora box. > > I want to explore neo4j but it requires the Oracle java JDK that is > NOT the OpenJdk I commonly use on my machine. > > I was wondering if nix based tech could help me. > > I'd love to have neo4j installed in isolation from the rest of my > Fedora environment, with its own dependencies (even the Oracle thing). > > I'd use it to get acquainted with it > > Probably in a later step I'd snapshot/reproduce that combination of > packages/configuration in a virtual machine and later I could move the > thing on a cloud. > > Is this idea sane or did I completely equivocate the sense of nix ? > > I see in nixpkgs there's no neo4j package, so I suppose I should add > it myself. That's exactly nix, yes. You define your own packages, your own jdk, your own neo4j, then build. > > How hard could it be ? I personally haven't seen java packages with nix, sure you must start by looking at existing java packages in nix: https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/libraries/java Apparently, it's just: 1. Fetch jars 2. Put them in $out No java compilation involved. Then that's how you create appilcations requiring libraries: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/clojure/default.nix Basically, you create a wrapper program that calls a particular java with some particular jar. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] neo4j and clojure
Luca, 2014-05-22 16:53 GMT+02:00 Luca Bruno : > That's exactly nix, yes. You define your own packages, your own jdk, > your own neo4j, then build. > > > > How hard could it be ? > I personally haven't seen java packages with nix, sure you must start by > looking at existing java packages in nix: > > https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/libraries/java > thanks for your help, I'll have a look at java based packages Since we're at it, could you point me to openjdk in nix ? I can't find it To see how could I provide the Oracle one Thanks again ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] neo4j and clojure
oh, it's here https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/compilers/jdk thanks anyway 2014-05-22 19:06 GMT+02:00 Catonano : > Luca, > > > 2014-05-22 16:53 GMT+02:00 Luca Bruno : > > That's exactly nix, yes. You define your own packages, your own jdk, >> your own neo4j, then build. >> > >> > How hard could it be ? >> I personally haven't seen java packages with nix, sure you must start by >> looking at existing java packages in nix: >> >> https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/libraries/java >> > > thanks for your help, I'll have a look at java based packages > > Since we're at it, could you point me to openjdk in nix ? I can't find it > > To see how could I provide the Oracle one > > Thanks again > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev