add eslint and licensedigger

This commit is contained in:
Jonas Heinrich 2024-09-01 13:24:12 +02:00
parent 88b79bb78f
commit fb792c2d26
2 changed files with 9 additions and 46 deletions

40
flake.lock generated
View file

@ -1,21 +1,5 @@
{ {
"nodes": { "nodes": {
"eslint": {
"locked": {
"lastModified": 1724837771,
"narHash": "sha256-5j1sZjDSnrNqrVy7rR92tl5PByvKxc2NMSI7CMXk17g=",
"owner": "onny",
"repo": "nixpkgs",
"rev": "11f8b6c9852ccc560f63e659286e27ce3162bcb3",
"type": "github"
},
"original": {
"owner": "onny",
"ref": "eslint",
"repo": "nixpkgs",
"type": "github"
}
},
"keycloak-realms": { "keycloak-realms": {
"locked": { "locked": {
"lastModified": 1721562747, "lastModified": 1721562747,
@ -32,22 +16,6 @@
"type": "github" "type": "github"
} }
}, },
"licensedigger": {
"locked": {
"lastModified": 1724834768,
"narHash": "sha256-VXI8rKoDiq+YQxUOt+AQ2NgS+BoneS/z2NVa0+EZztU=",
"owner": "onny",
"repo": "nixpkgs",
"rev": "711ae571d2d4f63dd3a02feefb97c4fecf6840a3",
"type": "github"
},
"original": {
"owner": "onny",
"ref": "licensedigger",
"repo": "nixpkgs",
"type": "github"
}
},
"nixos-shell": { "nixos-shell": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
@ -83,11 +51,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1724830280, "lastModified": 1725189734,
"narHash": "sha256-+gOB/YVMvgUU9C46APzTN5BgN6zetHyQNzJ9e1FnEJo=", "narHash": "sha256-tkg9tgohtzIvuvb+DeryiWIKanxyYBWGQEvvsMHzT9U=",
"owner": "onny", "owner": "onny",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1ae627bb9595f0c761275d2755ec34a4d8709bc2", "rev": "10f6fb34be099e8c8a1251a5cc65dbbff36bd9b1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -99,9 +67,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"eslint": "eslint",
"keycloak-realms": "keycloak-realms", "keycloak-realms": "keycloak-realms",
"licensedigger": "licensedigger",
"nixos-shell": "nixos-shell", "nixos-shell": "nixos-shell",
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
} }

View file

@ -7,9 +7,6 @@
nixpkgs.url = "github:onny/nixpkgs/hmr-enabler"; nixpkgs.url = "github:onny/nixpkgs/hmr-enabler";
nixos-shell.url = "github:Mic92/nixos-shell"; nixos-shell.url = "github:Mic92/nixos-shell";
keycloak-realms.url = "github:rorosen/nixpkgs/keycloak-realm-import"; 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 outputs = { self, nixpkgs, nixos-shell, ... }@inputs: let
@ -32,16 +29,16 @@
devShells.x86_64-linux = { devShells.x86_64-linux = {
default = with pkgs; mkShell { default = with pkgs; mkShell {
nativeBuildInputs = with nodePackages; [ nativeBuildInputs = with php84Packages; [
php84Packages.composer composer
php-cs-fixer
phpunit phpunit
nodejs nodejs
rollup nodePackages.rollup
act act
npm-check-updates npm-check-updates
# FIXME licensedigger
inputs.licensedigger.legacyPackages.x86_64-linux.licensedigger (eslint.overrideAttrs (oldAttrs: rec {
(inputs.eslint.legacyPackages.x86_64-linux.eslint.overrideAttrs (oldAttrs: rec {
version = "8.57.0"; version = "8.57.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "eslint"; owner = "eslint";