linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / ogrepaged / default.nix
blob0aefedb52575314071d0f6e1af1b8a431925a285
1 { lib, stdenv, fetchurl, fetchpatch, cmake, pkg-config, ois, ogre, libX11, boost }:
3 stdenv.mkDerivation rec {
4   pname = "ogre-paged";
5   version = "1.2.0";
7   src = fetchurl {
8     url = "https://github.com/RigsOfRods/ogre-pagedgeometry/archive/v${version}.tar.gz";
9     sha256 = "17j7rw9wbkynxbhm2lay3qgjnnagb2vd5jn9iijnn2lf8qzbgy82";
10   };
12   patches = [
13     # These patches come from https://github.com/RigsOfRods/ogre-pagedgeometry/pull/6
14     # and make ogre-paged build with ogre-1.10.
15     (fetchpatch {
16       url = "https://github.com/RigsOfRods/ogre-pagedgeometry/commit/2d4df577decba37ec3cdafc965deae0f6d31fe45.patch";
17       sha256 = "0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73";
18     })
19     (fetchpatch {
20       url = "https://github.com/RigsOfRods/ogre-pagedgeometry/commit/4d81789ec6f55e294a5ad040ea7abe2b415cbc92.patch";
21       sha256 = "17q8djdz2y3g46azxc3idhyvi6vf0sqkxld4bbyp3l9zn7dq76rp";
22     })
23     (fetchpatch {
24       url = "https://github.com/RigsOfRods/ogre-pagedgeometry/commit/10f7c5ce5b422e9cbac59d466f3567a24c8831a4.patch";
25       sha256 = "1kk0dbadzg73ai99l3w04q51sil36vzbkaqc79mdwy0vjrn4ardb";
26     })
27   ];
29   buildInputs = [ ois ogre libX11 boost ];
30   nativeBuildInputs = [ cmake pkg-config ];
32   cmakeFlags = [ "-DPAGEDGEOMETRY_BUILD_SAMPLES=OFF" ];
34   meta = {
35     description = "Paged Geometry for Ogre3D";
36     homepage = "https://github.com/RigsOfRods/ogre-paged";
37     license = lib.licenses.mit;
38     platforms = lib.platforms.linux;
39   };