Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sergei-mironov/urweb-build

Build system for Ur/Web projects, written in Nix expression language
https://github.com/sergei-mironov/urweb-build

Last synced: about 2 months ago
JSON representation

Build system for Ur/Web projects, written in Nix expression language

Awesome Lists containing this project

README

        

Urweb-Build
-----------

This repository contains base expression for building
[Ur/Web](http://impredicative.com/ur/)
projects using nix-build tool. For the complex usage example, see
[urweb-fviewer project](https://github.com/grwlf/urweb-fviewer)

Install
-------

0. Install [Nix](http://nixos.org/nix/) package manager. You may like it so much,
it will be the last package manager for you to install. The installation provides
you with the `nix-build` tool and the `/nix/store` package collection.
Note, that it is surely possible to install Nix on computers running common
Linux distribution like Ubuntu. Installation of NixOS distribution is not
required.

1. Clone the project and its submodule
```
$ git clone https://github.com/grwlf/urweb-build
$ cd urweb-build
$ git submodule update --init
```

2. Add the urweb-build directory to your NIX\_PATH. This will allow Nix to
interpret instructions like `import {}` correctly.
```
export NIX_PATH="$NIX_PATH:urweb-build=/path/to/urweb-build"
```

Now it should be possible to build compatible Ur/Web projects by moving to
project directory and typing `nix-build` or `nix-build build.nix` depending on
the file name of project Nix-expression. Build results are typically accessed by
following the `./result` symlink.