summary refs log blame commit diff
path: root/pkgs/tools/archivers/rpmextract/default.nix
blob: 59ff67e3eefbc7698e4b0bd177c218e92edf648b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                     
 
                     

                      
                   




                                              
                        
                     
                           





                                                   
                                                 

    
{ stdenv, rpm, cpio, substituteAll }:

stdenv.mkDerivation {
  name = "rpmextract";

  buildCommand = ''
    install -Dm755 $script $out/bin/rpmextract
  '';
    
  script = substituteAll {
    src = ./rpmextract.sh;
    isExecutable = true;
    inherit rpm cpio;
    inherit (stdenv) shell;
  };

  meta = with stdenv.lib; {
    description = "Script to extract RPM archives";
    platforms = platforms.all;
    license = licenses.gpl2;
    maintainers = with maintainers; [ abbradar ];
  };
}