Merge pull request #250212 from dotlambda/gqlint-buildNpmPackage
gqlint: use buildNpmPackage
This commit is contained in:
commit
50e5c891aa
5 changed files with 31 additions and 45 deletions
|
@ -67,6 +67,7 @@ mapAliases {
|
|||
flood = pkgs.flood; # Added 2023-07-25
|
||||
git-ssb = throw "git-ssb was removed because it was broken"; # added 2023-08-21
|
||||
glob = pkgs.node-glob; # added 2023-08-18
|
||||
inherit (pkgs) gqlint; # added 2023-08-19
|
||||
inherit (pkgs) graphqurl; # added 2023-08-19
|
||||
gtop = pkgs.gtop; # added 2023-07-31
|
||||
inherit (pkgs) html-minifier; # added 2023-08-19
|
||||
|
|
|
@ -141,7 +141,6 @@
|
|||
, "grunt-cli"
|
||||
, "makam"
|
||||
, "meshcommander"
|
||||
, "gqlint"
|
||||
, "gulp"
|
||||
, "gulp-cli"
|
||||
, "he"
|
||||
|
|
44
pkgs/development/node-packages/node-packages.nix
generated
44
pkgs/development/node-packages/node-packages.nix
generated
|
@ -89960,50 +89960,6 @@ in
|
|||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
gqlint = nodeEnv.buildNodePackage {
|
||||
name = "gqlint";
|
||||
packageName = "gqlint";
|
||||
version = "1.8.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/gqlint/-/gqlint-1.8.0.tgz";
|
||||
sha512 = "X5tNjxscqbH8xHXubB8kY6yGt11krk+RuB6N/zI2B2RdRadzwavBRMAHkIJzp2RpFgliF08UqP/p+spS/aNd5w==";
|
||||
};
|
||||
dependencies = [
|
||||
sources."ansi-regex-2.1.1"
|
||||
sources."ansi-styles-2.2.1"
|
||||
sources."babel-code-frame-6.26.0"
|
||||
sources."chalk-1.1.3"
|
||||
sources."commander-2.20.3"
|
||||
sources."encoding-0.1.13"
|
||||
sources."escape-string-regexp-1.0.5"
|
||||
sources."esutils-2.0.3"
|
||||
sources."graphql-14.7.0"
|
||||
sources."has-ansi-2.0.0"
|
||||
sources."iconv-lite-0.6.3"
|
||||
sources."is-stream-1.1.0"
|
||||
sources."iterall-1.3.0"
|
||||
sources."js-tokens-3.0.2"
|
||||
sources."lodash-4.17.21"
|
||||
sources."node-fetch-1.7.3"
|
||||
sources."pad-component-0.0.1"
|
||||
sources."pluralize-5.1.0"
|
||||
sources."prettier-1.19.1"
|
||||
sources."safer-buffer-2.1.2"
|
||||
sources."strip-ansi-3.0.1"
|
||||
sources."supports-color-2.0.0"
|
||||
sources."text-table-0.2.0"
|
||||
sources."wordwrap-1.0.0"
|
||||
];
|
||||
buildInputs = globalBuildInputs;
|
||||
meta = {
|
||||
description = "GraphQL Linter";
|
||||
homepage = "https://github.com/happylinks/gqlint#readme";
|
||||
license = "MIT";
|
||||
};
|
||||
production = true;
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
gulp = nodeEnv.buildNodePackage {
|
||||
name = "gulp";
|
||||
packageName = "gulp";
|
||||
|
|
28
pkgs/development/tools/gqlint/default.nix
Normal file
28
pkgs/development/tools/gqlint/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib
|
||||
, buildNpmPackage
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "gqlint";
|
||||
version = "1.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "happylinks";
|
||||
repo = "gqlint";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-m/Y7i3+93UdPnKQlZUHgtRbfSmJ1xYjao+bU+zxMgHw=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-Fc5RbBqrJB7KSqLgTmIsPf3MK2n7vef/UVeFqH0o7mE=";
|
||||
|
||||
dontNpmBuild = true;
|
||||
|
||||
meta = {
|
||||
description = "GraphQL linter";
|
||||
homepage = "https://github.com/happylinks/gqlint";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "gqlint";
|
||||
maintainers = with lib.maintainers; [ hardselius ];
|
||||
};
|
||||
}
|
|
@ -19498,6 +19498,8 @@ with pkgs;
|
|||
|
||||
gpuvis = callPackage ../development/tools/misc/gpuvis { };
|
||||
|
||||
gqlint = callPackage ../development/tools/gqlint { };
|
||||
|
||||
gradle-packages = import ../development/tools/build-managers/gradle {
|
||||
inherit jdk8 jdk11 jdk17;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue