[Nix-dev] getting dependencies

stewart mackenzie setori88 at gmail.com
Sat Nov 19 12:50:22 CET 2016


okay this bit of code did it:

...
  propagatedBuildInputs = importedContracts;
  installPhase = ''
    runHook preInstall
    mkdir -p $out/src
    mkdir -p $out/nix-support
    for i in $importedContracts; do
      echo $i >> $out/nix-support/propagated-build-inputs
    done
    propagated=""
    for i in $importedContracts; do
        findInputs $i propagated propagated-build-inputs
    done
    echo $propagated
    cp ${contractText} $out/src/contract.capnp
    ${capnproto}/bin/capnp compile
-o${capnpc-rust}/bin/capnpc-rust:$out/src/  $out/src/contract.capnp
--src-prefix $out/src/ -I "/"
  '';


More information about the nix-dev mailing list