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

add flake-compat and a default overlay for consumption in non-flake projects #11

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

adrian-gierakowski
Copy link

@adrian-gierakowski adrian-gierakowski commented May 30, 2023

also:

  1. package runTests.sh with nix so that it works event if user does't have jq installed locally
  2. gitignore: add test/workspace/.yarn/cache/

EDIT: also see this commit, which fixes shell.nix, as currently it doesn't work with classic nix-shell

note that the actual devShell is defined in previous commit on that branch, and uses yarnBerry instead of yarn, as suggested in my other PR. Please let me know if you'd be willing to accept all of these changes in a single PR. Thanks!

flake.nix Outdated
//
{
overlays.default = (final: prev: {
yarnBerry = final.callPackage ./yarn.nix {};
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@madjam002 maybe we could rename it to yarn-berry_4? I'd like to keep it consistent with how it's used in the other parts of this repo.

and address issues highlighted by shellcheck (ran automatically
by writeShellApplication)

Note: this could be further improved by creating a derivation which
which simply depends on the outputs out test and executes the
built binaries within a sandbox. We could then have this derivation
set as flakce check
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

Successfully merging this pull request may close these issues.

1 participant