2014-10-20 00:16:24 +01:00
|
|
|
{ stdenv, fetchurl, rpm, cpio, substituteAll }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rpmextract";
|
|
|
|
|
2014-10-22 13:13:26 +01:00
|
|
|
buildCommand = ''
|
2014-10-20 00:16:24 +01:00
|
|
|
install -Dm755 $script $out/bin/rpmextract
|
|
|
|
'';
|
|
|
|
|
|
|
|
script = substituteAll {
|
|
|
|
src = ./rpmextract.sh;
|
|
|
|
inherit rpm cpio;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Script to extract RPM archives";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl2;
|
2015-05-14 18:09:10 +01:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2014-10-20 00:16:24 +01:00
|
|
|
};
|
|
|
|
}
|