summary refs log blame commit diff
path: root/pkgs/tools/filesystems/mtdutils/default.nix
blob: c4bf545a7d52e06c57011278deec3bf8d83daa78 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                                             
 
                         
                      
                    
 



                                                                  

    
                                                                                   
                                              
 


                                        
    
 
                                                        
 
                    
                                              
                                                             
                                
                                                     

                                                            

    
{ lib, stdenv, fetchgit, autoreconfHook, pkg-config, cmocka, acl, libuuid, lzo, zlib, zstd }:

stdenv.mkDerivation rec {
  pname = "mtd-utils";
  version = "2.1.3";

  src = fetchgit {
    url = "git://git.infradead.org/mtd-utils.git";
    rev = "v${version}";
    sha256 = "sha256-w20Zp1G0WbNvEJwqpLw2f8VvmW8ZBEL0GSHze8qpPWg";
  };

  nativeBuildInputs = [ autoreconfHook pkg-config ] ++ lib.optional doCheck cmocka;
  buildInputs = [ acl libuuid lzo zlib zstd ];

  configureFlags = with lib; [
    (enableFeature doCheck "unit-tests")
    (enableFeature doCheck "tests")
  ];

  doCheck = stdenv.hostPlatform == stdenv.buildPlatform;

  meta = with lib; {
    description = "Tools for MTD filesystems";
    downloadPage = "https://git.infradead.org/mtd-utils.git";
    license = licenses.gpl2Plus;
    homepage = "http://www.linux-mtd.infradead.org/";
    maintainers = with maintainers; [ viric superherointj ];
    platforms = with platforms; linux;
  };
}