]>
Commit | Line | Data |
---|---|---|
080ca3f3 | 1 | # clever-tools-nix |
c7cb5f23 | 2 | |
080ca3f3 | 3 | Nix derivation to install clever-tools - see https://github.com/CleverCloud/clever-tools |
c7cb5f23 FM |
4 | |
5 | ## What's in it | |
6 | ||
7 | 2 derivations to install | |
8 | - nodegit.node 0.20.3 for node v51, from prebuilt archive | |
9 | - clever-tools 0.9.3, from prebuilt archive | |
10 | ||
11 | Main job of those derivations is to use patchelf to make it nix compliant. | |
12 | ||
13 | ## How to use it | |
14 | ||
15 | ```nix | |
ea59684d | 16 | { pkgs ? import <nixpkgs> {} }: with pkgs; |
c7cb5f23 | 17 | |
ea59684d HAL |
18 | let clever-tools = fetchFromGitHub { |
19 | owner = "fretlink"; | |
c7cb5f23 | 20 | repo = "clever-tools-nix"; |
ea59684d HAL |
21 | rev = "DESIRED_REVISION_HASH"; |
22 | sha256 = "CONTENT_HASH"; | |
c7cb5f23 | 23 | }; |
ea59684d | 24 | in (import clever-tools {}).latest # select appropriate version |
c7cb5f23 | 25 | ``` |