diff options
author | Christina Sørensen <christina@cafkafk.com> | 2023-10-08 10:01:37 +0200 |
---|---|---|
committer | Christina Sørensen <christina@cafkafk.com> | 2023-10-08 18:57:58 +0200 |
commit | df8b8d48087d03280f020d0cd082a6f5b2c9bffb (patch) | |
tree | 6dc7decf44dcde38991815e65fcc11ca08f72d48 /pkgs/by-name/ui/uiua/package.nix | |
parent | 4a9a9df47c88b5232e50448420dab7c7da5927f3 (diff) |
uiua: add passthru.tests.run
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Diffstat (limited to 'pkgs/by-name/ui/uiua/package.nix')
-rw-r--r-- | pkgs/by-name/ui/uiua/package.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/by-name/ui/uiua/package.nix b/pkgs/by-name/ui/uiua/package.nix index 5349c1f53108a..e4c8fb1c0486a 100644 --- a/pkgs/by-name/ui/uiua/package.nix +++ b/pkgs/by-name/ui/uiua/package.nix @@ -6,6 +6,10 @@ , audioSupport ? true , darwin , alsa-lib + +# passthru.tests.run +, runCommand +, uiua }: rustPlatform.buildRustPackage rec { @@ -37,6 +41,12 @@ rustPlatform.buildRustPackage rec { buildFeatures = lib.optional audioSupport "audio"; + passthru.tests.run = runCommand "uiua-test-run" {nativeBuildInputs = [uiua];} '' + uiua init; + diff -U3 --color=auto <(uiua run main.ua) <(echo '"Hello, World!"') + touch $out; + ''; + meta = with lib; { description = "A stack-oriented array programming language with a focus on simplicity, beauty, and tacit code"; longDescription = '' |