DavHau

Results 328 comments of DavHau

I can't rebase your PR's. Mind giving me permissions?

You can do it like this: ``` nix-repl> :lf ./. warning: Git tree '/home/grmpf/synced/projects/github/dream2nix' is dirty Added 24 variables. nix-repl> packages.x86_64-linux.doctrine-dbal.config.php-composer-lock.dreamLock ``` I made your example evaluate with this patch:...

Yes, you can copy the code and refactor it a little bit. See for example how `src/subsystems/nodejs/translators/package-lock/default.nix` was moved and adapted to `v1/nix/modules/drv-parts/nodejs-package-lock/translate.nix`

The reason might be that the translator used `simpleTranslate2` as a helper, but you now replaced it with `simpleTranslate`. It's probably best to migrate simpleTranslate2 to `v1/nix/lib/internal` and use it....

I pushed a commit to https://github.com/nix-community/dream2nix/tree/aszenz-php, where I ported simpleTranslate2 to `v1/` and adapted the translator.nix. Now it evaluates. I saw that you tried changing the whole translator to fit...

Yes, start out by copying the builder to a new module under v1. Then refactor it to be a valid nixos module. The module should import the mkDerivation module. Instead...

You might have figured this out by now, but we currently maintain our examples for v1 in `v1/nix/modules/drvs`. Maybe move the new example there, if you still think it's needed,...

@chaoflow Is this here still relevant or can it be closed?

We should make them self contained, and yes, please feel free to add you example to the docs