Merge pull request #295076 from wr7/glsl_analyzer

glsl_analyzer: init at 1.4.5

authored by Aleksana and committed by GitHub 9f7053ff 4be913b9

+45
+6
maintainers/maintainer-list.nix
··· 21903 github = "wr0belj"; 21904 githubId = 40501814; 21905 }; 21906 wraithm = { 21907 name = "Matthew Wraith"; 21908 email = "wraithm@gmail.com";
··· 21903 github = "wr0belj"; 21904 githubId = 40501814; 21905 }; 21906 + wr7 = { 21907 + name = "wr7"; 21908 + email = "d-wr7@outlook.com"; 21909 + github = "wr7"; 21910 + githubId = 53203261; 21911 + }; 21912 wraithm = { 21913 name = "Matthew Wraith"; 21914 email = "wraithm@gmail.com";
+39
pkgs/by-name/gl/glsl_analyzer/package.nix
···
··· 1 + { lib 2 + , pkgs 3 + , fetchFromGitHub 4 + , zig_0_12 5 + , darwin 6 + }: 7 + 8 + let stdenv = if pkgs.stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else pkgs.stdenv; in 9 + 10 + stdenv.mkDerivation (finalAttrs: { 11 + pname = "glsl_analyzer"; 12 + version = "1.4.5"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "nolanderc"; 16 + repo = "glsl_analyzer"; 17 + rev = "v${finalAttrs.version}"; 18 + hash = "sha256-+eYBw/F1RzI5waAkLgbV0J/Td91hbNcAtHcisQaL82k="; 19 + }; 20 + 21 + nativeBuildInputs = [ 22 + zig_0_12.hook 23 + ]; 24 + 25 + postPatch = '' 26 + substituteInPlace build.zig \ 27 + --replace-fail 'b.run(&.{ "git", "describe", "--tags", "--always" })' '"${finalAttrs.src.rev}"' 28 + ''; 29 + 30 + meta = { 31 + description = "Language server for GLSL (OpenGL Shading Language)"; 32 + changelog = "https://github.com/nolanderc/glsl_analyzer/releases/tag/v${finalAttrs.version}"; 33 + homepage = "https://github.com/nolanderc/glsl_analyzer"; 34 + mainProgram = "glsl_analyzer"; 35 + license = lib.licenses.gpl3Only; 36 + maintainers = with lib.maintainers; [ wr7 ]; 37 + platforms = lib.platforms.unix; 38 + }; 39 + })