btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / sp / spirv-cross / package.nix
blob7115a09bd8e9c87f98fcdb76b8ac956cf19bc70f
1 { lib, stdenv, fetchFromGitHub, cmake, python3 }:
3 stdenv.mkDerivation (finalAttrs: {
4   pname = "spirv-cross";
5   version = "1.3.296.0";
7   src = fetchFromGitHub {
8     owner = "KhronosGroup";
9     repo = "SPIRV-Cross";
10     rev = "vulkan-sdk-${finalAttrs.version}";
11     hash = "sha256-HKEh/UQzDQEOvJGHQlM6kEYVZrMaUBOcOGjjHWXSPoo=";
12   };
14   nativeBuildInputs = [ cmake python3 ];
16   postFixup = ''
17     substituteInPlace $out/lib/pkgconfig/*.pc \
18       --replace '=''${prefix}//' '=/'
19   '';
21   meta = with lib; {
22     description = "Tool designed for parsing and converting SPIR-V to other shader languages";
23     homepage = "https://github.com/KhronosGroup/SPIRV-Cross";
24     changelog = "https://github.com/KhronosGroup/SPIRV-Cross/releases/tag/${finalAttrs.version}";
25     platforms = platforms.all;
26     license = licenses.asl20;
27     maintainers = with maintainers; [ Flakebi ];
28     mainProgram = "spirv-cross";
29   };