nixpkgs/pkgs/development/ocaml-modules/reason-native/tests/console/default.nix
superherointj 2efd63b87c ocamlPackages.reason-native: init 2020-07-18-a33f152
Adds 10 Reason Native packages:
    * reason-native-console
    * reason-native-dir
    * reason-native-file-context-printer
    * reason-native-fp
    * reason-native-pastel
    * reason-native-pastel-console
    * reason-native-qcheck-rely
    * reason-native-refmterr
    * reason-native-rely
    * reason-native-rely-junit-reporter
2021-06-16 17:47:58 +02:00

21 lines
326 B
Nix

{ lib, buildDunePackage, reason, console }:
buildDunePackage rec {
pname = "console-test";
version = "1";
src = ./.;
useDune2 = true;
buildInputs = [
reason
console
];
doInstallCheck = true;
postInstallCheck = ''
$out/bin/console-test | grep -q "{\"Hello fellow Nixer!\"}" > /dev/null
'';
}