nixpkgs/pkgs/development/libraries/mesa-glu/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
895 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, libGL, ApplicationServices
, testers
}:
stdenv.mkDerivation (finalAttrs: {
pname = "glu";
2021-06-26 00:14:06 +00:00
version = "9.0.2";
src = let
inherit (finalAttrs) pname version;
in fetchurl {
url = "https://mesa.freedesktop.org/archive/${pname}/${pname}-${version}.tar.xz";
2021-06-26 00:14:06 +00:00
sha256 = "sha256-bnKA/1hcah2d/N8vykiSUWNLM3e/wzwp5AAkZqONAtQ=";
};
nativeBuildInputs = [ pkg-config ];
propagatedBuildInputs = [ libGL ]
++ lib.optional stdenv.isDarwin ApplicationServices;
2016-09-01 15:23:12 +00:00
outputs = [ "out" "dev" ];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
description = "OpenGL utility library";
homepage = "https://cgit.freedesktop.org/mesa/glu/";
license = lib.licenses.sgi-b-20;
pkgConfigModules = [ "glu" ];
platforms = lib.platforms.unix;
broken = stdenv.hostPlatform.isAndroid;
};
})