From 7c4220e5e9c031d75d4253bc8567fd6a99aeefd8 Mon Sep 17 00:00:00 2001 From: maralorn Date: Tue, 8 Nov 2022 17:15:19 +0100 Subject: [PATCH] Use helix from upstream --- nix/sources.json | 12 ++++++++++++ overlays/10-previews.nix | 5 ++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/nix/sources.json b/nix/sources.json index e888f989..c37cc7c6 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -11,6 +11,18 @@ "url": "https://github.com/srid/emanote/archive/d1d54a3e1842192af10d9069668932b7acf00b12.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, + "helix": { + "branch": "master", + "description": "A post-modern modal text editor.", + "homepage": "https://helix-editor.com", + "owner": "helix-editor", + "repo": "helix", + "rev": "64359f8b484062e8c17b02fd2b2d690bb5bdfbd7", + "sha256": "1f9ydx7z5ihqpz6iw8jrwlaxmz3kggymjwbw3kv3w0f6q0wabrq5", + "type": "tarball", + "url": "https://github.com/helix-editor/helix/archive/64359f8b484062e8c17b02fd2b2d690bb5bdfbd7.tar.gz", + "url_template": "https://github.com///archive/.tar.gz" + }, "hexa-nur-packages": { "branch": "master", "description": "My personal NUR repository: [maintainer=@mweinelt] ", diff --git a/overlays/10-previews.nix b/overlays/10-previews.nix index 33972271..2270d1f7 100644 --- a/overlays/10-previews.nix +++ b/overlays/10-previews.nix @@ -1,11 +1,14 @@ self: super: let unstable = import super.sources.nixos-unstable {}; nom_commit = (builtins.fromJSON (builtins.readFile ../nix/sources.json)).nix-output-monitor.rev; + hx_commit = (builtins.fromJSON (builtins.readFile ../nix/sources.json)).helix.rev; + hx = builtins.getFlake "github:helix-editor/helix/${hx_commit}"; nom = builtins.getFlake "git+ssh://git@hera.m-0.eu/nix-output-monitor?rev=${nom_commit}&ref=main"; in { inherit unstable; unstableHaskellPackages = unstable.haskellPackages; unstableGhc = unstable.ghc; - inherit (unstable) nix home-assistant vscode-extensions vscodium cachix cabal2nix chrysalis helix; + inherit (unstable) nix home-assistant vscode-extensions vscodium cachix cabal2nix chrysalis; nix-output-monitor = nom.packages.x86_64-linux.default; + helix = hx.packages.x86_64-linux.default; }