nixpkgs/pkgs/development/tools/selene/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
966 B
Nix
Raw Normal View History

2021-10-03 19:49:08 +02:00
{ lib
, rustPlatform
, fetchFromGitHub
, robloxSupport ? true
, pkg-config
, openssl
, stdenv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "selene";
2022-09-17 18:59:08 +02:00
version = "0.21.0";
2021-10-03 19:49:08 +02:00
src = fetchFromGitHub {
owner = "kampfkarren";
repo = pname;
rev = version;
2022-09-17 18:59:08 +02:00
sha256 = "sha256-iqPQD0oDPhhD7jgnbiJvUiaxj1YZeGkgQu6p1vr1Vlw=";
2021-10-03 19:49:08 +02:00
};
2022-09-17 18:59:08 +02:00
cargoSha256 = "sha256-gl4vgS/164eYP3MWRBaI3NrmlqbYZUHOwySUA7/42Qg=";
2021-10-03 19:49:08 +02:00
nativeBuildInputs = lib.optional robloxSupport pkg-config;
buildInputs = lib.optional robloxSupport openssl
++ lib.optional (robloxSupport && stdenv.isDarwin) Security;
2021-11-16 14:32:07 +01:00
buildNoDefaultFeatures = !robloxSupport;
2021-10-03 19:49:08 +02:00
meta = with lib; {
description = "A blazing-fast modern Lua linter written in Rust";
homepage = "https://github.com/kampfkarren/selene";
changelog = "https://github.com/kampfkarren/selene/blob/${version}/CHANGELOG.md";
license = licenses.mpl20;
maintainers = with maintainers; [ figsoda ];
};
}