2021-04-16 00:44:38 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-10-12 00:52:04 +02:00
|
|
|
, fetchFromGitHub
|
2021-12-22 01:09:29 +01:00
|
|
|
, fetchpatch
|
2019-10-12 00:52:04 +02:00
|
|
|
, glib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pantheon
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2019-10-12 00:52:04 +02:00
|
|
|
, vala
|
|
|
|
, gettext
|
|
|
|
, wrapGAppsHook
|
2021-12-26 14:52:10 +01:00
|
|
|
, unstableGitUpdater
|
2019-10-12 00:52:04 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-26 14:52:10 +01:00
|
|
|
pname = "vala-lint";
|
|
|
|
version = "unstable-2021-11-18";
|
2019-10-12 00:52:04 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vala-lang";
|
|
|
|
repo = "vala-lint";
|
2021-12-26 14:52:10 +01:00
|
|
|
rev = "2db018056befba76136e6c69a78d905a128a6165";
|
|
|
|
sha256 = "sha256-bQaj2bETzl6ykgrpE2iLAvx691aGDLFteL/ulfoKuEk=";
|
2019-10-12 00:52:04 +02:00
|
|
|
};
|
|
|
|
|
2021-12-22 01:09:29 +01:00
|
|
|
patches = [
|
2021-12-26 14:52:10 +01:00
|
|
|
# Fix build against vala-0.54.3+. Pull fix pending upstream
|
2021-12-22 01:09:29 +01:00
|
|
|
# inclusion: https://github.com/vala-lang/vala-lint/pull/155
|
|
|
|
(fetchpatch {
|
|
|
|
name = "vala-0.54.patch";
|
|
|
|
url = "https://github.com/vala-lang/vala-lint/commit/739f9a0b7d3e92db41eb32f2bfa527efdacc223b.patch";
|
|
|
|
sha256 = "sha256-1IbQu3AQXRCrrjoMZKhEOqzExmPAo1SQOFHa/IrqnNA=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-10-12 00:52:04 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2019-10-12 00:52:04 +02:00
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
2021-04-16 00:44:38 +02:00
|
|
|
doCheck = true;
|
2019-10-12 00:52:04 +02:00
|
|
|
|
2021-12-26 14:52:10 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = unstableGitUpdater {
|
|
|
|
url = "https://github.com/vala-lang/vala-lint.git";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/vala-lang/vala-lint";
|
2019-10-12 00:52:04 +02: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 17:00:51 +02:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-12-26 14:52:10 +01:00
|
|
|
mainProgram = "io.elementary.vala-lint";
|
2019-10-12 00:52:04 +02:00
|
|
|
};
|
|
|
|
}
|