nixpkgs/pkgs/development/tools/vala-lint/default.nix

71 lines
1.6 KiB
Nix
Raw Normal View History

2021-04-16 00:44:38 +02:00
{ lib
, stdenv
2019-10-12 00:52:04 +02:00
, fetchFromGitHub
, fetchpatch
2019-10-12 00:52:04 +02:00
, glib
, meson
, ninja
, pantheon
, pkg-config
2019-10-12 00:52:04 +02:00
, vala
, gettext
, wrapGAppsHook
, unstableGitUpdater
2019-10-12 00:52:04 +02:00
}:
stdenv.mkDerivation rec {
pname = "vala-lint";
version = "unstable-2021-11-18";
2019-10-12 00:52:04 +02:00
src = fetchFromGitHub {
owner = "vala-lang";
repo = "vala-lint";
rev = "2db018056befba76136e6c69a78d905a128a6165";
sha256 = "sha256-bQaj2bETzl6ykgrpE2iLAvx691aGDLFteL/ulfoKuEk=";
2019-10-12 00:52:04 +02:00
};
patches = [
# Fix build against vala-0.54.3+. Pull fix pending upstream
# 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
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
passthru = {
updateScript = unstableGitUpdater {
url = "https://github.com/vala-lang/vala-lint.git";
};
};
meta = with lib; {
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;
maintainers = teams.pantheon.members;
mainProgram = "io.elementary.vala-lint";
2019-10-12 00:52:04 +02:00
};
}