Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 734c74440712
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 820f3be9b491
Choose a head ref
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on Nov 3, 2020

  1. waffle: init at 1.6.1

    Flakebi committed Nov 3, 2020
    Copy the full SHA
    156fe54 View commit details
  2. piglit: init at unstable-2020-10-23

    piglit is a test runner for mesa.
    To check that it is working, run `piglit run sanity results/sanity`
    Flakebi committed Nov 3, 2020
    Copy the full SHA
    2907f28 View commit details

Commits on Nov 5, 2020

  1. Merge pull request #101941 from Flakebi/waffle

    piglit: init at unstable-2020-10-28
    danieldk authored Nov 5, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    820f3be View commit details
Showing with 135 additions and 0 deletions.
  1. +54 −0 pkgs/development/libraries/waffle/default.nix
  2. +77 −0 pkgs/tools/graphics/piglit/default.nix
  3. +4 −0 pkgs/top-level/all-packages.nix
54 changes: 54 additions & 0 deletions pkgs/development/libraries/waffle/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
77 changes: 77 additions & 0 deletions pkgs/tools/graphics/piglit/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{ stdenv
, fetchFromGitLab
, lib
, cmake
, freeglut
, libGL
, libGLU
, libglvnd
, makeWrapper
, ninja
, pkg-config
, python3
, waffle
, wayland
, libX11
, libXrender
, libxcb
, libxkbcommon
}:

stdenv.mkDerivation rec {
pname = "piglit";
version = "unstable-2020-10-23";

src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "mesa";
repo = "piglit";
rev = "59e695c16fdcdd4ea4f16365f0e397a93cef7b80";
sha256 = "kx0+2Sdvdc3SbpAIl2OuGCWCpaLJC/7cXG+ZLvf92g8=";
};

buildInputs = [
freeglut
libGL
libGLU
libglvnd
libX11
libXrender
libxcb
libxkbcommon
(python3.withPackages (ps: with ps; [
Mako
numpy
]))
waffle
wayland
];

nativeBuildInputs = [
cmake
makeWrapper
ninja
pkg-config
];

# Find data dir: piglit searches for the data directory in some places, however as it is wrapped,
# it search in ../lib/.piglit-wrapped, we just replace the script name with "piglit" again.
prePatch = ''
substituteInPlace piglit \
--replace 'script_basename_noext = os.path.splitext(os.path.basename(__file__))[0]' 'script_basename_noext = "piglit"'
'';

postInstall = ''
wrapProgram $out/bin/piglit \
--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ libGL libglvnd ]} \
--prefix PATH : "${waffle}/bin"
'';

meta = with lib; {
description = "An OpenGL test suite, and test-suite runner";
homepage = "https://gitlab.freedesktop.org/mesa/piglit";
license = licenses.free; # custom license. See COPYING in the source repo.
platforms = platforms.mesaPlatforms;
maintainers = with maintainers; [ Flakebi ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -2471,6 +2471,8 @@ in

photon = callPackage ../tools/networking/photon { };

piglit = callPackage ../tools/graphics/piglit { };

playerctl = callPackage ../tools/audio/playerctl { };

ps_mem = callPackage ../tools/system/ps_mem { };
@@ -16072,6 +16074,8 @@ in
stdenv = gcc6Stdenv; # upstream code incompatible with gcc7
};

waffle = callPackage ../development/libraries/waffle { };

wally-cli = callPackage ../development/tools/wally-cli { };

wavpack = callPackage ../development/libraries/wavpack { };