flake: remove package
This commit is contained in:
parent
de29df20b3
commit
21e917990e
2 changed files with 2 additions and 39 deletions
23
flake.nix
23
flake.nix
|
@ -19,36 +19,17 @@
|
||||||
|
|
||||||
outputs = inputs:
|
outputs = inputs:
|
||||||
inputs.flake-utils.lib.eachDefaultSystem (system: let
|
inputs.flake-utils.lib.eachDefaultSystem (system: let
|
||||||
inherit (inputs.nixpkgs) lib;
|
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||||
treefmtEval = inputs.treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
|
treefmtEval = inputs.treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
|
||||||
|
|
||||||
runtimeDeps = with pkgs; [
|
|
||||||
# mason / tree-sitter
|
|
||||||
gcc
|
|
||||||
cargo
|
|
||||||
nodejs
|
|
||||||
|
|
||||||
# telescope
|
|
||||||
ripgrep
|
|
||||||
fd
|
|
||||||
];
|
|
||||||
src = lib.fileset.toSource {
|
|
||||||
fileset = lib.fileset.fileFilter (file: file.hasExt "lua") ./.;
|
|
||||||
root = ./.;
|
|
||||||
};
|
|
||||||
in {
|
in {
|
||||||
### nix {run,shell,build}
|
|
||||||
packages.default = pkgs.callPackage ./package.nix {inherit runtimeDeps src;};
|
|
||||||
|
|
||||||
### nix fmt
|
### nix fmt
|
||||||
formatter = treefmtEval.config.build.wrapper;
|
formatter = treefmtEval.config.build.wrapper;
|
||||||
|
|
||||||
### nix flake check
|
### nix flake check
|
||||||
checks = {formatting = treefmtEval.config.build.check inputs.self;};
|
checks.formatting = treefmtEval.config.build.check inputs.self;
|
||||||
|
|
||||||
### nix develop
|
### nix develop
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShellNoCC {
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
stylua
|
stylua
|
||||||
];
|
];
|
||||||
|
|
18
package.nix
18
package.nix
|
@ -1,18 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
wrapNeovimUnstable,
|
|
||||||
neovim-unwrapped,
|
|
||||||
neovimUtils,
|
|
||||||
runtimeDeps ? null,
|
|
||||||
src ? null,
|
|
||||||
...
|
|
||||||
} @ args:
|
|
||||||
wrapNeovimUnstable neovim-unwrapped (neovimUtils.makeNeovimConfig args
|
|
||||||
// {
|
|
||||||
# FIXME: append instead of override the entire wrapperArgs
|
|
||||||
wrapperArgs = ["--prefix" "PATH" ":" "${lib.makeBinPath runtimeDeps}"];
|
|
||||||
luaRcContent = ''
|
|
||||||
vim.cmd [[set runtimepath^=${src}]]
|
|
||||||
${builtins.readFile "${src}/init.lua"}
|
|
||||||
'';
|
|
||||||
})
|
|
Loading…
Reference in a new issue