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

                         
                     
                     




                         
                                                                    

    

                                    

                                             

                                                                             
                                      
 


                                                             
                                
                                
                                                      

    
{ lib, stdenv, fetchFromGitHub, pkgconfig }:

stdenv.mkDerivation rec {
  pname = "nvme-cli";
  version = "1.10.1";

  src = fetchFromGitHub {
    owner = "linux-nvme";
    repo = "nvme-cli";
    rev = "v${version}";
    sha256 = "12wp2wxmsw2v8m9bhvwvdbhdgx1md8iilhbl19sfzz2araiwi2x8";
  };

  nativeBuildInputs = [ pkgconfig ];

  makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ];

  # To omit the hostnqn and hostid files that are impure and should be unique
  # for each target host:
  installTargets = [ "install-spec" ];

  meta = with lib; {
    inherit (src.meta) homepage;
    description = "NVM-Express user space tooling for Linux";
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ primeos tavyc ];
  };
}