diff options
author | Sebastian Neubauer <sebastian.neubauer@amd.com> | 2020-10-28 11:16:22 +0100 |
---|---|---|
committer | Sebastian Neubauer <sebastian.neubauer@amd.com> | 2020-11-03 14:47:59 +0100 |
commit | 156fe5442ef5e6fdf767dd64060c016c335e8f02 (patch) | |
tree | 920a6b1396848be5b24f2f4f55dbc24143f758c0 /pkgs/development/libraries/waffle | |
parent | 65f4c39a40e6ed4343dd94017c3ed81f416cd3b4 (diff) | |
download | nixpkgs-156fe5442ef5e6fdf767dd64060c016c335e8f02.tar nixpkgs-156fe5442ef5e6fdf767dd64060c016c335e8f02.tar.gz nixpkgs-156fe5442ef5e6fdf767dd64060c016c335e8f02.tar.bz2 nixpkgs-156fe5442ef5e6fdf767dd64060c016c335e8f02.tar.lz nixpkgs-156fe5442ef5e6fdf767dd64060c016c335e8f02.tar.xz nixpkgs-156fe5442ef5e6fdf767dd64060c016c335e8f02.tar.zst nixpkgs-156fe5442ef5e6fdf767dd64060c016c335e8f02.zip |
waffle: init at 1.6.1
Diffstat (limited to 'pkgs/development/libraries/waffle')
-rw-r--r-- | pkgs/development/libraries/waffle/default.nix | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/development/libraries/waffle/default.nix b/pkgs/development/libraries/waffle/default.nix new file mode 100644 index 00000000000..66a1b7ab145 --- /dev/null +++ b/pkgs/development/libraries/waffle/default.nix @@ -0,0 +1,54 @@ +{ stdenv +, fetchFromGitLab +, lib +, cmake +, libGL +, libglvnd +, makeWrapper +, pkg-config +, wayland +, libxcb +, libX11 +}: + +stdenv.mkDerivation rec { + pname = "waffle"; + version = "1.6.1"; + + src = fetchFromGitLab { + domain = "gitlab.freedesktop.org"; + owner = "mesa"; + repo = "waffle"; + rev = "v${version}"; + sha256 = "0s8gislmhccfa04zsj1yqk97lscbbnmxirr2zm4q3p8ybmpfhpqr"; + }; + + buildInputs = [ + libGL + libglvnd + libX11 + libxcb + wayland + ]; + + nativeBuildInputs = [ + cmake + makeWrapper + pkg-config + ]; + + cmakeFlags = [ "-Dplatforms=x11,wayland" ]; + + postInstall = '' + wrapProgram $out/bin/wflinfo \ + --prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ libGL libglvnd ]} + ''; + + meta = with lib; { + description = "A cross-platform C library that allows one to defer selection of an OpenGL API and window system until runtime"; + homepage = "http://www.waffle-gl.org/"; + license = licenses.bsd2; + platforms = platforms.mesaPlatforms; + maintainers = with maintainers; [ Flakebi ]; + }; +} |