From 9fa3992317fb520d8db894473b856b8ebf311c57 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sun, 16 Oct 2022 14:30:42 +0100 Subject: [PATCH] Readd horizon-gen-nix app to use http --- README.md | 2 +- flake.nix | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6bed5a61..b22e72de 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Horizon is a haskell package set targetting new builds of GHC. The package set is generated from the `manifest.dhall` using the following command: ``` -nix run git+https://gitlab.homotopic.tech/horizon/horizon-gen-nix +nix run .#horizon-gen-nix ``` This will generate both the `pkgs` folder and the `overlay.nix`. If you want to diff --git a/flake.nix b/flake.nix index 4c24f1e8..16353762 100644 --- a/flake.nix +++ b/flake.nix @@ -19,8 +19,15 @@ && v.type == "derivation" && v.meta.broken == false) hp; + horizon-gen-nix = pkgs.writers.writeBashBin "horizon-gen-nix" "nix run git+https://gitlab.homotopic.tech/horizon/horizon-gen-nix"; in { + apps = { + horizon-gen-nix = { + type = "app"; + program = "${horizon-gen-nix}/bin/horizon-gen-nix"; + }; + }; checks = { dhall-format = lint-utils.outputs.linters.x86_64-linux.dhall-format ./.; nixpkgs-fmt = lint-utils.outputs.linters.x86_64-linux.nixpkgs-fmt ./.; -- GitLab