-
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #295076 from wr7/glsl_analyzer
glsl_analyzer: init at 1.4.5
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ lib | ||
, pkgs | ||
, fetchFromGitHub | ||
, zig_0_12 | ||
, darwin | ||
}: | ||
|
||
let stdenv = if pkgs.stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else pkgs.stdenv; in | ||
|
||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "glsl_analyzer"; | ||
version = "1.4.5"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "nolanderc"; | ||
repo = "glsl_analyzer"; | ||
rev = "v${finalAttrs.version}"; | ||
hash = "sha256-+eYBw/F1RzI5waAkLgbV0J/Td91hbNcAtHcisQaL82k="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
zig_0_12.hook | ||
]; | ||
|
||
postPatch = '' | ||
substituteInPlace build.zig \ | ||
--replace-fail 'b.run(&.{ "git", "describe", "--tags", "--always" })' '"${finalAttrs.src.rev}"' | ||
''; | ||
|
||
meta = { | ||
description = "Language server for GLSL (OpenGL Shading Language)"; | ||
changelog = "https://github.com/nolanderc/glsl_analyzer/releases/tag/v${finalAttrs.version}"; | ||
homepage = "https://github.com/nolanderc/glsl_analyzer"; | ||
mainProgram = "glsl_analyzer"; | ||
license = lib.licenses.gpl3Only; | ||
maintainers = with lib.maintainers; [ wr7 ]; | ||
platforms = lib.platforms.unix; | ||
}; | ||
}) |