Commit 8eb5ffc8 authored by locallycompact's avatar locallycompact
Browse files

Merge branch 'milloni/horizon-export' into 'master'

Regenerate using horizon-gen-nix c9e8b2f8

See merge request horizon/horizon-gen-nix!17
parents c9e8b2f8 0df24f27
# Changelog for horizon-gen-nix
## v0.4.0
* Support horizon-spec 0.4.1
## v0.3.1
* Remove broken --force flag.
......
# horizon-gen-nix
horizon-gen-nix is an executable for generating nix expressions
from [horizon-spec](https://hackage.haskell.org/package/horizon-spec)
dhall definitions.
```
Usage: horizon-gen-nix [--input-file INPUT_FILE] [--packages-dir PACKAGES_DIR]
COMMAND
Usage: horizon-gen-nix [--input-file INPUT_FILE]
Available options:
-h,--help Show this help text
--input-file INPUT_FILE The name of the input file.
--packages-dir PACKAGES_DIR
The directory to put haskell packages.
```
## Example input
Available commands:
make-package-set Run in MakePackageSet Mode
overlay Run in Overlay Mode
The input file mentioned in the previous sections contains a dhall expression of
the `HorizonExport` type (see `horizon-spec`).
Here is an example input file:
```
let H =
https://gitlab.homotopic.tech/horizon/horizon-spec/-/raw/0.4.1/dhall/package.dhall
sha256:9f2def711ea8796cdb24fa837da6681f9a7e752f87aeff08eee9b494c6e3374c
in H.HorizonExport.MakeOverlay
{ packagesDir = "pkgs"
, overlayFile = "overlay.nix"
, overlay =
[ H.callHackage "cabal2nix" "2.19.1"
, H.callHackage "distribution-nixpkgs" "1.7.0.1"
, H.callHackage "horizon-spec" "0.4.1"
]
}
```
## Building
......
......@@ -92,11 +92,11 @@
"horizon-gen-nix": {
"flake": false,
"locked": {
"lastModified": 1669969509,
"narHash": "sha256-Cx4ZhQcCrP33QaCJcDBGS7wPYZH/JsN+RIdUoe5vTBs=",
"lastModified": 1670941173,
"narHash": "sha256-z7UgsXtgXJ6IYnfJkhtIjK4hQ7LNghcWRkt+oRN+Gx0=",
"ref": "master",
"rev": "e7a49a0e69e06a191547a6ae102248cc9cd8a6f1",
"revCount": 102,
"rev": "c9e8b2f80b934561ce078c00500f3bfb0dbf8fff",
"revCount": 105,
"type": "git",
"url": "https://gitlab.homotopic.tech/horizon/horizon-gen-nix"
},
......
let H =
https://gitlab.homotopic.tech/horizon/horizon-spec/-/raw/0.3.0/dhall/package.dhall
sha256:968e76de41a8e2a187704ee9288c361f33e4df2dc458bbad10d2c6e4c8744ae5
https://gitlab.homotopic.tech/horizon/horizon-spec/-/raw/0.4.1/dhall/package.dhall
sha256:9f2def711ea8796cdb24fa837da6681f9a7e752f87aeff08eee9b494c6e3374c
in [ H.callHackage "cabal2nix" "2.19.1"
, H.callHackage "distribution-nixpkgs" "1.7.0.1"
, H.callHackage "horizon-spec" "0.4.1"
]
in H.HorizonExport.MakeOverlay
{ packagesDir = "pkgs"
, overlayFile = "overlay.nix"
, overlay =
[ H.callHackage "cabal2nix" "2.19.1"
, H.callHackage "distribution-nixpkgs" "1.7.0.1"
, H.callHackage "horizon-spec" "0.4.1"
]
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment