nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchCrate,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "svlint";
9 version = "0.9.5";
10
11 src = fetchCrate {
12 inherit pname version;
13 hash = "sha256-RjdhXp9Dm6ZrRfJKsjnzAFgXTIQB3DJmDMwwtQD4Uzw=";
14 };
15
16 cargoHash = "sha256-in8DObo5QENl1N36lI16DpEXepFU3Y0BYkJOXinmUjE=";
17
18 cargoBuildFlags = [
19 "--bin"
20 "svlint"
21 ];
22
23 meta = {
24 description = "SystemVerilog linter";
25 mainProgram = "svlint";
26 homepage = "https://github.com/dalance/svlint";
27 changelog = "https://github.com/dalance/svlint/blob/v${version}/CHANGELOG.md";
28 license = lib.licenses.mit;
29 maintainers = with lib.maintainers; [ trepetti ];
30 };
31}