nixpkgs/pkgs/development/tools/quick-lint-js/default.nix
Bobby Rong 155a919233
Merge pull request #189943 from strager/qljs-2.9.0
quick-lint-js: 2.6.0 -> 2.9.0
2022-09-18 20:53:57 +08:00

33 lines
860 B
Nix

{ cmake, fetchFromGitHub, lib, ninja, stdenv, testers, quick-lint-js }:
stdenv.mkDerivation rec {
pname = "quick-lint-js";
version = "2.9.0";
src = fetchFromGitHub {
owner = "quick-lint";
repo = "quick-lint-js";
rev = version;
sha256 = "sha256-hWwEaUf+TntRfxI3HjJV+hJ+dV6TRncxSCbaxE1sIjs=";
};
nativeBuildInputs = [ cmake ninja ];
doCheck = true;
# Temporary workaround for https://github.com/NixOS/nixpkgs/pull/108496#issuecomment-1192083379
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=ON" ];
passthru.tests = {
version = testers.testVersion { package = quick-lint-js; };
};
meta = with lib; {
description = "Find bugs in Javascript programs";
homepage = "https://quick-lint-js.com";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ratsclub ];
platforms = platforms.all;
};
}