helix: use upstream version

This commit is contained in:
Bloxx12 2025-04-09 15:31:18 +02:00
commit af0fd0f55e
6 changed files with 129 additions and 27 deletions

113
flake.lock generated
View file

@ -171,6 +171,24 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"gitignore": { "gitignore": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -215,6 +233,26 @@
"type": "github" "type": "github"
} }
}, },
"helix": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs",
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1745302248,
"narHash": "sha256-MEEYZaOYmU2SlgzAKRFjF4vtODRx/AUG33nRJ+nKy78=",
"owner": "helix-editor",
"repo": "helix",
"rev": "0815b52e0959e21ec792ea41d508a050b552f850",
"type": "github"
},
"original": {
"owner": "helix-editor",
"repo": "helix",
"type": "github"
}
},
"hercules-ci-effects": { "hercules-ci-effects": {
"inputs": { "inputs": {
"flake-parts": [ "flake-parts": [
@ -550,7 +588,7 @@
"nixpkgs" "nixpkgs"
], ],
"pre-commit-hooks-nix": "pre-commit-hooks-nix", "pre-commit-hooks-nix": "pre-commit-hooks-nix",
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay_2"
}, },
"locked": { "locked": {
"lastModified": 1741442524, "lastModified": 1741442524,
@ -594,15 +632,15 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1744932701, "lastModified": 1740560979,
"narHash": "sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU=", "narHash": "sha256-Vr3Qi346M+8CjedtbyUevIGDZW8LcA1fTG0ugPY/Hic=",
"owner": "NixOS", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef", "rev": "5135c59491985879812717f4c9fea69604e7f26f",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "nixos",
"ref": "nixos-unstable", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
@ -621,6 +659,22 @@
} }
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": {
"lastModified": 1744932701,
"narHash": "sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1736429638, "lastModified": 1736429638,
"narHash": "sha256-dDWqQqSgMQXw5eFtcyoVijv7HbYJZOIo+jWQdJtsxn4=", "narHash": "sha256-dDWqQqSgMQXw5eFtcyoVijv7HbYJZOIo+jWQdJtsxn4=",
@ -687,15 +741,37 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"helix": "helix",
"hyprland": "hyprland", "hyprland": "hyprland",
"impermanence": "impermanence", "impermanence": "impermanence",
"lanzaboote": "lanzaboote", "lanzaboote": "lanzaboote",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs_2",
"schizofox": "schizofox", "schizofox": "schizofox",
"systems": "systems_2" "systems": "systems_3"
} }
}, },
"rust-overlay": { "rust-overlay": {
"inputs": {
"nixpkgs": [
"helix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1740623427,
"narHash": "sha256-3SdPQrZoa4odlScFDUHd4CUPQ/R1gtH4Mq9u8CBiK8M=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "d342e8b5fd88421ff982f383c853f0fc78a847ab",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"rust-overlay_2": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"lanzaboote", "lanzaboote",
@ -722,9 +798,9 @@
"flake-parts": "flake-parts_2", "flake-parts": "flake-parts_2",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpak": "nixpak", "nixpak": "nixpak",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_3",
"searx-randomizer": "searx-randomizer", "searx-randomizer": "searx-randomizer",
"systems": "systems" "systems": "systems_2"
}, },
"locked": { "locked": {
"lastModified": 1744892989, "lastModified": 1744892989,
@ -764,6 +840,21 @@
} }
}, },
"systems": { "systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": { "locked": {
"lastModified": 1689347949, "lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
@ -778,7 +869,7 @@
"type": "github" "type": "github"
} }
}, },
"systems_2": { "systems_3": {
"locked": { "locked": {
"lastModified": 1689347949, "lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",

View file

@ -13,12 +13,20 @@
packages = eachSystem ( packages = eachSystem (
system: { system: {
inherit (import ./packages pkgsFor.${system}) fish helix kakoune; inherit
(import ./packages {
pkgs = pkgsFor.${system};
helix = inputs.helix.packages.${pkgs.system}.default;
})
fish
wrapped-helix
kakoune
;
} }
); );
apps = eachSystem (system: let apps = eachSystem (system: let
inherit (inputs.self.packages.${system}) fish helix; inherit (inputs.self.packages.${system}) fish wrapped-helix;
in { in {
default = { default = {
type = "app"; type = "app";
@ -26,7 +34,7 @@
}; };
helix = { helix = {
type = "app"; type = "app";
program = "${helix}/bin/hx"; program = "${wrapped-helix}/bin/hx";
}; };
}); });
}; };
@ -51,5 +59,7 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "systems"; inputs.systems.follows = "systems";
}; };
helix.url = "github:helix-editor/helix";
}; };
} }

View file

@ -7,7 +7,7 @@
pkgs, pkgs,
... ...
}: let }: let
inherit (self.packages.${pkgs.stdenv.system}) helix fish; inherit (self.packages.${pkgs.stdenv.system}) wrapped-helix fish;
in { in {
environment.systemPackages = builtins.attrValues { environment.systemPackages = builtins.attrValues {
inherit inherit
@ -39,8 +39,8 @@ in {
zip zip
zoxide zoxide
; ;
inherit helix fish; inherit wrapped-helix fish;
}; };
# helix as the only editor, a reasonable choice. # helix as the only editor, a reasonable choice.
environment.sessionVariables.EDITOR = pkgs.lib.getExe' helix "hx"; environment.sessionVariables.EDITOR = pkgs.lib.getExe' wrapped-helix "hx";
} }

View file

@ -79,6 +79,5 @@
wordgrinder wordgrinder
xournalpp xournalpp
; ;
inherit (self.packages.${pkgs.stdenv.system}) helix;
}; };
} }

View file

@ -1,7 +1,10 @@
pkgs: let {
helix = pkgs.callPackage ./helix.nix {}; pkgs,
helix,
}: let
wrapped-helix = pkgs.callPackage ./helix.nix {inherit helix;};
kakoune = pkgs.callPackage ./kakoune.nix {}; kakoune = pkgs.callPackage ./kakoune.nix {};
fish = pkgs.callPackage ./shell {}; fish = pkgs.callPackage ./shell {};
in { in {
inherit helix kakoune fish; inherit wrapped-helix kakoune fish;
} }

View file

@ -4,7 +4,6 @@
alejandra, alejandra,
basedpyright, basedpyright,
bash-language-server, bash-language-server,
black,
clang-tools, clang-tools,
clippy, clippy,
cmake-format, cmake-format,
@ -15,25 +14,23 @@
gdb, gdb,
golangci-lint-langserver, golangci-lint-langserver,
gopls, gopls,
helix,
lazygit, lazygit,
lib, lib,
lldb_19, lldb_19,
marksman, marksman,
nil, nil,
pyright, nixd,
ruff, ruff,
rust-analyzer, rust-analyzer,
rustfmt, rustfmt,
shellcheck, shellcheck,
shfmt, shfmt,
solargraph,
stdenv,
superhtml, superhtml,
taplo, taplo,
tinymist, tinymist,
typescript-language-server, typescript-language-server,
vscode-langservers-extracted, vscode-langservers-extracted,
helix,
... ...
}: let }: let
inherit (lib.meta) getExe; inherit (lib.meta) getExe;
@ -277,6 +274,8 @@
wrapped-helix = symlinkJoin { wrapped-helix = symlinkJoin {
name = "helix-wrapped"; name = "helix-wrapped";
paths = [ paths = [
helix
# Bash # Bash
bash-language-server bash-language-server
# C/C++ # C/C++
@ -284,12 +283,12 @@
clippy clippy
golangci-lint-langserver golangci-lint-langserver
gopls gopls
helix
lldb_19 lldb_19
# Markdown # Markdown
marksman marksman
# Nix # Nix
nil nil
nixd
rust-analyzer rust-analyzer
rustfmt rustfmt
# Shell # Shell