Added netrw~nvim and salt-lint

This commit is contained in:
fleaz 2024-05-15 15:43:06 +02:00
parent 2ed60c215f
commit 54336cf9d4
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083
4 changed files with 26 additions and 13 deletions

View file

@ -6,7 +6,6 @@ self: super: {
packageOverrides = python-self: python-super: {
pytapo = python-self.callPackage ./pytapo { };
brother-ql = python-self.callPackage ./brother-ql { };
salt-lint = python-self.callPackage ./salt-lint { };
};
};
@ -19,4 +18,8 @@ self: super: {
#mealie = self.callPackage ./mealie { };
gohome = self.callPackage ./gohome { };
matrix-alertmanager-receiver = self.callPackage ./matrix-alertmanager-receiver { };
vimPlugins = super.vimPlugins.extend ( self': super': {
netrw-nvim = super.callPackage ./netrw-nvim { };
});
salt-lint = super.callPackage ./salt-lint { };
}

12
netrw-nvim/default.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs
, ...
}:
pkgs.vimUtils.buildVimPlugin {
name = "netrw-nvim";
src = pkgs.fetchFromGitHub {
owner = "prichrd";
repo = "netrw.nvim";
rev = "master";
sha256 = "sha256-A4u1JttkLANO2xNf8T9/OAiPjSYgiEkTfvCRc0Sl4Nk=";
};
}

View file

@ -1,9 +1,8 @@
{ buildPythonPackage
{ python3Packages
, fetchFromGitHub
, setuptools
, lib
}:
buildPythonPackage rec {
python3Packages.buildPythonPackage rec {
pname = "salt-lint";
version = "0.9.2";
pyproject = true;
@ -16,11 +15,12 @@ buildPythonPackage rec {
};
nativeBuildInputs = [
setuptools
python3Packages.setuptools
];
pythonImportsCheck = [
"saltlint"
propagatedBuildInputs = with python3Packages; [
pathspec
pyyaml
];
meta = with lib; {

View file

@ -1,11 +1,9 @@
{ pkgs ? import <nixpkgs> { overlays = [ (import ./default.nix) ]; } }:
let
mypython = pkgs.python3.withPackages (python-pkgs: [
python-pkgs.salt-lint
]);
in
# mypython = pkgs.python3.withPackages (python-pkgs: [
# python-pkgs.salt-lint
# ]);
pkgs.mkShell {
buildInputs = with pkgs; [
mypython
salt-lint
];
}