depot/third_party/nixpkgs/pkgs/development/tools/vala-lint/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

67 lines
1.4 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, glib
, json-glib
, meson
, ninja
, pantheon
, pkg-config
, vala
, gettext
, wrapGAppsHook
, unstableGitUpdater
}:
stdenv.mkDerivation rec {
pname = "vala-lint";
version = "unstable-2023-12-05";
src = fetchFromGitHub {
owner = "vala-lang";
repo = "vala-lint";
rev = "8ae2bb65fe66458263d94711ae4ddd978faece00";
sha256 = "sha256-FZV726ZeNEX4ulEh+IIzwZqpnVRr7IeZb47FV1C7YjU=";
};
nativeBuildInputs = [
gettext
meson
ninja
pkg-config
vala
wrapGAppsHook
];
buildInputs = [
glib
json-glib
];
postPatch = ''
# https://github.com/vala-lang/vala-lint/issues/181
substituteInPlace test/meson.build \
--replace "test('auto-fix', auto_fix_test, env: test_envars)" ""
'';
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";
};
}