flake: simplify

This commit is contained in:
Guanran Wang 2024-02-21 10:52:23 +08:00
parent 39bb7b9e08
commit 49c8a13409
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -1,5 +1,5 @@
{ {
description = "Guanran928's nvim config"; description = "Guanran928's Neovim configuration";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
@ -7,8 +7,7 @@
}; };
outputs = inputs: outputs = inputs:
inputs.flake-utils.lib.eachDefaultSystem ( inputs.flake-utils.lib.eachDefaultSystem (system: let
system: let
inherit (inputs.nixpkgs) lib; inherit (inputs.nixpkgs) lib;
pkgs = inputs.nixpkgs.legacyPackages.${system}; pkgs = inputs.nixpkgs.legacyPackages.${system};
runtimeDeps = with pkgs; [ runtimeDeps = with pkgs; [
@ -25,15 +24,12 @@
source ${./.}/init.lua source ${./.}/init.lua
''; '';
} }
// { // {wrapperArgs = ["--prefix" "PATH" ":" "${lib.makeBinPath runtimeDeps}"];});
wrapperArgs = ["--prefix" "PATH" ":" "${lib.makeBinPath runtimeDeps}"];
});
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
stylua stylua
]; ];
}; };
} });
);
} }