Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate 3d party config files from Nickel #58

Open
4 of 5 tasks
thufschmitt opened this issue Apr 19, 2023 · 2 comments
Open
4 of 5 tasks

Generate 3d party config files from Nickel #58

thufschmitt opened this issue Apr 19, 2023 · 2 comments
Assignees

Comments

@thufschmitt
Copy link
Member

thufschmitt commented Apr 19, 2023

A few potentially useful things:

  • Generate pre-commit hooks (a la pre-commit-hooks.nix)
  • Generate CI configs (like tweag/tf-ncl@0b02102)

https://www.schemastore.org/json/ provides some schemas for a lot of potential targets, a compiler from these to Nickel contracts could be really helpful there

YorikSar added a commit that referenced this issue Sep 18, 2023
Add project.ncl and nickel.lock.ncl, use them for this very flake.
For now use only devshells.
To reuse and extend flake components, add a dumb fold function that
passes "prev" to a list of functions and //'s results.

Preparation for dogfooding future improvements from
#58
YorikSar added a commit that referenced this issue Sep 18, 2023
Add project.ncl and nickel.lock.ncl, use them for this very flake.
For now use only devshells.
To reuse and extend flake components, add a dumb fold function that
passes "prev" to a list of functions and //'s results.

Preparation for dogfooding future improvements from
#58
YorikSar added a commit that referenced this issue Sep 18, 2023
Add project.ncl and nickel.lock.ncl, use them for this very flake.
For now use only devshells.
To reuse and extend flake components, add a dumb fold function that
passes "prev" to a list of functions and //'s results.

Update cachix/install-nix-action to install Nix 2.17 that doesn't
evaluate `packages` for all systems on `nix flake check`.

Preparation for dogfooding future improvements from
#58
@YorikSar YorikSar self-assigned this Sep 21, 2023
YorikSar added a commit that referenced this issue Sep 25, 2023
Add project.ncl and nickel.lock.ncl, use them for this very flake.
For now use only devshells.

Update cachix/install-nix-action to install Nix 2.17 that doesn't
evaluate `packages` for all systems on `nix flake check`.

Preparation for dogfooding future improvements from
#58
YorikSar added a commit that referenced this issue Sep 25, 2023
Add `flake` field to `project.ncl` that allows to specify certain
flake outputs. For example, you can add lines like these to run `hello`
as an app or a check:

  flake.apps.hello.program = nix-s%"%{import_nix "nixpkgs#hello"}/bin/hello"%,
  flake.checks.hello = import_nix "nixpkgs#hello",

I will be gragually migrating apps and checks from our `flake.nix` to
`project.ncl` using this.

Part of #58
YorikSar added a commit that referenced this issue Sep 25, 2023
Also move `run-tests` app from `flake.nix` to `project.ncl`.

Part of #58
YorikSar added a commit that referenced this issue Sep 25, 2023
Add `flake` field to `project.ncl` that allows to specify certain
flake outputs. For example, you can add lines like these to run `hello`
as an app or a check:

  flake.apps.hello.program = nix-s%"%{import_nix "nixpkgs#hello"}/bin/hello"%,
  flake.checks.hello = import_nix "nixpkgs#hello",

I will be gragually migrating apps and checks from our `flake.nix` to
`project.ncl` using this.

Part of #58
YorikSar added a commit that referenced this issue Sep 25, 2023
Also move `run-tests` app from `flake.nix` to `project.ncl`.

Part of #58
YorikSar added a commit that referenced this issue Sep 25, 2023
Add project.ncl and nickel.lock.ncl, use them for this very flake.
For now use only devshells.

Update cachix/install-nix-action to install Nix 2.17 that doesn't
evaluate `packages` for all systems on `nix flake check`.

Preparation for dogfooding future improvements from
#58
YorikSar added a commit that referenced this issue Sep 25, 2023
Add `flake` field to `project.ncl` that allows to specify certain
flake outputs. For example, you can add lines like these to run `hello`
as an app or a check:

  flake.apps.hello.program = nix-s%"%{import_nix "nixpkgs#hello"}/bin/hello"%,
  flake.checks.hello = import_nix "nixpkgs#hello",

I will be gragually migrating apps and checks from our `flake.nix` to
`project.ncl` using this.

Part of #58
YorikSar added a commit that referenced this issue Sep 25, 2023
Also move `run-tests` app from `flake.nix` to `project.ncl`.

Part of #58
YorikSar added a commit that referenced this issue Sep 25, 2023
Add `flake` field to `project.ncl` that allows to specify certain
flake outputs. For example, you can add lines like these to run `hello`
as an app or a check:

  flake.apps.hello.program = nix-s%"%{import_nix "nixpkgs#hello"}/bin/hello"%,
  flake.checks.hello = import_nix "nixpkgs#hello",

I will be gragually migrating apps and checks from our `flake.nix` to
`project.ncl` using this.

Part of #58
YorikSar added a commit that referenced this issue Sep 25, 2023
Also move `run-tests` app from `flake.nix` to `project.ncl`.

Part of #58
thufschmitt pushed a commit that referenced this issue Sep 28, 2023
Also move `run-tests` app from `flake.nix` to `project.ncl`.

Part of #58
YorikSar added a commit that referenced this issue Sep 29, 2023
It's unclear if we need to implement runCommand ourselves, it's quite
simple to achieve necesary result with plaing NixpkgsPkg override.

Introduce NixEnvironmentVariable contract to handle all possible things
than might end up in `env`.

Part of #58.
YorikSar added a commit that referenced this issue Sep 29, 2023
It's unclear if we need to implement runCommand ourselves, it's quite
simple to achieve necesary result with plaing NixpkgsPkg override.

Introduce NixEnvironmentVariable contract to handle all possible things
than might end up in `env`.

Part of #58.
YorikSar added a commit that referenced this issue Sep 29, 2023
This allows us to shortcut usage of NixString in many places.
We could probably get rid of NixString entirely as well, but it needs
more consideration.

Part of #58.
YorikSar added a commit that referenced this issue Sep 29, 2023
It's unclear if we need to implement runCommand ourselves, it's quite
simple to achieve necesary result with plaing NixpkgsPkg override.

Introduce NixEnvironmentVariable contract to handle all possible things
than might end up in `env`.

Part of #58.
YorikSar added a commit that referenced this issue Sep 29, 2023
Also move `run-tests` app from `flake.nix` to `project.ncl`.

Part of #58
YorikSar added a commit that referenced this issue Oct 4, 2023
Also move `run-tests` app from `flake.nix` to `project.ncl`.

Part of #58
@marijetamh
Copy link

marijetamh commented Oct 9, 2023

Note: This task is a requirement for the first release

thufschmitt pushed a commit that referenced this issue Oct 11, 2023
Also move `run-tests` app from `flake.nix` to `project.ncl`.

Part of #58
thufschmitt pushed a commit that referenced this issue Oct 12, 2023
Also move `run-tests` app from `flake.nix` to `project.ncl`.

Part of #58
@thufschmitt thufschmitt assigned thufschmitt and unassigned YorikSar Oct 19, 2023
@thufschmitt
Copy link
Member Author

Underway. The basic functionality is here, now need to clean it up a bit

@balsoft balsoft assigned YorikSar and unassigned thufschmitt Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants