Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.16 KB

Building.md

File metadata and controls

46 lines (27 loc) · 1.16 KB

Building from source

  1. If you have not done so yet, fetch the source code and change to the directory containing the code:

    git clone https://github.com/entropia/tip-toi-reveng.git tttool
    cd tttool
    
  2. Install the nix tool, if you do not have it yet:

    bash <(curl https://nixos.org/nix/install)
    
  3. (Optional, but saves building time:) Install the Cachix tool, and enable the tttool cache.

    nix-env -iA cachix -f https://cachix.org/api/v1/install
    cachix use tttool
    
  4. Build tttool:

    nix-build nix -A linux-exe
    

    The first time this can take a long time. Run it over night.

  5. Copy the resulting program to the current directory:

    cp result/bin/tttool .
    
  6. At this point, tttool should be ready to go. If you run

    ./tttool
    

    you should see the list of commands shown above.

If you have any problems, you can report an issue via GitHub.

Making a release

  1. Ensure that the version number in tttool.cabal is up-to-date

  2. Run

    nix-build nix -A release-zip
    
  3. Upload result/tttool-n.m.zip.