3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/vala-lint/default.nix

52 lines
990 B
Nix
Raw Normal View History

2021-04-15 23:44:38 +01:00
{ lib
, stdenv
2019-10-11 23:52:04 +01:00
, fetchFromGitHub
, glib
, meson
, ninja
, pantheon
, pkg-config
2019-10-11 23:52:04 +01:00
, vala
, gettext
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "vala-lint-unstable";
2021-04-15 23:44:38 +01:00
version = "2021-02-17";
2019-10-11 23:52:04 +01:00
src = fetchFromGitHub {
owner = "vala-lang";
repo = "vala-lint";
2021-04-15 23:44:38 +01:00
rev = "5b06cc2341ae7e9f7f8c35c542ef78c36e864c30";
sha256 = "KwJ5sCp9ZrrxIqc6qi2+ZdHBt1esNOO1+uDkS+d9mW8=";
2019-10-11 23:52:04 +01:00
};
nativeBuildInputs = [
gettext
meson
ninja
pkg-config
2019-10-11 23:52:04 +01:00
vala
wrapGAppsHook
];
buildInputs = [
glib
];
2021-04-15 23:44:38 +01:00
doCheck = true;
2019-10-11 23:52:04 +01:00
meta = with lib; {
homepage = "https://github.com/vala-lang/vala-lint";
2019-10-11 23:52:04 +01: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 = pantheon.maintainers;
};
}