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": {
"nixpkgs": {
"locked": {
"lastModified": 1728228884,
"narHash": "sha256-E9JaDKGi21oUypH0P9881lbkhi6USNJ6XL2tFzU5uuE=",
"lastModified": 1730207978,
"narHash": "sha256-FnFkAqwoXfBoyWGBIVy17rT6sJK8HI09SlPmh6WKYJo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ff0da78cfd41aa1784910ce1fea89119822013ce",
"rev": "6a1c602a1637c3b22c8a0b7123413ad84d7c51fe",
"type": "github"
},
"original": {

View file

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