dream2nix
dream2nix copied to clipboard
Gradle support
i want 2 applications that aren't currently packaged in nixpkgs, these applications happen to use gradle, however i was unable to compile it easily in nixos and gradle2nix didn't work for me.
after seeing that i would need to write code to find dependencies, more code to fetch my dependencies and then more code for the problems i didn't find yet but that will certainly appear, i thought about my preferred situation and frankly i want to never again touch a gradle project so i need a reliable gradle to nix converter, one that only breaks on breaking changes, using dream2nix seems like the easiest way and i really like the project's goals.
i have some questions. how likely am i to be able to submit my generated packages to nixpkgs?(my sister also needs the packages, she doesn't uses flakes and ideally i wouldn't need to nix bundle). what are the necessary steps to contribute a framework? assuming i need to have non nix code, for example , parsing a gradle file, can i submit haskell code? i have a concern about contributing, it is very likely that i won't be available to fix problems when they arise, is that a blocker? i understand not wanting to maintain another person's code especially if it is in a language i haven't chosen.
how likely am i to be able to submit my generated packages to nixpkgs?(my sister also needs the packages, she doesn't uses flakes and ideally i wouldn't need to nix bundle).
Currently dream2nix is not compatible for use in nixpkgs. That could be changed, but is currently not prioritized. If you want to use a flakes based project without using flakes, have a look at flake-compat
assuming i need to have non nix code, for example , parsing a gradle file, can i submit haskell code?
We support different types of translators. The IFD and impure translator types do support execution of foreign code like haskell. But it is recommended to implement the logic in nix if possible, as this has positive effects on the UX (no intermediate step required).
i have a concern about contributing, it is very likely that i won't be available to fix problems when they arise, is that a blocker
No it is not. Several ecosystems in dream2nix are currently experimental. Also there is not stable release of dream2nix yet. Please do contribute even if you cannot guarantee permanent maintenance.
For the nixpkgs support we also have an open issue here: https://github.com/nix-community/dream2nix/issues/170
any update on this?