git.iko.soy/typeable/nixpkgs
on master help sign in
freenect: enable Darwin building
commit4576ff80124b6b5c58bf964b963efa08ecacf6c9 authorLuke Adams <luke.adams@belljar.io> dateWed 14 Mar 2018, 17:11 (9 years ago) parent0175bf6
2 files changed+12−6
pkgs/development/libraries/freenect/default.nix+9−5 pkgs/top-level/all-packages.nix+3−1
pkgs/development/libraries/freenect/default.nix+9−5
@@ -1,4 +1,6 @@
1−{ stdenv, fetchFromGitHub, cmake, libusb, pkgconfig, freeglut, libGLU_combined, libXi, libXmu }:
1+{ stdenv, lib, fetchFromGitHub, cmake, libusb, pkgconfig, freeglut, libGLU_combined, libXi, libXmu
2+, GLUT, Cocoa
3+ }:
24
35stdenv.mkDerivation rec {
46 name = "freenect-${version}";
@@ -11,15 +13,17 @@ stdenv.mkDerivation rec {
1113 sha256 = "0vnc7z2avckh4mccqq6alsd2z7xvsh3kaslc5b0gnfxw0j269gl6";
1214 };
1315
14− buildInputs = [ libusb freeglut libGLU_combined libXi libXmu ];
16+ buildInputs = [ libusb freeglut libGLU_combined libXi libXmu ]
17+ ++ lib.optionals stdenv.isDarwin [ GLUT Cocoa ];
18+
1519 nativeBuildInputs = [ cmake pkgconfig ];
1620
1721 meta = {
1822 description = "Drivers and libraries for the Xbox Kinect device on Windows, Linux, and macOS";
1923 inherit version;
2024 homepage = http://openkinect.org;
21− license = with stdenv.lib.licenses; [ gpl2 asl20 ];
22− maintainers = with stdenv.lib.maintainers; [ bennofs ];
23− platforms = stdenv.lib.platforms.linux;
25+ license = with lib.licenses; [ gpl2 asl20 ];
26+ maintainers = with lib.maintainers; [ bennofs ];
27+ platforms = with lib.platforms; linux ++ darwin ;
2428 };
2529}
pkgs/top-level/all-packages.nix+3−1
@@ -8807,7 +8807,9 @@ with pkgs;
88078807
88088808 freeglut = callPackage ../development/libraries/freeglut { };
88098809
8810− freenect = callPackage ../development/libraries/freenect { };
8810+ freenect = callPackage ../development/libraries/freenect {
8811+ inherit (darwin.apple_sdk.frameworks) Cocoa GLUT;
8812+ };
88118813
88128814 freetype = callPackage ../development/libraries/freetype { };
88138815