summary refs log blame commit diff
path: root/pkgs/os-specific/linux/thunderbolt/default.nix
blob: e532f9965aa88517bec98c840bdcab166aa47fea (plain) (tree)
1
2
3
4
5
6
7
8
9
             


                 
            



                         
                        
                    


                                             

                                                                    

    
                                                    
                          
 



                                                            


                                                          

                                                  
                                               
                                    

    
{ lib, stdenv
, boost
, cmake
, fetchFromGitHub
, pkg-config
, txt2tags
}:

stdenv.mkDerivation rec {
  pname = "thunderbolt";
  version = "0.9.3";
  src = fetchFromGitHub {
    owner = "01org";
    repo = "thunderbolt-software-user-space";
    rev = "v${version}";
    sha256 = "02w1bfm7xvq0dzkhwqiq0camkzz9kvciyhnsis61c8vzp39cwx0x";
  };

  nativeBuildInputs = [ cmake pkg-config txt2tags ];
  buildInputs = [ boost ];

  cmakeFlags = [
    "-DUDEV_BIN_DIR=${placeholder "out"}/bin"
    "-DUDEV_RULES_DIR=${placeholder "out"}/etc/udev/rules.d"
  ];

  meta = {
    description = "Thunderbolt(TM) user-space components";
    license = lib.licenses.bsd3;
    maintainers = [ lib.maintainers.ryantrinkle ];
    homepage = "https://01.org/thunderbolt-sw";
    platforms = lib.platforms.linux;
  };
}