nix update

This commit is contained in:
LordMZTE 2024-10-30 09:37:58 +01:00
parent 25cd1cb923
commit 65ff33b213
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 21 additions and 20 deletions

View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1728228884, "lastModified": 1730207978,
"narHash": "sha256-E9JaDKGi21oUypH0P9881lbkhi6USNJ6XL2tFzU5uuE=", "narHash": "sha256-FnFkAqwoXfBoyWGBIVy17rT6sJK8HI09SlPmh6WKYJo=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ff0da78cfd41aa1784910ce1fea89119822013ce", "rev": "6a1c602a1637c3b22c8a0b7123413ad84d7c51fe",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -60,22 +60,23 @@ let
"10-nui" = plugin "nui.nvim"; "10-nui" = plugin "nui.nvim";
}; };
mzte-nv-compiler = # TODO: build mzte-nv-compiler in nix
let #mzte-nv-compiler =
path = "${builtins.getEnv "HOME"}/.local/bin/mzte-nv-compile"; # let
in # path = "${builtins.getEnv "HOME"}/.local/bin/mzte-nv-compile";
if (builtins.pathExists path) then # in
# This derivation exists to patch a potentially mismatched dynamic linker. # if (builtins.pathExists path) then
stdenvNoCC.mkDerivation # # This derivation exists to patch a potentially mismatched dynamic linker.
{ # stdenvNoCC.mkDerivation
name = "mzte-nv-compiler-patched"; # {
nativeBuildInputs = [ pkgs.autoPatchelfHook ]; # name = "mzte-nv-compiler-patched";
buildInputs = with pkgs; [ luajit ]; # nativeBuildInputs = [ pkgs.autoPatchelfHook ];
dontUnpack = true; # buildInputs = with pkgs; [ luajit ];
buildPhase = '' # dontUnpack = true;
cp ${/. + path} $out # buildPhase = ''
''; # cp ${/. + path} $out
} else ""; # '';
# } else "";
in in
{ {
options.cgnix.nvim-plugins = lib.mkOption { }; options.cgnix.nvim-plugins = lib.mkOption { };
@ -97,7 +98,7 @@ in
buildPhase = '' buildPhase = ''
# Compile # Compile
${if mzte-nv-compiler != "" then "${mzte-nv-compiler} plugins" else ""} #$ {if mzte-nv-compiler != "" then "$ {mzte-nv-compiler} plugins" else ""}
''; '';
installPhase = '' installPhase = ''