sourcepawn-studio: init at 8.1.2 (#395652)

authored by Tristan Ross and committed by GitHub 5de66298 71eaa3e8

+42
+42
pkgs/by-name/so/sourcepawn-studio/package.nix
··· 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + rustPlatform, 5 + pkg-config, 6 + openssl, 7 + nix-update-script, 8 + }: 9 + rustPlatform.buildRustPackage (finalAttrs: { 10 + pname = "sourcepawn-studio"; 11 + version = "8.1.2"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "Sarrus1"; 15 + repo = "sourcepawn-studio"; 16 + tag = "v${finalAttrs.version}"; 17 + hash = "sha256-L/xgzWbhfRTvoRElKApb9JKXNfqJF+nfDk9Xo/qwL00="; 18 + }; 19 + 20 + useFetchCargoVendor = true; 21 + cargoHash = "sha256-5Zd3Stoi8AqsZE38pnilmjuRMgTPAGB+R8QI2JFZ7s4="; 22 + 23 + nativeBuildInputs = [ pkg-config ]; 24 + 25 + buildInputs = [ openssl ]; 26 + 27 + checkFlags = [ 28 + # requires rustup and rustfmt 29 + "--skip tests::sourcegen::generate_node_kinds" 30 + ]; 31 + 32 + passthru.updateScript = nix-update-script { }; 33 + 34 + meta = { 35 + mainProgram = "sourcepawn-studio"; 36 + description = "LSP implementation for the SourcePawn programming language written in Rust"; 37 + homepage = "https://sarrus1.github.io/sourcepawn-studio/"; 38 + changelog = "https://github.com/Sarrus1/sourcepawn-studio/releases/tag/v${finalAttrs.version}"; 39 + license = lib.licenses.mit; 40 + maintainers = [ lib.maintainers.awwpotato ]; 41 + }; 42 + })