nerdfonts: fix wrong attribute name in error message (#364463)
[NixPkgs.git] / pkgs / by-name / se / selene / package.nix
blob543f225050ae62699fc0555ed0ffdf78799d031e
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   robloxSupport ? true,
6   pkg-config,
7   openssl,
8   stdenv,
9   darwin,
12 rustPlatform.buildRustPackage rec {
13   pname = "selene";
14   version = "0.27.1";
16   src = fetchFromGitHub {
17     owner = "kampfkarren";
18     repo = pname;
19     rev = version;
20     sha256 = "sha256-NbVSFYv3nyEjSf0bFajcMaoWP2bS0EfJT8tDddjS7jg=";
21   };
23   cargoHash = "sha256-e3oQUFtgdjqPiB2YpmqnFUG2scmYJhLSpUaw0W6RxIk=";
25   nativeBuildInputs = lib.optionals robloxSupport [
26     pkg-config
27   ];
29   buildInputs =
30     lib.optionals robloxSupport [
31       openssl
32     ]
33     ++ lib.optionals (robloxSupport && stdenv.hostPlatform.isDarwin) [
34       darwin.apple_sdk.frameworks.Security
35     ];
37   buildNoDefaultFeatures = !robloxSupport;
39   meta = with lib; {
40     description = "Blazing-fast modern Lua linter written in Rust";
41     mainProgram = "selene";
42     homepage = "https://github.com/kampfkarren/selene";
43     changelog = "https://github.com/kampfkarren/selene/blob/${version}/CHANGELOG.md";
44     license = licenses.mpl20;
45     maintainers = with maintainers; [ figsoda ];
46   };