Comments (6)
Ah, I see. Then I think an easier way might be to implement a discoverer for Scala, and then just use dream2nix
on a test repo (the python discoverer is simple, so you could just modify that.). You could also do the second way I mentioned, but instead of .translate
, you could build the .translateBin
derivation, and use the resulting script, passing a file path containing a JSON object with source
and outputFile
attributes, provided your translator uses those.
from dream2nix.
okay after some initial investigation I found this commit:
489f1ab
Which seems to have removed the cli for whatever reason. But there is no explanation in the commit. If the process has changed it would be very nice to update the docs regardless.
from dream2nix.
If you are trying to test a translator, you can add sources to translate like this to your translator.
Otherwise you could also start a nix repl
, :lf <path-to-dream2nix>
and then you can access your translator using translator = lib.${builtins.currentSystem}.translators.translators.scala.all.<translator-name>
then using the translator.translate
function. You can pass an attribute set with a source
specified (and a project
).
This is all assuming it's a pure translator though (which seems like what you are doing).
from dream2nix.
Thank you, but unfortunately it is not a pure translator, I need to call SBT so it can fetch the Scala dependencies once, in order to be able to build the lock file.
from dream2nix.
In the mean time the contributors docs have been revamped and there is no mention of the cli app anymore.
Anyhow, the docs on writing an impure translator can still be improved, I guess.
from dream2nix.
closing in favor of: #181
from dream2nix.
Related Issues (20)
- pdm: missing `editables` module when entering devShell HOT 14
- Pip installed CLI tool not in PATH HOT 3
- WIP - pdm add spyder # python3.12-pyqt5-5.15.10 - pdm.sourceSelector.<function body> is not of type 'string'. HOT 2
- WIP - pdm - Python version from d2n nixpkgs HOT 1
- [help] usage of multi-derivation-package HOT 1
- Question: Python package with libusb dependency HOT 2
- error: infinite recursion encountered # nix run github:nix-community/dream2nix#__pythonEnv extract-msg HOT 2
- realpath: command not found HOT 1
- How to make the lock building process for python proxy aware?
- Error: attribute 'overrideAttrs' missing when running nodejs-granular-v3 devshell
- bad (null) hash for package from extra pypi index
- Unable to provide nativeBuildInputs to nodejs transitive dependencies
- error: No valid filename found in the list of filenames: - PyQt5_Qt5-5.15.13-py3-none-macosx_10_13_x86_64.whl
- Can't import fsspec gcsfs
- python local developpement example using only requirements.txt and no pyproject.toml
- How to build pip package from source that requires rust toolchain HOT 2
- Support maturin pip build backend HOT 1
- current `dontStrip = true` default causes some python packages to hold on to GCC as a runtime dependency HOT 1
- pdm: not supporting editable dependencies HOT 1
- pdm: groups at the top of pdm.lock don't update once lockfile exists HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dream2nix.