LovelaceAcademy / nix-templates

Minimal reproducible nix flake templates
MIT License
14 stars 2 forks source link

we should move tests derivation to ctl-nix #71

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago

https://github.com/LovelaceAcademy/nix-templates/blob/3d8865d6a523827b6ba2316e2b649b0c52eb7c50/ctl-full/flake.nix#L140


              "npx http-server ./generated-docs/html -o"
            '';
          };
          # FIXME ctl-full purs-nix tests not working
          #  related to LovelaceAcademy/ctl-nix#29
          #  so we're using tests derivation for while
          tests = pkgs.writeShellApplication {
            # TODO we should move tests derivation to ctl-nix
            name = "tests";
            runtimeInputs = with pkgs; [
              plutip-server
              postgresql
              ogmios
              kupo
              ogmios-datum-cache
            ];
            text = ps.test.run { };
          };
        in
        {
          packages.default = ps.output { };

          checks.default = pkgs.runCommand
            "check"
            { }
            ''${tests}/bin/tests; touch $out'';

          devShells.default =
            pkgs.mkShell
github-actions[bot] commented 1 year ago

Closed in 8816aded092033df20ebba877d7f151902d3a8e9