2021-04-15 22:44:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-10-11 22:52:04 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pantheon
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-10-11 22:52:04 +00:00
|
|
|
, vala
|
|
|
|
, gettext
|
|
|
|
, wrapGAppsHook
|
2021-12-26 13:52:10 +00:00
|
|
|
, unstableGitUpdater
|
2019-10-11 22:52:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-26 13:52:10 +00:00
|
|
|
pname = "vala-lint";
|
2022-03-13 18:48:33 +00:00
|
|
|
version = "unstable-2022-02-16";
|
2019-10-11 22:52:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vala-lang";
|
|
|
|
repo = "vala-lint";
|
2022-03-13 18:48:33 +00:00
|
|
|
rev = "2f8a970cbf41ac54d2b4124c9d7db64543031901";
|
|
|
|
sha256 = "sha256-jIC9nUWxs4iDpqEQGxl8JrHbBEkz60/elWHqGKQqlX8=";
|
2019-10-11 22:52:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-10-11 22:52:04 +00:00
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
2021-04-15 22:44:38 +00:00
|
|
|
doCheck = true;
|
2019-10-11 22:52:04 +00:00
|
|
|
|
2021-12-26 13:52:10 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = unstableGitUpdater {
|
|
|
|
url = "https://github.com/vala-lang/vala-lint.git";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/vala-lang/vala-lint";
|
2019-10-11 22:52:04 +00:00
|
|
|
description = "Check Vala code files for code-style errors";
|
|
|
|
longDescription = ''
|
|
|
|
Small command line tool and library for checking Vala code files for code-style errors.
|
|
|
|
Based on the elementary Code-Style guidelines.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-09-18 15:00:51 +00:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-12-26 13:52:10 +00:00
|
|
|
mainProgram = "io.elementary.vala-lint";
|
2019-10-11 22:52:04 +00:00
|
|
|
};
|
|
|
|
}
|