2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, rpm, cpio, substituteAll }:
|
2014-10-20 01:16:24 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rpmextract";
|
|
|
|
|
2014-10-22 14:13:26 +02:00
|
|
|
buildCommand = ''
|
2014-10-20 01:16:24 +02:00
|
|
|
install -Dm755 $script $out/bin/rpmextract
|
|
|
|
'';
|
|
|
|
|
|
|
|
script = substituteAll {
|
|
|
|
src = ./rpmextract.sh;
|
2019-03-06 00:10:34 +01:00
|
|
|
isExecutable = true;
|
2014-10-20 01:16:24 +02:00
|
|
|
inherit rpm cpio;
|
2019-01-15 23:41:31 +01:00
|
|
|
inherit (stdenv) shell;
|
2014-10-20 01:16:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Script to extract RPM archives";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl2;
|
2015-05-14 19:09:10 +02:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2014-10-20 01:16:24 +02:00
|
|
|
};
|
|
|
|
}
|