mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, glib
|
|
, meson
|
|
, ninja
|
|
, pantheon
|
|
, pkg-config
|
|
, vala
|
|
, gettext
|
|
, wrapGAppsHook
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "vala-lint";
|
|
version = "unstable-2023-05-25";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vala-lang";
|
|
repo = "vala-lint";
|
|
rev = "4d21b8a2be8b77052176d06d0cf10a8b319117c4";
|
|
sha256 = "sha256-OnBeiYm83XjAezHEBEA2LvJ5ErVOyKclXJcS0cYaLIg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gettext
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = unstableGitUpdater {
|
|
url = "https://github.com/vala-lang/vala-lint.git";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/vala-lang/vala-lint";
|
|
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";
|
|
};
|
|
}
|