git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #37033 from lukeadams/freenect-update

freenect: 0.5.5 -> 0.5.7, Enable Darwin

commitbcddd8bd2a0eed9129f53e0f31aba2c9a726dafa authorJörg Thalheim <Mic92@users.noreply.github.com> dateSun 18 Mar 2018, 11:26 (9 years ago) parenta7fea814576ff8
2 files changed+14−8
pkgs/development/libraries/freenect/default.nix+11−7 pkgs/top-level/all-packages.nix+3−1
pkgs/development/libraries/freenect/default.nix+11−7
@@ -1,25 +1,29 @@
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}";
5− version = "0.5.5";
7+ version = "0.5.7";
68
79 src = fetchFromGitHub {
810 owner = "OpenKinect";
911 repo = "libfreenect";
1012 rev = "v${version}";
11− sha256 = "0qmbagfkxjgbwd2ajn7i5lkic9gx5y02bsnmqm7cjay99zfw9ifx";
13+ 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
@@ -8784,7 +8784,9 @@ with pkgs;
87848784
87858785 freeglut = callPackage ../development/libraries/freeglut { };
87868786
8787− freenect = callPackage ../development/libraries/freenect { };
8787+ freenect = callPackage ../development/libraries/freenect {
8788+ inherit (darwin.apple_sdk.frameworks) Cocoa GLUT;
8789+ };
87888790
87898791 freetype = callPackage ../development/libraries/freetype { };
87908792