tricu

An interpreted language for exploring Tree Calculus
Log | Files | Refs | README | LICENSE

archive-probe.nix (691B)


      1 # Diagnostic output, not an accepted embedding artifact. Run through Nix only.
      2 { pkgs, source, haskellPackages ? pkgs.haskellPackages }:
      3 let
      4   ghc = haskellPackages.ghcWithPackages (p: [ p.mtl ]);
      5 in pkgs.runCommand "tricu-core-archive-probe" {
      6   nativeBuildInputs = [ ghc pkgs.python3 pkgs.stdenv.cc ];
      7   meta.platforms = [ "x86_64-linux" ];
      8 } ''
      9   mkdir -p ext/haskell objects $out
     10   cp -r ${source}/src .
     11   cp -r ${source}/ext/haskell/src ${source}/ext/haskell/include ext/haskell/
     12   cp ${source}/ext/haskell/tests.c ${source}/ext/haskell/test_exports.py ext/haskell/
     13   chmod -R u+w src ext
     14   export PYTHONDONTWRITEBYTECODE=1
     15   timeout 120s python3 ${./archive_probe.py} --output $out
     16 ''