nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildDunePackage, reason, console, ppxlib }:
2
3buildDunePackage {
4 pname = "console_test";
5 version = "1";
6
7 src = lib.fileset.toSource {
8 root = ./.;
9 fileset = lib.fileset.unions [
10 ./console_test.opam
11 ./console_test.re
12 ./dune
13 ./dune-project
14 ];
15 };
16
17 duneVersion = "3";
18
19 nativeBuildInputs = [
20 reason
21 ];
22
23 buildInputs = [
24 reason
25 console
26 ppxlib
27 ];
28
29 doInstallCheck = true;
30
31 postInstallCheck = ''
32 $out/bin/console_test | grep -q "{\"Hello fellow Nixer!\"}" > /dev/null
33 '';
34}