nixt icon indicating copy to clipboard operation
nixt copied to clipboard

Integration into nixpkgs

Open andir opened this issue 3 years ago • 2 comments

Are there any plans or reasons not to include this in nixpkgs?

I think we lack something like this as go-to solution that just comes with nixpkgs.

andir avatar Oct 21 '20 10:10 andir

There are two issues with bringing Nixt to nixpkgs:

  1. I don't know anything about that process and would require some charity there
  2. The number of people who have used Nixt is so low that I have no idea if it is actually useful

dustinlacewell avatar Dec 15 '21 06:12 dustinlacewell

There's a simpler test runner in lib.debug.runTests, and another project (yet) outside nixpkgs at https://github.com/adisbladis/nix-unit. nix-unit is backwards-compatible with tests written for runTests and includes a comparision table to nixt and others at the end of its README.

From a quick glance at your docs, it seems like it would be possible for nixt to also support runTests-style tests like e.g.

  runTests {
    testIsEven_1 = {
      expr = math.isEven 2;
      expected = true;
    };
  };

Not directly related to an integration into nixpkgs, but might make it easier to converge towards a community consensus around unit testing.

phaer avatar Aug 04 '23 13:08 phaer