add eslint
This commit is contained in:
parent
cdac7ad5fc
commit
88b79bb78f
5 changed files with 17076 additions and 14 deletions
36
flake.nix
36
flake.nix
|
|
@ -7,6 +7,9 @@
|
|||
nixpkgs.url = "github:onny/nixpkgs/hmr-enabler";
|
||||
nixos-shell.url = "github:Mic92/nixos-shell";
|
||||
keycloak-realms.url = "github:rorosen/nixpkgs/keycloak-realm-import";
|
||||
# FIXME
|
||||
licensedigger.url = "github:onny/nixpkgs/licensedigger";
|
||||
eslint.url = "github:onny/nixpkgs/eslint";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixos-shell, ... }@inputs: let
|
||||
|
|
@ -24,19 +27,44 @@
|
|||
specialArgs.inputs = inputs;
|
||||
modules = [
|
||||
(import ./vm-nextcloud.nix)
|
||||
nixos-shell.nixosModules.nixos-shell
|
||||
];
|
||||
};
|
||||
|
||||
devShells.x86_64-linux = {
|
||||
default = with pkgs; mkShell {
|
||||
nativeBuildInputs = [
|
||||
php83Packages.composer
|
||||
nativeBuildInputs = with nodePackages; [
|
||||
php84Packages.composer
|
||||
phpunit
|
||||
nodejs
|
||||
nodePackages.rollup
|
||||
rollup
|
||||
act
|
||||
npm-check-updates
|
||||
# FIXME
|
||||
inputs.licensedigger.legacyPackages.x86_64-linux.licensedigger
|
||||
(inputs.eslint.legacyPackages.x86_64-linux.eslint.overrideAttrs (oldAttrs: rec {
|
||||
version = "8.57.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "eslint";
|
||||
repo = "eslint";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-nXlS+k8FiN7rbxhMmRPb3OplHpl+8fWdn1nY0cjL75c=";
|
||||
};
|
||||
postPatch = ''
|
||||
cp ${./package-lock.json} package-lock.json
|
||||
'';
|
||||
npmDepsHash = "sha256-DiXgAD0PvIIBxPAsdU8OOJIyvYI0JyPqu6sj7XN94hE=";
|
||||
npmDeps = pkgs.fetchNpmDeps {
|
||||
src = lib.fileset.toSource {
|
||||
root = ./.;
|
||||
fileset = lib.fileset.unions [
|
||||
./package-lock.json
|
||||
./package.json
|
||||
];
|
||||
};
|
||||
name = "eslint-${version}-npm-deps";
|
||||
hash = npmDepsHash;
|
||||
};
|
||||
}))
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue